Lines Matching refs:user_entry
2699 vm_named_entry_t user_entry; in mach_make_memory_entry_internal() local
2720 user_entry = NULL; in mach_make_memory_entry_internal()
2726 …ot 0x%x -> entry %p kr 0x%x\n", target_map, offset, *size, permission, user_entry, KERN_INVALID_VA… in mach_make_memory_entry_internal()
2733 …ot 0x%x -> entry %p kr 0x%x\n", target_map, offset, *size, permission, user_entry, KERN_INVALID_AR… in mach_make_memory_entry_internal()
2748 user_entry = NULL; in mach_make_memory_entry_internal()
2759 …ot 0x%x -> entry %p kr 0x%x\n", target_map, offset, *size, permission, user_entry, KERN_INVALID_AR… in mach_make_memory_entry_internal()
2765 …ot 0x%x -> entry %p kr 0x%x\n", target_map, offset, *size, permission, user_entry, KERN_INVALID_AR… in mach_make_memory_entry_internal()
2776 …ot 0x%x -> entry %p kr 0x%x\n", target_map, offset, *size, permission, user_entry, KERN_INVALID_RI… in mach_make_memory_entry_internal()
2795 …prot 0x%x -> entry %p kr 0x%x\n", target_map, offset, *size, permission, user_entry, KERN_SUCCESS); in mach_make_memory_entry_internal()
2805 …ot 0x%x -> entry %p kr 0x%x\n", target_map, offset, *size, permission, user_entry, KERN_INVALID_AR… in mach_make_memory_entry_internal()
2937 user_entry = mach_memory_entry_allocate(object_handle); in mach_make_memory_entry_internal()
2939 user_entry, in mach_make_memory_entry_internal()
2944 user_entry->internal = TRUE; in mach_make_memory_entry_internal()
2945 user_entry->is_sub_map = FALSE; in mach_make_memory_entry_internal()
2946 user_entry->offset = 0; in mach_make_memory_entry_internal()
2947 user_entry->data_offset = 0; in mach_make_memory_entry_internal()
2948 user_entry->protection = protections; in mach_make_memory_entry_internal()
2949 SET_MAP_MEM(access, user_entry->protection); in mach_make_memory_entry_internal()
2950 user_entry->size = map_size; in mach_make_memory_entry_internal()
2955 *size = CAST_DOWN(vm_size_t, (user_entry->size - in mach_make_memory_entry_internal()
2956 user_entry->data_offset)); in mach_make_memory_entry_internal()
2957 …prot 0x%x -> entry %p kr 0x%x\n", target_map, offset, *size, permission, user_entry, KERN_SUCCESS); in mach_make_memory_entry_internal()
2965 …ot 0x%x -> entry %p kr 0x%x\n", target_map, offset, *size, permission, user_entry, KERN_INVALID_TA… in mach_make_memory_entry_internal()
2972 …ot 0x%x -> entry %p kr 0x%x\n", target_map, offset, *size, permission, user_entry, KERN_INVALID_AR… in mach_make_memory_entry_internal()
2991 …ze 0x%llx prot 0x%x -> entry %p kr 0x%x\n", target_map, offset, *size, permission, user_entry, kr); in mach_make_memory_entry_internal()
2996 user_entry = mach_memory_entry_allocate(object_handle); in mach_make_memory_entry_internal()
2997 user_entry->backing.copy = copy; in mach_make_memory_entry_internal()
2998 user_entry->internal = FALSE; in mach_make_memory_entry_internal()
2999 user_entry->is_sub_map = FALSE; in mach_make_memory_entry_internal()
3000 user_entry->is_copy = TRUE; in mach_make_memory_entry_internal()
3001 user_entry->offset = 0; in mach_make_memory_entry_internal()
3002 user_entry->protection = protections; in mach_make_memory_entry_internal()
3003 user_entry->size = map_size; in mach_make_memory_entry_internal()
3004 user_entry->data_offset = offset_in_page; in mach_make_memory_entry_internal()
3006 *size = CAST_DOWN(vm_size_t, (user_entry->size - in mach_make_memory_entry_internal()
3007 user_entry->data_offset)); in mach_make_memory_entry_internal()
3008 …prot 0x%x -> entry %p kr 0x%x\n", target_map, offset, *size, permission, user_entry, KERN_SUCCESS); in mach_make_memory_entry_internal()
3021 …ot 0x%x -> entry %p kr 0x%x\n", target_map, offset, *size, permission, user_entry, KERN_INVALID_TA… in mach_make_memory_entry_internal()
3086 …ot 0x%x -> entry %p kr 0x%x\n", target_map, offset, *size, permission, user_entry, KERN_INVALID_AR… in mach_make_memory_entry_internal()
3137 …ze 0x%llx prot 0x%x -> entry %p kr 0x%x\n", target_map, offset, *size, permission, user_entry, kr); in mach_make_memory_entry_internal()
3153 …ot 0x%x -> entry %p kr 0x%x\n", target_map, offset, *size, permission, user_entry, KERN_PROTECTION… in mach_make_memory_entry_internal()
3173 …ot 0x%x -> entry %p kr 0x%x\n", target_map, offset, *size, permission, user_entry, KERN_PROTECTION… in mach_make_memory_entry_internal()
3204 …prot 0x%x -> entry %p kr 0x%x\n", target_map, offset, *size, permission, user_entry, KERN_SUCCESS); in mach_make_memory_entry_internal()
3221 user_entry = mach_memory_entry_allocate(object_handle); in mach_make_memory_entry_internal()
3222 user_entry->backing.copy = copy; in mach_make_memory_entry_internal()
3223 user_entry->is_sub_map = FALSE; in mach_make_memory_entry_internal()
3224 user_entry->is_object = FALSE; in mach_make_memory_entry_internal()
3225 user_entry->internal = FALSE; in mach_make_memory_entry_internal()
3226 user_entry->protection = protections; in mach_make_memory_entry_internal()
3227 user_entry->size = map_size; in mach_make_memory_entry_internal()
3228 user_entry->data_offset = offset_in_page; in mach_make_memory_entry_internal()
3231 user_entry->is_copy = TRUE; in mach_make_memory_entry_internal()
3232 user_entry->offset = 0; in mach_make_memory_entry_internal()
3234 user_entry->is_object = TRUE; in mach_make_memory_entry_internal()
3235 user_entry->internal = object->internal; in mach_make_memory_entry_internal()
3236 user_entry->offset = VME_OFFSET(vm_map_copy_first_entry(copy)); in mach_make_memory_entry_internal()
3237 SET_MAP_MEM(GET_MAP_MEM(permission), user_entry->protection); in mach_make_memory_entry_internal()
3240 *size = CAST_DOWN(vm_size_t, (user_entry->size - in mach_make_memory_entry_internal()
3241 user_entry->data_offset)); in mach_make_memory_entry_internal()
3242 …prot 0x%x -> entry %p kr 0x%x\n", target_map, offset, *size, permission, user_entry, KERN_SUCCESS); in mach_make_memory_entry_internal()
3306 user_entry = mach_memory_entry_allocate(object_handle); in mach_make_memory_entry_internal()
3307 user_entry->size = map_size; in mach_make_memory_entry_internal()
3308 user_entry->offset = parent_entry->offset + map_start; in mach_make_memory_entry_internal()
3309 user_entry->data_offset = offset_in_page; in mach_make_memory_entry_internal()
3310 user_entry->is_sub_map = parent_entry->is_sub_map; in mach_make_memory_entry_internal()
3311 user_entry->is_copy = parent_entry->is_copy; in mach_make_memory_entry_internal()
3312 user_entry->internal = parent_entry->internal; in mach_make_memory_entry_internal()
3313 user_entry->protection = protections; in mach_make_memory_entry_internal()
3316 SET_MAP_MEM(access, user_entry->protection); in mach_make_memory_entry_internal()
3322 user_entry->backing.map = map; in mach_make_memory_entry_internal()
3328 user_entry, in mach_make_memory_entry_internal()
3330 user_entry->offset, in mach_make_memory_entry_internal()
3331 user_entry->size, in mach_make_memory_entry_internal()
3332 (user_entry->protection & VM_PROT_ALL)); in mach_make_memory_entry_internal()
3333 assert(user_entry->is_object); in mach_make_memory_entry_internal()
3352 *size = CAST_DOWN(vm_size_t, (user_entry->size - in mach_make_memory_entry_internal()
3353 user_entry->data_offset)); in mach_make_memory_entry_internal()
3354 …prot 0x%x -> entry %p kr 0x%x\n", target_map, offset, *size, permission, user_entry, KERN_SUCCESS); in mach_make_memory_entry_internal()
3358 …ze 0x%llx prot 0x%x -> entry %p kr 0x%x\n", target_map, offset, *size, permission, user_entry, kr); in mach_make_memory_entry_internal()
3444 vm_named_entry_t user_entry; in mach_memory_entry_allocate() local
3446 user_entry = kalloc_type(struct vm_named_entry, in mach_memory_entry_allocate()
3448 named_entry_lock_init(user_entry); in mach_memory_entry_allocate()
3450 *user_handle_p = ipc_kobject_alloc_port((ipc_kobject_t)user_entry, in mach_memory_entry_allocate()
3456 user_entry->named_entry_bt = btref_get(__builtin_frame_address(0), 0); in mach_memory_entry_allocate()
3458 return user_entry; in mach_memory_entry_allocate()
3477 vm_named_entry_t user_entry; in mach_memory_object_memory_entry_64() local
3500 user_entry = mach_memory_entry_allocate(&user_handle); in mach_memory_object_memory_entry_64()
3501 user_entry->size = size; in mach_memory_object_memory_entry_64()
3502 user_entry->offset = 0; in mach_memory_object_memory_entry_64()
3503 user_entry->protection = permission & VM_PROT_ALL; in mach_memory_object_memory_entry_64()
3505 SET_MAP_MEM(access, user_entry->protection); in mach_memory_object_memory_entry_64()
3506 user_entry->is_sub_map = FALSE; in mach_memory_object_memory_entry_64()
3508 vm_named_entry_associate_vm_object(user_entry, object, 0, size, in mach_memory_object_memory_entry_64()
3509 (user_entry->protection & VM_PROT_ALL)); in mach_memory_object_memory_entry_64()
3510 user_entry->internal = object->internal; in mach_memory_object_memory_entry_64()
4278 vm_named_entry_t user_entry; in vm_region_object_create() local
4281 user_entry = mach_memory_entry_allocate(object_handle); in vm_region_object_create()
4290 user_entry->backing.map = new_map; in vm_region_object_create()
4291 user_entry->internal = TRUE; in vm_region_object_create()
4292 user_entry->is_sub_map = TRUE; in vm_region_object_create()
4293 user_entry->offset = 0; in vm_region_object_create()
4294 user_entry->protection = VM_PROT_ALL; in vm_region_object_create()
4295 user_entry->size = size; in vm_region_object_create()