/arch/arm64/include/asm/ |
D | pgtable-prot.h | 48 #define PAGE_KERNEL __pgprot(PROT_NORMAL) 49 #define PAGE_KERNEL_RO __pgprot((PROT_NORMAL & ~PTE_WRITE) | PTE_RDONLY) 50 #define PAGE_KERNEL_ROX __pgprot((PROT_NORMAL & ~(PTE_WRITE | PTE_PXN)) | PTE_RDONLY) 51 #define PAGE_KERNEL_EXEC __pgprot(PROT_NORMAL & ~PTE_PXN) 52 #define PAGE_KERNEL_EXEC_CONT __pgprot((PROT_NORMAL & ~PTE_PXN) | PTE_CONT) 54 #define PAGE_HYP __pgprot(_HYP_PAGE_DEFAULT | PTE_HYP | PTE_HYP_XN) 55 #define PAGE_HYP_EXEC __pgprot(_HYP_PAGE_DEFAULT | PTE_HYP | PTE_RDONLY) 56 #define PAGE_HYP_RO __pgprot(_HYP_PAGE_DEFAULT | PTE_HYP | PTE_RDONLY | PTE_HYP_XN) 57 #define PAGE_HYP_DEVICE __pgprot(_PROT_DEFAULT | PTE_ATTRINDX(MT_DEVICE_nGnRE) | PTE_HYP | PTE_HYP… 79 #define PAGE_S2 __pgprot(_PROT_DEFAULT | PAGE_S2_MEMATTR(NORMAL) | PTE_S2_RDONLY | PAGE_S2_XN) [all …]
|
/arch/arm64/mm/ |
D | pageattr.c | 114 __pgprot(PTE_RDONLY), in set_memory_ro() 115 __pgprot(PTE_WRITE)); in set_memory_ro() 121 __pgprot(PTE_WRITE), in set_memory_rw() 122 __pgprot(PTE_RDONLY)); in set_memory_rw() 128 __pgprot(PTE_PXN), in set_memory_nx() 129 __pgprot(0)); in set_memory_nx() 135 __pgprot(0), in set_memory_x() 136 __pgprot(PTE_PXN)); in set_memory_x() 143 __pgprot(PTE_VALID), in set_memory_valid() 144 __pgprot(0)); in set_memory_valid() [all …]
|
/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/mips/mm/ |
D | cache.c | 162 …protection_map[0] = __pgprot(_page_cachable_default | _PAGE_PRESENT | _PAGE_NO_EXEC | _PAGE_NO_RE… in setup_protection_map() 163 protection_map[1] = __pgprot(_page_cachable_default | _PAGE_PRESENT | _PAGE_NO_EXEC); in setup_protection_map() 164 …protection_map[2] = __pgprot(_page_cachable_default | _PAGE_PRESENT | _PAGE_NO_EXEC | _PAGE_NO_RE… in setup_protection_map() 165 protection_map[3] = __pgprot(_page_cachable_default | _PAGE_PRESENT | _PAGE_NO_EXEC); in setup_protection_map() 166 protection_map[4] = __pgprot(_page_cachable_default | _PAGE_PRESENT); in setup_protection_map() 167 protection_map[5] = __pgprot(_page_cachable_default | _PAGE_PRESENT); in setup_protection_map() 168 protection_map[6] = __pgprot(_page_cachable_default | _PAGE_PRESENT); in setup_protection_map() 169 protection_map[7] = __pgprot(_page_cachable_default | _PAGE_PRESENT); in setup_protection_map() 171 …protection_map[8] = __pgprot(_page_cachable_default | _PAGE_PRESENT | _PAGE_NO_EXEC | _PAGE_NO_RE… in setup_protection_map() 172 protection_map[9] = __pgprot(_page_cachable_default | _PAGE_PRESENT | _PAGE_NO_EXEC); in setup_protection_map() [all …]
|
/arch/powerpc/include/asm/nohash/32/ |
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-40x.h | 80 #define PAGE_NONE __pgprot(_PAGE_BASE) 81 #define PAGE_SHARED __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW) 82 #define PAGE_SHARED_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW | _PAGE_EXEC) 83 #define PAGE_COPY __pgprot(_PAGE_BASE | _PAGE_USER) 84 #define PAGE_COPY_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_EXEC) 85 #define PAGE_READONLY __pgprot(_PAGE_BASE | _PAGE_USER) 86 #define PAGE_READONLY_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_EXEC)
|
D | pte-8xx.h | 78 #define PAGE_NONE __pgprot(_PAGE_BASE | _PAGE_NA) 79 #define PAGE_SHARED __pgprot(_PAGE_BASE) 80 #define PAGE_SHARED_X __pgprot(_PAGE_BASE | _PAGE_EXEC) 81 #define PAGE_COPY __pgprot(_PAGE_BASE | _PAGE_RO) 82 #define PAGE_COPY_X __pgprot(_PAGE_BASE | _PAGE_RO | _PAGE_EXEC) 83 #define PAGE_READONLY __pgprot(_PAGE_BASE | _PAGE_RO) 84 #define PAGE_READONLY_X __pgprot(_PAGE_BASE | _PAGE_RO | _PAGE_EXEC)
|
/arch/arm/mm/ |
D | pageattr.c | 67 __pgprot(L_PTE_RDONLY), in set_memory_ro() 68 __pgprot(0)); in set_memory_ro() 74 __pgprot(0), in set_memory_rw() 75 __pgprot(L_PTE_RDONLY)); in set_memory_rw() 81 __pgprot(L_PTE_XN), in set_memory_nx() 82 __pgprot(0)); in set_memory_nx() 88 __pgprot(0), in set_memory_x() 89 __pgprot(L_PTE_XN)); in set_memory_x()
|
/arch/h8300/include/asm/ |
D | pgtable.h | 8 #define PAGE_NONE __pgprot(0) /* these mean nothing to NO_MM */ 9 #define PAGE_SHARED __pgprot(0) /* these mean nothing to NO_MM */ 10 #define PAGE_COPY __pgprot(0) /* these mean nothing to NO_MM */ 11 #define PAGE_READONLY __pgprot(0) /* these mean nothing to NO_MM */ 12 #define PAGE_KERNEL __pgprot(0) /* these mean nothing to NO_MM */
|
/arch/unicore32/include/asm/ |
D | pgtable.h | 87 #define PAGE_SHARED __pgprot(pgprot_val(pgprot_user | PTE_READ \ 89 #define PAGE_SHARED_EXEC __pgprot(pgprot_val(pgprot_user | PTE_READ \ 92 #define PAGE_COPY __pgprot(pgprot_val(pgprot_user | PTE_READ) 93 #define PAGE_COPY_EXEC __pgprot(pgprot_val(pgprot_user | PTE_READ \ 95 #define PAGE_READONLY __pgprot(pgprot_val(pgprot_user | PTE_READ)) 96 #define PAGE_READONLY_EXEC __pgprot(pgprot_val(pgprot_user | PTE_READ \ 99 #define PAGE_KERNEL_EXEC __pgprot(pgprot_val(pgprot_kernel | PTE_EXEC)) 101 #define __PAGE_NONE __pgprot(_PTE_DEFAULT) 102 #define __PAGE_SHARED __pgprot(_PTE_DEFAULT | PTE_READ \ 104 #define __PAGE_SHARED_EXEC __pgprot(_PTE_DEFAULT | PTE_READ \ [all …]
|
/arch/m68k/include/asm/ |
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)
|
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 …]
|
/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_EXEC) 97 #define PAGE_COPY __pgprot(_PAGE_BASE | _PAGE_USER) 98 #define PAGE_COPY_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_EXEC) 99 #define PAGE_READONLY __pgprot(_PAGE_BASE | _PAGE_USER) 100 #define PAGE_READONLY_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_EXEC)
|
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) 242 #define pgprot_noncached(prot) (__pgprot((pgprot_val(prot) & ~_PAGE_CACHE_CTL) | \ 245 #define pgprot_noncached_wc(prot) (__pgprot((pgprot_val(prot) & ~_PAGE_CACHE_CTL) | \ 248 #define pgprot_cached(prot) (__pgprot((pgprot_val(prot) & ~_PAGE_CACHE_CTL) | \ 252 #define pgprot_cached_wthru(prot) (__pgprot((pgprot_val(prot) & ~_PAGE_CACHE_CTL) | \ [all …]
|
/arch/arm/include/asm/ |
D | pgtable-nommu.h | 37 #define PAGE_NONE __pgprot(0) 38 #define PAGE_SHARED __pgprot(0) 39 #define PAGE_COPY __pgprot(0) 40 #define PAGE_READONLY __pgprot(0) 41 #define PAGE_KERNEL __pgprot(0)
|
D | pgtable.h | 96 #define _MOD_PROT(p, b) __pgprot(pgprot_val(p) | (b)) 114 #define __PAGE_NONE __pgprot(_L_PTE_DEFAULT | L_PTE_RDONLY | L_PTE_XN | L_PTE_NONE) 115 #define __PAGE_SHARED __pgprot(_L_PTE_DEFAULT | L_PTE_USER | L_PTE_XN) 116 #define __PAGE_SHARED_EXEC __pgprot(_L_PTE_DEFAULT | L_PTE_USER) 117 #define __PAGE_COPY __pgprot(_L_PTE_DEFAULT | L_PTE_USER | L_PTE_RDONLY | L_PTE_XN) 118 #define __PAGE_COPY_EXEC __pgprot(_L_PTE_DEFAULT | L_PTE_USER | L_PTE_RDONLY) 119 #define __PAGE_READONLY __pgprot(_L_PTE_DEFAULT | L_PTE_USER | L_PTE_RDONLY | L_PTE_XN) 120 #define __PAGE_READONLY_EXEC __pgprot(_L_PTE_DEFAULT | L_PTE_USER | L_PTE_RDONLY) 123 __pgprot((pgprot_val(prot) & ~(mask)) | (bits)) 285 return set_pte_bit(pte, __pgprot(L_PTE_RDONLY)); in pte_wrprotect() [all …]
|
/arch/c6x/include/asm/ |
D | pgtable.h | 35 #define PAGE_NONE __pgprot(0) /* these mean nothing to NO_MM */ 36 #define PAGE_SHARED __pgprot(0) /* these mean nothing to NO_MM */ 37 #define PAGE_COPY __pgprot(0) /* these mean nothing to NO_MM */ 38 #define PAGE_READONLY __pgprot(0) /* these mean nothing to NO_MM */ 39 #define PAGE_KERNEL __pgprot(0) /* these mean nothing to NO_MM */
|
/arch/hexagon/include/asm/ |
D | pgtable.h | 107 #define PAGE_NONE __pgprot(_PAGE_PRESENT | _PAGE_USER | \ 109 #define PAGE_READONLY __pgprot(_PAGE_PRESENT | _PAGE_USER | \ 112 #define PAGE_EXEC __pgprot(_PAGE_PRESENT | _PAGE_USER | \ 115 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_READ | \ 117 #define PAGE_KERNEL __pgprot(_PAGE_PRESENT | _PAGE_READ | \ 131 #define __P000 __pgprot(_PAGE_PRESENT | _PAGE_USER | CACHEDEF) 132 #define __P001 __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_READ | CACHEDEF) 135 #define __P100 __pgprot(_PAGE_PRESENT | _PAGE_USER | \ 137 #define __P101 __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_EXECUTE | \ 145 #define __S010 __pgprot(_PAGE_PRESENT | _PAGE_USER | \ [all …]
|
/arch/mips/include/asm/ |
D | pgtable.h | 28 #define PAGE_NONE __pgprot(_PAGE_PRESENT | _PAGE_NO_READ | \ 30 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_WRITE | \ 32 #define PAGE_COPY __pgprot(_PAGE_PRESENT | _PAGE_NO_EXEC | \ 34 #define PAGE_READONLY __pgprot(_PAGE_PRESENT | \ 36 #define PAGE_KERNEL __pgprot(_PAGE_PRESENT | __READABLE | __WRITEABLE | \ 38 #define PAGE_KERNEL_NC __pgprot(_PAGE_PRESENT | __READABLE | __WRITEABLE | \ 40 #define PAGE_USERIO __pgprot(_PAGE_PRESENT | _PAGE_WRITE | \ 42 #define PAGE_KERNEL_UNCACHED __pgprot(_PAGE_PRESENT | __READABLE | \ 56 #define __P000 __pgprot(0) 57 #define __P001 __pgprot(0) [all …]
|
/arch/powerpc/include/asm/ |
D | mman.h | 35 __pgprot(_PAGE_SAO | vmflag_to_pte_pkey_bits(vm_flags)) : in arch_vm_get_page_prot() 36 __pgprot(0 | vmflag_to_pte_pkey_bits(vm_flags)); in arch_vm_get_page_prot() 38 return (vm_flags & VM_SAO) ? __pgprot(_PAGE_SAO) : __pgprot(0); in arch_vm_get_page_prot()
|
/arch/xtensa/include/asm/ |
D | pgtable.h | 169 #define PAGE_NONE __pgprot(_PAGE_NONE | _PAGE_USER) 170 #define PAGE_COPY __pgprot(_PAGE_PRESENT | _PAGE_USER) 171 #define PAGE_COPY_EXEC __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_HW_EXEC) 172 #define PAGE_READONLY __pgprot(_PAGE_PRESENT | _PAGE_USER) 173 #define PAGE_READONLY_EXEC __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_HW_EXEC) 174 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_WRITABLE) 176 __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_WRITABLE | _PAGE_HW_EXEC) 177 #define PAGE_KERNEL __pgprot(_PAGE_PRESENT | _PAGE_HW_WRITE) 178 #define PAGE_KERNEL_RO __pgprot(_PAGE_PRESENT) 179 #define PAGE_KERNEL_EXEC __pgprot(_PAGE_PRESENT|_PAGE_HW_WRITE|_PAGE_HW_EXEC) [all …]
|
/arch/powerpc/include/asm/book3s/32/ |
D | pgtable.h | 69 #define PAGE_NONE __pgprot(_PAGE_BASE) 70 #define PAGE_SHARED __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW) 71 #define PAGE_SHARED_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW | _PAGE_EXEC) 72 #define PAGE_COPY __pgprot(_PAGE_BASE | _PAGE_USER) 73 #define PAGE_COPY_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_EXEC) 74 #define PAGE_READONLY __pgprot(_PAGE_BASE | _PAGE_USER) 75 #define PAGE_READONLY_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_EXEC) 78 #define PAGE_KERNEL __pgprot(_PAGE_BASE | _PAGE_KERNEL_RW) 79 #define PAGE_KERNEL_NC __pgprot(_PAGE_BASE_NC | _PAGE_KERNEL_RW | _PAGE_NO_CACHE) 80 #define PAGE_KERNEL_NCG __pgprot(_PAGE_BASE_NC | _PAGE_KERNEL_RW | \ [all …]
|
/arch/nds32/include/asm/ |
D | pgtable.h | 143 #define PAGE_EXEC __pgprot(_PAGE_V | _PAGE_M_XKRW | _PAGE_E) 144 #define PAGE_NONE __pgprot(_PAGE_V | _PAGE_M_KRW | _PAGE_A) 145 #define PAGE_READ __pgprot(_PAGE_V | _PAGE_M_UR_KR) 146 #define PAGE_RDWR __pgprot(_PAGE_V | _PAGE_M_URW_KRW | _PAGE_D) 147 #define PAGE_COPY __pgprot(_PAGE_V | _PAGE_M_UR_KR) 149 #define PAGE_UXKRWX_V1 __pgprot(_PAGE_V | _PAGE_M_KRW | _PAGE_D | _PAGE_E | _PAGE_G | _PAGE_CACHE_S… 150 #define PAGE_UXKRWX_V2 __pgprot(_PAGE_V | _PAGE_M_XKRW | _PAGE_D | _PAGE_E | _PAGE_G | _PAGE_CACHE_… 151 #define PAGE_URXKRWX_V2 __pgprot(_PAGE_V | _PAGE_M_UR_KRW | _PAGE_D | _PAGE_E | _PAGE_G | _PAGE_CAC… 152 #define PAGE_CACHE_L1 __pgprot(_HAVE_PAGE_L | _PAGE_V | _PAGE_M_KRW | _PAGE_D | _PAGE_E | _PAGE_G |… 153 #define PAGE_MEMORY __pgprot(_HAVE_PAGE_L | _PAGE_V | _PAGE_M_KRW | _PAGE_D | _PAGE_E | _PAGE_G | _… [all …]
|
/arch/microblaze/include/asm/ |
D | pgtable.h | 29 #define PAGE_NONE __pgprot(0) /* these mean nothing to non MMU */ 30 #define PAGE_SHARED __pgprot(0) /* these mean nothing to non MMU */ 31 #define PAGE_COPY __pgprot(0) /* these mean nothing to non MMU */ 32 #define PAGE_READONLY __pgprot(0) /* these mean nothing to non MMU */ 33 #define PAGE_KERNEL __pgprot(0) /* these mean nothing to non MMU */ 105 (__pgprot((pgprot_val(prot) & ~_PAGE_CACHE_CTL) | \ 109 (__pgprot((pgprot_val(prot) & ~_PAGE_CACHE_CTL) | \ 251 #define PAGE_NONE __pgprot(_PAGE_BASE) 252 #define PAGE_READONLY __pgprot(_PAGE_BASE | _PAGE_USER) 253 #define PAGE_READONLY_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_EXEC) [all …]
|