/Linux-v5.15/arch/mips/mm/ |
D | cache.c | 164 protection_map[0] = PM(_PAGE_PRESENT | _PAGE_NO_EXEC | _PAGE_NO_READ); in setup_protection_map() 165 protection_map[1] = PM(_PAGE_PRESENT | _PAGE_NO_EXEC); in setup_protection_map() 166 protection_map[2] = PM(_PAGE_PRESENT | _PAGE_NO_EXEC | _PAGE_NO_READ); in setup_protection_map() 167 protection_map[3] = PM(_PAGE_PRESENT | _PAGE_NO_EXEC); in setup_protection_map() 168 protection_map[4] = PM(_PAGE_PRESENT); in setup_protection_map() 169 protection_map[5] = PM(_PAGE_PRESENT); in setup_protection_map() 170 protection_map[6] = PM(_PAGE_PRESENT); in setup_protection_map() 171 protection_map[7] = PM(_PAGE_PRESENT); in setup_protection_map() 173 protection_map[8] = PM(_PAGE_PRESENT | _PAGE_NO_EXEC | _PAGE_NO_READ); in setup_protection_map() 174 protection_map[9] = PM(_PAGE_PRESENT | _PAGE_NO_EXEC); in setup_protection_map() [all …]
|
/Linux-v5.15/arch/hexagon/include/asm/ |
D | pgtable.h | 45 #define _PAGE_PRESENT (1<<0) macro 54 #define _PAGE_VALID _PAGE_PRESENT 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 | \ 116 #define PAGE_KERNEL __pgprot(_PAGE_PRESENT | _PAGE_READ | \ 130 #define __P000 __pgprot(_PAGE_PRESENT | _PAGE_USER | CACHEDEF) 131 #define __P001 __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_READ | CACHEDEF) 134 #define __P100 __pgprot(_PAGE_PRESENT | _PAGE_USER | \ [all …]
|
/Linux-v5.15/arch/sh/include/asm/ |
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-v5.15/arch/um/include/asm/ |
D | pgtable.h | 13 #define _PAGE_PRESENT 0x001 macro 53 #define _PAGE_TABLE (_PAGE_PRESENT | _PAGE_RW | _PAGE_USER | _PAGE_ACCESSED | _PAGE_DIRTY) 54 #define _KERNPG_TABLE (_PAGE_PRESENT | _PAGE_RW | _PAGE_ACCESSED | _PAGE_DIRTY) 57 (_PAGE_PRESENT | _PAGE_RW | _PAGE_DIRTY | _PAGE_ACCESSED) 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) 62 #define PAGE_KERNEL __pgprot(_PAGE_PRESENT | _PAGE_RW | _PAGE_DIRTY | _PAGE_ACCESSED) 100 #define pmd_present(x) (pmd_val(x) & _PAGE_PRESENT) 116 #define pte_present(x) pte_get_bits(x, (_PAGE_PRESENT | _PAGE_PROTNONE))
|
/Linux-v5.15/arch/m68k/include/asm/ |
D | motorola_pgtable.h | 9 #define _PAGE_PRESENT 0x001 macro 74 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_ACCESSED | mm_cachebits) 75 #define PAGE_COPY __pgprot(_PAGE_PRESENT | _PAGE_RONLY | _PAGE_ACCESSED | mm_cachebits) 76 #define PAGE_READONLY __pgprot(_PAGE_PRESENT | _PAGE_RONLY | _PAGE_ACCESSED | mm_cachebits) 77 #define PAGE_KERNEL __pgprot(_PAGE_PRESENT | _PAGE_DIRTY | _PAGE_ACCESSED | mm_cachebits) 82 #define PAGE_SHARED_C __pgprot(_PAGE_PRESENT | _PAGE_ACCESSED) 83 #define PAGE_COPY_C __pgprot(_PAGE_PRESENT | _PAGE_RONLY | _PAGE_ACCESSED) 84 #define PAGE_READONLY_C __pgprot(_PAGE_PRESENT | _PAGE_RONLY | _PAGE_ACCESSED) 138 #define pte_present(pte) (pte_val(pte) & (_PAGE_PRESENT | _PAGE_PROTNONE))
|
/Linux-v5.15/arch/xtensa/include/asm/ |
D | pgtable.h | 165 #define _PAGE_PRESENT (_PAGE_HW_VALID | _PAGE_CA_WB | _PAGE_ACCESSED) macro 168 #define PAGE_COPY __pgprot(_PAGE_PRESENT | _PAGE_USER) 169 #define PAGE_COPY_EXEC __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_HW_EXEC) 170 #define PAGE_READONLY __pgprot(_PAGE_PRESENT | _PAGE_USER) 171 #define PAGE_READONLY_EXEC __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_HW_EXEC) 172 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_WRITABLE) 174 __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_WRITABLE | _PAGE_HW_EXEC) 175 #define PAGE_KERNEL __pgprot(_PAGE_PRESENT | _PAGE_HW_WRITE) 176 #define PAGE_KERNEL_RO __pgprot(_PAGE_PRESENT) 177 #define PAGE_KERNEL_EXEC __pgprot(_PAGE_PRESENT|_PAGE_HW_WRITE|_PAGE_HW_EXEC)
|
/Linux-v5.15/arch/riscv/include/asm/ |
D | pgtable-bits.h | 17 #define _PAGE_PRESENT (1 << 0) macro 28 #define _PAGE_TABLE _PAGE_PRESENT 39 #define _PAGE_CHG_MASK (~(unsigned long)(_PAGE_PRESENT | _PAGE_READ | \
|
D | kfence.h | 54 set_pte(pte, __pte(pte_val(*pte) & ~_PAGE_PRESENT)); in kfence_protect_page() 56 set_pte(pte, __pte(pte_val(*pte) | _PAGE_PRESENT)); in kfence_protect_page()
|
D | pgtable.h | 118 #define _PAGE_BASE (_PAGE_PRESENT | _PAGE_ACCESSED | _PAGE_USER) 136 | _PAGE_PRESENT \ 186 return (pmd_val(pmd) & (_PAGE_PRESENT | _PAGE_PROT_NONE | _PAGE_LEAF)); in pmd_present() 191 return (pmd_val(pmd) & (_PAGE_PRESENT | _PAGE_PROT_NONE)); in pmd_present() 269 return (pte_val(pte) & (_PAGE_PRESENT | _PAGE_PROT_NONE)); in pte_present() 359 return (pte_val(pte) & (_PAGE_PRESENT | _PAGE_PROT_NONE)) == _PAGE_PROT_NONE; in pte_protnone() 508 return __pmd(pmd_val(pmd) & ~(_PAGE_PRESENT|_PAGE_PROT_NONE)); in pmd_mkinvalid()
|
/Linux-v5.15/arch/parisc/include/asm/ |
D | pgtable.h | 214 #define _PAGE_PRESENT (1 << xlate_pabit(_PAGE_PRESENT_BIT)) macro 218 #define _PAGE_TABLE (_PAGE_PRESENT | _PAGE_READ | _PAGE_WRITE | _PAGE_DIRTY | _PAGE_ACCESSED) 220 #define _PAGE_KERNEL_RO (_PAGE_PRESENT | _PAGE_READ | _PAGE_DIRTY | _PAGE_ACCESSED) 241 #define PAGE_NONE __pgprot(_PAGE_PRESENT | _PAGE_USER) 242 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_READ | _PAGE_WRITE) 246 #define PAGE_READONLY __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_READ) 247 #define PAGE_WRITEONLY __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_WRITE) 248 #define PAGE_EXECREAD __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_READ | _PAGE_EXEC) 250 #define PAGE_RWX __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_READ | _PAGE_WRITE | _PAGE_EXEC) 256 #define PAGE_GATEWAY __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_GATEWAY| _PAGE_READ) [all …]
|
/Linux-v5.15/arch/powerpc/mm/ptdump/ |
D | book3s64.c | 39 .mask = _PAGE_PRESENT, 40 .val = _PAGE_PRESENT, 44 .mask = _PAGE_PRESENT | _PAGE_INVALID,
|
D | shared.c | 29 .mask = _PAGE_PRESENT, 30 .val = _PAGE_PRESENT,
|
D | 8xx.c | 46 .mask = _PAGE_PRESENT, 47 .val = _PAGE_PRESENT,
|
/Linux-v5.15/arch/powerpc/include/asm/ |
D | kfence.h | 24 pte_update(&init_mm, addr, kpte, _PAGE_PRESENT, 0, 0); in kfence_protect_page() 27 pte_update(&init_mm, addr, kpte, 0, _PAGE_PRESENT, 0); in kfence_protect_page()
|
/Linux-v5.15/arch/x86/include/asm/ |
D | kfence.h | 57 set_pte(pte, __pte(pte_val(*pte) & ~_PAGE_PRESENT)); in kfence_protect_page() 59 set_pte(pte, __pte(pte_val(*pte) | _PAGE_PRESENT)); in kfence_protect_page()
|
D | pgtable.h | 551 if (protval & _PAGE_PRESENT) in massage_pgprot() 601 __pgprot(pmd_flags(pmd) & ~(_PAGE_PRESENT|_PAGE_PROTNONE))); in pmd_mkinvalid() 738 return pte_flags(a) & (_PAGE_PRESENT | _PAGE_PROTNONE); in pte_present() 751 if (pte_flags(a) & _PAGE_PRESENT) in pte_accessible() 769 return pmd_flags(pmd) & (_PAGE_PRESENT | _PAGE_PROTNONE | _PAGE_PSE); in pmd_present() 779 return (pte_flags(pte) & (_PAGE_PROTNONE | _PAGE_PRESENT)) in pte_protnone() 785 return (pmd_flags(pmd) & (_PAGE_PROTNONE | _PAGE_PRESENT)) in pmd_protnone() 836 return pud_flags(pud) & _PAGE_PRESENT; in pud_present() 853 return (pud_val(pud) & (_PAGE_PSE | _PAGE_PRESENT)) == in pud_large() 854 (_PAGE_PSE | _PAGE_PRESENT); in pud_large() [all …]
|
/Linux-v5.15/arch/arc/include/asm/ |
D | pgtable-bits-arcv2.h | 27 #define _PAGE_PRESENT (1 << 9) /* PTE/TLB Valid (H) */ macro 36 #define ___DEF (_PAGE_PRESENT | _PAGE_CACHEABLE) 103 PTE_BIT_FUNC(mknotpresent, &= ~(_PAGE_PRESENT));
|
/Linux-v5.15/arch/powerpc/include/asm/nohash/32/ |
D | pte-40x.h | 42 #define _PAGE_PRESENT 0x002 /* software: PTE contains a translation */ macro 75 #define _PAGE_BASE_NC (_PAGE_PRESENT | _PAGE_ACCESSED)
|
D | pte-44x.h | 75 #define _PAGE_PRESENT 0x00000001 /* S: PTE valid */ macro 111 #define _PAGE_BASE_NC (_PAGE_PRESENT | _PAGE_ACCESSED)
|
D | pte-fsl-booke.h | 20 #define _PAGE_PRESENT 0x00001 /* S: PTE contains a translation */ macro 57 #define _PAGE_BASE_NC (_PAGE_PRESENT | _PAGE_ACCESSED)
|
/Linux-v5.15/arch/openrisc/include/asm/ |
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) 219 #define pte_present(x) (pte_val(x) & _PAGE_PRESENT) 224 #define pmd_present(x) (pmd_val(x) & _PAGE_PRESENT)
|
/Linux-v5.15/arch/nios2/include/asm/ |
D | pgtable.h | 33 #define MKP(x, w, r) __pgprot(_PAGE_PRESENT | _PAGE_CACHED | \ 63 #define PAGE_KERNEL __pgprot(_PAGE_PRESENT | _PAGE_CACHED | _PAGE_READ | \ 66 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_CACHED | _PAGE_READ | \ 127 { return pte_val(pte) & _PAGE_PRESENT; } in pte_present()
|
/Linux-v5.15/arch/m68k/mm/ |
D | kmap.c | 83 if (pmd_type == _PAGE_PRESENT) { in __free_io_area() 214 physaddr |= (_PAGE_PRESENT | _PAGE_GLOBAL040 | in __ioremap() 232 physaddr |= (_PAGE_PRESENT | _PAGE_ACCESSED | in __ioremap() 368 if ((pmd & _DESCTYPE_MASK) == _PAGE_PRESENT) { in kernel_set_cachemode()
|
/Linux-v5.15/arch/powerpc/include/asm/book3s/64/ |
D | pgtable.h | 45 #define _PAGE_PRESENT 0x8000000000000000UL /* pte contains a translation */ macro 137 #define _PAGE_BASE_NC (_PAGE_PRESENT | _PAGE_ACCESSED) 550 return (pte_raw(pte) & cpu_to_be64(_PAGE_PRESENT | _PAGE_PTE | _PAGE_RWX)) == in pte_protnone() 551 cpu_to_be64(_PAGE_PRESENT | _PAGE_PTE); in pte_protnone() 562 VM_BUG_ON((pte_raw(pte) & cpu_to_be64(_PAGE_PRESENT | _PAGE_RWX | _PAGE_PRIVILEGED)) != in pte_mk_savedwrite() 563 cpu_to_be64(_PAGE_PRESENT | _PAGE_PRIVILEGED)); in pte_mk_savedwrite() 587 return (pte_raw(pte) & cpu_to_be64(_PAGE_PRESENT | _PAGE_PTE)) == in pte_hw_valid() 588 cpu_to_be64(_PAGE_PRESENT | _PAGE_PTE); in pte_hw_valid() 925 if (pmd_raw(pmd) & cpu_to_be64(_PAGE_PRESENT | _PAGE_INVALID)) in pmd_present() 941 if ((pmd_raw(pmd) & cpu_to_be64(_PAGE_PRESENT | _PAGE_INVALID)) == in pmd_is_serializing() [all …]
|
/Linux-v5.15/arch/x86/kernel/ |
D | machine_kexec_32.c | 88 if (!(pgd_val(*pgd) & _PAGE_PRESENT)) in machine_kexec_page_table_set_one() 89 set_pgd(pgd, __pgd(__pa(pmd) | _PAGE_PRESENT)); in machine_kexec_page_table_set_one() 94 if (!(pmd_val(*pmd) & _PAGE_PRESENT)) in machine_kexec_page_table_set_one()
|