Lines Matching refs:user_entry
120 vm_named_entry_t user_entry __unused, in mach_make_memory_entry_cleanup()
125 VM_SANITIZE_UNSAFE_UNWRAP(*size_u), permission, user_entry, in mach_make_memory_entry_cleanup()
173 vm_named_entry_t user_entry __unused = NULL; in mach_make_memory_entry_mem_only()
190 size_u, offset_u, permission, user_entry, object_handle); in mach_make_memory_entry_mem_only()
198 size_u, offset_u, permission, user_entry, object_handle); in mach_make_memory_entry_mem_only()
204 size_u, offset_u, permission, user_entry, object_handle); in mach_make_memory_entry_mem_only()
210 size_u, offset_u, permission, user_entry, object_handle); in mach_make_memory_entry_mem_only()
229 target_map, size_u, offset_u, permission, user_entry, in mach_make_memory_entry_mem_only()
245 VM_SANITIZE_UNSAFE_UNWRAP(*size_u), permission, user_entry, KERN_SUCCESS); in mach_make_memory_entry_mem_only()
306 vm_named_entry_t user_entry = NULL; in mach_make_memory_entry_named_create() local
313 size_u, offset_u, permission, user_entry, object_handle); in mach_make_memory_entry_named_create()
329 size_u, offset_u, permission, user_entry, object_handle); in mach_make_memory_entry_named_create()
339 size_u, offset_u, permission, user_entry, object_handle); in mach_make_memory_entry_named_create()
348 size_u, offset_u, permission, user_entry, object_handle); in mach_make_memory_entry_named_create()
385 target_map, size_u, offset_u, permission, user_entry, in mach_make_memory_entry_named_create()
427 size_u, offset_u, permission, user_entry, object_handle); in mach_make_memory_entry_named_create()
456 user_entry = mach_memory_entry_allocate(object_handle); in mach_make_memory_entry_named_create()
458 user_entry, in mach_make_memory_entry_named_create()
463 user_entry->internal = TRUE; in mach_make_memory_entry_named_create()
464 user_entry->is_sub_map = FALSE; in mach_make_memory_entry_named_create()
465 user_entry->offset = 0; in mach_make_memory_entry_named_create()
466 user_entry->data_offset = 0; in mach_make_memory_entry_named_create()
467 user_entry->protection = protections; in mach_make_memory_entry_named_create()
468 user_entry->access = access; in mach_make_memory_entry_named_create()
469 user_entry->size = map_size; in mach_make_memory_entry_named_create()
470 user_entry->is_fully_owned = fully_owned; in mach_make_memory_entry_named_create()
475 *size_u = vm_sanitize_wrap_size(user_entry->size - user_entry->data_offset); in mach_make_memory_entry_named_create()
478 permission, user_entry, KERN_SUCCESS); in mach_make_memory_entry_named_create()
496 vm_named_entry_t user_entry = NULL; in mach_make_memory_entry_copy() local
509 size_u, offset_u, permission, user_entry, object_handle); in mach_make_memory_entry_copy()
525 size_u, offset_u, permission, user_entry, object_handle); in mach_make_memory_entry_copy()
535 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()
557 user_entry = mach_memory_entry_allocate(object_handle); in mach_make_memory_entry_copy()
558 user_entry->backing.copy = copy; in mach_make_memory_entry_copy()
559 user_entry->internal = FALSE; in mach_make_memory_entry_copy()
560 user_entry->is_sub_map = FALSE; in mach_make_memory_entry_copy()
561 user_entry->is_copy = TRUE; in mach_make_memory_entry_copy()
562 user_entry->offset = 0; in mach_make_memory_entry_copy()
563 user_entry->protection = protections; in mach_make_memory_entry_copy()
564 user_entry->size = map_size; in mach_make_memory_entry_copy()
565 user_entry->data_offset = offset_in_page; in mach_make_memory_entry_copy()
569 user_entry->is_fully_owned = TRUE; in mach_make_memory_entry_copy()
577 user_entry->is_fully_owned = FALSE; in mach_make_memory_entry_copy()
582 *size_u = vm_sanitize_wrap_size(user_entry->size - user_entry->data_offset); in mach_make_memory_entry_copy()
585 permission, user_entry, KERN_SUCCESS); in mach_make_memory_entry_copy()
606 vm_named_entry_t user_entry = NULL; in mach_make_memory_entry_share() local
625 size_u, offset_u, permission, user_entry, object_handle); in mach_make_memory_entry_share()
643 size_u, offset_u, permission, user_entry, object_handle); in mach_make_memory_entry_share()
655 size_u, offset_u, permission, user_entry, object_handle); in mach_make_memory_entry_share()
767 size_u, offset_u, permission, user_entry, object_handle); in mach_make_memory_entry_share()
783 target_map, size_u, offset_u, permission, user_entry, in mach_make_memory_entry_share()
799 target_map, size_u, offset_u, permission, user_entry, in mach_make_memory_entry_share()
833 permission, user_entry, KERN_SUCCESS); in mach_make_memory_entry_share()
847 target_map, size_u, offset_u, permission, user_entry, in mach_make_memory_entry_share()
864 target_map, size_u, offset_u, permission, user_entry, in mach_make_memory_entry_share()
873 user_entry = mach_memory_entry_allocate(object_handle); in mach_make_memory_entry_share()
874 user_entry->backing.copy = copy; in mach_make_memory_entry_share()
875 user_entry->is_sub_map = FALSE; in mach_make_memory_entry_share()
876 user_entry->is_object = FALSE; in mach_make_memory_entry_share()
877 user_entry->internal = FALSE; in mach_make_memory_entry_share()
878 user_entry->protection = protections; in mach_make_memory_entry_share()
879 user_entry->size = map_size; in mach_make_memory_entry_share()
880 user_entry->data_offset = offset_in_page; in mach_make_memory_entry_share()
885 user_entry->is_copy = TRUE; in mach_make_memory_entry_share()
886 user_entry->offset = 0; in mach_make_memory_entry_share()
889 user_entry->is_fully_owned = TRUE; in mach_make_memory_entry_share()
895 user_entry->is_fully_owned = FALSE; in mach_make_memory_entry_share()
906 user_entry->is_fully_owned = FALSE; in mach_make_memory_entry_share()
912 user_entry->is_object = TRUE; in mach_make_memory_entry_share()
913 assert3p(object, ==, vm_named_entry_to_vm_object(user_entry)); /* Sanity, this was set above */ in mach_make_memory_entry_share()
914 user_entry->internal = object->internal; in mach_make_memory_entry_share()
915 user_entry->offset = VME_OFFSET(vm_map_copy_first_entry(copy)); in mach_make_memory_entry_share()
916 user_entry->access = GET_MAP_MEM(permission); in mach_make_memory_entry_share()
918 user_entry->is_fully_owned = FALSE; in mach_make_memory_entry_share()
921 user_entry->is_fully_owned = TRUE; in mach_make_memory_entry_share()
924 user_entry->is_fully_owned = TRUE; in mach_make_memory_entry_share()
928 *size_u = vm_sanitize_wrap_size(user_entry->size - in mach_make_memory_entry_share()
929 user_entry->data_offset); in mach_make_memory_entry_share()
932 permission, user_entry, KERN_SUCCESS); in mach_make_memory_entry_share()
1033 vm_named_entry_t user_entry = NULL; in mach_make_memory_entry_from_parent_entry() local
1063 size_u, offset_u, permission, user_entry, object_handle); in mach_make_memory_entry_from_parent_entry()
1086 size_u, offset_u, permission, user_entry, object_handle); in mach_make_memory_entry_from_parent_entry()
1092 user_entry = mach_memory_entry_allocate(object_handle); in mach_make_memory_entry_from_parent_entry()
1093 user_entry->size = map_size; in mach_make_memory_entry_from_parent_entry()
1094 user_entry->offset = user_entry_offset; in mach_make_memory_entry_from_parent_entry()
1095 user_entry->data_offset = offset_in_page; in mach_make_memory_entry_from_parent_entry()
1096 user_entry->is_sub_map = parent_entry->is_sub_map; in mach_make_memory_entry_from_parent_entry()
1097 user_entry->is_copy = parent_entry->is_copy; in mach_make_memory_entry_from_parent_entry()
1098 user_entry->protection = protections; in mach_make_memory_entry_from_parent_entry()
1101 user_entry->access = access; in mach_make_memory_entry_from_parent_entry()
1107 user_entry->backing.map = map; in mach_make_memory_entry_from_parent_entry()
1113 user_entry, in mach_make_memory_entry_from_parent_entry()
1115 user_entry->offset, in mach_make_memory_entry_from_parent_entry()
1116 user_entry->size, in mach_make_memory_entry_from_parent_entry()
1117 (user_entry->protection & VM_PROT_ALL)); in mach_make_memory_entry_from_parent_entry()
1118 assert(user_entry->is_object); in mach_make_memory_entry_from_parent_entry()
1137 *size_u = vm_sanitize_wrap_size(user_entry->size - in mach_make_memory_entry_from_parent_entry()
1138 user_entry->data_offset); in mach_make_memory_entry_from_parent_entry()
1141 permission, user_entry, KERN_SUCCESS); in mach_make_memory_entry_from_parent_entry()
1166 vm_named_entry_t user_entry __unused = NULL; in mach_make_memory_entry_internal()
1181 size_u, offset_u, permission, user_entry, object_handle); in mach_make_memory_entry_internal()
1191 size_u, offset_u, permission, user_entry, object_handle); in mach_make_memory_entry_internal()
1257 vm_named_entry_t user_entry; in mach_memory_entry_allocate() local
1259 user_entry = kalloc_type(struct vm_named_entry, in mach_memory_entry_allocate()
1261 named_entry_lock_init(user_entry); in mach_memory_entry_allocate()
1263 *user_handle_p = ipc_kobject_alloc_port(user_entry, IKOT_NAMED_ENTRY, in mach_memory_entry_allocate()
1268 user_entry->named_entry_bt = btref_get(__builtin_frame_address(0), 0); in mach_memory_entry_allocate()
1270 return user_entry; in mach_memory_entry_allocate()
1315 vm_named_entry_t user_entry; in mach_memory_object_memory_entry_64() local
1352 user_entry = mach_memory_entry_allocate(&user_handle); in mach_memory_object_memory_entry_64()
1353 user_entry->size = size; in mach_memory_object_memory_entry_64()
1354 user_entry->offset = 0; in mach_memory_object_memory_entry_64()
1355 user_entry->protection = permission & VM_PROT_ALL; in mach_memory_object_memory_entry_64()
1356 user_entry->access = GET_MAP_MEM(permission); in mach_memory_object_memory_entry_64()
1357 user_entry->is_sub_map = FALSE; in mach_memory_object_memory_entry_64()
1359 vm_named_entry_associate_vm_object(user_entry, object, 0, size, in mach_memory_object_memory_entry_64()
1360 (user_entry->protection & VM_PROT_ALL)); in mach_memory_object_memory_entry_64()
1361 user_entry->internal = object->internal; in mach_memory_object_memory_entry_64()
1365 user_entry->is_fully_owned = TRUE; in mach_memory_object_memory_entry_64()
1368 user_entry->is_fully_owned = TRUE; in mach_memory_object_memory_entry_64()