Lines Matching refs:prev_entry
2685 vm_map_entry_t prev_entry = VM_MAP_ENTRY_NULL; in vm_map_random_address_for_size() local
2719 if (vm_map_lookup_entry(map, random_addr, &prev_entry) == FALSE) { in vm_map_random_address_for_size()
2720 if (prev_entry == vm_map_to_entry(map)) { in vm_map_random_address_for_size()
2723 next_entry = prev_entry->vme_next; in vm_map_random_address_for_size()
5845 vm_map_entry_t prev_entry; in vm_map_protect() local
5847 prev_entry = current->vme_prev; in vm_map_protect()
5848 if (prev_entry != vm_map_to_entry(map) && in vm_map_protect()
5849 !prev_entry->map_aligned && in vm_map_protect()
5850 (vm_map_round_page(prev_entry->vme_end, in vm_map_protect()
16020 vm_map_entry_t prev_entry; in vm_map_simplify_entry() local
16022 prev_entry = this_entry->vme_prev; in vm_map_simplify_entry()
16025 (prev_entry != vm_map_to_entry(map)) && in vm_map_simplify_entry()
16027 (prev_entry->vme_end == this_entry->vme_start) && in vm_map_simplify_entry()
16029 (prev_entry->is_sub_map == this_entry->is_sub_map) && in vm_map_simplify_entry()
16030 (prev_entry->vme_object_value == this_entry->vme_object_value) && in vm_map_simplify_entry()
16031 (prev_entry->vme_kernel_object == this_entry->vme_kernel_object) && in vm_map_simplify_entry()
16032 ((VME_OFFSET(prev_entry) + (prev_entry->vme_end - in vm_map_simplify_entry()
16033 prev_entry->vme_start)) in vm_map_simplify_entry()
16036 (prev_entry->behavior == this_entry->behavior) && in vm_map_simplify_entry()
16037 (prev_entry->needs_copy == this_entry->needs_copy) && in vm_map_simplify_entry()
16038 (prev_entry->protection == this_entry->protection) && in vm_map_simplify_entry()
16039 (prev_entry->max_protection == this_entry->max_protection) && in vm_map_simplify_entry()
16040 (prev_entry->inheritance == this_entry->inheritance) && in vm_map_simplify_entry()
16041 (prev_entry->use_pmap == this_entry->use_pmap) && in vm_map_simplify_entry()
16042 (VME_ALIAS(prev_entry) == VME_ALIAS(this_entry)) && in vm_map_simplify_entry()
16043 (prev_entry->no_cache == this_entry->no_cache) && in vm_map_simplify_entry()
16044 (prev_entry->vme_permanent == this_entry->vme_permanent) && in vm_map_simplify_entry()
16045 (prev_entry->map_aligned == this_entry->map_aligned) && in vm_map_simplify_entry()
16046 (prev_entry->zero_wired_pages == this_entry->zero_wired_pages) && in vm_map_simplify_entry()
16047 (prev_entry->used_for_jit == this_entry->used_for_jit) && in vm_map_simplify_entry()
16049 (prev_entry->used_for_tpro == this_entry->used_for_tpro) && in vm_map_simplify_entry()
16051 (prev_entry->csm_associated == this_entry->csm_associated) && in vm_map_simplify_entry()
16052 (prev_entry->vme_xnu_user_debug == this_entry->vme_xnu_user_debug) && in vm_map_simplify_entry()
16053 (prev_entry->iokit_acct == this_entry->iokit_acct) && in vm_map_simplify_entry()
16054 (prev_entry->vme_resilient_codesign == in vm_map_simplify_entry()
16056 (prev_entry->vme_resilient_media == in vm_map_simplify_entry()
16058 (prev_entry->vme_no_copy_on_read == this_entry->vme_no_copy_on_read) && in vm_map_simplify_entry()
16059 (prev_entry->translated_allow_execute == this_entry->translated_allow_execute) && in vm_map_simplify_entry()
16061 (prev_entry->wired_count == this_entry->wired_count) && in vm_map_simplify_entry()
16062 (prev_entry->user_wired_count == this_entry->user_wired_count) && in vm_map_simplify_entry()
16064 ((prev_entry->vme_atomic == FALSE) && (this_entry->vme_atomic == FALSE)) && in vm_map_simplify_entry()
16065 (prev_entry->in_transition == FALSE) && in vm_map_simplify_entry()
16067 (prev_entry->needs_wakeup == FALSE) && in vm_map_simplify_entry()
16069 (prev_entry->is_shared == this_entry->is_shared) && in vm_map_simplify_entry()
16070 (prev_entry->superpage_size == FALSE) && in vm_map_simplify_entry()
16073 if (prev_entry->vme_permanent) { in vm_map_simplify_entry()
16075 prev_entry->vme_permanent = false; in vm_map_simplify_entry()
16077 vm_map_store_entry_unlink(map, prev_entry, true); in vm_map_simplify_entry()
16078 assert(prev_entry->vme_start < this_entry->vme_end); in vm_map_simplify_entry()
16079 if (prev_entry->map_aligned) { in vm_map_simplify_entry()
16080 assert(VM_MAP_PAGE_ALIGNED(prev_entry->vme_start, in vm_map_simplify_entry()
16083 this_entry->vme_start = prev_entry->vme_start; in vm_map_simplify_entry()
16084 VME_OFFSET_SET(this_entry, VME_OFFSET(prev_entry)); in vm_map_simplify_entry()
16090 if (prev_entry->is_sub_map) { in vm_map_simplify_entry()
16091 vm_map_deallocate(VME_SUBMAP(prev_entry)); in vm_map_simplify_entry()
16093 vm_object_deallocate(VME_OBJECT(prev_entry)); in vm_map_simplify_entry()
16095 vm_map_entry_dispose(prev_entry); in vm_map_simplify_entry()