/arch/cris/include/arch-v32/arch/ |
D | mmu.h | 56 #define _PAGE_PRESENT (1 << 5) /* Page is present in memory. */ macro 66 #define _PAGE_TABLE (_PAGE_PRESENT | __READABLE | __WRITEABLE) 69 #define PAGE_NONE __pgprot(_PAGE_PRESENT | _PAGE_ACCESSED) 70 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | __READABLE | _PAGE_WRITE | \ 72 #define PAGE_SHARED_EXEC __pgprot(_PAGE_PRESENT | __READABLE | _PAGE_WRITE | \ 75 #define PAGE_READONLY __pgprot(_PAGE_PRESENT | __READABLE) 76 #define PAGE_READONLY_EXEC __pgprot(_PAGE_PRESENT | __READABLE | _PAGE_EXECUTE | _PAGE_ACCESSED) 78 #define PAGE_COPY __pgprot(_PAGE_PRESENT | __READABLE) 79 #define PAGE_COPY_EXEC __pgprot(_PAGE_PRESENT | __READABLE | _PAGE_EXECUTE) 81 _PAGE_PRESENT | __READABLE | __WRITEABLE) [all …]
|
/arch/mips/mm/ |
D | cache.c | 165 …protection_map[0] = __pgprot(_page_cachable_default | _PAGE_PRESENT | _PAGE_NO_EXEC | _PAGE_NO_RE… in setup_protection_map() 166 protection_map[1] = __pgprot(_page_cachable_default | _PAGE_PRESENT | _PAGE_NO_EXEC); in setup_protection_map() 167 …protection_map[2] = __pgprot(_page_cachable_default | _PAGE_PRESENT | _PAGE_NO_EXEC | _PAGE_NO_RE… in setup_protection_map() 168 protection_map[3] = __pgprot(_page_cachable_default | _PAGE_PRESENT | _PAGE_NO_EXEC); in setup_protection_map() 169 protection_map[4] = __pgprot(_page_cachable_default | _PAGE_PRESENT); in setup_protection_map() 170 protection_map[5] = __pgprot(_page_cachable_default | _PAGE_PRESENT); in setup_protection_map() 171 protection_map[6] = __pgprot(_page_cachable_default | _PAGE_PRESENT); in setup_protection_map() 172 protection_map[7] = __pgprot(_page_cachable_default | _PAGE_PRESENT); in setup_protection_map() 174 …protection_map[8] = __pgprot(_page_cachable_default | _PAGE_PRESENT | _PAGE_NO_EXEC | _PAGE_NO_RE… in setup_protection_map() 175 protection_map[9] = __pgprot(_page_cachable_default | _PAGE_PRESENT | _PAGE_NO_EXEC); in setup_protection_map() [all …]
|
/arch/cris/include/arch-v10/arch/ |
D | mmu.h | 61 #define _PAGE_PRESENT (1<<4) /* page present in memory */ macro 72 #define _PAGE_TABLE (_PAGE_PRESENT | __READABLE | __WRITEABLE) 75 #define PAGE_NONE __pgprot(_PAGE_PRESENT | _PAGE_ACCESSED) 76 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | __READABLE | _PAGE_WRITE | \ 78 #define PAGE_COPY __pgprot(_PAGE_PRESENT | __READABLE) // | _PAGE_COW 79 #define PAGE_READONLY __pgprot(_PAGE_PRESENT | __READABLE) 81 _PAGE_PRESENT | __READABLE | __WRITEABLE)
|
/arch/hexagon/include/asm/ |
D | pgtable.h | 60 #define _PAGE_PRESENT (1<<0) macro 69 #define _PAGE_VALID _PAGE_PRESENT 121 #define PAGE_NONE __pgprot(_PAGE_PRESENT | _PAGE_USER | \ 123 #define PAGE_READONLY __pgprot(_PAGE_PRESENT | _PAGE_USER | \ 126 #define PAGE_EXEC __pgprot(_PAGE_PRESENT | _PAGE_USER | \ 129 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_READ | \ 131 #define PAGE_KERNEL __pgprot(_PAGE_PRESENT | _PAGE_READ | \ 145 #define __P000 __pgprot(_PAGE_PRESENT | _PAGE_USER | CACHEDEF) 146 #define __P001 __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_READ | CACHEDEF) 149 #define __P100 __pgprot(_PAGE_PRESENT | _PAGE_USER | \ [all …]
|
/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 …]
|
D | pgtable_64.h | 66 #define pmd_present(pmd_entry) (pmd_val(pmd_entry) & _PAGE_PRESENT) 109 #define _PAGE_PRESENT 0x004 /* software: page referenced */ macro 131 #define _PAGE_CLEAR_FLAGS (_PAGE_PRESENT | _PAGE_SHARED | \ 165 #define _KERNPG_TABLE (_PAGE_PRESENT | _PAGE_READ | _PAGE_WRITE | \ 179 #define _PAGE_COMMON (_PAGE_PRESENT | _PAGE_USER | \ 200 __pgprot(_PAGE_PRESENT | _PAGE_READ | _PAGE_WRITE | \ 229 #define pte_present(x) (pte_val(x) & _PAGE_PRESENT)
|
/arch/m32r/include/asm/ |
D | pgtable.h | 95 #define _PAGE_PRESENT (1UL << _PAGE_BIT_PRESENT) macro 106 ( _PAGE_PRESENT | _PAGE_WRITE | _PAGE_READ | _PAGE_ACCESSED \ 109 ( _PAGE_PRESENT | _PAGE_WRITE | _PAGE_READ | _PAGE_ACCESSED \ 118 __pgprot(_PAGE_PRESENT | _PAGE_WRITE | _PAGE_READ | _PAGE_ACCESSED) 120 __pgprot(_PAGE_PRESENT | _PAGE_EXEC | _PAGE_WRITE | _PAGE_READ \ 123 __pgprot(_PAGE_PRESENT | _PAGE_READ | _PAGE_ACCESSED) 125 __pgprot(_PAGE_PRESENT | _PAGE_EXEC | _PAGE_READ | _PAGE_ACCESSED) 127 __pgprot(_PAGE_PRESENT | _PAGE_READ | _PAGE_ACCESSED) 129 __pgprot(_PAGE_PRESENT | _PAGE_EXEC | _PAGE_READ | _PAGE_ACCESSED) 132 ( _PAGE_PRESENT | _PAGE_EXEC | _PAGE_WRITE | _PAGE_READ | _PAGE_DIRTY \ [all …]
|
/arch/tile/include/asm/ |
D | pgtable.h | 72 #define _PAGE_PRESENT HV_PTE_PRESENT macro 89 _PAGE_PRESENT | \ 102 __pgprot(_PAGE_PRESENT | _PAGE_ACCESSED) 104 __pgprot(_PAGE_PRESENT | _PAGE_READABLE | _PAGE_WRITABLE | \ 108 __pgprot(_PAGE_PRESENT | _PAGE_READABLE | _PAGE_WRITABLE | \ 111 __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_ACCESSED | _PAGE_READABLE) 113 __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_ACCESSED | \ 118 __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_ACCESSED | _PAGE_READABLE) 120 __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_ACCESSED | \ 124 (_PAGE_PRESENT | _PAGE_GLOBAL | _PAGE_READABLE | _PAGE_ACCESSED) [all …]
|
/arch/um/include/asm/ |
D | pgtable.h | 13 #define _PAGE_PRESENT 0x001 macro 55 #define _PAGE_TABLE (_PAGE_PRESENT | _PAGE_RW | _PAGE_USER | _PAGE_ACCESSED | _PAGE_DIRTY) 56 #define _KERNPG_TABLE (_PAGE_PRESENT | _PAGE_RW | _PAGE_ACCESSED | _PAGE_DIRTY) 59 (_PAGE_PRESENT | _PAGE_RW | _PAGE_DIRTY | _PAGE_ACCESSED) 61 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_RW | _PAGE_USER | _PAGE_ACCESSED) 62 #define PAGE_COPY __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_ACCESSED) 63 #define PAGE_READONLY __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_ACCESSED) 64 #define PAGE_KERNEL __pgprot(_PAGE_PRESENT | _PAGE_RW | _PAGE_DIRTY | _PAGE_ACCESSED) 102 #define pmd_present(x) (pmd_val(x) & _PAGE_PRESENT) 115 #define pte_present(x) pte_get_bits(x, (_PAGE_PRESENT | _PAGE_PROTNONE))
|
/arch/m68k/include/asm/ |
D | motorola_pgtable.h | 9 #define _PAGE_PRESENT 0x001 macro 63 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_ACCESSED | mm_cachebits) 64 #define PAGE_COPY __pgprot(_PAGE_PRESENT | _PAGE_RONLY | _PAGE_ACCESSED | mm_cachebits) 65 #define PAGE_READONLY __pgprot(_PAGE_PRESENT | _PAGE_RONLY | _PAGE_ACCESSED | mm_cachebits) 66 #define PAGE_KERNEL __pgprot(_PAGE_PRESENT | _PAGE_DIRTY | _PAGE_ACCESSED | mm_cachebits) 71 #define PAGE_SHARED_C __pgprot(_PAGE_PRESENT | _PAGE_ACCESSED) 72 #define PAGE_COPY_C __pgprot(_PAGE_PRESENT | _PAGE_RONLY | _PAGE_ACCESSED) 73 #define PAGE_READONLY_C __pgprot(_PAGE_PRESENT | _PAGE_RONLY | _PAGE_ACCESSED) 131 #define pte_present(pte) (pte_val(pte) & (_PAGE_PRESENT | _PAGE_PROTNONE))
|
/arch/score/include/asm/ |
D | pgtable.h | 123 #define pte_present(pte) (pte_val(pte) & _PAGE_PRESENT) 125 #define PAGE_NONE __pgprot(_PAGE_PRESENT | _PAGE_CACHE) 126 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_READ | _PAGE_WRITE | \ 128 #define PAGE_COPY __pgprot(_PAGE_PRESENT | _PAGE_READ | _PAGE_CACHE) 129 #define PAGE_READONLY __pgprot(_PAGE_PRESENT | _PAGE_READ | _PAGE_CACHE) 130 #define PAGE_KERNEL __pgprot(_PAGE_PRESENT | __READABLE | __WRITEABLE | \ 132 #define PAGE_KERNEL_UNCACHED __pgprot(_PAGE_PRESENT | __READABLE | \ 240 #define pte_present(pte) (pte_val(pte) & _PAGE_PRESENT)
|
/arch/parisc/include/asm/ |
D | pgtable.h | 60 ((pte_val(x) & (_PAGE_PRESENT|_PAGE_ACCESSED)) \ 61 == (_PAGE_PRESENT|_PAGE_ACCESSED)) 201 #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) 230 #define PAGE_NONE __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_ACCESSED) 231 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_READ | _PAGE_WRITE | _PAGE_ACCESSED) 235 #define PAGE_READONLY __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_READ | _PAGE_ACCESSED) 236 #define PAGE_WRITEONLY __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_WRITE | _PAGE_ACCESSED) 237 #define PAGE_EXECREAD __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_READ | _PAGE_EXEC |_PAGE_ACCESS… [all …]
|
/arch/arc/include/asm/ |
D | pgtable.h | 68 #define _PAGE_PRESENT (1<<10) /* TLB entry is valid (H) */ macro 85 #define _PAGE_PRESENT (1<<9) /* TLB entry is valid (H) */ macro 99 _PAGE_GLOBAL | _PAGE_PRESENT) 111 #define ___DEF (_PAGE_PRESENT | _PAGE_CACHEABLE) 136 #define PTE_BITS_IN_PD0 (_PAGE_GLOBAL | _PAGE_PRESENT | _PAGE_HW_SZ) 274 #define pte_present(x) (pte_val(x) & _PAGE_PRESENT) 311 PTE_BIT_FUNC(mknotpresent, &= ~(_PAGE_PRESENT));
|
/arch/metag/include/asm/ |
D | pgtable.h | 55 #define PAGE_NONE __pgprot(_PAGE_PRESENT | _PAGE_ACCESSED | \ 58 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_WRITE | \ 61 #define PAGE_COPY __pgprot(_PAGE_PRESENT | _PAGE_ACCESSED | \ 65 #define PAGE_READONLY __pgprot(_PAGE_PRESENT | _PAGE_ACCESSED | \ 67 #define PAGE_KERNEL __pgprot(_PAGE_PRESENT | _PAGE_DIRTY | \ 111 #define pte_present(x) (pte_val(x) & _PAGE_PRESENT) 117 #define pmd_present(x) (pmd_val(x) & _PAGE_PRESENT)
|
D | pgtable-bits.h | 17 #define _PAGE_PRESENT MMCU_ENTRY_VAL_BIT macro 81 #define _PAGE_TABLE (_PAGE_SZ | _PAGE_PRESENT)
|
/arch/xtensa/include/asm/ |
D | pgtable.h | 162 #define _PAGE_PRESENT (_PAGE_HW_VALID | _PAGE_CA_WB | _PAGE_ACCESSED) macro 165 #define PAGE_COPY __pgprot(_PAGE_PRESENT | _PAGE_USER) 166 #define PAGE_COPY_EXEC __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_HW_EXEC) 167 #define PAGE_READONLY __pgprot(_PAGE_PRESENT | _PAGE_USER) 168 #define PAGE_READONLY_EXEC __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_HW_EXEC) 169 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_WRITABLE) 171 __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_WRITABLE | _PAGE_HW_EXEC) 172 #define PAGE_KERNEL __pgprot(_PAGE_PRESENT | _PAGE_HW_WRITE) 173 #define PAGE_KERNEL_EXEC __pgprot(_PAGE_PRESENT|_PAGE_HW_WRITE|_PAGE_HW_EXEC)
|
/arch/x86/include/asm/ |
D | pgtable_types.h | 42 #define _PAGE_PRESENT (_AT(pteval_t, 1) << _PAGE_BIT_PRESENT) macro 114 #define _PAGE_TABLE_NOENC (_PAGE_PRESENT | _PAGE_RW | _PAGE_USER |\ 116 #define _KERNPG_TABLE_NOENC (_PAGE_PRESENT | _PAGE_RW | \ 155 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_RW | _PAGE_USER | \ 158 #define PAGE_SHARED_EXEC __pgprot(_PAGE_PRESENT | _PAGE_RW | \ 160 #define PAGE_COPY_NOEXEC __pgprot(_PAGE_PRESENT | _PAGE_USER | \ 162 #define PAGE_COPY_EXEC __pgprot(_PAGE_PRESENT | _PAGE_USER | \ 165 #define PAGE_READONLY __pgprot(_PAGE_PRESENT | _PAGE_USER | \ 167 #define PAGE_READONLY_EXEC __pgprot(_PAGE_PRESENT | _PAGE_USER | \ 171 (_PAGE_PRESENT | _PAGE_RW | _PAGE_DIRTY | _PAGE_ACCESSED | _PAGE_GLOBAL) [all …]
|
D | pgtable.h | 523 if (protval & _PAGE_PRESENT) in massage_pgprot() 556 __pgprot(pmd_flags(pmd) & ~(_PAGE_PRESENT|_PAGE_PROTNONE))); in pmd_mknotpresent() 562 __pgprot(pud_flags(pud) & ~(_PAGE_PRESENT|_PAGE_PROTNONE))); in pud_mknotpresent() 668 return pte_flags(a) & (_PAGE_PRESENT | _PAGE_PROTNONE); in pte_present() 681 if (pte_flags(a) & _PAGE_PRESENT) in pte_accessible() 699 return pmd_flags(pmd) & (_PAGE_PRESENT | _PAGE_PROTNONE | _PAGE_PSE); in pmd_present() 709 return (pte_flags(pte) & (_PAGE_PROTNONE | _PAGE_PRESENT)) in pte_protnone() 715 return (pmd_flags(pmd) & (_PAGE_PROTNONE | _PAGE_PRESENT)) in pmd_protnone() 793 return pud_flags(pud) & _PAGE_PRESENT; in pud_present() 815 return (pud_val(pud) & (_PAGE_PSE | _PAGE_PRESENT)) == in pud_large() [all …]
|
/arch/powerpc/mm/ |
D | pgtable.c | 48 if ((pte_val(pte) & (_PAGE_PRESENT | _PAGE_SPECIAL)) == _PAGE_PRESENT) { in pte_looks_normal() 57 (_PAGE_PRESENT | _PAGE_SPECIAL | _PAGE_NO_CACHE | _PAGE_USER)) == in pte_looks_normal() 58 (_PAGE_PRESENT | _PAGE_USER); in pte_looks_normal()
|
/arch/mips/include/asm/ |
D | pgtable.h | 26 #define PAGE_NONE __pgprot(_PAGE_PRESENT | _PAGE_NO_READ | \ 28 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_WRITE | \ 30 #define PAGE_COPY __pgprot(_PAGE_PRESENT | _PAGE_NO_EXEC | \ 32 #define PAGE_READONLY __pgprot(_PAGE_PRESENT | \ 34 #define PAGE_KERNEL __pgprot(_PAGE_PRESENT | __READABLE | __WRITEABLE | \ 36 #define PAGE_KERNEL_NC __pgprot(_PAGE_PRESENT | __READABLE | __WRITEABLE | \ 38 #define PAGE_USERIO __pgprot(_PAGE_PRESENT | _PAGE_WRITE | \ 40 #define PAGE_KERNEL_UNCACHED __pgprot(_PAGE_PRESENT | __READABLE | \ 142 #define pte_present(pte) ((pte).pte_low & _PAGE_PRESENT) 189 #define pte_present(pte) (pte_val(pte) & _PAGE_PRESENT) [all …]
|
/arch/metag/mm/ |
D | mmu-meta2.c | 100 if ((phys0 & _PAGE_PRESENT) && !(phys0 & _PAGE_PRIV)) { in repriv_mmu_tables() 188 _PAGE_PRESENT); in mmu_init() 191 _PAGE_PRESENT | _PAGE_DIRTY | in mmu_init()
|
/arch/nios2/include/asm/ |
D | pgtable-bits.h | 30 #define _PAGE_PRESENT (1<<25) /* PTE contains a translation */ macro
|
D | pgtable.h | 36 #define MKP(x, w, r) __pgprot(_PAGE_PRESENT | _PAGE_CACHED | \ 66 #define PAGE_KERNEL __pgprot(_PAGE_PRESENT | _PAGE_CACHED | _PAGE_READ | \ 69 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_CACHED | _PAGE_READ | \ 135 { return pte_val(pte) & _PAGE_PRESENT; } in pte_present()
|
/arch/openrisc/include/asm/ |
D | pgtable.h | 148 #define _PAGE_PRESENT _PAGE_CC macro 158 #define _PAGE_BASE (_PAGE_PRESENT | _PAGE_ACCESSED) 159 #define _PAGE_ALL (_PAGE_PRESENT | _PAGE_ACCESSED) 225 #define pte_present(x) (pte_val(x) & _PAGE_PRESENT) 230 #define pmd_present(x) (pmd_val(x) & _PAGE_PRESENT)
|
/arch/m68k/mm/ |
D | kmap.c | 157 physaddr |= (_PAGE_PRESENT | _PAGE_GLOBAL040 | in __ioremap() 175 physaddr |= (_PAGE_PRESENT | _PAGE_ACCESSED | in __ioremap() 269 if (pmd_type == _PAGE_PRESENT) { in __iounmap() 346 if ((pmd_dir->pmd[pmd_off] & _DESCTYPE_MASK) == _PAGE_PRESENT) { in kernel_set_cachemode()
|