Home
last modified time | relevance | path

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

123

/linux/arch/sh/include/asm/
H A 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/arch/arm/mm/
H A 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 …]
H A Dkasan_init.c67 __pgprot(pgprot_val(PAGE_KERNEL))); in kasan_pte_populate()
77 __pgprot(_L_PTE_DEFAULT | L_PTE_DIRTY | L_PTE_XN)); in kasan_pte_populate()
296 __pgprot(pgprot_val(PAGE_KERNEL) in kasan_init()
/linux/arch/loongarch/mm/
H A Dcache.c152 [VM_NONE] = __pgprot(_CACHE_CC | _PAGE_USER |
155 [VM_READ] = __pgprot(_CACHE_CC | _PAGE_VALID |
158 [VM_WRITE] = __pgprot(_CACHE_CC | _PAGE_VALID |
161 [VM_WRITE | VM_READ] = __pgprot(_CACHE_CC | _PAGE_VALID |
164 [VM_EXEC] = __pgprot(_CACHE_CC | _PAGE_VALID |
166 [VM_EXEC | VM_READ] = __pgprot(_CACHE_CC | _PAGE_VALID |
168 [VM_EXEC | VM_WRITE] = __pgprot(_CACHE_CC | _PAGE_VALID |
170 [VM_EXEC | VM_WRITE | VM_READ] = __pgprot(_CACHE_CC | _PAGE_VALID |
172 [VM_SHARED] = __pgprot(_CACHE_CC | _PAGE_USER |
175 [VM_SHARED | VM_READ] = __pgprot(_CACHE_CC | _PAGE_VALID |
[all …]
/linux/arch/powerpc/include/asm/
H A Dpgtable-masks.h23 #define PAGE_NONE __pgprot(_PAGE_BASE | _PAGE_NA)
24 #define PAGE_EXECONLY_X __pgprot(_PAGE_BASE | _PAGE_NAX)
25 #define PAGE_SHARED __pgprot(_PAGE_BASE | _PAGE_RW)
26 #define PAGE_SHARED_X __pgprot(_PAGE_BASE | _PAGE_RWX)
27 #define PAGE_COPY __pgprot(_PAGE_BASE | _PAGE_RO)
28 #define PAGE_COPY_X __pgprot(_PAGE_BASE | _PAGE_ROX)
29 #define PAGE_READONLY __pgprot(_PAGE_BASE | _PAGE_RO)
30 #define PAGE_READONLY_X __pgprot(_PAGE_BASE | _PAGE_ROX)
/linux/arch/s390/include/asm/
H A Dpgtable.h447 #define __pgprot_page_mask(x) __pgprot((x) & page_noexec_mask)
494 #define __pgprot_segment_mask(x) __pgprot((x) & segment_noexec_mask)
526 #define __pgprot_region_mask(x) __pgprot((x) & region_noexec_mask)
865 return set_pte_bit(pte, __pgprot(_PAGE_SWP_EXCLUSIVE)); in pte_swp_mkexclusive()
870 return clear_pte_bit(pte, __pgprot(_PAGE_SWP_EXCLUSIVE)); in pte_swp_clear_exclusive()
881 return set_pte_bit(pte, __pgprot(_PAGE_SOFT_DIRTY)); in pte_mksoft_dirty()
887 return clear_pte_bit(pte, __pgprot(_PAGE_SOFT_DIRTY)); in pte_clear_soft_dirty()
898 return set_pmd_bit(pmd, __pgprot(_SEGMENT_ENTRY_SOFT_DIRTY)); in pmd_mksoft_dirty()
903 return clear_pmd_bit(pmd, __pgprot(_SEGMENT_ENTRY_SOFT_DIRTY)); in pmd_clear_soft_dirty()
954 return __pgprot(pte_flags); in pte_pgprot()
[all …]
/linux/arch/loongarch/include/asm/
H A Dpgtable-bits.h112 #define PAGE_NONE __pgprot(_PAGE_PROTNONE | _PAGE_NO_READ | \
114 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_WRITE | \
116 #define PAGE_READONLY __pgprot(_PAGE_PRESENT | _PAGE_USER | _CACHE_CC)
118 #define PAGE_KERNEL __pgprot(_PAGE_PRESENT | __READABLE | __WRITEABLE | \
120 #define PAGE_KERNEL_SUC __pgprot(_PAGE_PRESENT | __READABLE | __WRITEABLE | \
122 #define PAGE_KERNEL_WUC __pgprot(_PAGE_PRESENT | __READABLE | __WRITEABLE | \
133 return __pgprot(pgprot_val(_prot) | _PAGE_NO_EXEC); in pgprot_nx()
144 return __pgprot(prot); in pgprot_noncached()
157 return __pgprot(prot); in pgprot_writecombine()
/linux/arch/arm64/include/asm/
H A Dpgtable-prot.h108 #define PAGE_KERNEL __pgprot(_PAGE_KERNEL)
109 #define PAGE_KERNEL_RO __pgprot(_PAGE_KERNEL_RO)
110 #define PAGE_KERNEL_ROX __pgprot(_PAGE_KERNEL_ROX)
111 #define PAGE_KERNEL_EXEC __pgprot(_PAGE_KERNEL_EXEC)
112 #define PAGE_KERNEL_EXEC_CONT __pgprot(_PAGE_KERNEL_EXEC_CONT)
124 #define PAGE_NONE __pgprot(((_PAGE_DEFAULT) & ~PTE_VALID) | PTE_PRESENT_INVALID | PTE_RDONLY | PTE…
126 #define PAGE_SHARED __pgprot(_PAGE_SHARED)
127 #define PAGE_SHARED_EXEC __pgprot(_PAGE_SHARED_EXEC)
128 #define PAGE_READONLY __pgprot(_PAGE_READONLY)
129 #define PAGE_READONLY_EXEC __pgprot(_PAGE_READONLY_EXEC)
[all …]
H A Dpgtable.h256 pte = set_pte_bit(pte, __pgprot(PTE_WRITE)); in pte_mkwrite_novma()
258 pte = clear_pte_bit(pte, __pgprot(PTE_RDONLY)); in pte_mkwrite_novma()
264 pte = clear_pte_bit(pte, __pgprot(PTE_DIRTY)); in pte_mkclean()
265 pte = set_pte_bit(pte, __pgprot(PTE_RDONLY)); in pte_mkclean()
272 pte = set_pte_bit(pte, __pgprot(PTE_DIRTY)); in pte_mkdirty()
275 pte = clear_pte_bit(pte, __pgprot(PTE_RDONLY)); in pte_mkdirty()
287 pte = set_pte_bit(pte, __pgprot(PTE_DIRTY)); in pte_wrprotect()
289 pte = clear_pte_bit(pte, __pgprot(PTE_WRITE)); in pte_wrprotect()
290 pte = set_pte_bit(pte, __pgprot(PTE_RDONLY)); in pte_wrprotect()
296 return clear_pte_bit(pte, __pgprot(PTE_AF)); in pte_mkold()
[all …]
H A Dio.h285 __ioremap_prot((addr), (size), __pgprot(PROT_DEVICE_nGnRE))
287 __ioremap_prot((addr), (size), __pgprot(PROT_NORMAL_NC))
289 __ioremap_prot((addr), (size), __pgprot(PROT_DEVICE_nGnRnE))
314 return __ioremap_prot(addr, size, __pgprot(PROT_NORMAL)); in ioremap_cache()
/linux/arch/arm/include/asm/
H A 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)
H A Dpgtable-2level-types.h33 #define __pgprot(x) ((pgprot_t) { (x) } ) macro
51 #define __pgprot(x) (x) macro
H A Dpgtable-3level-types.h37 #define __pgprot(x) ((pgprot_t) { (x) } ) macro
54 #define __pgprot(x) (x) macro
/linux/arch/arc/include/asm/
H A 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))
/linux/arch/powerpc/include/asm/nohash/
H A Dpgtable.h23 #define PAGE_KERNEL __pgprot(_PAGE_BASE | _PAGE_KERNEL_RW)
24 #define PAGE_KERNEL_NC __pgprot(_PAGE_BASE_NC | _PAGE_KERNEL_RW | _PAGE_NO_CACHE)
25 #define PAGE_KERNEL_NCG __pgprot(_PAGE_BASE_NC | _PAGE_KERNEL_RW | _PAGE_NO_CACHE | _PAGE_GUARDED)
26 #define PAGE_KERNEL_X __pgprot(_PAGE_BASE | _PAGE_KERNEL_RWX)
27 #define PAGE_KERNEL_RO __pgprot(_PAGE_BASE | _PAGE_KERNEL_RO)
28 #define PAGE_KERNEL_ROX __pgprot(_PAGE_BASE | _PAGE_KERNEL_ROX)
363 #define pgprot_noncached(prot) (__pgprot((pgprot_val(prot) & ~_PAGE_CACHE_CTL) | \
366 #define pgprot_noncached_wc(prot) (__pgprot((pgprot_val(prot) & ~_PAGE_CACHE_CTL) | \
369 #define pgprot_cached(prot) (__pgprot((pgprot_val(prot) & ~_PAGE_CACHE_CTL) | \
373 #define pgprot_cached_wthru(prot) (__pgprot((pgprot_val(prot) & ~_PAGE_CACHE_CTL) | \
[all …]
/linux/arch/parisc/include/asm/
H A Dpgtable.h231 #define PAGE_NONE __pgprot(_PAGE_PRESENT | _PAGE_USER)
232 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_READ | _PAGE_WRITE)
236 #define PAGE_READONLY __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_READ)
237 #define PAGE_WRITEONLY __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_WRITE)
238 #define PAGE_EXECREAD __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_READ | _PAGE_EXEC)
240 #define PAGE_RWX __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_READ | _PAGE_WRITE | _PAGE_EXEC)
241 #define PAGE_KERNEL __pgprot(_PAGE_KERNEL)
242 #define PAGE_KERNEL_EXEC __pgprot(_PAGE_KERNEL_EXEC)
243 #define PAGE_KERNEL_RWX __pgprot(_PAGE_KERNEL_RWX)
244 #define PAGE_KERNEL_RO __pgprot(_PAGE_KERNEL_RO)
[all …]
/linux/arch/powerpc/include/asm/book3s/32/
H A Dpgtable.h90 #define PAGE_KERNEL __pgprot(_PAGE_BASE | _PAGE_KERNEL_RW)
91 #define PAGE_KERNEL_NC __pgprot(_PAGE_BASE_NC | _PAGE_KERNEL_RW | _PAGE_NO_CACHE)
92 #define PAGE_KERNEL_NCG __pgprot(_PAGE_BASE_NC | _PAGE_KERNEL_RW | _PAGE_NO_CACHE | _PAGE_GUARDED)
93 #define PAGE_KERNEL_X __pgprot(_PAGE_BASE | _PAGE_KERNEL_RWX)
94 #define PAGE_KERNEL_RO __pgprot(_PAGE_BASE | _PAGE_KERNEL_RO)
95 #define PAGE_KERNEL_ROX __pgprot(_PAGE_BASE | _PAGE_KERNEL_ROX)
574 return __pgprot((pgprot_val(prot) & ~_PAGE_CACHE_CTL) | in pgprot_noncached()
581 return __pgprot((pgprot_val(prot) & ~_PAGE_CACHE_CTL) | in pgprot_noncached_wc()
588 return __pgprot((pgprot_val(prot) & ~_PAGE_CACHE_CTL) | in pgprot_cached()
595 return __pgprot((pgprot_val(prot) & ~_PAGE_CACHE_CTL) | in pgprot_cached_wthru()
[all …]
/linux/arch/m68k/include/asm/
H A Dsun3_pgtable.h45 #define PAGE_NONE __pgprot(SUN3_PAGE_VALID \
48 #define PAGE_SHARED __pgprot(SUN3_PAGE_VALID \
52 #define PAGE_COPY __pgprot(SUN3_PAGE_VALID \
55 #define PAGE_READONLY __pgprot(SUN3_PAGE_VALID \
58 #define PAGE_KERNEL __pgprot(SUN3_PAGE_VALID \
64 #define PAGE_INIT __pgprot(SUN3_PAGE_VALID \
H A Dmotorola_pgtable.h76 #define PAGE_NONE __pgprot(_PAGE_PROTNONE | _PAGE_ACCESSED | mm_cachebits)
77 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_ACCESSED | mm_cachebits)
78 #define PAGE_COPY __pgprot(_PAGE_PRESENT | _PAGE_RONLY | _PAGE_ACCESSED | mm_cachebits)
79 #define PAGE_READONLY __pgprot(_PAGE_PRESENT | _PAGE_RONLY | _PAGE_ACCESSED | mm_cachebits)
80 #define PAGE_KERNEL __pgprot(_PAGE_PRESENT | _PAGE_DIRTY | _PAGE_ACCESSED | mm_cachebits)
H A Dmcf_pgtable.h66 #define PAGE_NONE __pgprot(CF_PAGE_VALID \
69 #define PAGE_SHARED __pgprot(CF_PAGE_VALID \
73 #define PAGE_INIT __pgprot(CF_PAGE_VALID \
79 #define PAGE_KERNEL __pgprot(CF_PAGE_VALID \
87 #define PAGE_COPY __pgprot(CF_PAGE_VALID \
/linux/arch/x86/mm/pat/
H A Dset_memory.c80 return __pgprot(cachemode2protval(pcm)); in cachemode2pgprot()
664 return __pgprot(pgprot_val(prot) & ~forbidden); in static_protections()
1207 __set_pmd_pte(kpte, address, mk_pte(base, __pgprot(_KERNPG_TABLE))); in __split_large_page()
1748 pgprot_t pgprot = __pgprot(_KERNPG_TABLE); in populate_pgd()
2142 return change_page_attr_set_clr(addr, numpages, mask, __pgprot(0), 0, in change_page_attr_set()
2149 return change_page_attr_set_clr(addr, numpages, __pgprot(0), mask, 0, in change_page_attr_clear()
2156 return change_page_attr_set_clr(NULL, numpages, mask, __pgprot(0), 0, in cpa_set_pages_array()
2163 return change_page_attr_set_clr(NULL, numpages, __pgprot(0), mask, 0, in cpa_clear_pages_array()
2215 __pgprot(_PAGE_CACHE_MASK), in _set_memory_wc()
2248 __pgprot(_PAGE_CACHE_MASK), 0); in _set_memory_wb()
[all …]
/linux/arch/riscv/include/asm/
H A Dpgtable.h159 #define PAGE_NONE __pgprot(_PAGE_PROT_NONE | _PAGE_READ)
160 #define PAGE_READ __pgprot(_PAGE_BASE | _PAGE_READ)
161 #define PAGE_WRITE __pgprot(_PAGE_BASE | _PAGE_READ | _PAGE_WRITE)
162 #define PAGE_EXEC __pgprot(_PAGE_BASE | _PAGE_EXEC)
163 #define PAGE_READ_EXEC __pgprot(_PAGE_BASE | _PAGE_READ | _PAGE_EXEC)
164 #define PAGE_WRITE_EXEC __pgprot(_PAGE_BASE | _PAGE_READ | \
166 #define PAGE_SHADOWSTACK __pgprot(_PAGE_BASE | _PAGE_WRITE)
180 #define PAGE_KERNEL __pgprot(_PAGE_KERNEL)
181 #define PAGE_KERNEL_READ __pgprot(_PAGE_KERNEL & ~_PAGE_WRITE)
182 #define PAGE_KERNEL_EXEC __pgprot(_PAGE_KERNEL | _PAGE_EXEC)
[all …]
/linux/arch/arm64/kernel/
H A Dacpi.c270 return __pgprot(PROT_NORMAL_NC); in __acpi_get_writethrough_mem_attribute()
289 return __pgprot(PROT_NORMAL_NC); in __acpi_get_mem_attribute()
292 return __pgprot(PROT_DEVICE_nGnRnE); in __acpi_get_mem_attribute()
323 prot = __pgprot(PROT_DEVICE_nGnRnE); in acpi_os_ioremap()
375 prot = __pgprot(PROT_NORMAL_NC); in acpi_os_ioremap()
/linux/arch/x86/mm/
H A Diomap_32.c33 *prot = __pgprot(__PAGE_KERNEL | cachemode2protval(pcm)); in iomap_create_wc()
57 prot = __pgprot(__PAGE_KERNEL | in __iomap_local_pfn_prot()
/linux/arch/arm/kernel/
H A Defi.c20 pte = set_pte_bit(pte, __pgprot(L_PTE_RDONLY)); in set_permissions()
22 pte = set_pte_bit(pte, __pgprot(L_PTE_XN)); in set_permissions()

123