Home
last modified time | relevance | path

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

12

/Linux-v5.4/arch/powerpc/include/asm/nohash/
Dpte-book3e.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_EXEC)
97 #define PAGE_COPY __pgprot(_PAGE_BASE | _PAGE_USER)
98 #define PAGE_COPY_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_EXEC)
99 #define PAGE_READONLY __pgprot(_PAGE_BASE | _PAGE_USER)
100 #define PAGE_READONLY_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_EXEC)
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.h91 return (pte_val(pte) & _PAGE_USER) == _PAGE_USER; in pte_user()
165 return __pte(pte_val(pte) & ~_PAGE_USER); in pte_mkprivileged()
172 return __pte(pte_val(pte) | _PAGE_USER); in pte_mkuser()
/Linux-v5.4/arch/powerpc/include/asm/nohash/32/
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-fsl-booke.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)
Dpte-40x.h45 #define _PAGE_USER 0x010 /* matches one of the zone permission bits */ macro
81 #define PAGE_SHARED __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW)
82 #define PAGE_SHARED_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW | _PAGE_EXEC)
83 #define PAGE_COPY __pgprot(_PAGE_BASE | _PAGE_USER)
84 #define PAGE_COPY_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_EXEC)
85 #define PAGE_READONLY __pgprot(_PAGE_BASE | _PAGE_USER)
86 #define PAGE_READONLY_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_EXEC)
Dpgtable.h250 if ((old & _PAGE_USER) && (old & _PAGE_EXEC)) in pte_update()
281 if ((old & _PAGE_USER) && (old & _PAGE_EXEC)) in pte_update()
/Linux-v5.4/arch/hexagon/include/asm/
Dpgtable.h37 #define _PAGE_USER __HVM_PTE_U macro
107 #define PAGE_NONE __pgprot(_PAGE_PRESENT | _PAGE_USER | \
109 #define PAGE_READONLY __pgprot(_PAGE_PRESENT | _PAGE_USER | \
112 #define PAGE_EXEC __pgprot(_PAGE_PRESENT | _PAGE_USER | \
115 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_READ | \
131 #define __P000 __pgprot(_PAGE_PRESENT | _PAGE_USER | CACHEDEF)
132 #define __P001 __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_READ | CACHEDEF)
135 #define __P100 __pgprot(_PAGE_PRESENT | _PAGE_USER | \
137 #define __P101 __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_EXECUTE | \
145 #define __S010 __pgprot(_PAGE_PRESENT | _PAGE_USER | \
[all …]
/Linux-v5.4/arch/xtensa/include/asm/
Dpgtable.h156 #define _PAGE_USER (1<<4) /* user access (ring=1) */ macro
169 #define PAGE_NONE __pgprot(_PAGE_NONE | _PAGE_USER)
170 #define PAGE_COPY __pgprot(_PAGE_PRESENT | _PAGE_USER)
171 #define PAGE_COPY_EXEC __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_HW_EXEC)
172 #define PAGE_READONLY __pgprot(_PAGE_PRESENT | _PAGE_USER)
173 #define PAGE_READONLY_EXEC __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_HW_EXEC)
174 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_WRITABLE)
176 __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_WRITABLE | _PAGE_HW_EXEC)
251 # define pte_none(pte) (pte_val(pte) == (_PAGE_CA_INVALID | _PAGE_USER))
260 do { update_pte(ptep, __pte(_PAGE_CA_INVALID | _PAGE_USER)); } while (0)
[all …]
/Linux-v5.4/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)
98 #define pmd_bad(x) ((pmd_val(x) & (~PAGE_MASK & ~_PAGE_USER)) != _KERNPG_TABLE)
132 return((pte_get_bits(pte, _PAGE_USER)) && in pte_read()
137 return((pte_get_bits(pte, _PAGE_USER)) && in pte_exec()
207 if (unlikely(pte_get_bits(pte, _PAGE_USER))) in pte_mkread()
209 pte_set_bits(pte, _PAGE_USER); in pte_mkread()
Dpgtable-3level.h58 #define pud_bad(x) ((pud_val(x) & (~PAGE_MASK & ~_PAGE_USER)) != _KERNPG_TABLE)
/Linux-v5.4/arch/microblaze/include/asm/
Dpgtable.h211 #define _PAGE_USER 0x010 /* matches one of the zone permission bits */ macro
252 #define PAGE_READONLY __pgprot(_PAGE_BASE | _PAGE_USER)
253 #define PAGE_READONLY_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_EXEC)
254 #define PAGE_SHARED __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW)
256 __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW | _PAGE_EXEC)
257 #define PAGE_COPY __pgprot(_PAGE_BASE | _PAGE_USER)
258 #define PAGE_COPY_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_EXEC)
332 static inline int pte_read(pte_t pte) { return pte_val(pte) & _PAGE_USER; } in pte_read()
342 { pte_val(pte) &= ~_PAGE_USER; return pte; } in pte_rdprotect()
353 { pte_val(pte) |= _PAGE_USER; return pte; } in pte_mkread()
[all …]
/Linux-v5.4/arch/x86/include/asm/
Dpgtable_types.h44 #define _PAGE_USER (_AT(pteval_t, 1) << _PAGE_BIT_USER) macro
113 #define _PAGE_TABLE_NOENC (_PAGE_PRESENT | _PAGE_RW | _PAGE_USER |\
154 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_RW | _PAGE_USER | \
158 _PAGE_USER | _PAGE_ACCESSED)
159 #define PAGE_COPY_NOEXEC __pgprot(_PAGE_PRESENT | _PAGE_USER | \
161 #define PAGE_COPY_EXEC __pgprot(_PAGE_PRESENT | _PAGE_USER | \
164 #define PAGE_READONLY __pgprot(_PAGE_PRESENT | _PAGE_USER | \
166 #define PAGE_READONLY_EXEC __pgprot(_PAGE_PRESENT | _PAGE_USER | \
176 #define __PAGE_KERNEL_VVAR (__PAGE_KERNEL_RO | _PAGE_USER)
190 #define _PAGE_TABLE (_KERNPG_TABLE | _PAGE_USER)
Dpgtable.h841 return (pmd_flags(pmd) & ~_PAGE_USER) != _KERNPG_TABLE; in pmd_bad()
885 return (pud_flags(pud) & ~(_KERNPG_TABLE | _PAGE_USER)) != 0; in pud_bad()
929 unsigned long ignore_flags = _KERNPG_TABLE | _PAGE_USER; in p4d_bad()
972 unsigned long ignore_flags = _PAGE_USER; in pgd_bad()
1429 unsigned long need_pte_bits = _PAGE_PRESENT|_PAGE_USER; in __pte_access_permitted()
/Linux-v5.4/arch/powerpc/include/asm/book3s/32/
Dpgtable.h23 return pte_val(pte) & _PAGE_USER; in pte_user()
68 #define PAGE_SHARED __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW)
69 #define PAGE_SHARED_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW | _PAGE_EXEC)
70 #define PAGE_COPY __pgprot(_PAGE_BASE | _PAGE_USER)
71 #define PAGE_COPY_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_EXEC)
72 #define PAGE_READONLY __pgprot(_PAGE_BASE | _PAGE_USER)
73 #define PAGE_READONLY_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_EXEC)
505 return __pte(pte_val(pte) & ~_PAGE_USER); in pte_mkprivileged()
510 return __pte(pte_val(pte) | _PAGE_USER); in pte_mkuser()
Dhash.h22 #define _PAGE_USER 0x004 /* usermode access allowed */ macro
/Linux-v5.4/arch/riscv/include/asm/
Dpgtable-bits.h21 #define _PAGE_USER (1 << 4) /* User */ macro
41 _PAGE_USER | _PAGE_GLOBAL))
/Linux-v5.4/arch/parisc/include/asm/
Dpgtable.h224 #define _PAGE_USER (1 << xlate_pabit(_PAGE_USER_BIT)) macro
251 #define PAGE_NONE __pgprot(_PAGE_PRESENT | _PAGE_USER)
252 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_READ | _PAGE_WRITE)
256 #define PAGE_READONLY __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_READ)
257 #define PAGE_WRITEONLY __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_WRITE)
258 #define PAGE_EXECREAD __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_READ | _PAGE_EXEC)
260 #define PAGE_RWX __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_READ | _PAGE_WRITE | _PAGE_EXEC)
266 #define PAGE_GATEWAY __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_GATEWAY| _PAGE_READ)
/Linux-v5.4/arch/powerpc/mm/ptdump/
Dshared.c14 .mask = _PAGE_USER,
15 .val = _PAGE_USER,
/Linux-v5.4/arch/x86/entry/vsyscall/
Dvsyscall_64.c365 set_pgd(pgd, __pgd(pgd_val(*pgd) | _PAGE_USER)); in set_vsyscall_pgtable_user_bits()
368 set_p4d(p4d, __p4d(p4d_val(*p4d) | _PAGE_USER)); in set_vsyscall_pgtable_user_bits()
371 set_pud(pud, __pud(pud_val(*pud) | _PAGE_USER)); in set_vsyscall_pgtable_user_bits()
373 set_pmd(pmd, __pmd(pmd_val(*pmd) | _PAGE_USER)); in set_vsyscall_pgtable_user_bits()
/Linux-v5.4/arch/sh/include/asm/
Dpgtable_64.h66 #define pmd_bad(pmd_entry) ((pmd_val(pmd_entry) & (~PAGE_MASK & ~_PAGE_USER)) != _KERNPG_TABLE)
113 #define _PAGE_USER 0x200 /* PR3-bit : user space access allowed */ macro
168 #define _PAGE_TABLE (_KERNPG_TABLE | _PAGE_USER)
176 #define _PAGE_COMMON (_PAGE_PRESENT | _PAGE_USER | \
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 | \
Dpgtable.h165 u64 prot = _PAGE_PRESENT | _PAGE_USER | _PAGE_READ; in pte_access_permitted()
174 u64 prot = _PAGE_PRESENT | _PAGE_USER; in pte_access_permitted()
/Linux-v5.4/arch/x86/mm/
Dpti.c158 if ((pgd.pgd & (_PAGE_USER|_PAGE_PRESENT)) == (_PAGE_USER|_PAGE_PRESENT) && in __pti_set_user_pgtbl()
270 if (pte_flags(*pte) & _PAGE_USER) { in pti_user_pagetable_walk_pte()
Ddump_pagetables.c187 if (pr & _PAGE_USER) in printk_prot()
353 return (prot1 & prot2 & (_PAGE_USER | _PAGE_RW)) | in effective_prot()
540 eff = _PAGE_USER | _PAGE_RW; in ptdump_walk_pgd_level_core()
/Linux-v5.4/arch/powerpc/mm/book3s32/
Dmmu.c136 if (flags & _PAGE_USER) in setibat()
270 if (flags & _PAGE_USER) in setbat()
287 ((flags & _PAGE_USER)? PP_RWRW: PP_RWXX): PP_RXRX; in setbat()

12