Home
last modified time | relevance | path

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

123456

/arch/arm/mm/
Dpageattr.c76 __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 …]
/arch/arm64/mm/
Dpageattr.c128 __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/hexagon/mm/
Dinit.c239 [VM_NONE] = __pgprot(_PAGE_PRESENT | _PAGE_USER |
241 [VM_READ] = __pgprot(_PAGE_PRESENT | _PAGE_USER |
243 [VM_WRITE] = __pgprot(_PAGE_PRESENT | _PAGE_USER |
245 [VM_WRITE | VM_READ] = __pgprot(_PAGE_PRESENT | _PAGE_USER |
247 [VM_EXEC] = __pgprot(_PAGE_PRESENT | _PAGE_USER |
249 [VM_EXEC | VM_READ] = __pgprot(_PAGE_PRESENT | _PAGE_USER |
252 [VM_EXEC | VM_WRITE] = __pgprot(_PAGE_PRESENT | _PAGE_USER |
254 [VM_EXEC | VM_WRITE | VM_READ] = __pgprot(_PAGE_PRESENT | _PAGE_USER |
257 [VM_SHARED] = __pgprot(_PAGE_PRESENT | _PAGE_USER |
259 [VM_SHARED | VM_READ] = __pgprot(_PAGE_PRESENT | _PAGE_USER |
[all …]
/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 …]
/arch/loongarch/mm/
Dcache.c162 [VM_NONE] = __pgprot(_CACHE_CC | _PAGE_USER |
165 [VM_READ] = __pgprot(_CACHE_CC | _PAGE_VALID |
168 [VM_WRITE] = __pgprot(_CACHE_CC | _PAGE_VALID |
171 [VM_WRITE | VM_READ] = __pgprot(_CACHE_CC | _PAGE_VALID |
174 [VM_EXEC] = __pgprot(_CACHE_CC | _PAGE_VALID |
176 [VM_EXEC | VM_READ] = __pgprot(_CACHE_CC | _PAGE_VALID |
178 [VM_EXEC | VM_WRITE] = __pgprot(_CACHE_CC | _PAGE_VALID |
180 [VM_EXEC | VM_WRITE | VM_READ] = __pgprot(_CACHE_CC | _PAGE_VALID |
182 [VM_SHARED] = __pgprot(_CACHE_CC | _PAGE_USER |
185 [VM_SHARED | VM_READ] = __pgprot(_CACHE_CC | _PAGE_VALID |
[all …]
/arch/powerpc/include/asm/nohash/32/
Dpte-40x.h76 #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)
Dpte-44x.h109 #define PAGE_NONE __pgprot(_PAGE_BASE)
110 #define PAGE_SHARED __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW)
111 #define PAGE_SHARED_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW | _PAGE_EXEC)
112 #define PAGE_COPY __pgprot(_PAGE_BASE | _PAGE_USER)
113 #define PAGE_COPY_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_EXEC)
114 #define PAGE_READONLY __pgprot(_PAGE_BASE | _PAGE_USER)
115 #define PAGE_READONLY_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_EXEC)
Dpte-85xx.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-8xx.h81 #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/m68k/include/asm/
Dpgtable_no.h25 #define PAGE_NONE __pgprot(0)
26 #define PAGE_SHARED __pgprot(0)
27 #define PAGE_COPY __pgprot(0)
28 #define PAGE_READONLY __pgprot(0)
29 #define PAGE_KERNEL __pgprot(0)
/arch/arm/include/asm/
Dpgtable.h92 #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))
230 return set_pte_bit(pte, __pgprot(L_PTE_RDONLY)); in pte_wrprotect()
[all …]
Dpgtable-nommu.h34 #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)
/arch/s390/include/asm/
Dpgtable.h407 #define PAGE_NONE __pgprot(_PAGE_PRESENT | _PAGE_INVALID | _PAGE_PROTECT)
408 #define PAGE_RO __pgprot(_PAGE_PRESENT | _PAGE_READ | \
410 #define PAGE_RX __pgprot(_PAGE_PRESENT | _PAGE_READ | \
412 #define PAGE_RW __pgprot(_PAGE_PRESENT | _PAGE_READ | _PAGE_WRITE | \
414 #define PAGE_RWX __pgprot(_PAGE_PRESENT | _PAGE_READ | _PAGE_WRITE | \
417 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_READ | _PAGE_WRITE | \
419 #define PAGE_KERNEL __pgprot(_PAGE_PRESENT | _PAGE_READ | _PAGE_WRITE | \
421 #define PAGE_KERNEL_RO __pgprot(_PAGE_PRESENT | _PAGE_READ | _PAGE_YOUNG | \
423 #define PAGE_KERNEL_EXEC __pgprot(_PAGE_PRESENT | _PAGE_READ | _PAGE_WRITE | \
436 #define SEGMENT_NONE __pgprot(_SEGMENT_ENTRY_INVALID | \
[all …]
/arch/arm64/include/asm/
Dpgtable-prot.h84 #define PAGE_KERNEL __pgprot(_PAGE_KERNEL)
85 #define PAGE_KERNEL_RO __pgprot(_PAGE_KERNEL_RO)
86 #define PAGE_KERNEL_ROX __pgprot(_PAGE_KERNEL_ROX)
87 #define PAGE_KERNEL_EXEC __pgprot(_PAGE_KERNEL_EXEC)
88 #define PAGE_KERNEL_EXEC_CONT __pgprot(_PAGE_KERNEL_EXEC_CONT)
100 #define PAGE_NONE __pgprot(((_PAGE_DEFAULT) & ~PTE_VALID) | PTE_PROT_NONE | PTE_RDONLY | PTE_NG | …
102 #define PAGE_SHARED __pgprot(_PAGE_SHARED)
103 #define PAGE_SHARED_EXEC __pgprot(_PAGE_SHARED_EXEC)
104 #define PAGE_READONLY __pgprot(_PAGE_READONLY)
105 #define PAGE_READONLY_EXEC __pgprot(_PAGE_READONLY_EXEC)
[all …]
/arch/loongarch/include/asm/
Dpgtable-bits.h80 #define PAGE_NONE __pgprot(_PAGE_PROTNONE | _PAGE_NO_READ | \
82 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_WRITE | \
84 #define PAGE_READONLY __pgprot(_PAGE_PRESENT | _PAGE_USER | _CACHE_CC)
86 #define PAGE_KERNEL __pgprot(_PAGE_PRESENT | __READABLE | __WRITEABLE | \
88 #define PAGE_KERNEL_SUC __pgprot(_PAGE_PRESENT | __READABLE | __WRITEABLE | \
90 #define PAGE_KERNEL_WUC __pgprot(_PAGE_PRESENT | __READABLE | __WRITEABLE | \
105 return __pgprot(prot); in pgprot_noncached()
118 return __pgprot(prot); in pgprot_writecombine()
/arch/powerpc/include/asm/nohash/
Dpte-e500.h93 #define PAGE_NONE __pgprot(_PAGE_BASE)
94 #define PAGE_SHARED __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW)
95 #define PAGE_SHARED_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW | _PAGE_BAP_UX)
96 #define PAGE_COPY __pgprot(_PAGE_BASE | _PAGE_USER)
97 #define PAGE_COPY_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_BAP_UX)
98 #define PAGE_READONLY __pgprot(_PAGE_BASE | _PAGE_USER)
99 #define PAGE_READONLY_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_BAP_UX)
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 | _PAGE_NO_CACHE | _PAGE_GUARDED)
15 #define PAGE_KERNEL_X __pgprot(_PAGE_BASE | _PAGE_KERNEL_RWX)
16 #define PAGE_KERNEL_RO __pgprot(_PAGE_BASE | _PAGE_KERNEL_RO)
17 #define PAGE_KERNEL_ROX __pgprot(_PAGE_BASE | _PAGE_KERNEL_ROX)
222 #define pgprot_noncached(prot) (__pgprot((pgprot_val(prot) & ~_PAGE_CACHE_CTL) | \
225 #define pgprot_noncached_wc(prot) (__pgprot((pgprot_val(prot) & ~_PAGE_CACHE_CTL) | \
228 #define pgprot_cached(prot) (__pgprot((pgprot_val(prot) & ~_PAGE_CACHE_CTL) | \
232 #define pgprot_cached_wthru(prot) (__pgprot((pgprot_val(prot) & ~_PAGE_CACHE_CTL) | \
[all …]
/arch/m68k/mm/
Dmcfmmu.c230 [VM_READ] = __pgprot(CF_PAGE_VALID |
233 [VM_WRITE] = __pgprot(CF_PAGE_VALID |
236 [VM_WRITE | VM_READ] = __pgprot(CF_PAGE_VALID |
240 [VM_EXEC] = __pgprot(CF_PAGE_VALID |
243 [VM_EXEC | VM_READ] = __pgprot(CF_PAGE_VALID |
247 [VM_EXEC | VM_WRITE] = __pgprot(CF_PAGE_VALID |
251 [VM_EXEC | VM_WRITE | VM_READ] = __pgprot(CF_PAGE_VALID |
257 [VM_SHARED | VM_READ] = __pgprot(CF_PAGE_VALID |
261 [VM_SHARED | VM_WRITE | VM_READ] = __pgprot(CF_PAGE_VALID |
265 [VM_SHARED | VM_EXEC] = __pgprot(CF_PAGE_VALID |
[all …]
/arch/xtensa/include/asm/
Dpgtable.h170 #define PAGE_NONE __pgprot(_PAGE_NONE | _PAGE_USER)
171 #define PAGE_COPY __pgprot(_PAGE_PRESENT | _PAGE_USER)
172 #define PAGE_COPY_EXEC __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_HW_EXEC)
173 #define PAGE_READONLY __pgprot(_PAGE_PRESENT | _PAGE_USER)
174 #define PAGE_READONLY_EXEC __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_HW_EXEC)
175 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_WRITABLE)
177 __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_WRITABLE | _PAGE_HW_EXEC)
178 #define PAGE_KERNEL __pgprot(_PAGE_PRESENT | _PAGE_HW_WRITE)
179 #define PAGE_KERNEL_RO __pgprot(_PAGE_PRESENT)
180 #define PAGE_KERNEL_EXEC __pgprot(_PAGE_PRESENT|_PAGE_HW_WRITE|_PAGE_HW_EXEC)
[all …]
/arch/arc/include/asm/
Dpgtable-bits-arcv2.h46 #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))
/arch/powerpc/include/asm/book3s/32/
Dpgtable.h107 #define PAGE_NONE __pgprot(_PAGE_BASE)
108 #define PAGE_SHARED __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW)
109 #define PAGE_SHARED_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW | _PAGE_EXEC)
110 #define PAGE_COPY __pgprot(_PAGE_BASE | _PAGE_USER)
111 #define PAGE_COPY_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_EXEC)
112 #define PAGE_READONLY __pgprot(_PAGE_BASE | _PAGE_USER)
113 #define PAGE_READONLY_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_EXEC)
116 #define PAGE_KERNEL __pgprot(_PAGE_BASE | _PAGE_KERNEL_RW)
117 #define PAGE_KERNEL_NC __pgprot(_PAGE_BASE_NC | _PAGE_KERNEL_RW | _PAGE_NO_CACHE)
118 #define PAGE_KERNEL_NCG __pgprot(_PAGE_BASE_NC | _PAGE_KERNEL_RW | _PAGE_NO_CACHE | _PAGE_GUARDED)
[all …]
/arch/riscv/mm/
Dpageattr.c114 pgprot_t prot = __pgprot(pmd_val(*pmdp) & ~_PAGE_PFN_MASK); in __split_linear_mapping_pmd()
154 pgprot_t prot = __pgprot(pud_val(*pudp) & ~_PAGE_PFN_MASK); in __split_linear_mapping_pud()
203 pgprot_t prot = __pgprot(p4d_val(*p4dp) & ~_PAGE_PFN_MASK); in __split_linear_mapping_p4d()
351 return __set_memory(addr, numpages, __pgprot(_PAGE_READ | _PAGE_WRITE), in set_memory_rw_nx()
352 __pgprot(_PAGE_EXEC)); in set_memory_rw_nx()
357 return __set_memory(addr, numpages, __pgprot(_PAGE_READ), in set_memory_ro()
358 __pgprot(_PAGE_WRITE)); in set_memory_ro()
363 return __set_memory(addr, numpages, __pgprot(_PAGE_READ | _PAGE_WRITE), in set_memory_rw()
364 __pgprot(0)); in set_memory_rw()
369 return __set_memory(addr, numpages, __pgprot(_PAGE_EXEC), __pgprot(0)); in set_memory_x()
[all …]
/arch/microblaze/include/asm/
Dpgtable.h52 (__pgprot((pgprot_val(prot) & ~_PAGE_CACHE_CTL) | \
56 (__pgprot((pgprot_val(prot) & ~_PAGE_CACHE_CTL) | \
193 #define PAGE_NONE __pgprot(_PAGE_BASE)
194 #define PAGE_READONLY __pgprot(_PAGE_BASE | _PAGE_USER)
195 #define PAGE_READONLY_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_EXEC)
196 #define PAGE_SHARED __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW)
198 __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW | _PAGE_EXEC)
199 #define PAGE_COPY __pgprot(_PAGE_BASE | _PAGE_USER)
200 #define PAGE_COPY_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_EXEC)
202 #define PAGE_KERNEL __pgprot(_PAGE_KERNEL)
[all …]
/arch/sparc/include/asm/
Dpgtsrmmu.h69 #define SRMMU_PAGE_NONE __pgprot(SRMMU_CACHE | \
71 #define SRMMU_PAGE_SHARED __pgprot(SRMMU_VALID | SRMMU_CACHE | \
73 #define SRMMU_PAGE_COPY __pgprot(SRMMU_VALID | SRMMU_CACHE | \
75 #define SRMMU_PAGE_RDONLY __pgprot(SRMMU_VALID | SRMMU_CACHE | \
77 #define SRMMU_PAGE_KERNEL __pgprot(SRMMU_VALID | SRMMU_CACHE | SRMMU_PRIV | \
/arch/openrisc/include/asm/
Dpgtable.h160 #define PAGE_NONE __pgprot(_PAGE_ALL)
161 #define PAGE_READONLY __pgprot(_PAGE_ALL | _PAGE_URE | _PAGE_SRE)
162 #define PAGE_READONLY_X __pgprot(_PAGE_ALL | _PAGE_URE | _PAGE_SRE | _PAGE_EXEC)
164 __pgprot(_PAGE_ALL | _PAGE_URE | _PAGE_SRE | _PAGE_UWE | _PAGE_SWE \
167 __pgprot(_PAGE_ALL | _PAGE_URE | _PAGE_SRE | _PAGE_UWE | _PAGE_SWE \
169 #define PAGE_COPY __pgprot(_PAGE_ALL | _PAGE_URE | _PAGE_SRE)
170 #define PAGE_COPY_X __pgprot(_PAGE_ALL | _PAGE_URE | _PAGE_SRE | _PAGE_EXEC)
173 __pgprot(_PAGE_ALL | _PAGE_SRE | _PAGE_SWE \
176 __pgprot(_PAGE_ALL | _PAGE_SRE \
179 __pgprot(_PAGE_ALL | _PAGE_SRE | _PAGE_SWE \

123456