Home
last modified time | relevance | path

Searched refs:_PAGE_USER (Results 1 – 25 of 41) sorted by relevance

12

/Linux-v6.1/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 …]
/Linux-v6.1/arch/loongarch/mm/
Dcache.c163 [VM_NONE] = __pgprot(_CACHE_CC | _PAGE_USER |
167 _PAGE_USER | _PAGE_PRESENT |
170 _PAGE_USER | _PAGE_PRESENT |
173 _PAGE_USER | _PAGE_PRESENT |
176 _PAGE_USER | _PAGE_PRESENT),
178 _PAGE_USER | _PAGE_PRESENT),
180 _PAGE_USER | _PAGE_PRESENT),
182 _PAGE_USER | _PAGE_PRESENT),
183 [VM_SHARED] = __pgprot(_CACHE_CC | _PAGE_USER |
187 _PAGE_USER | _PAGE_PRESENT |
[all …]
/Linux-v6.1/arch/powerpc/include/asm/nohash/
Dpte-e500.h57 #define _PAGE_USER (_PAGE_BAP_UR | _PAGE_BAP_SR) /* Can be read */ macro
95 #define PAGE_SHARED __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW)
96 #define PAGE_SHARED_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW | _PAGE_BAP_UX)
97 #define PAGE_COPY __pgprot(_PAGE_BASE | _PAGE_USER)
98 #define PAGE_COPY_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_BAP_UX)
99 #define PAGE_READONLY __pgprot(_PAGE_BASE | _PAGE_USER)
100 #define PAGE_READONLY_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_BAP_UX)
105 return __pte((pte_val(pte) & ~_PAGE_USER) | _PAGE_PRIVILEGED); in pte_mkprivileged()
112 return __pte((pte_val(pte) & ~_PAGE_PRIVILEGED) | _PAGE_USER); in pte_mkuser()
Dpgtable.h71 return (pte_val(pte) & _PAGE_USER) == _PAGE_USER; in pte_user()
138 return __pte(pte_val(pte) & ~_PAGE_USER); in pte_mkprivileged()
145 return __pte(pte_val(pte) | _PAGE_USER); in pte_mkuser()
/Linux-v6.1/arch/powerpc/include/asm/nohash/32/
Dpte-40x.h45 #define _PAGE_USER 0x010 /* matches one of the zone permission bits */ macro
80 #define PAGE_SHARED __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW)
81 #define PAGE_SHARED_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW | _PAGE_EXEC)
82 #define PAGE_COPY __pgprot(_PAGE_BASE | _PAGE_USER)
83 #define PAGE_COPY_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_EXEC)
84 #define PAGE_READONLY __pgprot(_PAGE_BASE | _PAGE_USER)
85 #define PAGE_READONLY_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_EXEC)
Dpte-44x.h81 #define _PAGE_USER 0x00000040 /* S: User page */ macro
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-85xx.h21 #define _PAGE_USER 0x00002 /* S: User page (maps to UR) */ macro
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)
/Linux-v6.1/arch/xtensa/include/asm/
Dpgtable.h153 #define _PAGE_USER (1<<4) /* user access (ring=1) */ macro
166 #define PAGE_NONE __pgprot(_PAGE_NONE | _PAGE_USER)
167 #define PAGE_COPY __pgprot(_PAGE_PRESENT | _PAGE_USER)
168 #define PAGE_COPY_EXEC __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_HW_EXEC)
169 #define PAGE_READONLY __pgprot(_PAGE_PRESENT | _PAGE_USER)
170 #define PAGE_READONLY_EXEC __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_HW_EXEC)
171 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_WRITABLE)
173 __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_WRITABLE | _PAGE_HW_EXEC)
231 # define pte_none(pte) (pte_val(pte) == (_PAGE_CA_INVALID | _PAGE_USER))
240 do { update_pte(ptep, __pte(_PAGE_CA_INVALID | _PAGE_USER)); } while (0)
[all …]
/Linux-v6.1/arch/microblaze/include/asm/
Dpgtable.h150 #define _PAGE_USER 0x010 /* matches one of the zone permission bits */ macro
191 #define PAGE_READONLY __pgprot(_PAGE_BASE | _PAGE_USER)
192 #define PAGE_READONLY_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_EXEC)
193 #define PAGE_SHARED __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW)
195 __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW | _PAGE_EXEC)
196 #define PAGE_COPY __pgprot(_PAGE_BASE | _PAGE_USER)
197 #define PAGE_COPY_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_EXEC)
242 static inline int pte_read(pte_t pte) { return pte_val(pte) & _PAGE_USER; } in pte_read()
252 { pte_val(pte) &= ~_PAGE_USER; return pte; } in pte_rdprotect()
263 { pte_val(pte) |= _PAGE_USER; return pte; } in pte_mkread()
[all …]
/Linux-v6.1/arch/um/include/asm/
Dpgtable.h17 #define _PAGE_USER 0x040 macro
53 #define _PAGE_TABLE (_PAGE_PRESENT | _PAGE_RW | _PAGE_USER | _PAGE_ACCESSED | _PAGE_DIRTY)
59 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_RW | _PAGE_USER | _PAGE_ACCESSED)
60 #define PAGE_COPY __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_ACCESSED)
61 #define PAGE_READONLY __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_ACCESSED)
81 #define pmd_bad(x) ((pmd_val(x) & (~PAGE_MASK & ~_PAGE_USER)) != _KERNPG_TABLE)
119 return((pte_get_bits(pte, _PAGE_USER)) && in pte_read()
124 return((pte_get_bits(pte, _PAGE_USER)) && in pte_exec()
189 if (unlikely(pte_get_bits(pte, _PAGE_USER))) in pte_mkread()
191 pte_set_bits(pte, _PAGE_USER); in pte_mkread()
Dpgtable-3level.h56 #define pud_bad(x) ((pud_val(x) & (~PAGE_MASK & ~_PAGE_USER)) != _KERNPG_TABLE)
/Linux-v6.1/arch/hexagon/include/asm/
Dpgtable.h36 #define _PAGE_USER __HVM_PTE_U macro
106 #define PAGE_NONE __pgprot(_PAGE_PRESENT | _PAGE_USER | \
108 #define PAGE_READONLY __pgprot(_PAGE_PRESENT | _PAGE_USER | \
111 #define PAGE_EXEC __pgprot(_PAGE_PRESENT | _PAGE_USER | \
114 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_READ | \
143 ((pte_val(pte) & (_PAGE_EXECUTE | _PAGE_USER)) == \
144 (_PAGE_EXECUTE | _PAGE_USER))
/Linux-v6.1/arch/powerpc/include/asm/book3s/32/
Dpgtable.h23 #define _PAGE_USER 0x004 /* usermode access allowed */ macro
58 return pte_val(pte) & _PAGE_USER; in pte_user()
105 #define PAGE_SHARED __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW)
106 #define PAGE_SHARED_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW | _PAGE_EXEC)
107 #define PAGE_COPY __pgprot(_PAGE_BASE | _PAGE_USER)
108 #define PAGE_COPY_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_EXEC)
109 #define PAGE_READONLY __pgprot(_PAGE_BASE | _PAGE_USER)
110 #define PAGE_READONLY_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_EXEC)
501 return __pte(pte_val(pte) & ~_PAGE_USER); in pte_mkprivileged()
506 return __pte(pte_val(pte) | _PAGE_USER); in pte_mkuser()
/Linux-v6.1/arch/loongarch/include/asm/
Dpgtable-bits.h49 #define _PAGE_USER (PLV_USER << _PAGE_PLV_SHIFT) macro
75 _PAGE_USER | _CACHE_CC)
77 _PAGE_USER | _CACHE_CC)
78 #define PAGE_READONLY __pgprot(_PAGE_PRESENT | _PAGE_USER | _CACHE_CC)
/Linux-v6.1/arch/parisc/include/asm/
Dpgtable.h226 #define _PAGE_USER (1 << xlate_pabit(_PAGE_USER_BIT)) macro
252 #define PAGE_NONE __pgprot(_PAGE_PRESENT | _PAGE_USER)
253 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_READ | _PAGE_WRITE)
257 #define PAGE_READONLY __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_READ)
258 #define PAGE_WRITEONLY __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_WRITE)
259 #define PAGE_EXECREAD __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_READ | _PAGE_EXEC)
261 #define PAGE_RWX __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_READ | _PAGE_WRITE | _PAGE_EXEC)
267 #define PAGE_GATEWAY __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_GATEWAY| _PAGE_READ)
299 #define pte_user(x) (pte_val(x) & _PAGE_USER)
/Linux-v6.1/arch/powerpc/mm/ptdump/
Dshared.c14 .mask = _PAGE_USER,
15 .val = _PAGE_USER,
/Linux-v6.1/arch/x86/entry/vsyscall/
Dvsyscall_64.c366 set_pgd(pgd, __pgd(pgd_val(*pgd) | _PAGE_USER)); in set_vsyscall_pgtable_user_bits()
369 set_p4d(p4d, __p4d(p4d_val(*p4d) | _PAGE_USER)); in set_vsyscall_pgtable_user_bits()
372 set_pud(pud, __pud(pud_val(*pud) | _PAGE_USER)); in set_vsyscall_pgtable_user_bits()
374 set_pmd(pmd, __pmd(pmd_val(*pmd) | _PAGE_USER)); in set_vsyscall_pgtable_user_bits()
/Linux-v6.1/arch/sh/include/asm/
Dpgtable_32.h48 #define _PAGE_USER 0x040 /* PR1-bit : user space access allowed*/ macro
56 #define _PAGE_PR_MASK (_PAGE_RW | _PAGE_USER)
242 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_RW | _PAGE_USER | \
246 #define PAGE_COPY __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_CACHABLE | \
249 #define PAGE_READONLY __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_CACHABLE | \
/Linux-v6.1/arch/riscv/include/asm/
Dpgtable-32.h34 _PAGE_USER | _PAGE_GLOBAL))
Dpgtable-bits.h15 #define _PAGE_USER (1 << 4) /* User */ macro
Dpgtable-64.h132 _PAGE_USER | _PAGE_GLOBAL | \
158 return pud_val(pud) & _PAGE_USER; in pud_user()
/Linux-v6.1/arch/x86/mm/
Dpti.c157 if ((pgd.pgd & (_PAGE_USER|_PAGE_PRESENT)) == (_PAGE_USER|_PAGE_PRESENT) && in __pti_set_user_pgtbl()
269 if (pte_flags(*pte) & _PAGE_USER) { in pti_user_pagetable_walk_pte()
/Linux-v6.1/arch/x86/include/asm/
Dpgtable.h819 return (pmd_flags(pmd) & ~(_PAGE_USER | _PAGE_ACCESSED)) != in pmd_bad()
859 return (pud_flags(pud) & ~(_KERNPG_TABLE | _PAGE_USER)) != 0; in pud_bad()
893 unsigned long ignore_flags = _KERNPG_TABLE | _PAGE_USER; in p4d_bad()
936 unsigned long ignore_flags = _PAGE_USER; in pgd_bad()
1399 unsigned long need_pte_bits = _PAGE_PRESENT|_PAGE_USER; in __pte_access_permitted()
1453 return (pte_val(pte) & _PAGE_PRESENT) && (pte_val(pte) & _PAGE_USER); in pte_user_accessible_page()
1458 return pmd_leaf(pmd) && (pmd_val(pmd) & _PAGE_PRESENT) && (pmd_val(pmd) & _PAGE_USER); in pmd_user_accessible_page()
1463 return pud_leaf(pud) && (pud_val(pud) & _PAGE_PRESENT) && (pud_val(pud) & _PAGE_USER); in pud_user_accessible_page()
Dpgtable_types.h43 #define _PAGE_USER (_AT(pteval_t, 1) << _PAGE_BIT_USER) macro
104 #define _PAGE_SWP_UFFD_WP _PAGE_USER
165 #define _USR _PAGE_USER
/Linux-v6.1/arch/riscv/mm/
Dptdump.c159 .mask = _PAGE_USER,
160 .val = _PAGE_USER,

12