Lines Matching refs:offset

93 	vm_map_offset_t                 offset,  in vm_memory_entry_get_offset_in_page()  argument
101 offset_in_page = offset - map_start; in vm_memory_entry_get_offset_in_page()
274 vm_map_offset_t *offset) in mach_make_memory_entry_generic_sanitize() argument
292 *map_start, *map_end, offset); in mach_make_memory_entry_generic_sanitize()
322 vm_map_offset_t map_start, map_end, offset; in mach_make_memory_entry_named_create() local
347 &offset); in mach_make_memory_entry_named_create()
486 user_entry->offset = 0; in mach_make_memory_entry_named_create()
498 "%p kr 0x%x\n", target_map, offset, VM_SANITIZE_UNSAFE_UNWRAP(*size_u), in mach_make_memory_entry_named_create()
525 vm_map_offset_t map_start, map_end, offset; in mach_make_memory_entry_copy() local
550 &offset); in mach_make_memory_entry_copy()
566 offset_in_page = vm_memory_entry_get_offset_in_page(offset, map_start, in mach_make_memory_entry_copy()
585 user_entry->offset = 0; in mach_make_memory_entry_copy()
607 "entry %p kr 0x%x\n", target_map, offset, VM_SANITIZE_UNSAFE_UNWRAP(*size_u), in mach_make_memory_entry_copy()
641 vm_map_offset_t map_start, map_end, offset; in mach_make_memory_entry_share() local
666 &offset); in mach_make_memory_entry_share()
740 offset_in_page = vm_memory_entry_get_offset_in_page(offset, map_start, in mach_make_memory_entry_share()
828 parent_entry->offset == 0 && in mach_make_memory_entry_share()
842 "entry %p kr 0x%x\n", target_map, offset, VM_SANITIZE_UNSAFE_UNWRAP(*size_u), in mach_make_memory_entry_share()
873 user_entry->offset = 0; in mach_make_memory_entry_share()
899 user_entry->offset = VME_OFFSET(vm_map_copy_first_entry(copy)); in mach_make_memory_entry_share()
916 "%p kr 0x%x\n", target_map, offset, VM_SANITIZE_UNSAFE_UNWRAP(*size_u), in mach_make_memory_entry_share()
932 vm_map_offset_t *offset, in mach_make_memory_entry_from_parent_entry_sanitize() argument
988 *map_start, *map_end, offset); in mach_make_memory_entry_from_parent_entry_sanitize()
993 if (__improbable(os_add_overflow(parent_entry->offset, *map_start, in mach_make_memory_entry_from_parent_entry_sanitize()
1025 vm_map_offset_t user_entry_offset, offset; in mach_make_memory_entry_from_parent_entry() local
1042 &offset, in mach_make_memory_entry_from_parent_entry()
1072 offset_in_page = vm_memory_entry_get_offset_in_page(offset, map_start, in mach_make_memory_entry_from_parent_entry()
1077 user_entry->offset = user_entry_offset; in mach_make_memory_entry_from_parent_entry()
1098 user_entry->offset, in mach_make_memory_entry_from_parent_entry()
1123 "%p kr 0x%x\n", target_map, offset, VM_SANITIZE_UNSAFE_UNWRAP(*size_u), in mach_make_memory_entry_from_parent_entry()
1337 user_entry->offset = 0; in mach_memory_object_memory_entry_64()
1431 if (mem_entry->offset != 0 || object->vo_size != mem_entry->size) { in memory_entry_purgeable_control_internal()
1661 if (mem_entry->offset != 0 || in mach_memory_entry_ownership()
1775 vm_object_offset_t offset; in mach_memory_entry_get_page_counts() local
1800 offset = mem_entry->offset; in mach_memory_entry_get_page_counts()
1802 size = vm_object_round_page(offset + size) - vm_object_trunc_page(offset); in mach_memory_entry_get_page_counts()
1803 offset = vm_object_trunc_page(offset); in mach_memory_entry_get_page_counts()
1807 kr = vm_object_get_page_counts(object, offset, size, resident_page_count, dirty_page_count); in mach_memory_entry_get_page_counts()
1821 vm_object_offset_t offset; in mach_memory_entry_phys_page_offset() local
1844 offset = mem_entry->offset; in mach_memory_entry_phys_page_offset()
1849 *offset_p = offset - vm_object_trunc_page(offset) + data_offset; in mach_memory_entry_phys_page_offset()
1859 memory_object_offset_t *offset, in mach_memory_entry_map_size_sanitize_locked() argument
1869 if (__improbable(vm_sanitize_add_overflow(*offset_u, mem_entry->offset, in mach_memory_entry_map_size_sanitize_locked()
1882 VM_SANITIZE_FLAGS_SIZE_ZERO_FALLTHROUGH, offset, end, map_size); in mach_memory_entry_map_size_sanitize_locked()
1903 memory_object_offset_t offset; in mach_memory_entry_map_size() local
1928 &offset, in mach_memory_entry_map_size()
1954 …lx\n", map, VM_MAP_PAGE_MASK(map), mem_entry, mem_entry->offset, mem_entry->data_offset, offset, V… in mach_memory_entry_map_size()
1960 …P_COPY_PAGE_SHIFT(mem_entry->backing.copy), map, VM_MAP_PAGE_SHIFT(map), offset, VM_SANITIZE_UNSAF… in mach_memory_entry_map_size()
1975 …VM_MAP_COPY_PAGE_SHIFT(copy_map), map, VM_MAP_PAGE_SHIFT(map), (uint64_t)offset, (uint64_t)VM_SANI… in mach_memory_entry_map_size()
2065 vm_object_offset_t offset = VM_SANITIZE_UNSAFE_UNWRAP(offset_u); in mach_memory_entry_page_op() local
2090 kr = vm_object_page_op(object, offset, ops, phys_entry, flags); in mach_memory_entry_page_op()