| /linux/arch/sh/include/asm/ |
| H A D | pgtable_32.h | 176 #define PAGE_NONE __pgprot(_PAGE_PROTNONE | _PAGE_CACHABLE | \ 179 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_ACCESSED | \ 186 #define PAGE_EXECREAD __pgprot(_PAGE_PRESENT | _PAGE_ACCESSED | \ 195 #define PAGE_READONLY __pgprot(_PAGE_PRESENT | _PAGE_ACCESSED | \ 200 #define PAGE_WRITEONLY __pgprot(_PAGE_PRESENT | _PAGE_ACCESSED | \ 205 #define PAGE_RWX __pgprot(_PAGE_PRESENT | _PAGE_ACCESSED | \ 214 #define PAGE_KERNEL __pgprot(_PAGE_PRESENT | _PAGE_CACHABLE | \ 222 __pgprot(_PAGE_PRESENT | _PAGE_DIRTY | \ 229 #define PAGE_KERNEL_RO __pgprot(_PAGE_PRESENT | _PAGE_CACHABLE | \ 236 __pgprot(0) [all …]
|
| H A D | page.h | 82 #define __pgprot(x) ((pgprot_t) { (x) } ) macro 86 #define pte_pgprot(x) __pgprot(pte_val(x) & PTE_FLAGS_MASK)
|
| /linux/arch/arm/mm/ |
| H A D | pageattr.c | 76 __pgprot(L_PTE_RDONLY), in set_memory_ro() 77 __pgprot(0)); in set_memory_ro() 83 __pgprot(0), in set_memory_rw() 84 __pgprot(L_PTE_RDONLY)); in set_memory_rw() 90 __pgprot(L_PTE_XN), in set_memory_nx() 91 __pgprot(0)); in set_memory_nx() 97 __pgprot(0), in set_memory_x() 98 __pgprot(L_PTE_XN)); in set_memory_x() 105 __pgprot(L_PTE_VALID), in set_memory_valid() 106 __pgprot(0)); in set_memory_valid() [all …]
|
| /linux/arch/loongarch/mm/ |
| H A D | cache.c | 152 [VM_NONE] = __pgprot(_CACHE_CC | _PAGE_USER | 155 [VM_READ] = __pgprot(_CACHE_CC | _PAGE_VALID | 158 [VM_WRITE] = __pgprot(_CACHE_CC | _PAGE_VALID | 161 [VM_WRITE | VM_READ] = __pgprot(_CACHE_CC | _PAGE_VALID | 164 [VM_EXEC] = __pgprot(_CACHE_CC | _PAGE_VALID | 166 [VM_EXEC | VM_READ] = __pgprot(_CACHE_CC | _PAGE_VALID | 168 [VM_EXEC | VM_WRITE] = __pgprot(_CACHE_CC | _PAGE_VALID | 170 [VM_EXEC | VM_WRITE | VM_READ] = __pgprot(_CACHE_CC | _PAGE_VALID | 172 [VM_SHARED] = __pgprot(_CACHE_CC | _PAGE_USER | 175 [VM_SHARED | VM_READ] = __pgprot(_CACHE_CC | _PAGE_VALID | [all …]
|
| H A D | pageattr.c | 134 return __set_memory(addr, numpages, __pgprot(0), __pgprot(_PAGE_NO_EXEC)); in set_memory_x() 142 return __set_memory(addr, numpages, __pgprot(_PAGE_NO_EXEC), __pgprot(0)); in set_memory_nx() 150 return __set_memory(addr, numpages, __pgprot(0), __pgprot(_PAGE_WRITE | _PAGE_DIRTY)); in set_memory_ro() 158 return __set_memory(addr, numpages, __pgprot(_PAGE_WRITE | _PAGE_DIRTY), __pgprot(0)); in set_memory_rw() 208 return __set_memory(addr, 1, PAGE_KERNEL, __pgprot(0)); in set_direct_map_default_noflush() 218 return __set_memory(addr, 1, __pgprot(0), __pgprot(_PAGE_PRESENT | _PAGE_VALID)); in set_direct_map_invalid_noflush() 231 clear = __pgprot(0); in set_direct_map_valid_noflush() 233 set = __pgprot(0); in set_direct_map_valid_noflush() 234 clear = __pgprot(_PAGE_PRESENT | _PAGE_VALID); in set_direct_map_valid_noflush()
|
| /linux/arch/powerpc/include/asm/ |
| H A D | pgtable-masks.h | 23 #define PAGE_NONE __pgprot(_PAGE_BASE | _PAGE_NA) 24 #define PAGE_EXECONLY_X __pgprot(_PAGE_BASE | _PAGE_NAX) 25 #define PAGE_SHARED __pgprot(_PAGE_BASE | _PAGE_RW) 26 #define PAGE_SHARED_X __pgprot(_PAGE_BASE | _PAGE_RWX) 27 #define PAGE_COPY __pgprot(_PAGE_BASE | _PAGE_RO) 28 #define PAGE_COPY_X __pgprot(_PAGE_BASE | _PAGE_ROX) 29 #define PAGE_READONLY __pgprot(_PAGE_BASE | _PAGE_RO) 30 #define PAGE_READONLY_X __pgprot(_PAGE_BASE | _PAGE_ROX)
|
| /linux/arch/loongarch/include/asm/ |
| H A D | pgtable-bits.h | 112 #define PAGE_NONE __pgprot(_PAGE_PROTNONE | _PAGE_NO_READ | \ 114 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_WRITE | \ 116 #define PAGE_READONLY __pgprot(_PAGE_PRESENT | _PAGE_USER | _CACHE_CC) 118 #define PAGE_KERNEL __pgprot(_PAGE_PRESENT | __READABLE | __WRITEABLE | \ 120 #define PAGE_KERNEL_SUC __pgprot(_PAGE_PRESENT | __READABLE | __WRITEABLE | \ 122 #define PAGE_KERNEL_WUC __pgprot(_PAGE_PRESENT | __READABLE | __WRITEABLE | \ 133 return __pgprot(pgprot_val(_prot) | _PAGE_NO_EXEC); in pgprot_nx() 144 return __pgprot(prot); in pgprot_noncached() 157 return __pgprot(prot); in pgprot_writecombine()
|
| H A D | page.h | 54 #define __pgprot(x) ((pgprot_t) { (x) }) macro 55 #define pte_pgprot(x) __pgprot(pte_val(x) & ~_PFN_MASK)
|
| /linux/arch/arm/include/asm/ |
| H A D | pgtable-nommu.h | 34 #define PAGE_NONE __pgprot(0) 35 #define PAGE_SHARED __pgprot(0) 36 #define PAGE_COPY __pgprot(0) 37 #define PAGE_READONLY __pgprot(0) 38 #define PAGE_KERNEL __pgprot(0)
|
| H A D | pgtable-2level-types.h | 33 #define __pgprot(x) ((pgprot_t) { (x) } ) macro 51 #define __pgprot(x) (x) macro
|
| H A D | pgtable-3level-types.h | 37 #define __pgprot(x) ((pgprot_t) { (x) } ) macro 54 #define __pgprot(x) (x) macro
|
| /linux/arch/arc/include/asm/ |
| H A D | pgtable-bits-arcv2.h | 46 #define PAGE_U_NONE __pgprot(___DEF) 47 #define PAGE_U_R __pgprot(___DEF | _PAGE_READ) 48 #define PAGE_U_W_R __pgprot(___DEF | _PAGE_READ | _PAGE_WRITE) 49 #define PAGE_U_X_R __pgprot(___DEF | _PAGE_READ | _PAGE_EXECUTE) 50 #define PAGE_U_X_W_R __pgprot(___DEF \ 52 #define PAGE_KERNEL __pgprot(___DEF | _PAGE_GLOBAL \ 57 #define pgprot_noncached(prot) (__pgprot(pgprot_val(prot) & ~_PAGE_CACHEABLE))
|
| /linux/arch/powerpc/include/asm/nohash/ |
| H A D | pgtable.h | 23 #define PAGE_KERNEL __pgprot(_PAGE_BASE | _PAGE_KERNEL_RW) 24 #define PAGE_KERNEL_NC __pgprot(_PAGE_BASE_NC | _PAGE_KERNEL_RW | _PAGE_NO_CACHE) 25 #define PAGE_KERNEL_NCG __pgprot(_PAGE_BASE_NC | _PAGE_KERNEL_RW | _PAGE_NO_CACHE | _PAGE_GUARDED) 26 #define PAGE_KERNEL_X __pgprot(_PAGE_BASE | _PAGE_KERNEL_RWX) 27 #define PAGE_KERNEL_RO __pgprot(_PAGE_BASE | _PAGE_KERNEL_RO) 28 #define PAGE_KERNEL_ROX __pgprot(_PAGE_BASE | _PAGE_KERNEL_ROX) 363 #define pgprot_noncached(prot) (__pgprot((pgprot_val(prot) & ~_PAGE_CACHE_CTL) | \ 366 #define pgprot_noncached_wc(prot) (__pgprot((pgprot_val(prot) & ~_PAGE_CACHE_CTL) | \ 369 #define pgprot_cached(prot) (__pgprot((pgprot_val(prot) & ~_PAGE_CACHE_CTL) | \ 373 #define pgprot_cached_wthru(prot) (__pgprot((pgprot_val(prot) & ~_PAGE_CACHE_CTL) | \ [all …]
|
| /linux/arch/parisc/include/asm/ |
| H A D | pgtable.h | 231 #define PAGE_NONE __pgprot(_PAGE_PRESENT | _PAGE_USER) 232 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_READ | _PAGE_WRITE) 236 #define PAGE_READONLY __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_READ) 237 #define PAGE_WRITEONLY __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_WRITE) 238 #define PAGE_EXECREAD __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_READ | _PAGE_EXEC) 240 #define PAGE_RWX __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_READ | _PAGE_WRITE | _PAGE_EXEC) 241 #define PAGE_KERNEL __pgprot(_PAGE_KERNEL) 242 #define PAGE_KERNEL_EXEC __pgprot(_PAGE_KERNEL_EXEC) 243 #define PAGE_KERNEL_RWX __pgprot(_PAGE_KERNEL_RWX) 244 #define PAGE_KERNEL_RO __pgprot(_PAGE_KERNEL_RO) [all …]
|
| /linux/arch/powerpc/include/asm/book3s/32/ |
| H A D | pgtable.h | 90 #define PAGE_KERNEL __pgprot(_PAGE_BASE | _PAGE_KERNEL_RW) 91 #define PAGE_KERNEL_NC __pgprot(_PAGE_BASE_NC | _PAGE_KERNEL_RW | _PAGE_NO_CACHE) 92 #define PAGE_KERNEL_NCG __pgprot(_PAGE_BASE_NC | _PAGE_KERNEL_RW | _PAGE_NO_CACHE | _PAGE_GUARDED) 93 #define PAGE_KERNEL_X __pgprot(_PAGE_BASE | _PAGE_KERNEL_RWX) 94 #define PAGE_KERNEL_RO __pgprot(_PAGE_BASE | _PAGE_KERNEL_RO) 95 #define PAGE_KERNEL_ROX __pgprot(_PAGE_BASE | _PAGE_KERNEL_ROX) 574 return __pgprot((pgprot_val(prot) & ~_PAGE_CACHE_CTL) | in pgprot_noncached() 581 return __pgprot((pgprot_val(prot) & ~_PAGE_CACHE_CTL) | in pgprot_noncached_wc() 588 return __pgprot((pgprot_val(prot) & ~_PAGE_CACHE_CTL) | in pgprot_cached() 595 return __pgprot((pgprot_val(prot) & ~_PAGE_CACHE_CTL) | in pgprot_cached_wthru() [all …]
|
| /linux/arch/m68k/include/asm/ |
| H A D | sun3_pgtable.h | 45 #define PAGE_NONE __pgprot(SUN3_PAGE_VALID \ 48 #define PAGE_SHARED __pgprot(SUN3_PAGE_VALID \ 52 #define PAGE_COPY __pgprot(SUN3_PAGE_VALID \ 55 #define PAGE_READONLY __pgprot(SUN3_PAGE_VALID \ 58 #define PAGE_KERNEL __pgprot(SUN3_PAGE_VALID \ 64 #define PAGE_INIT __pgprot(SUN3_PAGE_VALID \
|
| H A D | motorola_pgtable.h | 76 #define PAGE_NONE __pgprot(_PAGE_PROTNONE | _PAGE_ACCESSED | mm_cachebits) 77 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_ACCESSED | mm_cachebits) 78 #define PAGE_COPY __pgprot(_PAGE_PRESENT | _PAGE_RONLY | _PAGE_ACCESSED | mm_cachebits) 79 #define PAGE_READONLY __pgprot(_PAGE_PRESENT | _PAGE_RONLY | _PAGE_ACCESSED | mm_cachebits) 80 #define PAGE_KERNEL __pgprot(_PAGE_PRESENT | _PAGE_DIRTY | _PAGE_ACCESSED | mm_cachebits)
|
| H A D | mcf_pgtable.h | 66 #define PAGE_NONE __pgprot(CF_PAGE_VALID \ 69 #define PAGE_SHARED __pgprot(CF_PAGE_VALID \ 73 #define PAGE_INIT __pgprot(CF_PAGE_VALID \ 79 #define PAGE_KERNEL __pgprot(CF_PAGE_VALID \ 87 #define PAGE_COPY __pgprot(CF_PAGE_VALID \
|
| /linux/arch/arm64/kernel/ |
| H A D | acpi.c | 270 return __pgprot(PROT_NORMAL_NC); in __acpi_get_writethrough_mem_attribute() 289 return __pgprot(PROT_NORMAL_NC); in __acpi_get_mem_attribute() 292 return __pgprot(PROT_DEVICE_nGnRnE); in __acpi_get_mem_attribute() 323 prot = __pgprot(PROT_DEVICE_nGnRnE); in acpi_os_ioremap() 375 prot = __pgprot(PROT_NORMAL_NC); in acpi_os_ioremap()
|
| /linux/arch/sparc/include/asm/ |
| H A D | page_32.h | 76 #define __pgprot(x) ((pgprot_t) { (x) } ) macro 104 #define __pgprot(x) (x) macro 115 #define __pgprot(x) (x) macro
|
| H A D | highmem.h | 32 #define kmap_prot __pgprot(SRMMU_ET_PTE | SRMMU_PRIV | SRMMU_CACHE)
|
| /linux/arch/x86/mm/ |
| H A D | iomap_32.c | 33 *prot = __pgprot(__PAGE_KERNEL | cachemode2protval(pcm)); in iomap_create_wc() 57 prot = __pgprot(__PAGE_KERNEL | in __iomap_local_pfn_prot()
|
| /linux/arch/arm/kernel/ |
| H A D | efi.c | 20 pte = set_pte_bit(pte, __pgprot(L_PTE_RDONLY)); in set_permissions() 22 pte = set_pte_bit(pte, __pgprot(L_PTE_XN)); in set_permissions()
|
| /linux/arch/x86/kernel/ |
| H A D | crash_dump_32.c | 25 return pte_pfn(pfn_pte(pfn, __pgprot(0))) == pfn; in is_crashed_pfn_valid()
|
| /linux/arch/riscv/include/asm/ |
| H A D | io.h | 33 ioremap_prot((addr), (size), __pgprot(_PAGE_KERNEL_NC)) 152 ((__force void *)ioremap_prot((addr), (size), __pgprot(_PAGE_KERNEL)))
|