Home
last modified time | relevance | path

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

12

/openbmc/linux/arch/hexagon/mm/
H A 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 …]
/openbmc/linux/arch/loongarch/mm/
H A Dcache.c162 [VM_NONE] = __pgprot(_CACHE_CC | _PAGE_USER |
166 _PAGE_USER | _PAGE_PRESENT |
169 _PAGE_USER | _PAGE_PRESENT |
172 _PAGE_USER | _PAGE_PRESENT |
175 _PAGE_USER | _PAGE_PRESENT),
177 _PAGE_USER | _PAGE_PRESENT),
179 _PAGE_USER | _PAGE_PRESENT),
181 _PAGE_USER | _PAGE_PRESENT),
182 [VM_SHARED] = __pgprot(_CACHE_CC | _PAGE_USER |
186 _PAGE_USER | _PAGE_PRESENT |
[all …]
/openbmc/linux/arch/powerpc/include/asm/nohash/
H A Dpte-e500.h56 #define _PAGE_USER (_PAGE_BAP_UR | _PAGE_BAP_SR) /* Can be read */ macro
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)
104 return __pte((pte_val(pte) & ~_PAGE_USER) | _PAGE_PRIVILEGED); in pte_mkprivileged()
111 return __pte((pte_val(pte) & ~_PAGE_PRIVILEGED) | _PAGE_USER); in pte_mkuser()
H A Dpgtable.h73 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()
/openbmc/linux/arch/powerpc/include/asm/nohash/32/
H A Dpte-40x.h45 #define _PAGE_USER 0x010 /* matches one of the zone permission bits */ macro
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)
H A Dpte-44x.h71 #define _PAGE_USER 0x00000040 /* S: User page */ macro
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)
H A 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)
/openbmc/linux/arch/microblaze/include/asm/
H A Dpgtable.h150 #define _PAGE_USER 0x010 /* matches one of the zone permission bits */ macro
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)
245 static inline int pte_read(pte_t pte) { return pte_val(pte) & _PAGE_USER; } in pte_read()
255 { pte_val(pte) &= ~_PAGE_USER; return pte; } in pte_rdprotect()
266 { pte_val(pte) |= _PAGE_USER; return pte; } in pte_mkread()
[all …]
/openbmc/linux/arch/xtensa/include/asm/
H A Dpgtable.h154 #define _PAGE_USER (1<<4) /* user access (ring=1) */ macro
170 #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)
235 # define pte_none(pte) (pte_val(pte) == (_PAGE_CA_INVALID | _PAGE_USER))
244 do { update_pte(ptep, __pte(_PAGE_CA_INVALID | _PAGE_USER)); } while (0)
[all …]
/openbmc/linux/arch/um/include/asm/
H A Dpgtable.h17 #define _PAGE_USER 0x040 macro
56 #define _PAGE_TABLE (_PAGE_PRESENT | _PAGE_RW | _PAGE_USER | _PAGE_ACCESSED | _PAGE_DIRTY)
62 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_RW | _PAGE_USER | _PAGE_ACCESSED)
63 #define PAGE_COPY __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_ACCESSED)
64 #define PAGE_READONLY __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_ACCESSED)
84 #define pmd_bad(x) ((pmd_val(x) & (~PAGE_MASK & ~_PAGE_USER)) != _KERNPG_TABLE)
122 return((pte_get_bits(pte, _PAGE_USER)) && in pte_read()
127 return((pte_get_bits(pte, _PAGE_USER)) && in pte_exec()
192 if (unlikely(pte_get_bits(pte, _PAGE_USER))) in pte_mkread()
194 pte_set_bits(pte, _PAGE_USER); in pte_mkread()
H A Dpgtable-3level.h56 #define pud_bad(x) ((pud_val(x) & (~PAGE_MASK & ~_PAGE_USER)) != _KERNPG_TABLE)
/openbmc/linux/arch/hexagon/include/asm/
H A Dpgtable.h36 #define _PAGE_USER __HVM_PTE_U macro
109 #define PAGE_NONE __pgprot(_PAGE_PRESENT | _PAGE_USER | \
111 #define PAGE_READONLY __pgprot(_PAGE_PRESENT | _PAGE_USER | \
114 #define PAGE_EXEC __pgprot(_PAGE_PRESENT | _PAGE_USER | \
117 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_READ | \
146 ((pte_val(pte) & (_PAGE_EXECUTE | _PAGE_USER)) == \
147 (_PAGE_EXECUTE | _PAGE_USER))
/openbmc/linux/arch/powerpc/include/asm/book3s/32/
H A Dpgtable.h23 #define _PAGE_USER 0x004 /* usermode access allowed */ macro
46 #define _PAGE_SWP_EXCLUSIVE _PAGE_USER
61 return pte_val(pte) & _PAGE_USER; in pte_user()
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)
523 return __pte(pte_val(pte) & ~_PAGE_USER); in pte_mkprivileged()
[all …]
/openbmc/linux/arch/loongarch/include/asm/
H A Dpgtable-bits.h55 #define _PAGE_USER (PLV_USER << _PAGE_PLV_SHIFT) macro
81 _PAGE_USER | _CACHE_CC)
83 _PAGE_USER | _CACHE_CC)
84 #define PAGE_READONLY __pgprot(_PAGE_PRESENT | _PAGE_USER | _CACHE_CC)
/openbmc/linux/arch/parisc/include/asm/
H A Dpgtable.h202 #define _PAGE_USER (1 << xlate_pabit(_PAGE_USER_BIT)) macro
231 #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)
246 #define PAGE_GATEWAY __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_GATEWAY| _PAGE_READ)
278 #define pte_user(x) (pte_val(x) & _PAGE_USER)
/openbmc/linux/arch/sh/include/asm/
H A 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 | \
479 #define _PAGE_SWP_EXCLUSIVE _PAGE_USER
/openbmc/linux/arch/x86/entry/vsyscall/
H A Dvsyscall_64.c342 set_pgd(pgd, __pgd(pgd_val(*pgd) | _PAGE_USER)); in set_vsyscall_pgtable_user_bits()
345 set_p4d(p4d, __p4d(p4d_val(*p4d) | _PAGE_USER)); in set_vsyscall_pgtable_user_bits()
348 set_pud(pud, __pud(pud_val(*pud) | _PAGE_USER)); in set_vsyscall_pgtable_user_bits()
350 set_pmd(pmd, __pmd(pmd_val(*pmd) | _PAGE_USER)); in set_vsyscall_pgtable_user_bits()
/openbmc/linux/arch/powerpc/mm/ptdump/
H A Dshared.c14 .mask = _PAGE_USER,
15 .val = _PAGE_USER,
/openbmc/linux/arch/x86/mm/
H A Dpti.c157 if ((pgd.pgd & (_PAGE_USER|_PAGE_PRESENT)) == (_PAGE_USER|_PAGE_PRESENT) && in __pti_set_user_pgtbl()
274 if (pte_flags(*pte) & _PAGE_USER) { in pti_user_pagetable_walk_pte()
/openbmc/linux/arch/riscv/include/asm/
H A Dpgtable-32.h34 _PAGE_USER | _PAGE_GLOBAL))
H A Dpgtable-bits.h15 #define _PAGE_USER (1 << 4) /* User */ macro
H A Dpgtable-64.h170 _PAGE_USER | _PAGE_GLOBAL | \
196 return pud_val(pud) & _PAGE_USER; in pud_user()
/openbmc/linux/arch/x86/include/asm/
H A Dpgtable.h1041 return (pmd_flags(pmd) & ~(_PAGE_USER | _PAGE_ACCESSED)) != in pmd_bad()
1081 return (pud_flags(pud) & ~(_KERNPG_TABLE | _PAGE_USER)) != 0; in pud_bad()
1115 unsigned long ignore_flags = _KERNPG_TABLE | _PAGE_USER; in p4d_bad()
1158 unsigned long ignore_flags = _PAGE_USER; in pgd_bad()
1624 unsigned long need_pte_bits = _PAGE_PRESENT|_PAGE_USER; in __pte_access_permitted()
1689 return (pte_val(pte) & _PAGE_PRESENT) && (pte_val(pte) & _PAGE_USER); in pte_user_accessible_page()
1694 return pmd_leaf(pmd) && (pmd_val(pmd) & _PAGE_PRESENT) && (pmd_val(pmd) & _PAGE_USER); in pmd_user_accessible_page()
1699 return pud_leaf(pud) && (pud_val(pud) & _PAGE_PRESENT) && (pud_val(pud) & _PAGE_USER); in pud_user_accessible_page()
H A Dpgtable_types.h53 #define _PAGE_USER (_AT(pteval_t, 1) << _PAGE_BIT_USER) macro
114 #define _PAGE_SWP_UFFD_WP _PAGE_USER
191 #define _USR _PAGE_USER
/openbmc/linux/arch/riscv/mm/
H A Dptdump.c159 .mask = _PAGE_USER,
160 .val = _PAGE_USER,

12