Lines Matching refs:VM_PROT_WRITE
2483 if ((cur_protection & VM_PROT_WRITE) && in vm_map_enter()
2533 int reject_prot = (needs_copy ? VM_PROT_ALLEXEC : (VM_PROT_WRITE | VM_PROT_ALLEXEC)); in vm_map_enter()
3048 int reject_prot = (needs_copy ? VM_PROT_ALLEXEC : (VM_PROT_WRITE | VM_PROT_ALLEXEC)); in vm_map_enter()
3276 pager_prot &= ~VM_PROT_WRITE; in vm_map_enter()
3523 if ((cur_protection & VM_PROT_WRITE) && in vm_map_enter_fourk()
3683 if ((entry->protection & VM_PROT_WRITE) && in vm_map_enter_fourk()
3872 pager_prot &= ~VM_PROT_WRITE; in vm_map_enter_fourk()
4363 copy_entry->protection & VM_PROT_WRITE) { in vm_map_enter_mem_object_helper()
4366 prot = copy_entry->protection & ~VM_PROT_WRITE; in vm_map_enter_mem_object_helper()
4408 pager_prot &= ~VM_PROT_WRITE; in vm_map_enter_mem_object_helper()
4678 pager_prot &= ~VM_PROT_WRITE; in vm_map_enter_mem_object_helper()
5015 pager_prot &= ~VM_PROT_WRITE; in vm_map_enter_mem_object_control()
5288 VM_PROT_ALL, VM_PROT_WRITE, in vm_map_enter_cpm()
5946 if ((new_prot & VM_PROT_WRITE) && in vm_map_protect()
5993 ((current->protection & VM_PROT_EXECUTE) && (new_prot & VM_PROT_WRITE))) { in vm_map_protect()
6091 !(old_prot & VM_PROT_WRITE) && in vm_map_protect()
6092 (current->protection & VM_PROT_WRITE)))) { in vm_map_protect()
6139 prot &= ~VM_PROT_WRITE; in vm_map_protect()
6143 if (prot & VM_PROT_WRITE) { in vm_map_protect()
6831 if (entry->protection & VM_PROT_WRITE) { in vm_map_wire_nested()
6841 if (entry->protection & VM_PROT_WRITE) { in vm_map_wire_nested()
6986 entry->protection & ~VM_PROT_WRITE); in vm_map_wire_nested()
9008 if (!(entry->protection & VM_PROT_WRITE)) { in vm_map_entry_is_overwritable()
9150 if (!(entry->protection & VM_PROT_WRITE)) { in vm_map_overwrite_submap_recurse()
9411 if (!(entry->protection & VM_PROT_WRITE)) { in vm_map_copy_overwrite_nested()
10240 if (!(entry->protection & VM_PROT_WRITE)) { in vm_map_copy_overwrite_unaligned()
10481 if (!(entry->protection & VM_PROT_WRITE)) { in vm_map_copy_overwrite_aligned()
12000 prot = src_entry->protection & ~VM_PROT_WRITE; in vm_map_copyin_internal()
12795 (old_entry->protection & VM_PROT_WRITE)) { in vm_map_fork_share()
12800 prot = old_entry->protection & ~VM_PROT_WRITE; in vm_map_fork_share()
12877 new_entry->protection &= ~VM_PROT_WRITE; in vm_map_fork_share()
12878 new_entry->max_protection &= ~VM_PROT_WRITE; in vm_map_fork_share()
13330 prot = old_entry->protection & ~VM_PROT_WRITE; in vm_map_fork()
13668 !((fault_type & VM_PROT_WRITE) || in vm_map_lookup_and_lock_object()
13679 ((fault_type & VM_PROT_WRITE) || in vm_map_lookup_and_lock_object()
13772 if (((fault_type & VM_PROT_WRITE) || in vm_map_lookup_and_lock_object()
13993 prot = prot & ~VM_PROT_WRITE; in vm_map_lookup_and_lock_object()
14134 if ((entry->protection & VM_PROT_WRITE) && in vm_map_lookup_and_lock_object()
14272 if ((fault_type & VM_PROT_WRITE) || *wired || force_copy) { in vm_map_lookup_and_lock_object()
14298 if ((fault_type & VM_PROT_WRITE) == 0 && *wired == 0) { in vm_map_lookup_and_lock_object()
14304 prot &= (~VM_PROT_WRITE); in vm_map_lookup_and_lock_object()
14308 if (submap_needed_copy && (prot & VM_PROT_WRITE)) { in vm_map_lookup_and_lock_object()
14314 assert(!(fault_type & VM_PROT_WRITE)); in vm_map_lookup_and_lock_object()
14318 prot &= ~VM_PROT_WRITE; in vm_map_lookup_and_lock_object()
16120 VM_PROT_READ | VM_PROT_WRITE); in vm_map_willneed()
16437 if (!(entry->protection & VM_PROT_WRITE) && !entry->used_for_jit in vm_map_reusable_pages()
17326 (src_entry->protection & VM_PROT_WRITE)) { in vm_map_remap_extract()
17331 prot = src_entry->protection & ~VM_PROT_WRITE; in vm_map_remap_extract()
17501 prot = src_entry->protection & ~VM_PROT_WRITE; in vm_map_remap_extract()
18673 entry->max_protection |= VM_PROT_WRITE; in vm_map_remap()
19098 if ((entry->protection & VM_PROT_WRITE) == 0 && in vm_map_purgable_control()
20217 (named_entry->protection & VM_PROT_WRITE)) { in convert_port_entry_to_map()
21415 if (!(entry->protection & VM_PROT_WRITE)) { in vm_map_query_volatile()