• Home
  • Raw
  • Download

Lines Matching refs:vm_flags

141 	unsigned long vm_flags;  in __get_user_pages()  local
147 vm_flags = (foll_flags & FOLL_WRITE) ? in __get_user_pages()
149 vm_flags &= (foll_flags & FOLL_FORCE) ? in __get_user_pages()
158 if ((vma->vm_flags & (VM_IO | VM_PFNMAP)) || in __get_user_pages()
159 !(vm_flags & vma->vm_flags)) in __get_user_pages()
240 if (!(vma->vm_flags & (VM_IO | VM_PFNMAP))) in follow_pfn()
278 vma->vm_flags |= VM_USERMAP; in vmalloc_user()
674 if (region->vm_flags & VM_MAPPED_COPY) in __put_nommu_region()
724 protect_vma(vma, vma->vm_flags); in add_vma_to_mm()
1081 unsigned long vm_flags; in determine_vm_flags() local
1083 vm_flags = calc_vm_prot_bits(prot) | calc_vm_flag_bits(flags); in determine_vm_flags()
1088 vm_flags |= VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC; in determine_vm_flags()
1090 vm_flags |= VM_MAYSHARE; in determine_vm_flags()
1095 vm_flags |= VM_MAYSHARE | (capabilities & NOMMU_VMFLAGS); in determine_vm_flags()
1097 vm_flags |= VM_SHARED; in determine_vm_flags()
1105 vm_flags &= ~VM_MAYSHARE; in determine_vm_flags()
1107 return vm_flags; in determine_vm_flags()
1152 BUG_ON(!(vma->vm_flags & VM_MAYSHARE)); in do_mmap_private()
1183 region->vm_flags = vma->vm_flags |= VM_MAPPED_COPY; in do_mmap_private()
1237 vm_flags_t vm_flags, in do_mmap() argument
1262 vm_flags |= determine_vm_flags(file, prot, flags, capabilities); in do_mmap()
1274 region->vm_flags = vm_flags; in do_mmap()
1278 vma->vm_flags = vm_flags; in do_mmap()
1296 if (vm_flags & VM_MAYSHARE) { in do_mmap()
1306 if (!(pregion->vm_flags & VM_MAYSHARE)) in do_mmap()
1341 if (pregion->vm_flags & VM_MAPPED_COPY) in do_mmap()
1342 vma->vm_flags |= VM_MAPPED_COPY; in do_mmap()
1393 if (file && vma->vm_flags & VM_SHARED) in do_mmap()
1416 if (vma->vm_flags & VM_EXEC && !region->vm_icache_flushed) { in do_mmap()
1748 if (vma->vm_flags & VM_MAYSHARE) in do_mremap()
1785 vma->vm_flags |= VM_IO | VM_PFNMAP | VM_DONTEXPAND | VM_DONTDUMP; in remap_pfn_range()
1805 if (!(vma->vm_flags & VM_USERMAP)) in remap_vmalloc_range()
1951 if (write && vma->vm_flags & VM_MAYWRITE) in __access_remote_vm()
1954 else if (!write && vma->vm_flags & VM_MAYREAD) in __access_remote_vm()
2035 if (vma->vm_flags & VM_SHARED) { in nommu_shrink_inode_mappings()
2049 if (!(vma->vm_flags & VM_SHARED)) in nommu_shrink_inode_mappings()