Home
last modified time | relevance | path

Searched refs:prot (Results 1 – 8 of 8) sorted by relevance

/mm/
Dearly_ioremap.c36 pgprot_t prot) in early_memremap_pgprot_adjust() argument
38 return prot; in early_memremap_pgprot_adjust()
58 phys_addr_t phys, pgprot_t prot) in __late_set_fixmap() argument
106 __early_ioremap(resource_size_t phys_addr, unsigned long size, pgprot_t prot) in __early_ioremap() argument
154 __late_set_fixmap(idx, phys_addr, prot); in __early_ioremap()
156 __early_set_fixmap(idx, phys_addr, prot); in __early_ioremap()
226 pgprot_t prot = early_memremap_pgprot_adjust(phys_addr, size, in early_memremap() local
229 return (__force void *)__early_ioremap(phys_addr, size, prot); in early_memremap()
235 pgprot_t prot = early_memremap_pgprot_adjust(phys_addr, size, in early_memremap_ro() local
238 return (__force void *)__early_ioremap(phys_addr, size, prot); in early_memremap_ro()
Dmprotect.c477 unsigned long prot, int pkey) in do_mprotect_pkey() argument
482 const int grows = prot & (PROT_GROWSDOWN|PROT_GROWSUP); in do_mprotect_pkey()
484 (prot & PROT_READ); in do_mprotect_pkey()
486 prot &= ~(PROT_GROWSDOWN|PROT_GROWSUP); in do_mprotect_pkey()
498 if (!arch_validate_prot(prot)) in do_mprotect_pkey()
501 reqprot = prot; in do_mprotect_pkey()
548 prot |= PROT_EXEC; in do_mprotect_pkey()
558 new_vma_pkey = arch_override_mprotect_pkey(vma, prot, pkey); in do_mprotect_pkey()
559 newflags = calc_vm_prot_bits(prot, new_vma_pkey); in do_mprotect_pkey()
568 error = security_file_mprotect(vma, reqprot, prot); in do_mprotect_pkey()
[all …]
Dnommu.c230 void *__vmalloc(unsigned long size, gfp_t gfp_mask, pgprot_t prot) in __vmalloc() argument
421 void *vmap(struct page **pages, unsigned int count, unsigned long flags, pgprot_t prot) in vmap() argument
434 void *vm_map_ram(struct page **pages, unsigned int count, int node, pgprot_t prot) in vm_map_ram() argument
896 unsigned long prot, in validate_mmap_request() argument
969 if ((prot & PROT_WRITE) && in validate_mmap_request()
993 if (prot & PROT_WRITE) in validate_mmap_request()
998 if (((prot & PROT_READ) && !(capabilities & NOMMU_MAP_READ)) || in validate_mmap_request()
999 ((prot & PROT_WRITE) && !(capabilities & NOMMU_MAP_WRITE)) || in validate_mmap_request()
1000 ((prot & PROT_EXEC) && !(capabilities & NOMMU_MAP_EXEC)) in validate_mmap_request()
1013 if (prot & PROT_EXEC) in validate_mmap_request()
[all …]
Dvmalloc.c135 unsigned long end, pgprot_t prot, struct page **pages, int *nr) in vmap_pte_range() argument
154 set_pte_at(&init_mm, addr, pte, mk_pte(page, prot)); in vmap_pte_range()
161 unsigned long end, pgprot_t prot, struct page **pages, int *nr) in vmap_pmd_range() argument
171 if (vmap_pte_range(pmd, addr, next, prot, pages, nr)) in vmap_pmd_range()
178 unsigned long end, pgprot_t prot, struct page **pages, int *nr) in vmap_pud_range() argument
188 if (vmap_pmd_range(pud, addr, next, prot, pages, nr)) in vmap_pud_range()
195 unsigned long end, pgprot_t prot, struct page **pages, int *nr) in vmap_p4d_range() argument
205 if (vmap_pud_range(p4d, addr, next, prot, pages, nr)) in vmap_p4d_range()
218 pgprot_t prot, struct page **pages) in vmap_page_range_noflush() argument
230 err = vmap_p4d_range(pgd, addr, next, prot, pages, &nr); in vmap_page_range_noflush()
[all …]
Dutil.c321 unsigned long len, unsigned long prot, in vm_mmap_pgoff() argument
329 ret = security_mmap_file(file, prot, flag); in vm_mmap_pgoff()
333 ret = do_mmap_pgoff(file, addr, len, prot, flag, pgoff, in vm_mmap_pgoff()
344 unsigned long len, unsigned long prot, in vm_mmap() argument
352 return vm_mmap_pgoff(file, addr, len, prot, flag, offset >> PAGE_SHIFT); in vm_mmap()
Dmmap.c1355 unsigned long len, unsigned long prot, in do_mmap() argument
1374 if ((prot & PROT_READ) && (current->personality & READ_IMPLIES_EXEC)) in do_mmap()
1376 prot |= PROT_EXEC; in do_mmap()
1401 if (prot == PROT_EXEC) { in do_mmap()
1411 vm_flags |= calc_vm_prot_bits(prot, pkey) | calc_vm_flag_bits(flags) | in do_mmap()
1429 if ((prot&PROT_WRITE) && !(file->f_mode&FMODE_WRITE)) in do_mmap()
1513 unsigned long, prot, unsigned long, flags, in SYSCALL_DEFINE6() argument
1554 retval = vm_mmap_pgoff(file, addr, len, prot, flags, pgoff); in SYSCALL_DEFINE6()
1565 unsigned long prot; member
1580 return sys_mmap_pgoff(a.addr, a.len, a.prot, a.flags, a.fd, in SYSCALL_DEFINE1()
[all …]
Dmemory.c1710 struct page *page, pgprot_t prot) in insert_page() argument
1733 set_pte_at(mm, addr, pte, mk_pte(page, prot)); in insert_page()
1788 pfn_t pfn, pgprot_t prot, bool mkwrite) in insert_pfn() argument
1826 entry = pte_mkdevmap(pfn_t_pte(pfn, prot)); in insert_pfn()
1828 entry = pte_mkspecial(pfn_t_pte(pfn, prot)); in insert_pfn()
1973 unsigned long pfn, pgprot_t prot) in remap_pte_range() argument
1985 if (!pfn_modify_allowed(pfn, prot)) { in remap_pte_range()
1989 set_pte_at(mm, addr, pte, pte_mkspecial(pfn_pte(pfn, prot))); in remap_pte_range()
1999 unsigned long pfn, pgprot_t prot) in remap_pmd_range() argument
2013 pfn + (addr >> PAGE_SHIFT), prot); in remap_pmd_range()
[all …]
Dhuge_memory.c736 pmd_t *pmd, pfn_t pfn, pgprot_t prot, bool write, in insert_pfn_pmd() argument
744 entry = pmd_mkhuge(pfn_t_pmd(pfn, prot)); in insert_pfn_pmd()
803 pud_t *pud, pfn_t pfn, pgprot_t prot, bool write) in insert_pfn_pud() argument
810 entry = pud_mkhuge(pfn_t_pud(pfn, prot)); in insert_pfn_pud()