Home
last modified time | relevance | path

Searched refs:__pgprot (Results 1 – 25 of 142) sorted by relevance

123456

/Linux-v5.4/arch/arm64/include/asm/
Dpgtable-prot.h48 #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_DEVICE_nGnRE | PTE_HYP)
79 #define PAGE_S2 __pgprot(_PROT_DEFAULT | PAGE_S2_MEMATTR(NORMAL) | PTE_S2_RDONLY | PAGE_S2_XN)
[all …]
/Linux-v5.4/arch/sh/include/asm/
Dpgtable_32.h176 #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 …]
/Linux-v5.4/arch/arm64/mm/
Dpageattr.c114 __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 …]
/Linux-v5.4/arch/mips/mm/
Dcache.c162 …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 …]
/Linux-v5.4/arch/powerpc/include/asm/nohash/32/
Dpte-44x.h119 #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)
Dpte-fsl-booke.h65 #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)
Dpte-40x.h80 #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)
Dpte-8xx.h78 #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)
/Linux-v5.4/arch/unicore32/include/asm/
Dpgtable.h87 #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 …]
/Linux-v5.4/arch/m68k/include/asm/
Dmcf_pgtable.h63 #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 …]
Dpgtable_no.h26 #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)
/Linux-v5.4/arch/arm/mm/
Dpageattr.c67 __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()
/Linux-v5.4/arch/mips/include/asm/
Dpgtable.h28 #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 …]
/Linux-v5.4/arch/arm/include/asm/
Dpgtable.h87 #define _MOD_PROT(p, b) __pgprot(pgprot_val(p) | (b))
105 #define __PAGE_NONE __pgprot(_L_PTE_DEFAULT | L_PTE_RDONLY | L_PTE_XN | L_PTE_NONE)
106 #define __PAGE_SHARED __pgprot(_L_PTE_DEFAULT | L_PTE_USER | L_PTE_XN)
107 #define __PAGE_SHARED_EXEC __pgprot(_L_PTE_DEFAULT | L_PTE_USER)
108 #define __PAGE_COPY __pgprot(_L_PTE_DEFAULT | L_PTE_USER | L_PTE_RDONLY | L_PTE_XN)
109 #define __PAGE_COPY_EXEC __pgprot(_L_PTE_DEFAULT | L_PTE_USER | L_PTE_RDONLY)
110 #define __PAGE_READONLY __pgprot(_L_PTE_DEFAULT | L_PTE_USER | L_PTE_RDONLY | L_PTE_XN)
111 #define __PAGE_READONLY_EXEC __pgprot(_L_PTE_DEFAULT | L_PTE_USER | L_PTE_RDONLY)
114 __pgprot((pgprot_val(prot) & ~(mask)) | (bits))
283 return set_pte_bit(pte, __pgprot(L_PTE_RDONLY)); in pte_wrprotect()
[all …]
Dpgtable-nommu.h37 #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)
/Linux-v5.4/arch/hexagon/include/asm/
Dpgtable.h107 #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 …]
/Linux-v5.4/arch/xtensa/include/asm/
Dpgtable.h169 #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 …]
/Linux-v5.4/arch/powerpc/include/asm/nohash/
Dpte-book3e.h94 #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)
Dpgtable.h12 #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)
240 #define pgprot_noncached(prot) (__pgprot((pgprot_val(prot) & ~_PAGE_CACHE_CTL) | \
243 #define pgprot_noncached_wc(prot) (__pgprot((pgprot_val(prot) & ~_PAGE_CACHE_CTL) | \
246 #define pgprot_cached(prot) (__pgprot((pgprot_val(prot) & ~_PAGE_CACHE_CTL) | \
250 #define pgprot_cached_wthru(prot) (__pgprot((pgprot_val(prot) & ~_PAGE_CACHE_CTL) | \
[all …]
/Linux-v5.4/arch/powerpc/include/asm/book3s/32/
Dpgtable.h67 #define PAGE_NONE __pgprot(_PAGE_BASE)
68 #define PAGE_SHARED __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW)
69 #define PAGE_SHARED_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW | _PAGE_EXEC)
70 #define PAGE_COPY __pgprot(_PAGE_BASE | _PAGE_USER)
71 #define PAGE_COPY_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_EXEC)
72 #define PAGE_READONLY __pgprot(_PAGE_BASE | _PAGE_USER)
73 #define PAGE_READONLY_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_EXEC)
76 #define PAGE_KERNEL __pgprot(_PAGE_BASE | _PAGE_KERNEL_RW)
77 #define PAGE_KERNEL_NC __pgprot(_PAGE_BASE_NC | _PAGE_KERNEL_RW | _PAGE_NO_CACHE)
78 #define PAGE_KERNEL_NCG __pgprot(_PAGE_BASE_NC | _PAGE_KERNEL_RW | \
[all …]
/Linux-v5.4/arch/h8300/include/asm/
Dpgtable.h8 #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 */
/Linux-v5.4/arch/nds32/include/asm/
Dpgtable.h143 #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 …]
/Linux-v5.4/arch/microblaze/include/asm/
Dpgtable.h29 #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 …]
/Linux-v5.4/arch/ia64/include/asm/
Dpgtable.h138 #define PAGE_NONE __pgprot(_PAGE_PROTNONE | _PAGE_A)
139 #define PAGE_SHARED __pgprot(__ACCESS_BITS | _PAGE_PL_3 | _PAGE_AR_RW)
140 #define PAGE_READONLY __pgprot(__ACCESS_BITS | _PAGE_PL_3 | _PAGE_AR_R)
141 #define PAGE_COPY __pgprot(__ACCESS_BITS | _PAGE_PL_3 | _PAGE_AR_R)
142 #define PAGE_COPY_EXEC __pgprot(__ACCESS_BITS | _PAGE_PL_3 | _PAGE_AR_RX)
143 #define PAGE_GATE __pgprot(__ACCESS_BITS | _PAGE_PL_0 | _PAGE_AR_X_RX)
144 #define PAGE_KERNEL __pgprot(__DIRTY_BITS | _PAGE_PL_0 | _PAGE_AR_RWX)
145 #define PAGE_KERNELRX __pgprot(__ACCESS_BITS | _PAGE_PL_0 | _PAGE_AR_RX)
146 #define PAGE_KERNEL_UC __pgprot(__DIRTY_BITS | _PAGE_PL_0 | _PAGE_AR_RWX | \
169 #define __P100 __pgprot(__ACCESS_BITS | _PAGE_PL_3 | _PAGE_AR_X_RX)
[all …]
/Linux-v5.4/arch/c6x/include/asm/
Dpgtable.h35 #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 */

123456