/arch/powerpc/include/asm/ |
D | mman.h | 39 static inline unsigned long arch_calc_vm_prot_bits(unsigned long prot) in arch_calc_vm_prot_bits() argument 41 return (prot & PROT_SAO) ? VM_SAO : 0; in arch_calc_vm_prot_bits() 43 #define arch_calc_vm_prot_bits(prot) arch_calc_vm_prot_bits(prot) argument 51 static inline int arch_validate_prot(unsigned long prot) in arch_validate_prot() argument 53 if (prot & ~(PROT_READ | PROT_WRITE | PROT_EXEC | PROT_SEM | PROT_SAO)) in arch_validate_prot() 55 if ((prot & PROT_SAO) && !cpu_has_feature(CPU_FTR_SAO)) in arch_validate_prot() 59 #define arch_validate_prot(prot) arch_validate_prot(prot) argument
|
D | pgtable.h | 27 #define pgprot_noncached(prot) (__pgprot((pgprot_val(prot) & ~_PAGE_CACHE_CTL) | \ argument 30 #define pgprot_noncached_wc(prot) (__pgprot((pgprot_val(prot) & ~_PAGE_CACHE_CTL) | \ argument 33 #define pgprot_cached(prot) (__pgprot((pgprot_val(prot) & ~_PAGE_CACHE_CTL) | \ argument 36 #define pgprot_cached_wthru(prot) (__pgprot((pgprot_val(prot) & ~_PAGE_CACHE_CTL) | \ argument 63 #define io_remap_pfn_range(vma, vaddr, pfn, size, prot) \ argument 64 remap_pfn_range(vma, vaddr, pfn, size, prot)
|
/arch/m68k/include/asm/ |
D | pgtable_mm.h | 126 #define io_remap_pfn_range(vma, vaddr, pfn, size, prot) \ argument 127 remap_pfn_range(vma, vaddr, pfn, size, prot) 148 #define pgprot_noncached(prot) \ argument 150 ? (__pgprot(pgprot_val(prot) | __SUN3_PAGE_NOCACHE)) \ 152 ? (__pgprot(pgprot_val(prot) | _PAGE_NOCACHE030)) \ 154 ? (__pgprot((pgprot_val(prot) & _CACHEMASK040) | _PAGE_NOCACHE_S)) \ 155 : (prot)))
|
/arch/sparc/mm/ |
D | generic_64.c | 27 unsigned long offset, pgprot_t prot, in io_remap_pte_range() argument 42 entry = mk_pte_io(offset, prot, space, PAGE_SIZE); in io_remap_pte_range() 48 entry = mk_pte_io(offset, prot, space, in io_remap_pte_range() 56 entry = mk_pte_io(offset, prot, space, in io_remap_pte_range() 63 entry = mk_pte_io(offset, prot, space, in io_remap_pte_range() 85 unsigned long offset, pgprot_t prot, int space) in io_remap_pmd_range() argument 98 io_remap_pte_range(mm, pte, address, end - address, address + offset, prot, space); in io_remap_pmd_range() 107 unsigned long offset, pgprot_t prot, int space) in io_remap_pud_range() argument 120 io_remap_pmd_range(mm, pmd, address, end - address, address + offset, prot, space); in io_remap_pud_range() 128 unsigned long pfn, unsigned long size, pgprot_t prot) in io_remap_pfn_range() argument [all …]
|
D | generic_32.c | 26 unsigned long offset, pgprot_t prot, int space) in io_remap_pte_range() argument 35 set_pte_at(mm, address, pte, mk_pte_io(offset, prot, space)); in io_remap_pte_range() 43 unsigned long offset, pgprot_t prot, int space) in io_remap_pmd_range() argument 56 io_remap_pte_range(mm, pte, address, end - address, address + offset, prot, space); in io_remap_pmd_range() 64 unsigned long pfn, unsigned long size, pgprot_t prot) in io_remap_pfn_range() argument 88 error = io_remap_pmd_range(mm, pmd, from, end - from, offset + from, prot, space); in io_remap_pfn_range()
|
/arch/x86/mm/ |
D | dump_pagetables.c | 72 static void printk_prot(struct seq_file *m, pgprot_t prot, int level) in printk_prot() argument 74 pgprotval_t pr = pgprot_val(prot); in printk_prot() 78 if (!pgprot_val(prot)) { in printk_prot() 143 pgprotval_t prot, cur; in note_page() local 151 prot = pgprot_val(new_prot) & PTE_FLAGS_MASK; in note_page() 160 } else if (prot != cur || level != st->level || in note_page() 204 pgprot_t prot = pte_pgprot(*start); in walk_pte_level() local 207 note_page(m, st, prot, 4); in walk_pte_level() 224 pgprotval_t prot = pmd_val(*start) & PTE_FLAGS_MASK; in walk_pmd_level() local 227 note_page(m, st, __pgprot(prot), 3); in walk_pmd_level() [all …]
|
D | iomap_32.c | 37 iomap_atomic_prot_pfn(unsigned long pfn, enum km_type type, pgprot_t prot) in iomap_atomic_prot_pfn() argument 50 if (!pat_enabled && pgprot_val(prot) == pgprot_val(PAGE_KERNEL_WC)) in iomap_atomic_prot_pfn() 51 prot = PAGE_KERNEL_UC_MINUS; in iomap_atomic_prot_pfn() 55 set_pte(kmap_pte-idx, pfn_pte(pfn, prot)); in iomap_atomic_prot_pfn()
|
/arch/avr32/include/asm/ |
D | pgtable-2level.h | 42 #define pfn_pte(pfn, prot) __pte(((pfn) << PAGE_SHIFT) | pgprot_val(prot)) argument 43 #define pfn_pmd(pfn, prot) __pmd(((pfn) << PAGE_SHIFT) | pgprot_val(prot)) argument
|
/arch/um/include/asm/ |
D | pgtable-2level.h | 41 #define pfn_pte(pfn, prot) __pte(pfn_to_phys(pfn) | pgprot_val(prot)) argument 42 #define pfn_pmd(pfn, prot) __pmd(pfn_to_phys(pfn) | pgprot_val(prot)) argument
|
/arch/um/kernel/ |
D | tlb.c | 23 unsigned int prot; member 34 unsigned int prot; member 63 op->u.mmap.prot, op->u.mmap.fd, in do_ops() 72 op->u.mprotect.len, op->u.mprotect.prot, in do_ops() 86 unsigned int prot, struct host_vm_change *hvc) in add_mmap() argument 97 (last->u.mmap.prot == prot) && (last->u.mmap.fd == fd) && in add_mmap() 113 .prot = prot, in add_mmap() 148 unsigned int prot, struct host_vm_change *hvc) in add_mprotect() argument 157 (last->u.mprotect.prot == prot)) { in add_mprotect() 172 .prot = prot } } }); in add_mprotect() [all …]
|
/arch/blackfin/kernel/ |
D | sys_bfin.c | 51 unsigned long prot, unsigned long flags, in do_mmap2() argument 65 error = do_mmap_pgoff(file, addr, len, prot, flags, pgoff); in do_mmap2() 75 unsigned long prot, unsigned long flags, in sys_mmap2() argument 78 return do_mmap2(addr, len, prot, flags, fd, pgoff); in sys_mmap2()
|
/arch/parisc/kernel/ |
D | entry.S | 53 .macro space_to_prot spc prot argument 54 depd,z \spc,62,31,\prot 57 .macro space_to_prot spc prot argument 58 extrd,u \spc,(64 - (SPACEID_SHIFT)),32,\prot 510 .macro make_insert_tlb spc,pte,prot argument 511 space_to_prot \spc \prot /* create prot id from space */ 524 depd \pte,8,7,\prot 530 depdi 7,11,3,\prot 535 depd %r0,11,2,\prot /* If Gateway, Set PL2 to 0 */ 544 depi 1,12,1,\prot [all …]
|
D | sys_parisc.c | 114 unsigned long prot, unsigned long flags, unsigned long fd, in do_mmap2() argument 128 error = do_mmap_pgoff(file, addr, len, prot, flags, pgoff); in do_mmap2() 138 unsigned long prot, unsigned long flags, unsigned long fd, in sys_mmap2() argument 143 return do_mmap2(addr, len, prot, flags, fd, pgoff >> (PAGE_SHIFT - 12)); in sys_mmap2() 147 unsigned long prot, unsigned long flags, unsigned long fd, in sys_mmap() argument 151 return do_mmap2(addr, len, prot, flags, fd, offset >> PAGE_SHIFT); in sys_mmap() 235 …signed long sys_alloc_hugepages(int key, unsigned long addr, unsigned long len, int prot, int flag) in sys_alloc_hugepages() argument
|
/arch/sh/kernel/ |
D | sys_sh.c | 30 do_mmap2(unsigned long addr, unsigned long len, unsigned long prot, in do_mmap2() argument 44 error = do_mmap_pgoff(file, addr, len, prot, flags, pgoff); in do_mmap2() 54 unsigned long prot, unsigned long flags, in old_mmap() argument 59 return do_mmap2(addr, len, prot, flags, fd, off>>PAGE_SHIFT); in old_mmap() 63 unsigned long prot, unsigned long flags, in sys_mmap2() argument 66 return do_mmap2(addr, len, prot, flags, fd, pgoff); in sys_mmap2()
|
/arch/h8300/kernel/ |
D | sys_h8300.c | 33 unsigned long prot, unsigned long flags, in do_mmap2() argument 47 error = do_mmap_pgoff(file, addr, len, prot, flags, pgoff); in do_mmap2() 57 unsigned long prot, unsigned long flags, in sys_mmap2() argument 60 return do_mmap2(addr, len, prot, flags, fd, pgoff); in sys_mmap2() 73 unsigned long prot; member 93 error = do_mmap2(a.addr, a.len, a.prot, a.flags, a.fd, a.offset >> PAGE_SHIFT); in old_mmap() 102 __u32 prot; 134 error = do_mmap_pgoff(file, a.addr, a.len, a.prot, a.flags, pgoff);
|
/arch/um/os-Linux/skas/ |
D | mem.c | 189 int map(struct mm_id * mm_idp, unsigned long virt, unsigned long len, int prot, in map() argument 203 .prot = prot, in map() 218 unsigned long args[] = { virt, len, prot, in map() 264 unsigned int prot, int done, void **data) in protect() argument 278 .prot = prot } } } ); in protect() 288 unsigned long args[] = { addr, len, prot, 0, 0, 0 }; in protect()
|
/arch/arm/include/asm/ |
D | pgtable.h | 261 #define pfn_pte(pfn,prot) (__pte(((pfn) << PAGE_SHIFT) | pgprot_val(prot))) argument 312 #define pgprot_noncached(prot) \ argument 313 __pgprot((pgprot_val(prot) & ~L_PTE_MT_MASK) | L_PTE_MT_UNCACHED) 314 #define pgprot_writecombine(prot) \ argument 315 __pgprot((pgprot_val(prot) & ~L_PTE_MT_MASK) | L_PTE_MT_BUFFERABLE) 351 #define mk_pte(page,prot) pfn_pte(page_to_pfn(page),prot) argument 412 #define io_remap_pfn_range(vma,from,pfn,size,prot) \ argument 413 remap_pfn_range(vma, from, pfn, size, prot)
|
/arch/mips/include/asm/ |
D | pgtable-32.h | 114 pfn_pte(unsigned long pfn, pgprot_t prot) in pfn_pte() argument 117 pte.pte_high = (pfn << 6) | (pgprot_val(prot) & 0x3f); in pfn_pte() 118 pte.pte_low = pgprot_val(prot); in pfn_pte() 128 #define pfn_pte(pfn, prot) __pte(((pfn) << (PAGE_SHIFT + 2)) | pgprot_val(prot)) argument 131 #define pfn_pte(pfn, prot) __pte(((unsigned long long)(pfn) << PAGE_SHIFT) | pgprot_val(prot)) argument
|
/arch/m68knommu/kernel/ |
D | sys_m68k.c | 34 unsigned long prot, unsigned long flags, in do_mmap2() argument 48 error = do_mmap_pgoff(file, addr, len, prot, flags, pgoff); in do_mmap2() 58 unsigned long prot, unsigned long flags, in sys_mmap2() argument 61 return do_mmap2(addr, len, prot, flags, fd, pgoff); in sys_mmap2() 74 unsigned long prot; member 94 error = do_mmap2(a.addr, a.len, a.prot, a.flags, a.fd, a.offset >> PAGE_SHIFT); in old_mmap()
|
/arch/sh/boards/mach-lboxre2/ |
D | setup.c | 53 pgprot_t prot; in lboxre2_devices_setup() local 59 prot = PAGE_KERNEL_PCC( 1 , _PAGE_PCC_IO16); in lboxre2_devices_setup() 60 cf0_io_base = (u32)p3_ioremap(paddrbase, psize, prot.pgprot); in lboxre2_devices_setup()
|
/arch/avr32/mm/ |
D | ioremap.c | 27 pgprot_t prot; in __ioremap() local 55 prot = __pgprot(_PAGE_PRESENT | _PAGE_GLOBAL | _PAGE_RW | _PAGE_DIRTY in __ioremap() 66 if (ioremap_page_range(addr, addr + size, phys_addr, prot)) { in __ioremap()
|
/arch/sh/boards/mach-sh03/ |
D | setup.c | 78 pgprot_t prot; in sh03_devices_setup() local 84 prot = PAGE_KERNEL_PCC(1, _PAGE_PCC_IO16); in sh03_devices_setup() 85 cf_ide_base = p3_ioremap(paddrbase, PAGE_SIZE, prot.pgprot); in sh03_devices_setup()
|
/arch/sh/boards/mach-landisk/ |
D | setup.c | 59 pgprot_t prot; in landisk_devices_setup() local 65 prot = PAGE_KERNEL_PCC(1, _PAGE_PCC_IO16); in landisk_devices_setup() 66 cf_ide_base = p3_ioremap(paddrbase, PAGE_SIZE, prot.pgprot); in landisk_devices_setup()
|
/arch/um/include/shared/skas/ |
D | proc_mm.h | 17 unsigned long prot; member 31 unsigned int prot; member
|
/arch/ia64/kernel/ |
D | sys_ia64.c | 189 do_mmap2 (unsigned long addr, unsigned long len, int prot, int flags, int fd, unsigned long pgoff) in do_mmap2() argument 213 addr = do_mmap_pgoff(file, addr, len, prot, flags, pgoff); in do_mmap2() 227 sys_mmap2 (unsigned long addr, unsigned long len, int prot, int flags, int fd, long pgoff) in sys_mmap2() argument 229 addr = do_mmap2(addr, len, prot, flags, fd, pgoff); in sys_mmap2() 236 sys_mmap (unsigned long addr, unsigned long len, int prot, int flags, int fd, long off) in sys_mmap() argument 241 addr = do_mmap2(addr, len, prot, flags, fd, off >> PAGE_SHIFT); in sys_mmap()
|