• Home
  • Raw
  • Download

Lines Matching full:capabilities

763 	unsigned long capabilities, rlen;  in validate_mmap_request()  local
796 capabilities = file->f_op->mmap_capabilities(file); in validate_mmap_request()
798 /* no explicit capabilities set, so assume some in validate_mmap_request()
803 capabilities = NOMMU_MAP_COPY; in validate_mmap_request()
807 capabilities = in validate_mmap_request()
818 /* eliminate any capabilities that we can't support on this in validate_mmap_request()
821 capabilities &= ~NOMMU_MAP_DIRECT; in validate_mmap_request()
823 capabilities &= ~NOMMU_MAP_COPY; in validate_mmap_request()
842 if (!(capabilities & NOMMU_MAP_DIRECT)) in validate_mmap_request()
846 capabilities &= ~NOMMU_MAP_COPY; in validate_mmap_request()
850 if (!(capabilities & NOMMU_MAP_COPY)) in validate_mmap_request()
856 capabilities &= ~NOMMU_MAP_DIRECT; in validate_mmap_request()
859 if (capabilities & NOMMU_MAP_DIRECT) { in validate_mmap_request()
860 if (((prot & PROT_READ) && !(capabilities & NOMMU_MAP_READ)) || in validate_mmap_request()
861 ((prot & PROT_WRITE) && !(capabilities & NOMMU_MAP_WRITE)) || in validate_mmap_request()
862 ((prot & PROT_EXEC) && !(capabilities & NOMMU_MAP_EXEC)) in validate_mmap_request()
864 capabilities &= ~NOMMU_MAP_DIRECT; in validate_mmap_request()
880 if (capabilities & NOMMU_MAP_EXEC) in validate_mmap_request()
885 !(capabilities & NOMMU_MAP_EXEC) in validate_mmap_request()
888 capabilities &= ~NOMMU_MAP_DIRECT; in validate_mmap_request()
894 capabilities = NOMMU_MAP_COPY; in validate_mmap_request()
908 *_capabilities = capabilities; in validate_mmap_request()
919 unsigned long capabilities) in determine_vm_flags() argument
926 if (!(capabilities & NOMMU_MAP_DIRECT)) { in determine_vm_flags()
935 vm_flags |= VM_MAYSHARE | (capabilities & NOMMU_VMFLAGS); in determine_vm_flags()
978 unsigned long capabilities) in do_mmap_private() argument
988 if (capabilities & NOMMU_MAP_DIRECT) { in do_mmap_private()
1082 unsigned long capabilities, result; in do_mmap() local
1090 &capabilities); in do_mmap()
1100 vm_flags = determine_vm_flags(file, prot, flags, capabilities); in do_mmap()
1165 if (!(capabilities & NOMMU_MAP_DIRECT)) in do_mmap()
1202 if (capabilities & NOMMU_MAP_DIRECT) { in do_mmap()
1214 if (!(capabilities & NOMMU_MAP_COPY)) in do_mmap()
1217 capabilities &= ~NOMMU_MAP_DIRECT; in do_mmap()
1233 ret = do_mmap_private(vma, region, len, capabilities); in do_mmap()