Lines Matching refs:user_entry

119 	vm_named_entry_t        user_entry __unused,  in mach_make_memory_entry_cleanup()
124 VM_SANITIZE_UNSAFE_UNWRAP(*size_u), permission, user_entry, in mach_make_memory_entry_cleanup()
172 vm_named_entry_t user_entry __unused = NULL; in mach_make_memory_entry_mem_only()
189 size_u, offset_u, permission, user_entry, object_handle); in mach_make_memory_entry_mem_only()
197 size_u, offset_u, permission, user_entry, object_handle); in mach_make_memory_entry_mem_only()
203 size_u, offset_u, permission, user_entry, object_handle); in mach_make_memory_entry_mem_only()
209 size_u, offset_u, permission, user_entry, object_handle); in mach_make_memory_entry_mem_only()
236 VM_SANITIZE_UNSAFE_UNWRAP(*size_u), permission, user_entry, KERN_SUCCESS); in mach_make_memory_entry_mem_only()
319 vm_named_entry_t user_entry = NULL; in mach_make_memory_entry_named_create() local
326 size_u, offset_u, permission, user_entry, object_handle); in mach_make_memory_entry_named_create()
350 size_u, offset_u, permission, user_entry, object_handle); in mach_make_memory_entry_named_create()
360 size_u, offset_u, permission, user_entry, object_handle); in mach_make_memory_entry_named_create()
369 size_u, offset_u, permission, user_entry, object_handle); in mach_make_memory_entry_named_create()
406 target_map, size_u, offset_u, permission, user_entry, in mach_make_memory_entry_named_create()
448 size_u, offset_u, permission, user_entry, object_handle); in mach_make_memory_entry_named_create()
477 user_entry = mach_memory_entry_allocate(object_handle); in mach_make_memory_entry_named_create()
479 user_entry, in mach_make_memory_entry_named_create()
484 user_entry->internal = TRUE; in mach_make_memory_entry_named_create()
485 user_entry->is_sub_map = FALSE; in mach_make_memory_entry_named_create()
486 user_entry->offset = 0; in mach_make_memory_entry_named_create()
487 user_entry->data_offset = 0; in mach_make_memory_entry_named_create()
488 user_entry->protection = protections; in mach_make_memory_entry_named_create()
489 user_entry->access = access; in mach_make_memory_entry_named_create()
490 user_entry->size = map_size; in mach_make_memory_entry_named_create()
491 user_entry->is_fully_owned = fully_owned; in mach_make_memory_entry_named_create()
496 *size_u = vm_sanitize_wrap_size(user_entry->size - user_entry->data_offset); in mach_make_memory_entry_named_create()
499 permission, user_entry, KERN_SUCCESS); in mach_make_memory_entry_named_create()
516 vm_named_entry_t user_entry = NULL; in mach_make_memory_entry_copy() local
529 size_u, offset_u, permission, user_entry, object_handle); in mach_make_memory_entry_copy()
553 size_u, offset_u, permission, user_entry, object_handle); in mach_make_memory_entry_copy()
563 size_u, offset_u, permission, user_entry, object_handle); in mach_make_memory_entry_copy()
576 size_u, offset_u, permission, user_entry, object_handle); in mach_make_memory_entry_copy()
580 user_entry = mach_memory_entry_allocate(object_handle); in mach_make_memory_entry_copy()
581 user_entry->backing.copy = copy; in mach_make_memory_entry_copy()
582 user_entry->internal = FALSE; in mach_make_memory_entry_copy()
583 user_entry->is_sub_map = FALSE; in mach_make_memory_entry_copy()
584 user_entry->is_copy = TRUE; in mach_make_memory_entry_copy()
585 user_entry->offset = 0; in mach_make_memory_entry_copy()
586 user_entry->protection = protections; in mach_make_memory_entry_copy()
587 user_entry->size = map_size; in mach_make_memory_entry_copy()
588 user_entry->data_offset = offset_in_page; in mach_make_memory_entry_copy()
592 user_entry->is_fully_owned = TRUE; in mach_make_memory_entry_copy()
600 user_entry->is_fully_owned = FALSE; in mach_make_memory_entry_copy()
605 *size_u = vm_sanitize_wrap_size(user_entry->size - user_entry->data_offset); in mach_make_memory_entry_copy()
608 permission, user_entry, KERN_SUCCESS); in mach_make_memory_entry_copy()
628 vm_named_entry_t user_entry = NULL; in mach_make_memory_entry_share() local
645 size_u, offset_u, permission, user_entry, object_handle); in mach_make_memory_entry_share()
669 size_u, offset_u, permission, user_entry, object_handle); in mach_make_memory_entry_share()
679 size_u, offset_u, permission, user_entry, object_handle); in mach_make_memory_entry_share()
783 size_u, offset_u, permission, user_entry, object_handle); in mach_make_memory_entry_share()
797 target_map, size_u, offset_u, permission, user_entry, in mach_make_memory_entry_share()
811 target_map, size_u, offset_u, permission, user_entry, in mach_make_memory_entry_share()
843 permission, user_entry, KERN_SUCCESS); in mach_make_memory_entry_share()
860 user_entry = mach_memory_entry_allocate(object_handle); in mach_make_memory_entry_share()
861 user_entry->backing.copy = copy; in mach_make_memory_entry_share()
862 user_entry->is_sub_map = FALSE; in mach_make_memory_entry_share()
863 user_entry->is_object = FALSE; in mach_make_memory_entry_share()
864 user_entry->internal = FALSE; in mach_make_memory_entry_share()
865 user_entry->protection = protections; in mach_make_memory_entry_share()
866 user_entry->size = map_size; in mach_make_memory_entry_share()
867 user_entry->data_offset = offset_in_page; in mach_make_memory_entry_share()
872 user_entry->is_copy = TRUE; in mach_make_memory_entry_share()
873 user_entry->offset = 0; in mach_make_memory_entry_share()
876 user_entry->is_fully_owned = TRUE; in mach_make_memory_entry_share()
882 user_entry->is_fully_owned = FALSE; in mach_make_memory_entry_share()
892 user_entry->is_fully_owned = FALSE; in mach_make_memory_entry_share()
897 user_entry->is_object = TRUE; in mach_make_memory_entry_share()
898 user_entry->internal = object->internal; in mach_make_memory_entry_share()
899 user_entry->offset = VME_OFFSET(vm_map_copy_first_entry(copy)); in mach_make_memory_entry_share()
900 user_entry->access = GET_MAP_MEM(permission); in mach_make_memory_entry_share()
902 user_entry->is_fully_owned = FALSE; in mach_make_memory_entry_share()
903 object = vm_named_entry_to_vm_object(user_entry); in mach_make_memory_entry_share()
906 user_entry->is_fully_owned = TRUE; in mach_make_memory_entry_share()
909 user_entry->is_fully_owned = TRUE; in mach_make_memory_entry_share()
913 *size_u = vm_sanitize_wrap_size(user_entry->size - in mach_make_memory_entry_share()
914 user_entry->data_offset); in mach_make_memory_entry_share()
917 permission, user_entry, KERN_SUCCESS); in mach_make_memory_entry_share()
1016 vm_named_entry_t user_entry = NULL; in mach_make_memory_entry_from_parent_entry() local
1046 size_u, offset_u, permission, user_entry, object_handle); in mach_make_memory_entry_from_parent_entry()
1069 size_u, offset_u, permission, user_entry, object_handle); in mach_make_memory_entry_from_parent_entry()
1075 user_entry = mach_memory_entry_allocate(object_handle); in mach_make_memory_entry_from_parent_entry()
1076 user_entry->size = map_size; in mach_make_memory_entry_from_parent_entry()
1077 user_entry->offset = user_entry_offset; in mach_make_memory_entry_from_parent_entry()
1078 user_entry->data_offset = offset_in_page; in mach_make_memory_entry_from_parent_entry()
1079 user_entry->is_sub_map = parent_entry->is_sub_map; in mach_make_memory_entry_from_parent_entry()
1080 user_entry->is_copy = parent_entry->is_copy; in mach_make_memory_entry_from_parent_entry()
1081 user_entry->protection = protections; in mach_make_memory_entry_from_parent_entry()
1084 user_entry->access = access; in mach_make_memory_entry_from_parent_entry()
1090 user_entry->backing.map = map; in mach_make_memory_entry_from_parent_entry()
1096 user_entry, in mach_make_memory_entry_from_parent_entry()
1098 user_entry->offset, in mach_make_memory_entry_from_parent_entry()
1099 user_entry->size, in mach_make_memory_entry_from_parent_entry()
1100 (user_entry->protection & VM_PROT_ALL)); in mach_make_memory_entry_from_parent_entry()
1101 assert(user_entry->is_object); in mach_make_memory_entry_from_parent_entry()
1120 *size_u = vm_sanitize_wrap_size(user_entry->size - in mach_make_memory_entry_from_parent_entry()
1121 user_entry->data_offset); in mach_make_memory_entry_from_parent_entry()
1124 permission, user_entry, KERN_SUCCESS); in mach_make_memory_entry_from_parent_entry()
1149 vm_named_entry_t user_entry __unused = NULL; in mach_make_memory_entry_internal()
1164 size_u, offset_u, permission, user_entry, object_handle); in mach_make_memory_entry_internal()
1174 size_u, offset_u, permission, user_entry, object_handle); in mach_make_memory_entry_internal()
1239 vm_named_entry_t user_entry; in mach_memory_entry_allocate() local
1241 user_entry = kalloc_type(struct vm_named_entry, in mach_memory_entry_allocate()
1243 named_entry_lock_init(user_entry); in mach_memory_entry_allocate()
1245 *user_handle_p = ipc_kobject_alloc_port((ipc_kobject_t)user_entry, in mach_memory_entry_allocate()
1251 user_entry->named_entry_bt = btref_get(__builtin_frame_address(0), 0); in mach_memory_entry_allocate()
1253 return user_entry; in mach_memory_entry_allocate()
1298 vm_named_entry_t user_entry; in mach_memory_object_memory_entry_64() local
1335 user_entry = mach_memory_entry_allocate(&user_handle); in mach_memory_object_memory_entry_64()
1336 user_entry->size = size; in mach_memory_object_memory_entry_64()
1337 user_entry->offset = 0; in mach_memory_object_memory_entry_64()
1338 user_entry->protection = permission & VM_PROT_ALL; in mach_memory_object_memory_entry_64()
1339 user_entry->access = GET_MAP_MEM(permission); in mach_memory_object_memory_entry_64()
1340 user_entry->is_sub_map = FALSE; in mach_memory_object_memory_entry_64()
1342 vm_named_entry_associate_vm_object(user_entry, object, 0, size, in mach_memory_object_memory_entry_64()
1343 (user_entry->protection & VM_PROT_ALL)); in mach_memory_object_memory_entry_64()
1344 user_entry->internal = object->internal; in mach_memory_object_memory_entry_64()
1348 user_entry->is_fully_owned = TRUE; in mach_memory_object_memory_entry_64()
1351 user_entry->is_fully_owned = TRUE; in mach_memory_object_memory_entry_64()