/arch/arm/include/asm/ |
D | pgtable-2level-hwdef.h | 61 #define PTE_TYPE_MASK (_AT(pteval_t, 3) << 0) 62 #define PTE_TYPE_FAULT (_AT(pteval_t, 0) << 0) 63 #define PTE_TYPE_LARGE (_AT(pteval_t, 1) << 0) 64 #define PTE_TYPE_SMALL (_AT(pteval_t, 2) << 0) 65 #define PTE_TYPE_EXT (_AT(pteval_t, 3) << 0) /* v5 */ 66 #define PTE_BUFFERABLE (_AT(pteval_t, 1) << 2) 67 #define PTE_CACHEABLE (_AT(pteval_t, 1) << 3) 72 #define PTE_EXT_XN (_AT(pteval_t, 1) << 0) /* v6 */ 73 #define PTE_EXT_AP_MASK (_AT(pteval_t, 3) << 4) 74 #define PTE_EXT_AP0 (_AT(pteval_t, 1) << 4) [all …]
|
D | pgtable-2level.h | 120 #define L_PTE_VALID (_AT(pteval_t, 1) << 0) /* Valid */ 121 #define L_PTE_PRESENT (_AT(pteval_t, 1) << 0) 122 #define L_PTE_YOUNG (_AT(pteval_t, 1) << 1) 123 #define L_PTE_DIRTY (_AT(pteval_t, 1) << 6) 124 #define L_PTE_RDONLY (_AT(pteval_t, 1) << 7) 125 #define L_PTE_USER (_AT(pteval_t, 1) << 8) 126 #define L_PTE_XN (_AT(pteval_t, 1) << 9) 127 #define L_PTE_SHARED (_AT(pteval_t, 1) << 10) /* shared(v6), coherent(xsc3) */ 128 #define L_PTE_NONE (_AT(pteval_t, 1) << 11) 163 #define L_PTE_MT_UNCACHED (_AT(pteval_t, 0x00) << 2) /* 0000 */ [all …]
|
D | pgtable-3level-hwdef.h | 70 #define PTE_TYPE_MASK (_AT(pteval_t, 3) << 0) 71 #define PTE_TYPE_FAULT (_AT(pteval_t, 0) << 0) 72 #define PTE_TYPE_PAGE (_AT(pteval_t, 3) << 0) 73 #define PTE_TABLE_BIT (_AT(pteval_t, 1) << 1) 74 #define PTE_BUFFERABLE (_AT(pteval_t, 1) << 2) /* AttrIndx[0] */ 75 #define PTE_CACHEABLE (_AT(pteval_t, 1) << 3) /* AttrIndx[1] */ 76 #define PTE_AP2 (_AT(pteval_t, 1) << 7) /* AP[2] */ 77 #define PTE_EXT_SHARED (_AT(pteval_t, 3) << 8) /* SH[1:0], inner shareable */ 78 #define PTE_EXT_AF (_AT(pteval_t, 1) << 10) /* Access Flag */ 79 #define PTE_EXT_NG (_AT(pteval_t, 1) << 11) /* nG */ [all …]
|
D | pgtable-3level.h | 78 #define L_PTE_VALID (_AT(pteval_t, 1) << 0) /* Valid */ 79 #define L_PTE_PRESENT (_AT(pteval_t, 3) << 0) /* Present */ 80 #define L_PTE_USER (_AT(pteval_t, 1) << 6) /* AP[1] */ 81 #define L_PTE_SHARED (_AT(pteval_t, 3) << 8) /* SH[1:0], inner shareable */ 82 #define L_PTE_YOUNG (_AT(pteval_t, 1) << 10) /* AF */ 83 #define L_PTE_XN (_AT(pteval_t, 1) << 54) /* XN */ 84 #define L_PTE_DIRTY (_AT(pteval_t, 1) << 55) 85 #define L_PTE_SPECIAL (_AT(pteval_t, 1) << 56) 86 #define L_PTE_NONE (_AT(pteval_t, 1) << 57) /* PROT_NONE */ 87 #define L_PTE_RDONLY (_AT(pteval_t, 1) << 58) /* READ ONLY */ [all …]
|
D | pgtable-2level-types.h | 24 typedef u32 pteval_t; typedef 33 typedef struct { pteval_t pte; } pte_t; 36 typedef struct { pteval_t pgprot; } pgprot_t; 51 typedef pteval_t pte_t; 54 typedef pteval_t pgprot_t;
|
D | pgtable-3level-types.h | 25 typedef u64 pteval_t; typedef 36 typedef struct { pteval_t pte; } pte_t; 39 typedef struct { pteval_t pgprot; } pgprot_t; 53 typedef pteval_t pte_t; 56 typedef pteval_t pgprot_t;
|
/arch/arm64/include/asm/ |
D | pgtable-hwdef.h | 154 #define PTE_TYPE_MASK (_AT(pteval_t, 3) << 0) 155 #define PTE_TYPE_FAULT (_AT(pteval_t, 0) << 0) 156 #define PTE_TYPE_PAGE (_AT(pteval_t, 3) << 0) 157 #define PTE_TABLE_BIT (_AT(pteval_t, 1) << 1) 158 #define PTE_USER (_AT(pteval_t, 1) << 6) /* AP[1] */ 159 #define PTE_RDONLY (_AT(pteval_t, 1) << 7) /* AP[2] */ 160 #define PTE_SHARED (_AT(pteval_t, 3) << 8) /* SH[1:0], inner shareable */ 161 #define PTE_AF (_AT(pteval_t, 1) << 10) /* Access Flag */ 162 #define PTE_NG (_AT(pteval_t, 1) << 11) /* nG */ 163 #define PTE_DBM (_AT(pteval_t, 1) << 51) /* Dirty Bit Management */ [all …]
|
D | pgtable-types.h | 25 typedef u64 pteval_t; typedef 33 typedef struct { pteval_t pte; } pte_t; 53 typedef struct { pteval_t pgprot; } pgprot_t;
|
D | pgtable-prot.h | 27 #define PTE_VALID (_AT(pteval_t, 1) << 0) 29 #define PTE_DIRTY (_AT(pteval_t, 1) << 55) 30 #define PTE_SPECIAL (_AT(pteval_t, 1) << 56) 31 #define PTE_PROT_NONE (_AT(pteval_t, 1) << 58) /* only when !PTE_VALID */
|
/arch/x86/include/asm/ |
D | pgtable_types.h | 42 #define _PAGE_PRESENT (_AT(pteval_t, 1) << _PAGE_BIT_PRESENT) 43 #define _PAGE_RW (_AT(pteval_t, 1) << _PAGE_BIT_RW) 44 #define _PAGE_USER (_AT(pteval_t, 1) << _PAGE_BIT_USER) 45 #define _PAGE_PWT (_AT(pteval_t, 1) << _PAGE_BIT_PWT) 46 #define _PAGE_PCD (_AT(pteval_t, 1) << _PAGE_BIT_PCD) 47 #define _PAGE_ACCESSED (_AT(pteval_t, 1) << _PAGE_BIT_ACCESSED) 48 #define _PAGE_DIRTY (_AT(pteval_t, 1) << _PAGE_BIT_DIRTY) 49 #define _PAGE_PSE (_AT(pteval_t, 1) << _PAGE_BIT_PSE) 50 #define _PAGE_GLOBAL (_AT(pteval_t, 1) << _PAGE_BIT_GLOBAL) 51 #define _PAGE_SOFTW1 (_AT(pteval_t, 1) << _PAGE_BIT_SOFTW1) [all …]
|
D | pgtable-2level_types.h | 8 typedef unsigned long pteval_t; typedef 16 pteval_t pte; 17 pteval_t pte_low;
|
D | pgtable-3level_types.h | 8 typedef u64 pteval_t; typedef 19 pteval_t pte;
|
D | pgtable-3level.h | 152 res.pte = (pteval_t)atomic64_xchg((atomic64_t *)ptep, 0); in native_ptep_get_and_clear() 228 #define __swp_pteval_entry(type, offset) ((pteval_t) { \ 229 (~(pteval_t)(offset) << SWP_OFFSET_SHIFT >> SWP_TYPE_BITS) \ 230 | ((pteval_t)(type) << (64 - SWP_TYPE_BITS)) })
|
D | paravirt.h | 360 static inline pte_t __pte(pteval_t val) in __pte() 362 pteval_t ret; in __pte() 364 if (sizeof(pteval_t) > sizeof(long)) in __pte() 365 ret = PVOP_CALLEE2(pteval_t, in __pte() 369 ret = PVOP_CALLEE1(pteval_t, in __pte() 376 static inline pteval_t pte_val(pte_t pte) in pte_val() 378 pteval_t ret; in pte_val() 380 if (sizeof(pteval_t) > sizeof(long)) in pte_val() 381 ret = PVOP_CALLEE2(pteval_t, pv_mmu_ops.pte_val, in pte_val() 384 ret = PVOP_CALLEE1(pteval_t, pv_mmu_ops.pte_val, in pte_val() [all …]
|
D | pgtable_64_types.h | 14 typedef unsigned long pteval_t; typedef 21 typedef struct { pteval_t pte; } pte_t;
|
D | pgtable.h | 280 static inline pte_t pte_set_flags(pte_t pte, pteval_t set) in pte_set_flags() 282 pteval_t v = native_pte_val(pte); in pte_set_flags() 287 static inline pte_t pte_clear_flags(pte_t pte, pteval_t clear) in pte_clear_flags() 289 pteval_t v = native_pte_val(pte); in pte_clear_flags() 569 pteval_t val = pte_val(pte), oldval = val; in pte_modify()
|
D | pgalloc.h | 89 set_pmd(pmd, __pmd(((pteval_t)pfn << PAGE_SHIFT) | _PAGE_TABLE)); in pmd_populate()
|
/arch/arm/mm/ |
D | mm.h | 43 pteval_t prot_pte; 44 pteval_t prot_pte_s2;
|
D | fault-armv.c | 28 static pteval_t shared_pte_mask = L_PTE_MT_BUFFERABLE;
|
/arch/arm64/kernel/ |
D | efi.c | 24 static __init pteval_t create_mapping_protection(efi_memory_desc_t *md) in create_mapping_protection() 63 pteval_t prot_val = create_mapping_protection(md); in efi_create_mapping()
|
/arch/x86/include/asm/xen/ |
D | page.h | 294 static inline pteval_t pte_val_ma(pte_t pte) in pte_val_ma() 299 static inline pte_t __pte_ma(pteval_t x) in __pte_ma()
|
/arch/x86/mm/ |
D | kmmio.c | 38 pteval_t old_presence; /* page presence prior to arming */ 141 static void clear_pte_presence(pte_t *pte, bool clear, pteval_t *old) in clear_pte_presence() 143 pteval_t v = pte_val(*pte); in clear_pte_presence()
|
D | mem_encrypt.c | 221 pteval_t pte_flags; 367 pmd = native_make_pmd((pteval_t)pte_p + PMD_FLAGS); in sme_populate_pgd() 397 pmdval_t pmd_flags, pteval_t pte_flags) in __sme_map_range()
|
/arch/x86/xen/ |
D | mmu_pv.c | 315 static pteval_t pte_mfn_to_pfn(pteval_t val) in pte_mfn_to_pfn() 321 pteval_t flags = val & PTE_FLAGS_MASK; in pte_mfn_to_pfn() 325 val = ((pteval_t)pfn << PAGE_SHIFT) | flags; in pte_mfn_to_pfn() 331 static pteval_t pte_pfn_to_mfn(pteval_t val) in pte_pfn_to_mfn() 335 pteval_t flags = val & PTE_FLAGS_MASK; in pte_pfn_to_mfn() 351 val = ((pteval_t)mfn << PAGE_SHIFT) | flags; in pte_pfn_to_mfn() 357 __visible pteval_t xen_pte_val(pte_t pte) in xen_pte_val() 359 pteval_t pteval = pte.pte; in xen_pte_val() 371 __visible pte_t xen_make_pte(pteval_t pte) in xen_make_pte() 1515 __visible pte_t xen_make_pte_init(pteval_t pte) in xen_make_pte_init()
|
/arch/x86/kernel/ |
D | espfix_64.c | 148 pteval_t ptemask; in init_espfix_ap()
|