Home
last modified time | relevance | path

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

123456

/Linux-v4.19/arch/arm64/include/asm/
Dpgtable-prot.h59 #define PAGE_KERNEL __pgprot(PROT_NORMAL)
60 #define PAGE_KERNEL_RO __pgprot((PROT_NORMAL & ~PTE_WRITE) | PTE_RDONLY)
61 #define PAGE_KERNEL_ROX __pgprot((PROT_NORMAL & ~(PTE_WRITE | PTE_PXN)) | PTE_RDONLY)
62 #define PAGE_KERNEL_EXEC __pgprot(PROT_NORMAL & ~PTE_PXN)
63 #define PAGE_KERNEL_EXEC_CONT __pgprot((PROT_NORMAL & ~PTE_PXN) | PTE_CONT)
65 #define PAGE_HYP __pgprot(_HYP_PAGE_DEFAULT | PTE_HYP | PTE_HYP_XN)
66 #define PAGE_HYP_EXEC __pgprot(_HYP_PAGE_DEFAULT | PTE_HYP | PTE_RDONLY)
67 #define PAGE_HYP_RO __pgprot(_HYP_PAGE_DEFAULT | PTE_HYP | PTE_RDONLY | PTE_HYP_XN)
68 #define PAGE_HYP_DEVICE __pgprot(PROT_DEVICE_nGnRE | PTE_HYP)
90 #define PAGE_S2 __pgprot(_PROT_DEFAULT | PAGE_S2_MEMATTR(NORMAL) | PTE_S2_RDONLY | PAGE_S2_XN)
[all …]
/Linux-v4.19/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 …]
Dpgtable_64.h182 #define PAGE_NONE __pgprot(_PAGE_CACHABLE | _PAGE_ACCESSED)
183 #define PAGE_SHARED __pgprot(_PAGE_COMMON | _PAGE_READ | _PAGE_WRITE | \
185 #define PAGE_EXECREAD __pgprot(_PAGE_COMMON | _PAGE_READ | _PAGE_EXECUTE)
193 #define PAGE_READONLY __pgprot(_PAGE_COMMON | _PAGE_READ)
194 #define PAGE_WRITEONLY __pgprot(_PAGE_COMMON | _PAGE_WRITE)
195 #define PAGE_RWX __pgprot(_PAGE_COMMON | _PAGE_READ | \
197 #define PAGE_KERNEL __pgprot(_KERNPG_TABLE)
200 __pgprot(_PAGE_PRESENT | _PAGE_READ | _PAGE_WRITE | \
206 #define pgprot_noncached(x) __pgprot(((x).pgprot & ~(_PAGE_CACHABLE)) | _PAGE_DEVICE)
207 #define pgprot_writecombine(prot) __pgprot(pgprot_val(prot) & ~_PAGE_CACHABLE)
/Linux-v4.19/arch/mips/mm/
Dcache.c165 …protection_map[0] = __pgprot(_page_cachable_default | _PAGE_PRESENT | _PAGE_NO_EXEC | _PAGE_NO_RE… in setup_protection_map()
166 protection_map[1] = __pgprot(_page_cachable_default | _PAGE_PRESENT | _PAGE_NO_EXEC); in setup_protection_map()
167 …protection_map[2] = __pgprot(_page_cachable_default | _PAGE_PRESENT | _PAGE_NO_EXEC | _PAGE_NO_RE… in setup_protection_map()
168 protection_map[3] = __pgprot(_page_cachable_default | _PAGE_PRESENT | _PAGE_NO_EXEC); in setup_protection_map()
169 protection_map[4] = __pgprot(_page_cachable_default | _PAGE_PRESENT); in setup_protection_map()
170 protection_map[5] = __pgprot(_page_cachable_default | _PAGE_PRESENT); in setup_protection_map()
171 protection_map[6] = __pgprot(_page_cachable_default | _PAGE_PRESENT); in setup_protection_map()
172 protection_map[7] = __pgprot(_page_cachable_default | _PAGE_PRESENT); in setup_protection_map()
174 …protection_map[8] = __pgprot(_page_cachable_default | _PAGE_PRESENT | _PAGE_NO_EXEC | _PAGE_NO_RE… in setup_protection_map()
175 protection_map[9] = __pgprot(_page_cachable_default | _PAGE_PRESENT | _PAGE_NO_EXEC); in setup_protection_map()
[all …]
/Linux-v4.19/arch/powerpc/include/asm/
Dpte-common.h154 #define PAGE_NONE __pgprot(_PAGE_BASE | _PAGE_NA)
155 #define PAGE_SHARED __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW)
156 #define PAGE_SHARED_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW | \
158 #define PAGE_COPY __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RO)
159 #define PAGE_COPY_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RO | \
161 #define PAGE_READONLY __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RO)
162 #define PAGE_READONLY_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RO | \
184 #define PAGE_KERNEL __pgprot(_PAGE_BASE | _PAGE_KERNEL_RW)
185 #define PAGE_KERNEL_NC __pgprot(_PAGE_BASE_NC | _PAGE_KERNEL_RW | \
187 #define PAGE_KERNEL_NCG __pgprot(_PAGE_BASE_NC | _PAGE_KERNEL_RW | \
[all …]
Dmman.h38 __pgprot(_PAGE_SAO | vmflag_to_pte_pkey_bits(vm_flags)) : in arch_vm_get_page_prot()
39 __pgprot(0 | vmflag_to_pte_pkey_bits(vm_flags)); in arch_vm_get_page_prot()
41 return (vm_flags & VM_SAO) ? __pgprot(_PAGE_SAO) : __pgprot(0); in arch_vm_get_page_prot()
/Linux-v4.19/arch/arm64/mm/
Dpageattr.c102 __pgprot(PTE_RDONLY), in set_memory_ro()
103 __pgprot(PTE_WRITE)); in set_memory_ro()
109 __pgprot(PTE_WRITE), in set_memory_rw()
110 __pgprot(PTE_RDONLY)); in set_memory_rw()
116 __pgprot(PTE_PXN), in set_memory_nx()
117 __pgprot(0)); in set_memory_nx()
124 __pgprot(0), in set_memory_x()
125 __pgprot(PTE_PXN)); in set_memory_x()
133 __pgprot(PTE_VALID), in set_memory_valid()
134 __pgprot(0)); in set_memory_valid()
[all …]
/Linux-v4.19/arch/unicore32/include/asm/
Dpgtable.h90 #define PAGE_SHARED __pgprot(pgprot_val(pgprot_user | PTE_READ \
92 #define PAGE_SHARED_EXEC __pgprot(pgprot_val(pgprot_user | PTE_READ \
95 #define PAGE_COPY __pgprot(pgprot_val(pgprot_user | PTE_READ)
96 #define PAGE_COPY_EXEC __pgprot(pgprot_val(pgprot_user | PTE_READ \
98 #define PAGE_READONLY __pgprot(pgprot_val(pgprot_user | PTE_READ))
99 #define PAGE_READONLY_EXEC __pgprot(pgprot_val(pgprot_user | PTE_READ \
102 #define PAGE_KERNEL_EXEC __pgprot(pgprot_val(pgprot_kernel | PTE_EXEC))
104 #define __PAGE_NONE __pgprot(_PTE_DEFAULT)
105 #define __PAGE_SHARED __pgprot(_PTE_DEFAULT | PTE_READ \
107 #define __PAGE_SHARED_EXEC __pgprot(_PTE_DEFAULT | PTE_READ \
[all …]
/Linux-v4.19/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-v4.19/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()
/Linux-v4.19/arch/mips/include/asm/
Dpgtable.h26 #define PAGE_NONE __pgprot(_PAGE_PRESENT | _PAGE_NO_READ | \
28 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_WRITE | \
30 #define PAGE_COPY __pgprot(_PAGE_PRESENT | _PAGE_NO_EXEC | \
32 #define PAGE_READONLY __pgprot(_PAGE_PRESENT | \
34 #define PAGE_KERNEL __pgprot(_PAGE_PRESENT | __READABLE | __WRITEABLE | \
36 #define PAGE_KERNEL_NC __pgprot(_PAGE_PRESENT | __READABLE | __WRITEABLE | \
38 #define PAGE_USERIO __pgprot(_PAGE_PRESENT | _PAGE_WRITE | \
40 #define PAGE_KERNEL_UNCACHED __pgprot(_PAGE_PRESENT | __READABLE | \
54 #define __P000 __pgprot(0)
55 #define __P001 __pgprot(0)
[all …]
/Linux-v4.19/arch/arm/include/asm/
Dpgtable.h90 #define _MOD_PROT(p, b) __pgprot(pgprot_val(p) | (b))
108 #define __PAGE_NONE __pgprot(_L_PTE_DEFAULT | L_PTE_RDONLY | L_PTE_XN | L_PTE_NONE)
109 #define __PAGE_SHARED __pgprot(_L_PTE_DEFAULT | L_PTE_USER | L_PTE_XN)
110 #define __PAGE_SHARED_EXEC __pgprot(_L_PTE_DEFAULT | L_PTE_USER)
111 #define __PAGE_COPY __pgprot(_L_PTE_DEFAULT | L_PTE_USER | L_PTE_RDONLY | L_PTE_XN)
112 #define __PAGE_COPY_EXEC __pgprot(_L_PTE_DEFAULT | L_PTE_USER | L_PTE_RDONLY)
113 #define __PAGE_READONLY __pgprot(_L_PTE_DEFAULT | L_PTE_USER | L_PTE_RDONLY | L_PTE_XN)
114 #define __PAGE_READONLY_EXEC __pgprot(_L_PTE_DEFAULT | L_PTE_USER | L_PTE_RDONLY)
117 __pgprot((pgprot_val(prot) & ~(mask)) | (bits))
283 return set_pte_bit(pte, __pgprot(L_PTE_RDONLY)); in pte_wrprotect()
[all …]
Dpgtable-nommu.h40 #define PAGE_NONE __pgprot(0)
41 #define PAGE_SHARED __pgprot(0)
42 #define PAGE_COPY __pgprot(0)
43 #define PAGE_READONLY __pgprot(0)
44 #define PAGE_KERNEL __pgprot(0)
/Linux-v4.19/arch/hexagon/include/asm/
Dpgtable.h120 #define PAGE_NONE __pgprot(_PAGE_PRESENT | _PAGE_USER | \
122 #define PAGE_READONLY __pgprot(_PAGE_PRESENT | _PAGE_USER | \
125 #define PAGE_EXEC __pgprot(_PAGE_PRESENT | _PAGE_USER | \
128 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_READ | \
130 #define PAGE_KERNEL __pgprot(_PAGE_PRESENT | _PAGE_READ | \
144 #define __P000 __pgprot(_PAGE_PRESENT | _PAGE_USER | CACHEDEF)
145 #define __P001 __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_READ | CACHEDEF)
148 #define __P100 __pgprot(_PAGE_PRESENT | _PAGE_USER | \
150 #define __P101 __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_EXECUTE | \
158 #define __S010 __pgprot(_PAGE_PRESENT | _PAGE_USER | \
[all …]
/Linux-v4.19/arch/xtensa/include/asm/
Dpgtable.h172 #define PAGE_NONE __pgprot(_PAGE_NONE | _PAGE_USER)
173 #define PAGE_COPY __pgprot(_PAGE_PRESENT | _PAGE_USER)
174 #define PAGE_COPY_EXEC __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_HW_EXEC)
175 #define PAGE_READONLY __pgprot(_PAGE_PRESENT | _PAGE_USER)
176 #define PAGE_READONLY_EXEC __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_HW_EXEC)
177 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_WRITABLE)
179 __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_WRITABLE | _PAGE_HW_EXEC)
180 #define PAGE_KERNEL __pgprot(_PAGE_PRESENT | _PAGE_HW_WRITE)
181 #define PAGE_KERNEL_RO __pgprot(_PAGE_PRESENT)
182 #define PAGE_KERNEL_EXEC __pgprot(_PAGE_PRESENT|_PAGE_HW_WRITE|_PAGE_HW_EXEC)
[all …]
/Linux-v4.19/arch/h8300/include/asm/
Dpgtable.h9 #define PAGE_NONE __pgprot(0) /* these mean nothing to NO_MM */
10 #define PAGE_SHARED __pgprot(0) /* these mean nothing to NO_MM */
11 #define PAGE_COPY __pgprot(0) /* these mean nothing to NO_MM */
12 #define PAGE_READONLY __pgprot(0) /* these mean nothing to NO_MM */
13 #define PAGE_KERNEL __pgprot(0) /* these mean nothing to NO_MM */
/Linux-v4.19/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-v4.19/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 */
107 (__pgprot((pgprot_val(prot) & ~_PAGE_CACHE_CTL) | \
111 (__pgprot((pgprot_val(prot) & ~_PAGE_CACHE_CTL) | \
253 #define PAGE_NONE __pgprot(_PAGE_BASE)
254 #define PAGE_READONLY __pgprot(_PAGE_BASE | _PAGE_USER)
255 #define PAGE_READONLY_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_EXEC)
[all …]
/Linux-v4.19/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-v4.19/arch/c6x/include/asm/
Dpgtable.h38 #define PAGE_NONE __pgprot(0) /* these mean nothing to NO_MM */
39 #define PAGE_SHARED __pgprot(0) /* these mean nothing to NO_MM */
40 #define PAGE_COPY __pgprot(0) /* these mean nothing to NO_MM */
41 #define PAGE_READONLY __pgprot(0) /* these mean nothing to NO_MM */
42 #define PAGE_KERNEL __pgprot(0) /* these mean nothing to NO_MM */
/Linux-v4.19/arch/x86/mm/
Dpageattr.c298 pgprot_t forbidden = __pgprot(0); in static_protections()
364 prot = __pgprot(pgprot_val(prot) & ~pgprot_val(forbidden)); in static_protections()
756 __set_pmd_pte(kpte, address, mk_pte(base, __pgprot(_KERNPG_TABLE))); in __split_large_page()
1125 pgprot_t pgprot = __pgprot(_KERNPG_TABLE); in populate_pgd()
1553 return change_page_attr_set_clr(addr, numpages, mask, __pgprot(0), 0, in change_page_attr_set()
1560 return change_page_attr_set_clr(addr, numpages, __pgprot(0), mask, 0, in change_page_attr_clear()
1567 return change_page_attr_set_clr(NULL, numpages, mask, __pgprot(0), 0, in cpa_set_pages_array()
1574 return change_page_attr_set_clr(NULL, numpages, __pgprot(0), mask, 0, in cpa_clear_pages_array()
1641 __pgprot(_PAGE_CACHE_MASK), in _set_memory_array()
1685 __pgprot(_PAGE_CACHE_MASK), in _set_memory_wc()
[all …]
/Linux-v4.19/arch/openrisc/include/asm/
Dpgtable.h163 #define PAGE_NONE __pgprot(_PAGE_ALL)
164 #define PAGE_READONLY __pgprot(_PAGE_ALL | _PAGE_URE | _PAGE_SRE)
165 #define PAGE_READONLY_X __pgprot(_PAGE_ALL | _PAGE_URE | _PAGE_SRE | _PAGE_EXEC)
167 __pgprot(_PAGE_ALL | _PAGE_URE | _PAGE_SRE | _PAGE_UWE | _PAGE_SWE \
170 __pgprot(_PAGE_ALL | _PAGE_URE | _PAGE_SRE | _PAGE_UWE | _PAGE_SWE \
172 #define PAGE_COPY __pgprot(_PAGE_ALL | _PAGE_URE | _PAGE_SRE)
173 #define PAGE_COPY_X __pgprot(_PAGE_ALL | _PAGE_URE | _PAGE_SRE | _PAGE_EXEC)
176 __pgprot(_PAGE_ALL | _PAGE_SRE | _PAGE_SWE \
179 __pgprot(_PAGE_ALL | _PAGE_SRE \
182 __pgprot(_PAGE_ALL | _PAGE_SRE | _PAGE_SWE \
/Linux-v4.19/arch/sparc/include/asm/
Dpgtsrmmu.h107 #define SRMMU_PAGE_NONE __pgprot(SRMMU_CACHE | \
109 #define SRMMU_PAGE_SHARED __pgprot(SRMMU_VALID | SRMMU_CACHE | \
111 #define SRMMU_PAGE_COPY __pgprot(SRMMU_VALID | SRMMU_CACHE | \
113 #define SRMMU_PAGE_RDONLY __pgprot(SRMMU_VALID | SRMMU_CACHE | \
115 #define SRMMU_PAGE_KERNEL __pgprot(SRMMU_VALID | SRMMU_CACHE | SRMMU_PRIV | \
/Linux-v4.19/arch/arc/include/asm/
Dpgtable.h117 #define PAGE_U_NONE __pgprot(___DEF)
118 #define PAGE_U_R __pgprot(___DEF | _PAGE_READ)
119 #define PAGE_U_W_R __pgprot(___DEF | _PAGE_READ | _PAGE_WRITE)
120 #define PAGE_U_X_R __pgprot(___DEF | _PAGE_READ | _PAGE_EXECUTE)
121 #define PAGE_U_X_W_R __pgprot(___DEF | _PAGE_READ | _PAGE_WRITE | \
130 #define PAGE_KERNEL __pgprot(_K_PAGE_PERMS | _PAGE_CACHEABLE)
133 #define PAGE_KERNEL_NO_CACHE __pgprot(_K_PAGE_PERMS)
329 #define pgprot_noncached(prot) (__pgprot(pgprot_val(prot) & ~_PAGE_CACHEABLE))

123456