Lines Matching refs:vm_flags
125 if (!(vma->vm_flags & (VM_IO | VM_PFNMAP))) in follow_pfn()
153 pgprot_t prot, unsigned long vm_flags, int node, in __vmalloc_node_range() argument
176 vma->vm_flags |= VM_USERMAP; in __vmalloc_user_flags()
530 if (region->vm_flags & VM_MAPPED_COPY) in __put_nommu_region()
892 unsigned long vm_flags; in determine_vm_flags() local
894 vm_flags = calc_vm_prot_bits(prot, 0) | calc_vm_flag_bits(flags); in determine_vm_flags()
899 vm_flags |= VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC; in determine_vm_flags()
901 vm_flags |= VM_MAYSHARE; in determine_vm_flags()
906 vm_flags |= VM_MAYSHARE | (capabilities & NOMMU_VMFLAGS); in determine_vm_flags()
908 vm_flags |= VM_SHARED; in determine_vm_flags()
916 vm_flags &= ~VM_MAYSHARE; in determine_vm_flags()
918 return vm_flags; in determine_vm_flags()
963 BUG_ON(!(vma->vm_flags & VM_MAYSHARE)); in do_mmap_private()
994 region->vm_flags = vma->vm_flags |= VM_MAPPED_COPY; in do_mmap_private()
1052 vm_flags_t vm_flags; in do_mmap() local
1072 vm_flags = determine_vm_flags(file, prot, flags, capabilities); in do_mmap()
1088 region->vm_flags = vm_flags; in do_mmap()
1091 vma->vm_flags = vm_flags; in do_mmap()
1109 if (vm_flags & VM_MAYSHARE) { in do_mmap()
1119 if (!(pregion->vm_flags & VM_MAYSHARE)) in do_mmap()
1154 if (pregion->vm_flags & VM_MAPPED_COPY) in do_mmap()
1155 vma->vm_flags |= VM_MAPPED_COPY; in do_mmap()
1206 if (file && vma->vm_flags & VM_SHARED) in do_mmap()
1231 if (vma->vm_flags & VM_EXEC && !region->vm_icache_flushed) { in do_mmap()
1603 if (vma->vm_flags & VM_MAYSHARE) in do_mremap()
1638 vma->vm_flags |= VM_IO | VM_PFNMAP | VM_DONTEXPAND | VM_DONTDUMP; in remap_pfn_range()
1658 if (!(vma->vm_flags & VM_USERMAP)) in remap_vmalloc_range()
1700 if (write && vma->vm_flags & VM_MAYWRITE) in __access_remote_vm()
1703 else if (!write && vma->vm_flags & VM_MAYREAD) in __access_remote_vm()
1785 if (vma->vm_flags & VM_SHARED) { in nommu_shrink_inode_mappings()
1799 if (!(vma->vm_flags & VM_SHARED)) in nommu_shrink_inode_mappings()