/arch/sh/include/asm/ |
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 …]
|
/arch/arm64/mm/ |
D | pageattr.c | 128 __pgprot(PTE_RDONLY), in set_memory_ro() 129 __pgprot(PTE_WRITE)); in set_memory_ro() 135 __pgprot(PTE_WRITE), in set_memory_rw() 136 __pgprot(PTE_RDONLY)); in set_memory_rw() 142 __pgprot(PTE_PXN), in set_memory_nx() 143 __pgprot(PTE_MAYBE_GP)); in set_memory_nx() 149 __pgprot(PTE_MAYBE_GP), in set_memory_x() 150 __pgprot(PTE_PXN)); in set_memory_x() 157 __pgprot(PTE_VALID), in set_memory_valid() 158 __pgprot(0)); in set_memory_valid() [all …]
|
/arch/riscv/mm/ |
D | pageattr.c | 133 return __set_memory(addr, numpages, __pgprot(_PAGE_READ | _PAGE_WRITE), in set_memory_rw_nx() 134 __pgprot(_PAGE_EXEC)); in set_memory_rw_nx() 139 return __set_memory(addr, numpages, __pgprot(_PAGE_READ), in set_memory_ro() 140 __pgprot(_PAGE_WRITE)); in set_memory_ro() 145 return __set_memory(addr, numpages, __pgprot(_PAGE_READ | _PAGE_WRITE), in set_memory_rw() 146 __pgprot(0)); in set_memory_rw() 151 return __set_memory(addr, numpages, __pgprot(_PAGE_EXEC), __pgprot(0)); in set_memory_x() 156 return __set_memory(addr, numpages, __pgprot(0), __pgprot(_PAGE_EXEC)); in set_memory_nx() 165 .set_mask = __pgprot(0), in set_direct_map_invalid_noflush() 166 .clear_mask = __pgprot(_PAGE_PRESENT) in set_direct_map_invalid_noflush() [all …]
|
/arch/powerpc/include/asm/nohash/32/ |
D | pte-40x.h | 76 #define PAGE_NONE __pgprot(_PAGE_BASE) 77 #define PAGE_SHARED __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW) 78 #define PAGE_SHARED_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW | _PAGE_EXEC) 79 #define PAGE_COPY __pgprot(_PAGE_BASE | _PAGE_USER) 80 #define PAGE_COPY_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_EXEC) 81 #define PAGE_READONLY __pgprot(_PAGE_BASE | _PAGE_USER) 82 #define PAGE_READONLY_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_EXEC)
|
D | pte-44x.h | 119 #define PAGE_NONE __pgprot(_PAGE_BASE) 120 #define PAGE_SHARED __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW) 121 #define PAGE_SHARED_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW | _PAGE_EXEC) 122 #define PAGE_COPY __pgprot(_PAGE_BASE | _PAGE_USER) 123 #define PAGE_COPY_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_EXEC) 124 #define PAGE_READONLY __pgprot(_PAGE_BASE | _PAGE_USER) 125 #define PAGE_READONLY_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_EXEC)
|
D | pte-fsl-booke.h | 65 #define PAGE_NONE __pgprot(_PAGE_BASE) 66 #define PAGE_SHARED __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW) 67 #define PAGE_SHARED_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW | _PAGE_EXEC) 68 #define PAGE_COPY __pgprot(_PAGE_BASE | _PAGE_USER) 69 #define PAGE_COPY_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_EXEC) 70 #define PAGE_READONLY __pgprot(_PAGE_BASE | _PAGE_USER) 71 #define PAGE_READONLY_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_EXEC)
|
D | pte-8xx.h | 81 #define PAGE_NONE __pgprot(_PAGE_BASE | _PAGE_NA) 82 #define PAGE_SHARED __pgprot(_PAGE_BASE) 83 #define PAGE_SHARED_X __pgprot(_PAGE_BASE | _PAGE_EXEC) 84 #define PAGE_COPY __pgprot(_PAGE_BASE | _PAGE_RO) 85 #define PAGE_COPY_X __pgprot(_PAGE_BASE | _PAGE_RO | _PAGE_EXEC) 86 #define PAGE_READONLY __pgprot(_PAGE_BASE | _PAGE_RO) 87 #define PAGE_READONLY_X __pgprot(_PAGE_BASE | _PAGE_RO | _PAGE_EXEC)
|
/arch/arm64/include/asm/ |
D | pgtable-prot.h | 67 #define PAGE_KERNEL __pgprot(PROT_NORMAL) 68 #define PAGE_KERNEL_RO __pgprot((PROT_NORMAL & ~PTE_WRITE) | PTE_RDONLY) 69 #define PAGE_KERNEL_ROX __pgprot((PROT_NORMAL & ~(PTE_WRITE | PTE_PXN)) | PTE_RDONLY) 70 #define PAGE_KERNEL_EXEC __pgprot(PROT_NORMAL & ~PTE_PXN) 71 #define PAGE_KERNEL_EXEC_CONT __pgprot((PROT_NORMAL & ~PTE_PXN) | PTE_CONT) 83 #define PAGE_NONE __pgprot(((_PAGE_DEFAULT) & ~PTE_VALID) | PTE_PROT_NONE | PTE_RDONLY | PTE_NG | … 85 #define PAGE_SHARED __pgprot(_PAGE_DEFAULT | PTE_USER | PTE_RDONLY | PTE_NG | PTE_PXN | PTE_UXN | … 86 #define PAGE_SHARED_EXEC __pgprot(_PAGE_DEFAULT | PTE_USER | PTE_RDONLY | PTE_NG | PTE_PXN | PTE_WR… 87 #define PAGE_READONLY __pgprot(_PAGE_DEFAULT | PTE_USER | PTE_RDONLY | PTE_NG | PTE_PXN | PTE_UXN) 88 #define PAGE_READONLY_EXEC __pgprot(_PAGE_DEFAULT | PTE_USER | PTE_RDONLY | PTE_NG | PTE_PXN) [all …]
|
/arch/m68k/include/asm/ |
D | mcf_pgtable.h | 63 #define PAGE_NONE __pgprot(CF_PAGE_VALID \ 66 #define PAGE_SHARED __pgprot(CF_PAGE_VALID \ 70 #define PAGE_INIT __pgprot(CF_PAGE_VALID \ 76 #define PAGE_KERNEL __pgprot(CF_PAGE_VALID \ 84 #define PAGE_COPY __pgprot(CF_PAGE_VALID \ 95 #define __P001 __pgprot(CF_PAGE_VALID \ 98 #define __P010 __pgprot(CF_PAGE_VALID \ 101 #define __P011 __pgprot(CF_PAGE_VALID \ 105 #define __P100 __pgprot(CF_PAGE_VALID \ 108 #define __P101 __pgprot(CF_PAGE_VALID \ [all …]
|
D | pgtable_no.h | 26 #define PAGE_NONE __pgprot(0) 27 #define PAGE_SHARED __pgprot(0) 28 #define PAGE_COPY __pgprot(0) 29 #define PAGE_READONLY __pgprot(0) 30 #define PAGE_KERNEL __pgprot(0)
|
/arch/arm/mm/ |
D | pageattr.c | 66 __pgprot(L_PTE_RDONLY), in set_memory_ro() 67 __pgprot(0)); in set_memory_ro() 73 __pgprot(0), in set_memory_rw() 74 __pgprot(L_PTE_RDONLY)); in set_memory_rw() 80 __pgprot(L_PTE_XN), in set_memory_nx() 81 __pgprot(0)); in set_memory_nx() 87 __pgprot(0), in set_memory_x() 88 __pgprot(L_PTE_XN)); in set_memory_x()
|
/arch/h8300/include/asm/ |
D | pgtable.h | 6 #define PAGE_NONE __pgprot(0) /* these mean nothing to NO_MM */ 7 #define PAGE_SHARED __pgprot(0) /* these mean nothing to NO_MM */ 8 #define PAGE_COPY __pgprot(0) /* these mean nothing to NO_MM */ 9 #define PAGE_READONLY __pgprot(0) /* these mean nothing to NO_MM */ 10 #define PAGE_KERNEL __pgprot(0) /* these mean nothing to NO_MM */
|
/arch/arm/include/asm/ |
D | pgtable-nommu.h | 36 #define PAGE_NONE __pgprot(0) 37 #define PAGE_SHARED __pgprot(0) 38 #define PAGE_COPY __pgprot(0) 39 #define PAGE_READONLY __pgprot(0) 40 #define PAGE_KERNEL __pgprot(0)
|
D | pgtable.h | 92 #define _MOD_PROT(p, b) __pgprot(pgprot_val(p) | (b)) 104 #define __PAGE_NONE __pgprot(_L_PTE_DEFAULT | L_PTE_RDONLY | L_PTE_XN | L_PTE_NONE) 105 #define __PAGE_SHARED __pgprot(_L_PTE_DEFAULT | L_PTE_USER | L_PTE_XN) 106 #define __PAGE_SHARED_EXEC __pgprot(_L_PTE_DEFAULT | L_PTE_USER) 107 #define __PAGE_COPY __pgprot(_L_PTE_DEFAULT | L_PTE_USER | L_PTE_RDONLY | L_PTE_XN) 108 #define __PAGE_COPY_EXEC __pgprot(_L_PTE_DEFAULT | L_PTE_USER | L_PTE_RDONLY) 109 #define __PAGE_READONLY __pgprot(_L_PTE_DEFAULT | L_PTE_USER | L_PTE_RDONLY | L_PTE_XN) 110 #define __PAGE_READONLY_EXEC __pgprot(_L_PTE_DEFAULT | L_PTE_USER | L_PTE_RDONLY) 113 __pgprot((pgprot_val(prot) & ~(mask)) | (bits)) 244 return set_pte_bit(pte, __pgprot(L_PTE_RDONLY)); in pte_wrprotect() [all …]
|
/arch/hexagon/include/asm/ |
D | pgtable.h | 106 #define PAGE_NONE __pgprot(_PAGE_PRESENT | _PAGE_USER | \ 108 #define PAGE_READONLY __pgprot(_PAGE_PRESENT | _PAGE_USER | \ 111 #define PAGE_EXEC __pgprot(_PAGE_PRESENT | _PAGE_USER | \ 114 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_READ | \ 116 #define PAGE_KERNEL __pgprot(_PAGE_PRESENT | _PAGE_READ | \ 130 #define __P000 __pgprot(_PAGE_PRESENT | _PAGE_USER | CACHEDEF) 131 #define __P001 __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_READ | CACHEDEF) 134 #define __P100 __pgprot(_PAGE_PRESENT | _PAGE_USER | \ 136 #define __P101 __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_EXECUTE | \ 144 #define __S010 __pgprot(_PAGE_PRESENT | _PAGE_USER | \ [all …]
|
/arch/powerpc/include/asm/nohash/ |
D | pte-book3e.h | 94 #define PAGE_NONE __pgprot(_PAGE_BASE) 95 #define PAGE_SHARED __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW) 96 #define PAGE_SHARED_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW | _PAGE_BAP_UX) 97 #define PAGE_COPY __pgprot(_PAGE_BASE | _PAGE_USER) 98 #define PAGE_COPY_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_BAP_UX) 99 #define PAGE_READONLY __pgprot(_PAGE_BASE | _PAGE_USER) 100 #define PAGE_READONLY_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_BAP_UX)
|
D | pgtable.h | 12 #define PAGE_KERNEL __pgprot(_PAGE_BASE | _PAGE_KERNEL_RW) 13 #define PAGE_KERNEL_NC __pgprot(_PAGE_BASE_NC | _PAGE_KERNEL_RW | _PAGE_NO_CACHE) 14 #define PAGE_KERNEL_NCG __pgprot(_PAGE_BASE_NC | _PAGE_KERNEL_RW | \ 16 #define PAGE_KERNEL_X __pgprot(_PAGE_BASE | _PAGE_KERNEL_RWX) 17 #define PAGE_KERNEL_RO __pgprot(_PAGE_BASE | _PAGE_KERNEL_RO) 18 #define PAGE_KERNEL_ROX __pgprot(_PAGE_BASE | _PAGE_KERNEL_ROX) 235 #define pgprot_noncached(prot) (__pgprot((pgprot_val(prot) & ~_PAGE_CACHE_CTL) | \ 238 #define pgprot_noncached_wc(prot) (__pgprot((pgprot_val(prot) & ~_PAGE_CACHE_CTL) | \ 241 #define pgprot_cached(prot) (__pgprot((pgprot_val(prot) & ~_PAGE_CACHE_CTL) | \ 245 #define pgprot_cached_wthru(prot) (__pgprot((pgprot_val(prot) & ~_PAGE_CACHE_CTL) | \ [all …]
|
/arch/xtensa/include/asm/ |
D | pgtable.h | 167 #define PAGE_NONE __pgprot(_PAGE_NONE | _PAGE_USER) 168 #define PAGE_COPY __pgprot(_PAGE_PRESENT | _PAGE_USER) 169 #define PAGE_COPY_EXEC __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_HW_EXEC) 170 #define PAGE_READONLY __pgprot(_PAGE_PRESENT | _PAGE_USER) 171 #define PAGE_READONLY_EXEC __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_HW_EXEC) 172 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_WRITABLE) 174 __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_WRITABLE | _PAGE_HW_EXEC) 175 #define PAGE_KERNEL __pgprot(_PAGE_PRESENT | _PAGE_HW_WRITE) 176 #define PAGE_KERNEL_RO __pgprot(_PAGE_PRESENT) 177 #define PAGE_KERNEL_EXEC __pgprot(_PAGE_PRESENT|_PAGE_HW_WRITE|_PAGE_HW_EXEC) [all …]
|
/arch/nds32/include/asm/ |
D | pgtable.h | 138 #define PAGE_EXEC __pgprot(_PAGE_V | _PAGE_M_XKRW | _PAGE_E) 139 #define PAGE_NONE __pgprot(_PAGE_V | _PAGE_M_KRW | _PAGE_A) 140 #define PAGE_READ __pgprot(_PAGE_V | _PAGE_M_UR_KR) 141 #define PAGE_RDWR __pgprot(_PAGE_V | _PAGE_M_URW_KRW | _PAGE_D) 142 #define PAGE_COPY __pgprot(_PAGE_V | _PAGE_M_UR_KR) 144 #define PAGE_UXKRWX_V1 __pgprot(_PAGE_V | _PAGE_M_KRW | _PAGE_D | _PAGE_E | _PAGE_G | _PAGE_CACHE_S… 145 #define PAGE_UXKRWX_V2 __pgprot(_PAGE_V | _PAGE_M_XKRW | _PAGE_D | _PAGE_E | _PAGE_G | _PAGE_CACHE_… 146 #define PAGE_URXKRWX_V2 __pgprot(_PAGE_V | _PAGE_M_UR_KRW | _PAGE_D | _PAGE_E | _PAGE_G | _PAGE_CAC… 147 #define PAGE_CACHE_L1 __pgprot(_HAVE_PAGE_L | _PAGE_V | _PAGE_M_KRW | _PAGE_D | _PAGE_E | _PAGE_G |… 148 #define PAGE_MEMORY __pgprot(_HAVE_PAGE_L | _PAGE_V | _PAGE_M_KRW | _PAGE_D | _PAGE_E | _PAGE_G | _… [all …]
|
/arch/powerpc/include/asm/ |
D | mman.h | 31 __pgprot(_PAGE_SAO | vmflag_to_pte_pkey_bits(vm_flags)) : in arch_vm_get_page_prot() 32 __pgprot(0 | vmflag_to_pte_pkey_bits(vm_flags)); in arch_vm_get_page_prot() 34 return (vm_flags & VM_SAO) ? __pgprot(_PAGE_SAO) : __pgprot(0); in arch_vm_get_page_prot()
|
/arch/arc/include/asm/ |
D | pgtable-bits-arcv2.h | 43 #define PAGE_U_NONE __pgprot(___DEF) 44 #define PAGE_U_R __pgprot(___DEF | _PAGE_READ) 45 #define PAGE_U_W_R __pgprot(___DEF | _PAGE_READ | _PAGE_WRITE) 46 #define PAGE_U_X_R __pgprot(___DEF | _PAGE_READ | _PAGE_EXECUTE) 47 #define PAGE_U_X_W_R __pgprot(___DEF \ 49 #define PAGE_KERNEL __pgprot(___DEF | _PAGE_GLOBAL \ 54 #define pgprot_noncached(prot) (__pgprot(pgprot_val(prot) & ~_PAGE_CACHEABLE))
|
/arch/powerpc/include/asm/book3s/32/ |
D | pgtable.h | 104 #define PAGE_NONE __pgprot(_PAGE_BASE) 105 #define PAGE_SHARED __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW) 106 #define PAGE_SHARED_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW | _PAGE_EXEC) 107 #define PAGE_COPY __pgprot(_PAGE_BASE | _PAGE_USER) 108 #define PAGE_COPY_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_EXEC) 109 #define PAGE_READONLY __pgprot(_PAGE_BASE | _PAGE_USER) 110 #define PAGE_READONLY_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_EXEC) 113 #define PAGE_KERNEL __pgprot(_PAGE_BASE | _PAGE_KERNEL_RW) 114 #define PAGE_KERNEL_NC __pgprot(_PAGE_BASE_NC | _PAGE_KERNEL_RW | _PAGE_NO_CACHE) 115 #define PAGE_KERNEL_NCG __pgprot(_PAGE_BASE_NC | _PAGE_KERNEL_RW | \ [all …]
|
/arch/ia64/include/asm/ |
D | pgtable.h | 137 #define PAGE_NONE __pgprot(_PAGE_PROTNONE | _PAGE_A) 138 #define PAGE_SHARED __pgprot(__ACCESS_BITS | _PAGE_PL_3 | _PAGE_AR_RW) 139 #define PAGE_READONLY __pgprot(__ACCESS_BITS | _PAGE_PL_3 | _PAGE_AR_R) 140 #define PAGE_COPY __pgprot(__ACCESS_BITS | _PAGE_PL_3 | _PAGE_AR_R) 141 #define PAGE_COPY_EXEC __pgprot(__ACCESS_BITS | _PAGE_PL_3 | _PAGE_AR_RX) 142 #define PAGE_GATE __pgprot(__ACCESS_BITS | _PAGE_PL_0 | _PAGE_AR_X_RX) 143 #define PAGE_KERNEL __pgprot(__DIRTY_BITS | _PAGE_PL_0 | _PAGE_AR_RWX) 144 #define PAGE_KERNELRX __pgprot(__ACCESS_BITS | _PAGE_PL_0 | _PAGE_AR_RX) 145 #define PAGE_KERNEL_UC __pgprot(__DIRTY_BITS | _PAGE_PL_0 | _PAGE_AR_RWX | \ 168 #define __P100 __pgprot(__ACCESS_BITS | _PAGE_PL_3 | _PAGE_AR_X_RX) [all …]
|
/arch/sparc/include/asm/ |
D | pgtsrmmu.h | 77 #define SRMMU_PAGE_NONE __pgprot(SRMMU_CACHE | \ 79 #define SRMMU_PAGE_SHARED __pgprot(SRMMU_VALID | SRMMU_CACHE | \ 81 #define SRMMU_PAGE_COPY __pgprot(SRMMU_VALID | SRMMU_CACHE | \ 83 #define SRMMU_PAGE_RDONLY __pgprot(SRMMU_VALID | SRMMU_CACHE | \ 85 #define SRMMU_PAGE_KERNEL __pgprot(SRMMU_VALID | SRMMU_CACHE | SRMMU_PRIV | \
|
/arch/microblaze/include/asm/ |
D | pgtable.h | 52 (__pgprot((pgprot_val(prot) & ~_PAGE_CACHE_CTL) | \ 56 (__pgprot((pgprot_val(prot) & ~_PAGE_CACHE_CTL) | \ 190 #define PAGE_NONE __pgprot(_PAGE_BASE) 191 #define PAGE_READONLY __pgprot(_PAGE_BASE | _PAGE_USER) 192 #define PAGE_READONLY_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_EXEC) 193 #define PAGE_SHARED __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW) 195 __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW | _PAGE_EXEC) 196 #define PAGE_COPY __pgprot(_PAGE_BASE | _PAGE_USER) 197 #define PAGE_COPY_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_EXEC) 199 #define PAGE_KERNEL __pgprot(_PAGE_KERNEL) [all …]
|