Lines Matching full:capabilities
688 unsigned long capabilities, rlen; in validate_mmap_request() local
721 capabilities = file->f_op->mmap_capabilities(file); in validate_mmap_request()
723 /* no explicit capabilities set, so assume some in validate_mmap_request()
728 capabilities = NOMMU_MAP_COPY; in validate_mmap_request()
732 capabilities = in validate_mmap_request()
743 /* eliminate any capabilities that we can't support on this in validate_mmap_request()
746 capabilities &= ~NOMMU_MAP_DIRECT; in validate_mmap_request()
748 capabilities &= ~NOMMU_MAP_COPY; in validate_mmap_request()
764 if (!(capabilities & NOMMU_MAP_DIRECT)) in validate_mmap_request()
768 capabilities &= ~NOMMU_MAP_COPY; in validate_mmap_request()
772 if (!(capabilities & NOMMU_MAP_COPY)) in validate_mmap_request()
778 capabilities &= ~NOMMU_MAP_DIRECT; in validate_mmap_request()
781 if (capabilities & NOMMU_MAP_DIRECT) { in validate_mmap_request()
782 if (((prot & PROT_READ) && !(capabilities & NOMMU_MAP_READ)) || in validate_mmap_request()
783 ((prot & PROT_WRITE) && !(capabilities & NOMMU_MAP_WRITE)) || in validate_mmap_request()
784 ((prot & PROT_EXEC) && !(capabilities & NOMMU_MAP_EXEC)) in validate_mmap_request()
786 capabilities &= ~NOMMU_MAP_DIRECT; in validate_mmap_request()
802 if (capabilities & NOMMU_MAP_EXEC) in validate_mmap_request()
807 !(capabilities & NOMMU_MAP_EXEC) in validate_mmap_request()
810 capabilities &= ~NOMMU_MAP_DIRECT; in validate_mmap_request()
816 capabilities = NOMMU_MAP_COPY; in validate_mmap_request()
830 *_capabilities = capabilities; in validate_mmap_request()
841 unsigned long capabilities) in determine_vm_flags() argument
855 if (capabilities & NOMMU_MAP_DIRECT) in determine_vm_flags()
856 vm_flags |= (capabilities & NOMMU_VMFLAGS); in determine_vm_flags()
873 (capabilities & NOMMU_VMFLAGS); in determine_vm_flags()
907 unsigned long capabilities) in do_mmap_private() argument
919 if (capabilities & NOMMU_MAP_DIRECT) { in do_mmap_private()
1015 unsigned long capabilities, result; in do_mmap() local
1024 &capabilities); in do_mmap()
1034 vm_flags |= determine_vm_flags(file, prot, flags, capabilities); in do_mmap()
1100 if (!(capabilities & NOMMU_MAP_DIRECT)) in do_mmap()
1137 if (capabilities & NOMMU_MAP_DIRECT) { in do_mmap()
1149 if (!(capabilities & NOMMU_MAP_COPY)) in do_mmap()
1152 capabilities &= ~NOMMU_MAP_DIRECT; in do_mmap()
1168 ret = do_mmap_private(vma, region, len, capabilities); in do_mmap()