| /linux/arch/hexagon/mm/ |
| H A D | init.c | 205 [VM_NONE] = __pgprot(_PAGE_PRESENT | _PAGE_USER | 207 [VM_READ] = __pgprot(_PAGE_PRESENT | _PAGE_USER | 209 [VM_WRITE] = __pgprot(_PAGE_PRESENT | _PAGE_USER | 211 [VM_WRITE | VM_READ] = __pgprot(_PAGE_PRESENT | _PAGE_USER | 213 [VM_EXEC] = __pgprot(_PAGE_PRESENT | _PAGE_USER | 215 [VM_EXEC | VM_READ] = __pgprot(_PAGE_PRESENT | _PAGE_USER | 218 [VM_EXEC | VM_WRITE] = __pgprot(_PAGE_PRESENT | _PAGE_USER | 220 [VM_EXEC | VM_WRITE | VM_READ] = __pgprot(_PAGE_PRESENT | _PAGE_USER | 223 [VM_SHARED] = __pgprot(_PAGE_PRESENT | _PAGE_USER | 225 [VM_SHARED | VM_READ] = __pgprot(_PAGE_PRESENT | _PAGE_USER | [all …]
|
| /linux/arch/mips/mm/ |
| H A D | cache.c | 184 protection_map[0] = PM(_PAGE_PRESENT | _PAGE_NO_EXEC | _PAGE_NO_READ); in setup_protection_map() 185 protection_map[1] = PM(_PAGE_PRESENT | _PAGE_NO_EXEC); in setup_protection_map() 186 protection_map[2] = PM(_PAGE_PRESENT | _PAGE_NO_EXEC | _PAGE_NO_READ); in setup_protection_map() 187 protection_map[3] = PM(_PAGE_PRESENT | _PAGE_NO_EXEC); in setup_protection_map() 188 protection_map[4] = PM(_PAGE_PRESENT); in setup_protection_map() 189 protection_map[5] = PM(_PAGE_PRESENT); in setup_protection_map() 190 protection_map[6] = PM(_PAGE_PRESENT); in setup_protection_map() 191 protection_map[7] = PM(_PAGE_PRESENT); in setup_protection_map() 193 protection_map[8] = PM(_PAGE_PRESENT | _PAGE_NO_EXEC | _PAGE_NO_READ); in setup_protection_map() 194 protection_map[9] = PM(_PAGE_PRESENT | _PAGE_NO_EXEC); in setup_protection_map() [all …]
|
| /linux/arch/loongarch/mm/ |
| H A D | cache.c | 164 (_PAGE_PROTNONE ? : _PAGE_PRESENT)), 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), 184 (_PAGE_PROTNONE ? : _PAGE_PRESENT)), 186 _PAGE_USER | _PAGE_PRESENT | [all …]
|
| H A D | tlbex.S | 110 andi ra, t0, _PAGE_PRESENT 146 andi t0, ra, _PAGE_PRESENT 273 andi ra, t0, _PAGE_PRESENT | _PAGE_WRITE 274 xori ra, ra, _PAGE_PRESENT | _PAGE_WRITE 276 PTR_LI ra, _PAGE_PRESENT | _PAGE_WRITE 321 andi t0, ra, _PAGE_PRESENT | _PAGE_WRITE 322 xori t0, t0, _PAGE_PRESENT | _PAGE_WRITE 324 PTR_LI t0, _PAGE_PRESENT | _PAGE_WRITE
|
| /linux/arch/sh/include/asm/ |
| H A D | pgtable_32.h | 50 #define _PAGE_PRESENT 0x100 /* V-bit : page is valid */ macro 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 | \ 242 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_RW | _PAGE_USER | \ [all …]
|
| /linux/arch/um/include/asm/ |
| H A D | pgtable.h | 14 #define _PAGE_PRESENT 0x001 macro 58 #define _PAGE_TABLE (_PAGE_PRESENT | _PAGE_RW | _PAGE_USER | _PAGE_ACCESSED | _PAGE_DIRTY) 59 #define _KERNPG_TABLE (_PAGE_PRESENT | _PAGE_RW | _PAGE_ACCESSED | _PAGE_DIRTY) 62 (_PAGE_PRESENT | _PAGE_RW | _PAGE_DIRTY | _PAGE_ACCESSED) 64 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_RW | _PAGE_USER | _PAGE_ACCESSED) 65 #define PAGE_COPY __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_ACCESSED) 66 #define PAGE_READONLY __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_ACCESSED) 67 #define PAGE_KERNEL __pgprot(_PAGE_PRESENT | _PAGE_RW | _PAGE_DIRTY | _PAGE_ACCESSED) 88 #define pmd_present(x) (pmd_val(x) & _PAGE_PRESENT) 105 #define pte_present(x) pte_get_bits(x, (_PAGE_PRESENT | _PAGE_PROTNONE))
|
| /linux/arch/hexagon/include/asm/ |
| H A D | pgtable.h | 45 #define _PAGE_PRESENT (1<<0) macro 54 #define _PAGE_VALID _PAGE_PRESENT 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 | \ 119 #define PAGE_KERNEL __pgprot(_PAGE_PRESENT | _PAGE_READ | \ 238 return pte_val(pte) & _PAGE_PRESENT; in pte_present()
|
| /linux/arch/xtensa/include/asm/ |
| H A D | pgtable.h | 167 #define _PAGE_PRESENT (_PAGE_HW_VALID | _PAGE_CA_WB | _PAGE_ACCESSED) macro 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) 177 #define PAGE_KERNEL __pgprot(_PAGE_PRESENT | _PAGE_HW_WRITE) 178 #define PAGE_KERNEL_RO __pgprot(_PAGE_PRESENT) 179 #define PAGE_KERNEL_EXEC __pgprot(_PAGE_PRESENT|_PAGE_HW_WRITE|_PAGE_HW_EXEC)
|
| /linux/arch/loongarch/include/asm/ |
| H A D | pgtable-bits.h | 52 #define _PAGE_PRESENT (_ULCAST_(1) << _PAGE_PRESENT_SHIFT) macro 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 | \
|
| H A D | kfence.h | 60 set_pte(pte, __pte(pte_val(ptep_get(pte)) & ~(_PAGE_VALID | _PAGE_PRESENT))); in kfence_protect_page() 62 set_pte(pte, __pte(pte_val(ptep_get(pte)) | (_PAGE_VALID | _PAGE_PRESENT))); in kfence_protect_page()
|
| /linux/arch/parisc/include/asm/ |
| H A D | pgtable.h | 200 #define _PAGE_PRESENT (1 << xlate_pabit(_PAGE_PRESENT_BIT)) macro 205 #define _PAGE_TABLE (_PAGE_PRESENT | _PAGE_READ | _PAGE_WRITE | _PAGE_DIRTY | _PAGE_ACCESSED) 207 #define _PAGE_KERNEL_RO (_PAGE_PRESENT | _PAGE_READ | _PAGE_DIRTY | _PAGE_ACCESSED) 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) [all …]
|
| H A D | kfence.h | 35 set_pte(pte, __pte(pte_val(*pte) & ~_PAGE_PRESENT)); in kfence_protect_page() 37 set_pte(pte, __pte(pte_val(*pte) | _PAGE_PRESENT)); in kfence_protect_page()
|
| /linux/arch/m68k/include/asm/ |
| H A D | motorola_pgtable.h | 9 #define _PAGE_PRESENT 0x001 macro 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) 106 #define pte_present(pte) (pte_val(pte) & (_PAGE_PRESENT | _PAGE_PROTNONE))
|
| /linux/arch/powerpc/mm/ptdump/ |
| H A D | book3s64.c | 39 .mask = _PAGE_PRESENT, 40 .val = _PAGE_PRESENT, 44 .mask = _PAGE_PRESENT | _PAGE_INVALID,
|
| /linux/arch/arc/include/asm/ |
| H A D | pgtable-bits-arcv2.h | 27 #define _PAGE_PRESENT (1 << 9) /* PTE/TLB Valid (H) */ macro 39 #define ___DEF (_PAGE_PRESENT | _PAGE_CACHEABLE) 88 PTE_BIT_FUNC(mknotpresent, &= ~(_PAGE_PRESENT));
|
| /linux/arch/openrisc/include/asm/ |
| H A D | pgtable.h | 142 #define _PAGE_PRESENT _PAGE_CC macro 152 #define _PAGE_BASE (_PAGE_PRESENT | _PAGE_ACCESSED) 153 #define _PAGE_ALL (_PAGE_PRESENT | _PAGE_ACCESSED) 187 #define pte_present(x) (pte_val(x) & _PAGE_PRESENT) 192 #define pmd_present(x) (pmd_val(x) & _PAGE_PRESENT)
|
| /linux/arch/powerpc/include/asm/nohash/32/ |
| H A D | pte-44x.h | 65 #define _PAGE_PRESENT 0x00000001 /* S: PTE valid */ macro 93 #define _PAGE_BASE_NC (_PAGE_PRESENT | _PAGE_ACCESSED)
|
| /linux/arch/riscv/include/asm/ |
| H A D | kfence.h | 21 set_pte(pte, __pte(pte_val(ptep_get(pte)) & ~_PAGE_PRESENT)); in kfence_protect_page() 23 set_pte(pte, __pte(pte_val(ptep_get(pte)) | _PAGE_PRESENT)); in kfence_protect_page()
|
| H A D | pgtable-bits.h | 11 #define _PAGE_PRESENT (1 << 0) macro 59 #define _PAGE_TABLE _PAGE_PRESENT
|
| /linux/arch/powerpc/include/asm/ |
| H A D | kfence.h | 51 pte_update(&init_mm, addr, kpte, _PAGE_PRESENT, 0, 0); in kfence_protect_page() 54 pte_update(&init_mm, addr, kpte, 0, _PAGE_PRESENT, 0); in kfence_protect_page()
|
| /linux/arch/x86/include/asm/ |
| H A D | kfence.h | 56 if (protect != !!(val & _PAGE_PRESENT)) in kfence_protect_page() 64 new = val ^ _PAGE_PRESENT; in kfence_protect_page()
|
| H A D | pgtable.h | 715 if (protval & _PAGE_PRESENT) in massage_pgprot() 768 __pgprot(pmd_flags(pmd) & ~(_PAGE_PRESENT|_PAGE_PROTNONE))); in pmd_mkinvalid() 774 __pgprot(pud_flags(pud) & ~(_PAGE_PRESENT|_PAGE_PROTNONE))); in pud_mkinvalid() 969 return pte_flags(a) & (_PAGE_PRESENT | _PAGE_PROTNONE); in pte_present() 975 if (pte_flags(a) & _PAGE_PRESENT) in pte_accessible() 993 return pmd_flags(pmd) & (_PAGE_PRESENT | _PAGE_PROTNONE | _PAGE_PSE); in pmd_present() 1003 return (pte_flags(pte) & (_PAGE_PROTNONE | _PAGE_PRESENT)) in pte_protnone() 1009 return (pmd_flags(pmd) & (_PAGE_PROTNONE | _PAGE_PRESENT)) in pmd_protnone() 1052 return pud_flags(pud) & _PAGE_PRESENT; in pud_present() 1086 return p4d_flags(p4d) & _PAGE_PRESENT; in p4d_present() [all …]
|
| /linux/arch/nios2/include/asm/ |
| H A D | pgtable.h | 36 #define MKP(x, w, r) __pgprot(_PAGE_PRESENT | _PAGE_CACHED | \ 50 #define PAGE_KERNEL __pgprot(_PAGE_PRESENT | _PAGE_CACHED | _PAGE_READ | \ 53 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_CACHED | _PAGE_READ | \ 111 { return pte_val(pte) & _PAGE_PRESENT; } in pte_present()
|
| /linux/arch/x86/boot/startup/ |
| H A D | map_kernel.c | 205 pmd[i] &= ~_PAGE_PRESENT; in __startup_64() 209 if (pmd[i] & _PAGE_PRESENT) in __startup_64() 214 pmd[i] &= ~_PAGE_PRESENT; in __startup_64()
|
| /linux/arch/m68k/mm/ |
| H A D | kmap.c | 83 if (pmd_type == _PAGE_PRESENT) { in __free_io_area() 220 physaddr |= (_PAGE_PRESENT | _PAGE_GLOBAL040 | in __ioremap() 238 physaddr |= (_PAGE_PRESENT | _PAGE_ACCESSED | in __ioremap() 377 if ((pmd & _DESCTYPE_MASK) == _PAGE_PRESENT) { in kernel_set_cachemode()
|