Home
last modified time | relevance | path

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

/linux-4.1.27/arch/sh/include/asm/
Dpgtable_32.h175 #define PAGE_NONE __pgprot(_PAGE_PROTNONE | _PAGE_CACHABLE | \
178 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_ACCESSED | \
185 #define PAGE_EXECREAD __pgprot(_PAGE_PRESENT | _PAGE_ACCESSED | \
194 #define PAGE_READONLY __pgprot(_PAGE_PRESENT | _PAGE_ACCESSED | \
199 #define PAGE_WRITEONLY __pgprot(_PAGE_PRESENT | _PAGE_ACCESSED | \
204 #define PAGE_RWX __pgprot(_PAGE_PRESENT | _PAGE_ACCESSED | \
213 #define PAGE_KERNEL __pgprot(_PAGE_PRESENT | _PAGE_CACHABLE | \
221 __pgprot(_PAGE_PRESENT | _PAGE_DIRTY | \
228 #define PAGE_KERNEL_RO __pgprot(_PAGE_PRESENT | _PAGE_CACHABLE | \
235 __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)
Dpage.h101 #define __pgprot(x) ((pgprot_t) { (x) } ) macro
105 #define pte_pgprot(x) __pgprot(pte_val(x) & PTE_FLAGS_MASK)
Dio.h350 return __ioremap_mode(offset, size, __pgprot(flags)); in ioremap_prot()
/linux-4.1.27/arch/powerpc/include/asm/
Dpte-common.h130 #define PAGE_NONE __pgprot(_PAGE_BASE)
131 #define PAGE_SHARED __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW)
132 #define PAGE_SHARED_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW | \
134 #define PAGE_COPY __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RO)
135 #define PAGE_COPY_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RO | \
137 #define PAGE_READONLY __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RO)
138 #define PAGE_READONLY_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RO | \
160 #define PAGE_KERNEL __pgprot(_PAGE_BASE | _PAGE_KERNEL_RW)
161 #define PAGE_KERNEL_NC __pgprot(_PAGE_BASE_NC | _PAGE_KERNEL_RW | \
163 #define PAGE_KERNEL_NCG __pgprot(_PAGE_BASE_NC | _PAGE_KERNEL_RW | \
[all …]
Dpgtable.h39 static inline pgprot_t pte_pgprot(pte_t pte) { return __pgprot(pte_val(pte) & PAGE_PROT_BITS); } in pte_pgprot()
187 #define pgprot_noncached(prot) (__pgprot((pgprot_val(prot) & ~_PAGE_CACHE_CTL) | \
190 #define pgprot_noncached_wc(prot) (__pgprot((pgprot_val(prot) & ~_PAGE_CACHE_CTL) | \
193 #define pgprot_cached(prot) (__pgprot((pgprot_val(prot) & ~_PAGE_CACHE_CTL) | \
196 #define pgprot_cached_wthru(prot) (__pgprot((pgprot_val(prot) & ~_PAGE_CACHE_CTL) | \
200 (__pgprot(pgprot_val(prot) & ~_PAGE_CACHE_CTL))
Dmman.h29 return (vm_flags & VM_SAO) ? __pgprot(_PAGE_SAO) : __pgprot(0); in arch_vm_get_page_prot()
Dpage.h322 #define __pgprot(x) ((pgprot_t) { (x) }) macro
359 #define __pgprot(x) (x) macro
Dpte-hash64-64k.h100 __pgprot(pgprot_val((prot)) | _PAGE_4K_PFN)))
/linux-4.1.27/arch/mips/mm/
Dcache.c160 …protection_map[0] = __pgprot(_page_cachable_default | _PAGE_PRESENT | _PAGE_NO_EXEC | _PAGE_NO_RE… in setup_protection_map()
161 protection_map[1] = __pgprot(_page_cachable_default | _PAGE_PRESENT | _PAGE_NO_EXEC); in setup_protection_map()
162 …protection_map[2] = __pgprot(_page_cachable_default | _PAGE_PRESENT | _PAGE_NO_EXEC | _PAGE_NO_RE… in setup_protection_map()
163 protection_map[3] = __pgprot(_page_cachable_default | _PAGE_PRESENT | _PAGE_NO_EXEC); in setup_protection_map()
164 protection_map[4] = __pgprot(_page_cachable_default | _PAGE_PRESENT | _PAGE_NO_READ); in setup_protection_map()
165 protection_map[5] = __pgprot(_page_cachable_default | _PAGE_PRESENT); in setup_protection_map()
166 protection_map[6] = __pgprot(_page_cachable_default | _PAGE_PRESENT | _PAGE_NO_READ); in setup_protection_map()
167 protection_map[7] = __pgprot(_page_cachable_default | _PAGE_PRESENT); in setup_protection_map()
169 …protection_map[8] = __pgprot(_page_cachable_default | _PAGE_PRESENT | _PAGE_NO_EXEC | _PAGE_NO_RE… in setup_protection_map()
170 protection_map[9] = __pgprot(_page_cachable_default | _PAGE_PRESENT | _PAGE_NO_EXEC); in setup_protection_map()
[all …]
Dioremap.c24 pgprot_t pgprot = __pgprot(_PAGE_GLOBAL | _PAGE_PRESENT | __READABLE in remap_area_pte()
/linux-4.1.27/arch/cris/include/arch-v32/arch/
Dmmu.h68 #define PAGE_NONE __pgprot(_PAGE_PRESENT | _PAGE_ACCESSED)
69 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | __READABLE | _PAGE_WRITE | \
71 #define PAGE_SHARED_EXEC __pgprot(_PAGE_PRESENT | __READABLE | _PAGE_WRITE | \
74 #define PAGE_READONLY __pgprot(_PAGE_PRESENT | __READABLE)
75 #define PAGE_READONLY_EXEC __pgprot(_PAGE_PRESENT | __READABLE | _PAGE_EXECUTE | _PAGE_ACCESSED)
77 #define PAGE_COPY __pgprot(_PAGE_PRESENT | __READABLE)
78 #define PAGE_COPY_EXEC __pgprot(_PAGE_PRESENT | __READABLE | _PAGE_EXECUTE)
79 #define PAGE_KERNEL __pgprot(_PAGE_GLOBAL | _PAGE_KERNEL | \
81 #define PAGE_KERNEL_EXEC __pgprot(_PAGE_GLOBAL | _PAGE_KERNEL | _PAGE_EXECUTE | \
83 #define PAGE_SIGNAL_TRAMPOLINE __pgprot(_PAGE_GLOBAL | _PAGE_EXECUTE | \
/linux-4.1.27/arch/m32r/include/asm/
Dpgtable.h115 __pgprot(_PAGE_PROTNONE | _PAGE_ACCESSED)
117 __pgprot(_PAGE_PRESENT | _PAGE_WRITE | _PAGE_READ | _PAGE_ACCESSED)
119 __pgprot(_PAGE_PRESENT | _PAGE_EXEC | _PAGE_WRITE | _PAGE_READ \
122 __pgprot(_PAGE_PRESENT | _PAGE_READ | _PAGE_ACCESSED)
124 __pgprot(_PAGE_PRESENT | _PAGE_EXEC | _PAGE_READ | _PAGE_ACCESSED)
126 __pgprot(_PAGE_PRESENT | _PAGE_READ | _PAGE_ACCESSED)
128 __pgprot(_PAGE_PRESENT | _PAGE_EXEC | _PAGE_READ | _PAGE_ACCESSED)
136 #define MAKE_GLOBAL(x) __pgprot((x) | _PAGE_GLOBAL)
143 #define PAGE_NONE __pgprot(0)
144 #define PAGE_SHARED __pgprot(0)
[all …]
Dpage.h42 #define __pgprot(x) ((pgprot_t) { (x) } ) macro
/linux-4.1.27/arch/arm/include/asm/
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)
66 #define pgprot_noncached(prot) __pgprot(0)
67 #define pgprot_writecombine(prot) __pgprot(0)
68 #define pgprot_dmacoherent(prot) __pgprot(0)
Dpgtable.h89 #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))
269 return set_pte_bit(pte, __pgprot(L_PTE_RDONLY)); in pte_wrprotect()
[all …]
Dpgtable-2level-types.h45 #define __pgprot(x) ((pgprot_t) { (x) } ) macro
63 #define __pgprot(x) (x) macro
Dpgtable-3level-types.h49 #define __pgprot(x) ((pgprot_t) { (x) } ) macro
66 #define __pgprot(x) (x) macro
Dpage-nommu.h44 #define __pgprot(x) (x) macro
/linux-4.1.27/arch/unicore32/include/asm/
Dpgtable.h89 #define PAGE_SHARED __pgprot(pgprot_val(pgprot_user | PTE_READ \
91 #define PAGE_SHARED_EXEC __pgprot(pgprot_val(pgprot_user | PTE_READ \
94 #define PAGE_COPY __pgprot(pgprot_val(pgprot_user | PTE_READ)
95 #define PAGE_COPY_EXEC __pgprot(pgprot_val(pgprot_user | PTE_READ \
97 #define PAGE_READONLY __pgprot(pgprot_val(pgprot_user | PTE_READ))
98 #define PAGE_READONLY_EXEC __pgprot(pgprot_val(pgprot_user | PTE_READ \
101 #define PAGE_KERNEL_EXEC __pgprot(pgprot_val(pgprot_kernel | PTE_EXEC))
103 #define __PAGE_NONE __pgprot(_PTE_DEFAULT)
104 #define __PAGE_SHARED __pgprot(_PTE_DEFAULT | PTE_READ \
106 #define __PAGE_SHARED_EXEC __pgprot(_PTE_DEFAULT | PTE_READ \
[all …]
Dpage.h47 #define __pgprot(x) ((pgprot_t) { (x) }) macro
63 #define __pgprot(x) (x) macro
/linux-4.1.27/arch/arm/mm/
Dpageattr.c71 __pgprot(L_PTE_RDONLY), in set_memory_ro()
72 __pgprot(0)); in set_memory_ro()
78 __pgprot(0), in set_memory_rw()
79 __pgprot(L_PTE_RDONLY)); in set_memory_rw()
85 __pgprot(L_PTE_XN), in set_memory_nx()
86 __pgprot(0)); in set_memory_nx()
92 __pgprot(0), in set_memory_x()
93 __pgprot(L_PTE_XN)); in set_memory_x()
Dcopypage-xscale.c26 #define minicache_pgprot __pgprot(L_PTE_PRESENT | L_PTE_YOUNG | \
Dcopypage-v4mc.c26 #define minicache_pgprot __pgprot(L_PTE_PRESENT | L_PTE_YOUNG | \
Dioremap.c110 __pgprot(mtype->prot_pte)); in ioremap_page()
323 __pgprot(type->prot_pte)); in __arm_ioremap_pfn_caller()
455 __pgprot(get_mem_type(pci_ioremap_mem_type)->prot_pte)); in pci_ioremap_io()
Dmmu.c614 protection_map[i] = __pgprot(v | user_pgprot); in build_mem_type_table()
620 pgprot_user = __pgprot(L_PTE_PRESENT | L_PTE_YOUNG | user_pgprot); in build_mem_type_table()
621 pgprot_kernel = __pgprot(L_PTE_PRESENT | L_PTE_YOUNG | in build_mem_type_table()
623 pgprot_s2 = __pgprot(L_PTE_PRESENT | L_PTE_YOUNG | s2_pgprot); in build_mem_type_table()
624 pgprot_s2_device = __pgprot(s2_device_pgprot); in build_mem_type_table()
625 pgprot_hyp_device = __pgprot(hyp_device_pgprot); in build_mem_type_table()
701 set_pte_ext(pte, pfn_pte(pfn, __pgprot(type->prot_pte)), 0); in alloc_init_pte()
Ddma-mapping.c587 #define __get_dma_pgprot(attrs, prot) __pgprot(0)
/linux-4.1.27/arch/x86/include/asm/
Dpgtable_types.h128 #define PAGE_NONE __pgprot(_PAGE_PROTNONE | _PAGE_ACCESSED)
129 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_RW | _PAGE_USER | \
132 #define PAGE_SHARED_EXEC __pgprot(_PAGE_PRESENT | _PAGE_RW | \
134 #define PAGE_COPY_NOEXEC __pgprot(_PAGE_PRESENT | _PAGE_USER | \
136 #define PAGE_COPY_EXEC __pgprot(_PAGE_PRESENT | _PAGE_USER | \
139 #define PAGE_READONLY __pgprot(_PAGE_PRESENT | _PAGE_USER | \
141 #define PAGE_READONLY_EXEC __pgprot(_PAGE_PRESENT | _PAGE_USER | \
159 #define PAGE_KERNEL __pgprot(__PAGE_KERNEL)
160 #define PAGE_KERNEL_RO __pgprot(__PAGE_KERNEL_RO)
161 #define PAGE_KERNEL_EXEC __pgprot(__PAGE_KERNEL_EXEC)
[all …]
Dpgtable.h14 ? (__pgprot(pgprot_val(prot) | \
379 return __pgprot(preservebits | addbits); in pgprot_modify()
382 #define pte_pgprot(x) __pgprot(pte_flags(x) & PTE_FLAGS_MASK)
384 #define canon_pgprot(p) __pgprot(massage_pgprot(p))
Dfixmap.h164 #define __late_clear_fixmap(idx) __set_fixmap(idx, 0, __pgprot(0))
/linux-4.1.27/arch/arm64/mm/
Dpageattr.c76 __pgprot(PTE_RDONLY), in set_memory_ro()
77 __pgprot(PTE_WRITE)); in set_memory_ro()
83 __pgprot(PTE_WRITE), in set_memory_rw()
84 __pgprot(PTE_RDONLY)); in set_memory_rw()
90 __pgprot(PTE_PXN), in set_memory_nx()
91 __pgprot(0)); in set_memory_nx()
98 __pgprot(0), in set_memory_x()
99 __pgprot(PTE_PXN)); in set_memory_x()
Dioremap.c102 return __ioremap_caller(phys_addr, size, __pgprot(PROT_NORMAL), in ioremap_cache()
Ddma-mapping.c175 __pgprot(PROT_NORMAL_NC), false), in __dma_alloc()
358 pgprot_t prot = __pgprot(PROT_NORMAL_NC); in atomic_pool_init()
Dmmu.c115 pgprot_t prot = __pgprot(pud_val(*old_pud) ^ addr); in split_pud()
/linux-4.1.27/arch/m68k/include/asm/
Dmcf_pgtable.h62 #define PAGE_NONE __pgprot(CF_PAGE_VALID \
65 #define PAGE_SHARED __pgprot(CF_PAGE_VALID \
69 #define PAGE_INIT __pgprot(CF_PAGE_VALID \
75 #define PAGE_KERNEL __pgprot(CF_PAGE_VALID \
83 #define PAGE_COPY __pgprot(CF_PAGE_VALID \
94 #define __P001 __pgprot(CF_PAGE_VALID \
97 #define __P010 __pgprot(CF_PAGE_VALID \
100 #define __P011 __pgprot(CF_PAGE_VALID \
104 #define __P100 __pgprot(CF_PAGE_VALID \
107 #define __P101 __pgprot(CF_PAGE_VALID \
[all …]
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)
Dpgtable_mm.h155 # define pgprot_noncached(prot) (__pgprot(pgprot_val(prot) | CF_PAGE_NOCACHE))
164 ? (__pgprot(pgprot_val(prot) | __SUN3_PAGE_NOCACHE)) \
166 ? (__pgprot(pgprot_val(prot) | _PAGE_NOCACHE030)) \
168 ? (__pgprot((pgprot_val(prot) & _CACHEMASK040) | _PAGE_NOCACHE_S)) \
Dmotorola_pgtable.h61 #define PAGE_NONE __pgprot(_PAGE_PROTNONE | _PAGE_ACCESSED | mm_cachebits)
62 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_ACCESSED | mm_cachebits)
63 #define PAGE_COPY __pgprot(_PAGE_PRESENT | _PAGE_RONLY | _PAGE_ACCESSED | mm_cachebits)
64 #define PAGE_READONLY __pgprot(_PAGE_PRESENT | _PAGE_RONLY | _PAGE_ACCESSED | mm_cachebits)
65 #define PAGE_KERNEL __pgprot(_PAGE_PRESENT | _PAGE_DIRTY | _PAGE_ACCESSED | mm_cachebits)
69 #define PAGE_NONE_C __pgprot(_PAGE_PROTNONE | _PAGE_ACCESSED)
70 #define PAGE_SHARED_C __pgprot(_PAGE_PRESENT | _PAGE_ACCESSED)
71 #define PAGE_COPY_C __pgprot(_PAGE_PRESENT | _PAGE_RONLY | _PAGE_ACCESSED)
72 #define PAGE_READONLY_C __pgprot(_PAGE_PRESENT | _PAGE_RONLY | _PAGE_ACCESSED)
Dsun3_pgtable.h44 #define PAGE_NONE __pgprot(SUN3_PAGE_VALID \
47 #define PAGE_SHARED __pgprot(SUN3_PAGE_VALID \
51 #define PAGE_COPY __pgprot(SUN3_PAGE_VALID \
54 #define PAGE_READONLY __pgprot(SUN3_PAGE_VALID \
57 #define PAGE_KERNEL __pgprot(SUN3_PAGE_VALID \
63 #define PAGE_INIT __pgprot(SUN3_PAGE_VALID \
Dpage.h37 #define __pgprot(x) ((pgprot_t) { (x) } ) macro
/linux-4.1.27/arch/mips/include/asm/
Dpgtable.h26 #define PAGE_NONE __pgprot(_PAGE_PRESENT | _CACHE_CACHABLE_NONCOHERENT)
27 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_WRITE | _PAGE_READ | \
29 #define PAGE_COPY __pgprot(_PAGE_PRESENT | _PAGE_READ | _PAGE_NO_EXEC | \
31 #define PAGE_READONLY __pgprot(_PAGE_PRESENT | _PAGE_READ | \
33 #define PAGE_KERNEL __pgprot(_PAGE_PRESENT | __READABLE | __WRITEABLE | \
35 #define PAGE_KERNEL_NC __pgprot(_PAGE_PRESENT | __READABLE | __WRITEABLE | \
37 #define PAGE_USERIO __pgprot(_PAGE_PRESENT | _PAGE_READ | _PAGE_WRITE | \
39 #define PAGE_KERNEL_UNCACHED __pgprot(_PAGE_PRESENT | __READABLE | \
53 #define __P000 __pgprot(0)
54 #define __P001 __pgprot(0)
[all …]
Dpage.h151 #define __pgprot(x) ((pgprot_t) { (x) } ) macro
/linux-4.1.27/arch/hexagon/include/asm/
Dpgtable.h121 #define PAGE_NONE __pgprot(_PAGE_PRESENT | _PAGE_USER | \
123 #define PAGE_READONLY __pgprot(_PAGE_PRESENT | _PAGE_USER | \
126 #define PAGE_EXEC __pgprot(_PAGE_PRESENT | _PAGE_USER | \
129 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_READ | \
131 #define PAGE_KERNEL __pgprot(_PAGE_PRESENT | _PAGE_READ | \
145 #define __P000 __pgprot(_PAGE_PRESENT | _PAGE_USER | CACHEDEF)
146 #define __P001 __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_READ | CACHEDEF)
149 #define __P100 __pgprot(_PAGE_PRESENT | _PAGE_USER | \
151 #define __P101 __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_EXECUTE | \
159 #define __S010 __pgprot(_PAGE_PRESENT | _PAGE_USER | \
[all …]
Dpage.h92 #define __pgprot(x) ((pgprot_t) { (x) }) macro
/linux-4.1.27/arch/xtensa/include/asm/
Dpgtable.h158 #define PAGE_NONE __pgprot(_PAGE_NONE | _PAGE_USER)
159 #define PAGE_COPY __pgprot(_PAGE_PRESENT | _PAGE_USER)
160 #define PAGE_COPY_EXEC __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_HW_EXEC)
161 #define PAGE_READONLY __pgprot(_PAGE_PRESENT | _PAGE_USER)
162 #define PAGE_READONLY_EXEC __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_HW_EXEC)
163 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_WRITABLE)
165 __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_WRITABLE | _PAGE_HW_EXEC)
166 #define PAGE_KERNEL __pgprot(_PAGE_PRESENT | _PAGE_HW_WRITE)
167 #define PAGE_KERNEL_EXEC __pgprot(_PAGE_PRESENT|_PAGE_HW_WRITE|_PAGE_HW_EXEC)
178 # define PAGE_NONE __pgprot(0)
[all …]
Dpage.h97 #define __pgprot(x) (x) macro
116 #define __pgprot(x) ((pgprot_t) { (x) } ) macro
/linux-4.1.27/arch/arm64/include/asm/
Dpgtable.h76 #define PAGE_KERNEL __pgprot(_PAGE_DEFAULT | PTE_PXN | PTE_UXN | PTE_DIRTY | PTE_WRITE)
77 #define PAGE_KERNEL_EXEC __pgprot(_PAGE_DEFAULT | PTE_UXN | PTE_DIRTY | PTE_WRITE)
79 #define PAGE_HYP __pgprot(_PAGE_DEFAULT | PTE_HYP)
80 #define PAGE_HYP_DEVICE __pgprot(PROT_DEVICE_nGnRE | PTE_HYP)
82 #define PAGE_S2 __pgprot(PROT_DEFAULT | PTE_S2_MEMATTR(MT_S2_NORMAL) | PTE_S2_RDONLY)
83 #define PAGE_S2_DEVICE __pgprot(PROT_DEFAULT | PTE_S2_MEMATTR(MT_S2_DEVICE_nGnRE) | PTE_S2_RDONLY …
85 #define PAGE_NONE __pgprot(((_PAGE_DEFAULT) & ~PTE_VALID) | PTE_PROT_NONE | PTE_PXN | PTE_UXN)
86 #define PAGE_SHARED __pgprot(_PAGE_DEFAULT | PTE_USER | PTE_NG | PTE_PXN | PTE_UXN | PTE_WRITE)
87 #define PAGE_SHARED_EXEC __pgprot(_PAGE_DEFAULT | PTE_USER | PTE_NG | PTE_PXN | PTE_WRITE)
88 #define PAGE_COPY __pgprot(_PAGE_DEFAULT | PTE_USER | PTE_NG | PTE_PXN | PTE_UXN)
[all …]
Dpgtable-types.h59 #define __pgprot(x) ((pgprot_t) { (x) } ) macro
85 #define __pgprot(x) (x) macro
Dio.h170 #define ioremap(addr, size) __ioremap((addr), (size), __pgprot(PROT_DEVICE_nGnRE))
171 #define ioremap_nocache(addr, size) __ioremap((addr), (size), __pgprot(PROT_DEVICE_nGnRE))
172 #define ioremap_wc(addr, size) __ioremap((addr), (size), __pgprot(PROT_NORMAL_NC))
Dfixmap.h59 #define FIXMAP_PAGE_IO __pgprot(PROT_DEVICE_nGnRE)
/linux-4.1.27/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 …]
Dpage.h116 # define __pgprot(x) ((pgprot_t) { (x) }) macro
/linux-4.1.27/arch/mn10300/include/asm/
Dpgtable.h159 #define PAGE_NONE __pgprot(__PAGE_NONE | _PAGE_NX)
160 #define PAGE_SHARED_NOEXEC __pgprot(__PAGE_SHARED | _PAGE_NX)
161 #define PAGE_COPY_NOEXEC __pgprot(__PAGE_COPY | _PAGE_NX)
162 #define PAGE_READONLY_NOEXEC __pgprot(__PAGE_READONLY | _PAGE_NX)
163 #define PAGE_SHARED_EXEC __pgprot(__PAGE_SHARED)
164 #define PAGE_COPY_EXEC __pgprot(__PAGE_COPY)
165 #define PAGE_READONLY_EXEC __pgprot(__PAGE_READONLY)
179 #define PAGE_KERNEL __pgprot(__PAGE_KERNEL)
180 #define PAGE_KERNEL_RO __pgprot(__PAGE_KERNEL_RO)
181 #define PAGE_KERNEL_EXEC __pgprot(__PAGE_KERNEL_EXEC)
[all …]
Dpage.h58 #define __pgprot(x) ((pgprot_t) { (x) }) macro
/linux-4.1.27/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-4.1.27/arch/ia64/include/asm/
Dpgtable.h137 #define PAGE_NONE __pgprot(_PAGE_PROTNONE | _PAGE_A)
138 #define PAGE_SHARED __pgprot(__ACCESS_BITS | _PAGE_PL_3 | _PAGE_AR_RW)
139 #define PAGE_READONLY __pgprot(__ACCESS_BITS | _PAGE_PL_3 | _PAGE_AR_R)
140 #define PAGE_COPY __pgprot(__ACCESS_BITS | _PAGE_PL_3 | _PAGE_AR_R)
141 #define PAGE_COPY_EXEC __pgprot(__ACCESS_BITS | _PAGE_PL_3 | _PAGE_AR_RX)
142 #define PAGE_GATE __pgprot(__ACCESS_BITS | _PAGE_PL_0 | _PAGE_AR_X_RX)
143 #define PAGE_KERNEL __pgprot(__DIRTY_BITS | _PAGE_PL_0 | _PAGE_AR_RWX)
144 #define PAGE_KERNELRX __pgprot(__ACCESS_BITS | _PAGE_PL_0 | _PAGE_AR_RX)
145 #define PAGE_KERNEL_UC __pgprot(__DIRTY_BITS | _PAGE_PL_0 | _PAGE_AR_RWX | \
168 #define __P100 __pgprot(__ACCESS_BITS | _PAGE_PL_3 | _PAGE_AR_X_RX)
[all …]
Dpage.h193 # define __pgprot(x) ((pgprot_t) { (x) } ) macro
214 # define __pgprot(x) (x) macro
/linux-4.1.27/arch/cris/include/arch-v10/arch/
Dmmu.h74 #define PAGE_NONE __pgprot(_PAGE_PRESENT | _PAGE_ACCESSED)
75 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | __READABLE | _PAGE_WRITE | \
77 #define PAGE_COPY __pgprot(_PAGE_PRESENT | __READABLE) // | _PAGE_COW
78 #define PAGE_READONLY __pgprot(_PAGE_PRESENT | __READABLE)
79 #define PAGE_KERNEL __pgprot(_PAGE_GLOBAL | _PAGE_KERNEL | \
/linux-4.1.27/arch/blackfin/include/asm/
Dpgtable.h33 #define PAGE_NONE __pgprot(0) /* these mean nothing to NO_MM */
34 #define PAGE_SHARED __pgprot(0) /* these mean nothing to NO_MM */
35 #define PAGE_COPY __pgprot(0) /* these mean nothing to NO_MM */
36 #define PAGE_READONLY __pgprot(0) /* these mean nothing to NO_MM */
37 #define PAGE_KERNEL __pgprot(0) /* these mean nothing to NO_MM */
/linux-4.1.27/arch/sparc/include/asm/
Dpgtsrmmu.h106 #define SRMMU_PAGE_NONE __pgprot(SRMMU_CACHE | \
108 #define SRMMU_PAGE_SHARED __pgprot(SRMMU_VALID | SRMMU_CACHE | \
110 #define SRMMU_PAGE_COPY __pgprot(SRMMU_VALID | SRMMU_CACHE | \
112 #define SRMMU_PAGE_RDONLY __pgprot(SRMMU_VALID | SRMMU_CACHE | \
114 #define SRMMU_PAGE_KERNEL __pgprot(SRMMU_VALID | SRMMU_CACHE | SRMMU_PRIV | \
Dpgtable_64.h192 #define __P000 __pgprot(0)
193 #define __P001 __pgprot(0)
194 #define __P010 __pgprot(0)
195 #define __P011 __pgprot(0)
196 #define __P100 __pgprot(0)
197 #define __P101 __pgprot(0)
198 #define __P110 __pgprot(0)
199 #define __P111 __pgprot(0)
201 #define __S000 __pgprot(0)
202 #define __S001 __pgprot(0)
[all …]
Dpage_32.h75 #define __pgprot(x) ((pgprot_t) { (x) } ) macro
103 #define __pgprot(x) (x) macro
114 #define __pgprot(x) (x) macro
Dpage_64.h76 #define __pgprot(x) ((pgprot_t) { (x) } ) macro
99 #define __pgprot(x) (x) macro
Dpgtable_32.h301 prot &= ~__pgprot(SRMMU_CACHE); in pgprot_noncached()
/linux-4.1.27/arch/openrisc/include/asm/
Dpgtable.h162 #define PAGE_NONE __pgprot(_PAGE_ALL)
163 #define PAGE_READONLY __pgprot(_PAGE_ALL | _PAGE_URE | _PAGE_SRE)
164 #define PAGE_READONLY_X __pgprot(_PAGE_ALL | _PAGE_URE | _PAGE_SRE | _PAGE_EXEC)
166 __pgprot(_PAGE_ALL | _PAGE_URE | _PAGE_SRE | _PAGE_UWE | _PAGE_SWE \
169 __pgprot(_PAGE_ALL | _PAGE_URE | _PAGE_SRE | _PAGE_UWE | _PAGE_SWE \
171 #define PAGE_COPY __pgprot(_PAGE_ALL | _PAGE_URE | _PAGE_SRE)
172 #define PAGE_COPY_X __pgprot(_PAGE_ALL | _PAGE_URE | _PAGE_SRE | _PAGE_EXEC)
175 __pgprot(_PAGE_ALL | _PAGE_SRE | _PAGE_SWE \
178 __pgprot(_PAGE_ALL | _PAGE_SRE \
181 __pgprot(_PAGE_ALL | _PAGE_SRE | _PAGE_SWE \
Dio.h48 __pgprot(pgprot_val(PAGE_KERNEL) | _PAGE_CI)); in ioremap_nocache()
Dpage.h72 #define __pgprot(x) ((pgprot_t) { (x) }) macro
/linux-4.1.27/arch/parisc/include/asm/
Dpgtable.h224 #define PAGE_NONE __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_ACCESSED)
225 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_READ | _PAGE_WRITE | _PAGE_ACCESSED)
229 #define PAGE_READONLY __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_READ | _PAGE_ACCESSED)
230 #define PAGE_WRITEONLY __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_WRITE | _PAGE_ACCESSED)
231 #define PAGE_EXECREAD __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_READ | _PAGE_EXEC |_PAGE_ACCESS…
233 #define PAGE_RWX __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_READ | _PAGE_WRITE | _PAGE_EXEC…
234 #define PAGE_KERNEL __pgprot(_PAGE_KERNEL)
235 #define PAGE_KERNEL_EXEC __pgprot(_PAGE_KERNEL_EXEC)
236 #define PAGE_KERNEL_RWX __pgprot(_PAGE_KERNEL_RWX)
237 #define PAGE_KERNEL_RO __pgprot(_PAGE_KERNEL_RO)
[all …]
Dpage.h57 #define __pgprot(x) ((pgprot_t) { (x) } ) macro
79 #define __pgprot(x) (x) macro
/linux-4.1.27/arch/arc/include/asm/
Dpgtable.h102 #define PAGE_U_NONE __pgprot(___DEF)
103 #define PAGE_U_R __pgprot(___DEF | _PAGE_READ)
104 #define PAGE_U_W_R __pgprot(___DEF | _PAGE_READ | _PAGE_WRITE)
105 #define PAGE_U_X_R __pgprot(___DEF | _PAGE_READ | _PAGE_EXECUTE)
106 #define PAGE_U_X_W_R __pgprot(___DEF | _PAGE_READ | _PAGE_WRITE | \
115 #define PAGE_KERNEL __pgprot(_K_PAGE_PERMS | _PAGE_DEF_CACHEABLE)
118 #define PAGE_KERNEL_NO_CACHE __pgprot(_K_PAGE_PERMS)
312 #define pgprot_noncached(prot) (__pgprot(pgprot_val(prot) & ~_PAGE_CACHEABLE))
Dpage.h54 #define __pgprot(x) ((pgprot_t) { (x) }) macro
56 #define pte_pgprot(x) __pgprot(pte_val(x))
69 #define __pgprot(x) (x) macro
/linux-4.1.27/arch/frv/include/asm/
Dpgtable.h53 #define PAGE_NONE __pgprot(0) /* these mean nothing to NO_MM */
54 #define PAGE_SHARED __pgprot(0) /* these mean nothing to NO_MM */
55 #define PAGE_COPY __pgprot(0) /* these mean nothing to NO_MM */
56 #define PAGE_READONLY __pgprot(0) /* these mean nothing to NO_MM */
57 #define PAGE_KERNEL __pgprot(0) /* these mean nothing to NO_MM */
306 #define PAGE_NONE __pgprot(_PAGE_PROTNONE | _PAGE_ACCESSED)
307 #define PAGE_SHARED __pgprot(__PGPROT_BASE)
308 #define PAGE_COPY __pgprot(__PGPROT_BASE | _PAGE_WP)
309 #define PAGE_READONLY __pgprot(__PGPROT_BASE | _PAGE_WP)
315 #define MAKE_GLOBAL(x) __pgprot((x) & ~_PAGE_NOTGLOBAL)
[all …]
Dpage.h40 #define __pgprot(x) ((pgprot_t) { (x) } ) macro
/linux-4.1.27/arch/tile/include/asm/
Dpgtable.h102 __pgprot(_PAGE_PRESENT | _PAGE_ACCESSED)
104 __pgprot(_PAGE_PRESENT | _PAGE_READABLE | _PAGE_WRITABLE | \
108 __pgprot(_PAGE_PRESENT | _PAGE_READABLE | _PAGE_WRITABLE | \
111 __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_ACCESSED | _PAGE_READABLE)
113 __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_ACCESSED | \
118 __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_ACCESSED | _PAGE_READABLE)
120 __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_ACCESSED | \
129 #define PAGE_KERNEL __pgprot(_PAGE_KERNEL)
130 #define PAGE_KERNEL_RO __pgprot(_PAGE_KERNEL_RO)
131 #define PAGE_KERNEL_EXEC __pgprot(_PAGE_KERNEL_EXEC)
Dpgalloc.h54 __pgprot(_PAGE_PRESENT))); in pmd_populate_kernel()
61 __pgprot(_PAGE_PRESENT))); in pmd_populate()
Dpage.h96 #define __pgprot(val) hv_pte(val) macro
/linux-4.1.27/arch/x86/mm/
Dpageattr.c255 pgprot_t forbidden = __pgprot(0); in static_protections()
319 prot = __pgprot(pgprot_val(prot) & ~pgprot_val(forbidden)); in static_protections()
664 __set_pmd_pte(kpte, address, mk_pte(base, __pgprot(_KERNPG_TABLE))); in __split_large_page()
1058 pgprot_t pgprot = __pgprot(_KERNPG_TABLE); in populate_pgd()
1442 return change_page_attr_set_clr(addr, numpages, mask, __pgprot(0), 0, in change_page_attr_set()
1449 return change_page_attr_set_clr(addr, numpages, __pgprot(0), mask, 0, in change_page_attr_clear()
1456 return change_page_attr_set_clr(NULL, numpages, mask, __pgprot(0), 0, in cpa_set_pages_array()
1463 return change_page_attr_set_clr(NULL, numpages, __pgprot(0), mask, 0, in cpa_clear_pages_array()
1526 __pgprot(_PAGE_CACHE_MASK), in _set_memory_array()
1564 __pgprot(_PAGE_CACHE_MASK), in _set_memory_wc()
[all …]
Ddump_pagetables.c298 note_page(m, st, __pgprot(prot), 3); in walk_pmd_level()
303 note_page(m, st, __pgprot(0), 3); in walk_pmd_level()
330 note_page(m, st, __pgprot(prot), 2); in walk_pud_level()
335 note_page(m, st, __pgprot(0), 2); in walk_pud_level()
368 note_page(m, &st, __pgprot(prot), 1); in ptdump_walk_pgd_level()
373 note_page(m, &st, __pgprot(0), 1); in ptdump_walk_pgd_level()
380 note_page(m, &st, __pgprot(0), 0); in ptdump_walk_pgd_level()
Diomap_32.c46 *prot = __pgprot(__PAGE_KERNEL | cachemode2protval(pcm)); in iomap_create_wc()
87 prot = __pgprot(__PAGE_KERNEL | in iomap_atomic_prot_pfn()
Dioremap.c164 prot = __pgprot(pgprot_val(prot) | in __ioremap_caller()
168 prot = __pgprot(pgprot_val(prot) | in __ioremap_caller()
172 prot = __pgprot(pgprot_val(prot) | in __ioremap_caller()
280 pgprot2cachemode(__pgprot(prot_val)), in ioremap_prot()
Dpat.c672 *vma_prot = __pgprot((pgprot_val(*vma_prot) & ~_PAGE_CACHE_MASK) | in phys_mem_access_prot_allowed()
743 *vma_prot = __pgprot((pgprot_val(*vma_prot) & in reserve_pfn_range()
771 *vma_prot = __pgprot((pgprot_val(*vma_prot) & in reserve_pfn_range()
819 pgprot = __pgprot(prot); in track_pfn_copy()
864 *prot = __pgprot((pgprot_val(vma->vm_page_prot) & (~_PAGE_CACHE_MASK)) | in track_pfn_remap()
880 *prot = __pgprot((pgprot_val(vma->vm_page_prot) & (~_PAGE_CACHE_MASK)) | in track_pfn_insert()
917 return __pgprot(pgprot_val(prot) | in pgprot_writecombine()
Dpageattr-test.c34 #define PAGE_CPA_TEST __pgprot(_PAGE_CPA_TEST)
144 pte0 = pfn_pte(0, __pgprot(0)); /* shut gcc up */ in pageattr_test()
Dpgtable.c582 __pgprot(pgprot_val(prot) | _PAGE_PSE))); in pud_set_huge()
603 __pgprot(pgprot_val(prot) | _PAGE_PSE))); in pmd_set_huge()
Dinit_32.c322 __pgprot(PTE_IDENT_ATTR | in kernel_physical_mapping_init()
353 pgprot_t init_prot = __pgprot(PTE_IDENT_ATTR); in kernel_physical_mapping_init()
Dinit_64.c504 __pgprot(pgprot_val(prot) | _PAGE_PSE))); in phys_pmd_init()
/linux-4.1.27/arch/metag/include/asm/
Dpgtable.h53 #define PAGE_NONE __pgprot(_PAGE_PRESENT | _PAGE_ACCESSED | \
56 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_WRITE | \
59 #define PAGE_COPY __pgprot(_PAGE_PRESENT | _PAGE_ACCESSED | \
63 #define PAGE_READONLY __pgprot(_PAGE_PRESENT | _PAGE_ACCESSED | \
65 #define PAGE_KERNEL __pgprot(_PAGE_PRESENT | _PAGE_DIRTY | \
143 __pgprot(pgprot_val(prot) & ~(_PAGE_CACHE_CTRL1 | _PAGE_CACHE_CTRL0))
146 __pgprot(pgprot_val(prot) & ~_PAGE_CACHEABLE)
Dpage.h85 #define __pgprot(x) ((pgprot_t) { (x) }) macro
/linux-4.1.27/arch/score/include/asm/
Dpgtable.h123 #define PAGE_NONE __pgprot(_PAGE_PRESENT | _PAGE_CACHE)
124 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_READ | _PAGE_WRITE | \
126 #define PAGE_COPY __pgprot(_PAGE_PRESENT | _PAGE_READ | _PAGE_CACHE)
127 #define PAGE_READONLY __pgprot(_PAGE_PRESENT | _PAGE_READ | _PAGE_CACHE)
128 #define PAGE_KERNEL __pgprot(_PAGE_PRESENT | __READABLE | __WRITEABLE | \
130 #define PAGE_KERNEL_UNCACHED __pgprot(_PAGE_PRESENT | __READABLE | \
159 return __pgprot(prot); in pgprot_noncached()
Dpage.h55 #define __pgprot(x) ((pgprot_t) { (x) }) macro
/linux-4.1.27/arch/um/include/asm/
Dpgtable.h60 #define PAGE_NONE __pgprot(_PAGE_PROTNONE | _PAGE_ACCESSED)
61 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_RW | _PAGE_USER | _PAGE_ACCESSED)
62 #define PAGE_COPY __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_ACCESSED)
63 #define PAGE_READONLY __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_ACCESSED)
64 #define PAGE_KERNEL __pgprot(_PAGE_PRESENT | _PAGE_RW | _PAGE_DIRTY | _PAGE_ACCESSED)
65 #define PAGE_KERNEL_EXEC __pgprot(__PAGE_KERNEL_EXEC)
97 #define pte_clear(mm,addr,xp) pte_set_val(*(xp), (phys_t) 0, __pgprot(_PAGE_NEWPAGE))
Dpage.h93 #define __pgprot(x) ((pgprot_t) { (x) } ) macro
/linux-4.1.27/arch/avr32/include/asm/
Dpgtable.h135 #define _PAGE_NORMAL(x) __pgprot((x) | _PAGE_PRESENT | _PAGE_TYPE_SMALL \
162 #define __P000 __pgprot(PAGE_NONE)
171 #define __S000 __pgprot(PAGE_NONE)
266 __pgprot(pgprot_val(prot) & ~(_PAGE_BUFFER | _PAGE_CACHABLE))
272 __pgprot((pgprot_val(prot) & ~_PAGE_CACHABLE) | _PAGE_BUFFER)
289 #define page_pte(page) page_pte_prot(page, __pgprot(0))
Dfb.h11 vma->vm_page_prot = __pgprot((pgprot_val(vma->vm_page_prot) in fb_pgprotect()
Dpage.h43 #define __pgprot(x) ((pgprot_t) { (x) }) macro
/linux-4.1.27/arch/alpha/include/asm/
Dpgtable.h100 #define PAGE_NONE __pgprot(_PAGE_VALID | __ACCESS_BITS | _PAGE_FOR | _PAGE_FOW | _PAGE_FOE)
101 #define PAGE_SHARED __pgprot(_PAGE_VALID | __ACCESS_BITS)
102 #define PAGE_COPY __pgprot(_PAGE_VALID | __ACCESS_BITS | _PAGE_FOW)
103 #define PAGE_READONLY __pgprot(_PAGE_VALID | __ACCESS_BITS | _PAGE_FOW)
104 #define PAGE_KERNEL __pgprot(_PAGE_VALID | _PAGE_ASM | _PAGE_KRE | _PAGE_KWE)
106 #define _PAGE_NORMAL(x) __pgprot(_PAGE_VALID | __ACCESS_BITS | (x))
Dpage.h43 #define __pgprot(x) ((pgprot_t) { (x) } ) macro
61 #define __pgprot(x) (x) macro
/linux-4.1.27/arch/nios2/include/asm/
Dpgtable.h35 #define MKP(x, w, r) __pgprot(_PAGE_PRESENT | _PAGE_CACHED | \
65 #define PAGE_KERNEL __pgprot(_PAGE_PRESENT | _PAGE_CACHED | _PAGE_READ | \
68 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_CACHED | _PAGE_READ | \
125 return __pgprot(prot); in pgprot_noncached()
Dprocessor.h60 { &init_mm, (0), (0), __pgprot(0x0), VM_READ | VM_WRITE | VM_EXEC }
Dpage.h71 #define __pgprot(x) ((pgprot_t) { (x) }) macro
/linux-4.1.27/arch/sparc/mm/
Dinit_64.c1631 (enable ? PAGE_KERNEL : __pgprot(0)), false); in __kernel_map_pages()
2404 PAGE_COPY = __pgprot(page_copy); in prot_init_common()
2405 PAGE_SHARED = __pgprot(page_shared); in prot_init_common()
2407 protection_map[0x0] = __pgprot(page_none); in prot_init_common()
2408 protection_map[0x1] = __pgprot(page_readonly & ~page_exec_bit); in prot_init_common()
2409 protection_map[0x2] = __pgprot(page_copy & ~page_exec_bit); in prot_init_common()
2410 protection_map[0x3] = __pgprot(page_copy & ~page_exec_bit); in prot_init_common()
2411 protection_map[0x4] = __pgprot(page_readonly); in prot_init_common()
2412 protection_map[0x5] = __pgprot(page_readonly); in prot_init_common()
2413 protection_map[0x6] = __pgprot(page_copy); in prot_init_common()
[all …]
Dhighmem.c48 kmap_prot = __pgprot(SRMMU_ET_PTE | SRMMU_PRIV | SRMMU_CACHE); in kmap_init()
Diommu.c445 dvma_prot = __pgprot(SRMMU_CACHE | SRMMU_ET_PTE | SRMMU_PRIV); in ld_mmu_iommu()
448 dvma_prot = __pgprot(SRMMU_ET_PTE | SRMMU_PRIV); in ld_mmu_iommu()
Dio-unit.c212 dvma_prot = __pgprot(SRMMU_CACHE | SRMMU_ET_PTE | SRMMU_PRIV); in iounit_map_dma_area()
/linux-4.1.27/arch/unicore32/mm/
Dioremap.c52 __pgprot(mtype->prot_pte)); in ioremap_page()
173 __pgprot(type->prot_pte)); in __uc32_ioremap_pfn_caller()
Dmmu.c137 pgprot_user = __pgprot(PTE_PRESENT | PTE_YOUNG | PTE_CACHEABLE); in build_mem_type_table()
138 pgprot_kernel = __pgprot(PTE_PRESENT | PTE_YOUNG | in build_mem_type_table()
169 set_pte(pte, pfn_pte(pfn, __pgprot(type->prot_pte))); in alloc_init_pte()
/linux-4.1.27/arch/hexagon/mm/
Dioremap.c31 pgprot_t prot = __pgprot(_PAGE_PRESENT|_PAGE_READ|_PAGE_WRITE in ioremap_nocache()
/linux-4.1.27/arch/s390/include/asm/
Dpgtable.h339 #define PAGE_NONE __pgprot(_PAGE_PRESENT | _PAGE_INVALID)
340 #define PAGE_READ __pgprot(_PAGE_PRESENT | _PAGE_READ | \
342 #define PAGE_WRITE __pgprot(_PAGE_PRESENT | _PAGE_READ | _PAGE_WRITE | \
345 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_READ | _PAGE_WRITE | \
347 #define PAGE_KERNEL __pgprot(_PAGE_PRESENT | _PAGE_READ | _PAGE_WRITE | \
349 #define PAGE_KERNEL_RO __pgprot(_PAGE_PRESENT | _PAGE_READ | _PAGE_YOUNG | \
379 #define SEGMENT_NONE __pgprot(_SEGMENT_ENTRY_INVALID | \
381 #define SEGMENT_READ __pgprot(_SEGMENT_ENTRY_PROTECT | \
383 #define SEGMENT_WRITE __pgprot(_SEGMENT_ENTRY_READ | \
Dpage.h90 #define __pgprot(x) ((pgprot_t) { (x) } ) macro
/linux-4.1.27/arch/x86/kernel/
Dcrash_dump_32.c27 return pte_pfn(pfn_pte(pfn, __pgprot(0))) == pfn; in is_crashed_pfn_valid()
/linux-4.1.27/arch/cris/mm/
Dioremap.c66 __pgprot(_PAGE_PRESENT | __READABLE | in __ioremap()
/linux-4.1.27/include/linux/
Dmman.h42 #define arch_vm_get_page_prot(vm_flags) __pgprot(0)
Dmm.h2019 return __pgprot(0); in vm_get_page_prot()
/linux-4.1.27/arch/metag/mm/
Dioremap.c52 prot = __pgprot(_PAGE_PRESENT | _PAGE_WRITE | _PAGE_DIRTY | in __ioremap()
/linux-4.1.27/arch/arc/mm/
Dioremap.c47 pgprot_t prot = __pgprot(flags); in ioremap_prot()
/linux-4.1.27/arch/avr32/mm/
Dioremap.c56 prot = __pgprot(_PAGE_PRESENT | _PAGE_GLOBAL | _PAGE_RW | _PAGE_DIRTY in __ioremap()
/linux-4.1.27/include/asm-generic/
Dfixmap.h56 #define FIXMAP_PAGE_CLEAR __pgprot(0)
Dpage.h61 #define __pgprot(x) ((pgprot_t) { (x) } ) macro
/linux-4.1.27/arch/parisc/mm/
Dioremap.c66 pgprot = __pgprot(_PAGE_PRESENT | _PAGE_RW | _PAGE_DIRTY | in __ioremap()
/linux-4.1.27/arch/m32r/mm/
Dioremap.c77 pgprot = __pgprot(_PAGE_GLOBAL | _PAGE_PRESENT | _PAGE_READ in __ioremap()
/linux-4.1.27/arch/cris/include/asm/
Dpage.h38 #define __pgprot(x) ((pgprot_t) { (x) } ) macro
Dpgtable.h199 #define pgprot_noncached(prot) __pgprot((pgprot_val(prot) | _PAGE_NO_CACHE))
/linux-4.1.27/arch/sh/mm/
Dioremap_fixed.c125 __clear_fixmap(idx, __pgprot(_PAGE_WIRED)); in iounmap_fixed()
Dinit.c98 set_pte(pte, pfn_pte(0, __pgprot(0))); in clear_pte_phys()
/linux-4.1.27/arch/cris/arch-v32/drivers/pci/
Dbios.c26 vma->vm_page_prot = __pgprot(prot); in pci_mmap_page_range()
/linux-4.1.27/arch/powerpc/mm/
Dpgtable_32.c306 __pgprot(flags))); in map_page()
444 change_page_attr(page, numpages, enable ? PAGE_KERNEL : __pgprot(0)); in __kernel_map_pages()
Dpgtable_64.c110 __pgprot(flags))); in map_kernel_page()
135 __pgprot(flags))); in map_kernel_page()
/linux-4.1.27/drivers/gpu/drm/
Ddrm_memory.c47 # define PAGE_AGP __pgprot(_PAGE_KERNEL | _PAGE_NO_CACHE)
Ddrm_vm.c504 __pgprot(pte_val in drm_mmap_dma()
588 __pgprot(pte_val in drm_mmap_locked()
/linux-4.1.27/arch/mips/loongson/common/
Dmem.c122 return __pgprot((pgprot_val(vma_prot) & in phys_mem_access_prot()
/linux-4.1.27/arch/nios2/mm/
Dioremap.c28 pgprot_t pgprot = __pgprot(_PAGE_GLOBAL | _PAGE_PRESENT | _PAGE_READ in remap_area_pte()
/linux-4.1.27/arch/um/kernel/skas/
Dmmu.c38 *pte = mk_pte(virt_to_page(kernel), __pgprot(_PAGE_PRESENT)); in init_stub_pte()
/linux-4.1.27/arch/mn10300/unit-asb2305/
Dpci-asb2305.c228 vma->vm_page_prot = __pgprot(prot); in pci_mmap_page_range()
/linux-4.1.27/drivers/lguest/
Dpage_tables.c238 return pfn_pte(pfn, __pgprot(flags)); in gpte_to_spte()
1211 set_pte(pte, mk_pte(regs_page, __pgprot(__PAGE_KERNEL & ~_PAGE_GLOBAL))); in map_switcher_in_guest()
1223 __pgprot(__PAGE_KERNEL_RO & ~_PAGE_GLOBAL))); in map_switcher_in_guest()
/linux-4.1.27/arch/alpha/kernel/
Dproto.h197 prot = __pgprot(_PAGE_VALID | _PAGE_ASM | _PAGE_KRE in __alpha_remap_area_pages()
/linux-4.1.27/arch/m68k/kernel/
Ddma.c53 pgprot = __pgprot(_PAGE_PRESENT | _PAGE_ACCESSED | _PAGE_DIRTY); in dma_alloc_coherent()
/linux-4.1.27/arch/tile/kernel/
Dmodule.c40 pgprot_t prot_rwx = __pgprot(_PAGE_KERNEL | _PAGE_KERNEL_EXEC); in module_alloc()
/linux-4.1.27/arch/microblaze/mm/
Dpgtable.c152 __pgprot(flags))); in map_page()
/linux-4.1.27/arch/parisc/kernel/
Dpci.c244 vma->vm_page_prot = __pgprot(prot); in pci_mmap_page_range()
/linux-4.1.27/arch/arm/lib/
Duaccess_with_memcpy.c231 user_ptr = vmap(&dst_page, 1, VM_IOREMAP, __pgprot(__P010));
/linux-4.1.27/arch/arm64/kernel/
Defi.c259 prot = __pgprot(PROT_DEVICE_nGnRE); in efi_virtmap_init()
/linux-4.1.27/arch/mips/pci/
Dpci.c343 vma->vm_page_prot = __pgprot(prot); in pci_mmap_page_range()
/linux-4.1.27/arch/xtensa/kernel/
Dpci.c352 vma->vm_page_prot = __pgprot(prot); in __pci_mmap_set_pgprot()
/linux-4.1.27/arch/x86/pci/
Di386.c445 vma->vm_page_prot = __pgprot(prot); in pci_mmap_page_range()
/linux-4.1.27/arch/ia64/mm/
Dinit.c140 vma->vm_page_prot = __pgprot(pgprot_val(PAGE_READONLY) | _PAGE_MA_NAT); in ia64_init_addr_space()
/linux-4.1.27/arch/tile/mm/
Dinit.c122 pte_t pteval = hv_pte_set_ptfn(__pgprot(_PAGE_TABLE), l2_ptfn); in assign_pte()
/linux-4.1.27/arch/x86/xen/
Dmmu.c2168 #define VOID_PTE (mfn_pte(0, __pgprot(0)))
/linux-4.1.27/mm/
Dmmap.c86 return __pgprot(pgprot_val(protection_map[vm_flags & in vm_get_page_prot()