/linux-6.1.9/arch/arm/include/asm/ |
D | pgtable-2level-hwdef.h | 58 #define PTE_TYPE_MASK (_AT(pteval_t, 3) << 0) 59 #define PTE_TYPE_FAULT (_AT(pteval_t, 0) << 0) 60 #define PTE_TYPE_LARGE (_AT(pteval_t, 1) << 0) 61 #define PTE_TYPE_SMALL (_AT(pteval_t, 2) << 0) 62 #define PTE_TYPE_EXT (_AT(pteval_t, 3) << 0) /* v5 */ 63 #define PTE_BUFFERABLE (_AT(pteval_t, 1) << 2) 64 #define PTE_CACHEABLE (_AT(pteval_t, 1) << 3) 69 #define PTE_EXT_XN (_AT(pteval_t, 1) << 0) /* v6 */ 70 #define PTE_EXT_AP_MASK (_AT(pteval_t, 3) << 4) 71 #define PTE_EXT_AP0 (_AT(pteval_t, 1) << 4) [all …]
|
D | pgtable-2level.h | 119 #define L_PTE_VALID (_AT(pteval_t, 1) << 0) /* Valid */ 120 #define L_PTE_PRESENT (_AT(pteval_t, 1) << 0) 121 #define L_PTE_YOUNG (_AT(pteval_t, 1) << 1) 122 #define L_PTE_DIRTY (_AT(pteval_t, 1) << 6) 123 #define L_PTE_RDONLY (_AT(pteval_t, 1) << 7) 124 #define L_PTE_USER (_AT(pteval_t, 1) << 8) 125 #define L_PTE_XN (_AT(pteval_t, 1) << 9) 126 #define L_PTE_SHARED (_AT(pteval_t, 1) << 10) /* shared(v6), coherent(xsc3) */ 127 #define L_PTE_NONE (_AT(pteval_t, 1) << 11) 162 #define L_PTE_MT_UNCACHED (_AT(pteval_t, 0x00) << 2) /* 0000 */ [all …]
|
D | pgtable-3level-hwdef.h | 58 #define PTE_TYPE_MASK (_AT(pteval_t, 3) << 0) 59 #define PTE_TYPE_FAULT (_AT(pteval_t, 0) << 0) 60 #define PTE_TYPE_PAGE (_AT(pteval_t, 3) << 0) 61 #define PTE_TABLE_BIT (_AT(pteval_t, 1) << 1) 62 #define PTE_BUFFERABLE (_AT(pteval_t, 1) << 2) /* AttrIndx[0] */ 63 #define PTE_CACHEABLE (_AT(pteval_t, 1) << 3) /* AttrIndx[1] */ 64 #define PTE_AP2 (_AT(pteval_t, 1) << 7) /* AP[2] */ 65 #define PTE_EXT_SHARED (_AT(pteval_t, 3) << 8) /* SH[1:0], inner shareable */ 66 #define PTE_EXT_AF (_AT(pteval_t, 1) << 10) /* Access Flag */ 67 #define PTE_EXT_NG (_AT(pteval_t, 1) << 11) /* nG */ [all …]
|
D | pgtable-3level.h | 68 #define L_PTE_VALID (_AT(pteval_t, 1) << 0) /* Valid */ 69 #define L_PTE_PRESENT (_AT(pteval_t, 3) << 0) /* Present */ 70 #define L_PTE_USER (_AT(pteval_t, 1) << 6) /* AP[1] */ 71 #define L_PTE_SHARED (_AT(pteval_t, 3) << 8) /* SH[1:0], inner shareable */ 72 #define L_PTE_YOUNG (_AT(pteval_t, 1) << 10) /* AF */ 73 #define L_PTE_XN (_AT(pteval_t, 1) << 54) /* XN */ 74 #define L_PTE_DIRTY (_AT(pteval_t, 1) << 55) 75 #define L_PTE_SPECIAL (_AT(pteval_t, 1) << 56) 76 #define L_PTE_NONE (_AT(pteval_t, 1) << 57) /* PROT_NONE */ 77 #define L_PTE_RDONLY (_AT(pteval_t, 1) << 58) /* READ ONLY */ [all …]
|
D | pgtable-2level-types.h | 12 typedef u32 pteval_t; typedef 21 typedef struct { pteval_t pte; } pte_t; 24 typedef struct { pteval_t pgprot; } pgprot_t; 39 typedef pteval_t pte_t; 42 typedef pteval_t pgprot_t;
|
D | pgtable-3level-types.h | 13 typedef u64 pteval_t; typedef 24 typedef struct { pteval_t pte; } pte_t; 27 typedef struct { pteval_t pgprot; } pgprot_t; 41 typedef pteval_t pte_t; 44 typedef pteval_t pgprot_t;
|
D | pgtable.h | 192 pteval_t mask = L_PTE_PRESENT | L_PTE_USER; in pte_access_permitted() 193 pteval_t needed = mask; in pte_access_permitted() 267 const pteval_t mask = L_PTE_XN | L_PTE_RDONLY | L_PTE_USER | in pte_modify()
|
/linux-6.1.9/arch/x86/include/asm/ |
D | pgtable_types.h | 41 #define _PAGE_PRESENT (_AT(pteval_t, 1) << _PAGE_BIT_PRESENT) 42 #define _PAGE_RW (_AT(pteval_t, 1) << _PAGE_BIT_RW) 43 #define _PAGE_USER (_AT(pteval_t, 1) << _PAGE_BIT_USER) 44 #define _PAGE_PWT (_AT(pteval_t, 1) << _PAGE_BIT_PWT) 45 #define _PAGE_PCD (_AT(pteval_t, 1) << _PAGE_BIT_PCD) 46 #define _PAGE_ACCESSED (_AT(pteval_t, 1) << _PAGE_BIT_ACCESSED) 47 #define _PAGE_DIRTY (_AT(pteval_t, 1) << _PAGE_BIT_DIRTY) 48 #define _PAGE_PSE (_AT(pteval_t, 1) << _PAGE_BIT_PSE) 49 #define _PAGE_GLOBAL (_AT(pteval_t, 1) << _PAGE_BIT_GLOBAL) 50 #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 | 157 res.pte = (pteval_t)arch_atomic64_xchg((atomic64_t *)ptep, 0); in native_ptep_get_and_clear() 272 #define __swp_pteval_entry(type, offset) ((pteval_t) { \ 273 (~(pteval_t)(offset) << SWP_OFFSET_SHIFT >> SWP_TYPE_BITS) \ 274 | ((pteval_t)(type) << (64 - SWP_TYPE_BITS)) })
|
D | tlbflush.h | 273 const pteval_t flush_on_clear = _PAGE_DIRTY | _PAGE_PRESENT | in pte_flags_need_flush() 275 const pteval_t software_flags = _PAGE_SOFTW1 | _PAGE_SOFTW2 | in pte_flags_need_flush() 277 const pteval_t flush_on_change = _PAGE_RW | _PAGE_USER | _PAGE_PWT | in pte_flags_need_flush()
|
D | pgtable_64_types.h | 14 typedef unsigned long pteval_t; typedef 21 typedef struct { pteval_t pte; } pte_t;
|
D | paravirt.h | 395 static inline pte_t __pte(pteval_t val) in __pte() 397 return (pte_t) { PVOP_ALT_CALLEE1(pteval_t, mmu.make_pte, val, in __pte() 402 static inline pteval_t pte_val(pte_t pte) in pte_val() 404 return PVOP_ALT_CALLEE1(pteval_t, mmu.pte_val, pte.pte, in pte_val() 425 pteval_t ret; in ptep_modify_prot_start() 427 ret = PVOP_CALL3(pteval_t, mmu.ptep_modify_prot_start, vma, addr, ptep); in ptep_modify_prot_start()
|
/linux-6.1.9/arch/arm64/include/asm/ |
D | pgtable-hwdef.h | 143 #define PTE_VALID (_AT(pteval_t, 1) << 0) 144 #define PTE_TYPE_MASK (_AT(pteval_t, 3) << 0) 145 #define PTE_TYPE_PAGE (_AT(pteval_t, 3) << 0) 146 #define PTE_TABLE_BIT (_AT(pteval_t, 1) << 1) 147 #define PTE_USER (_AT(pteval_t, 1) << 6) /* AP[1] */ 148 #define PTE_RDONLY (_AT(pteval_t, 1) << 7) /* AP[2] */ 149 #define PTE_SHARED (_AT(pteval_t, 3) << 8) /* SH[1:0], inner shareable */ 150 #define PTE_AF (_AT(pteval_t, 1) << 10) /* Access Flag */ 151 #define PTE_NG (_AT(pteval_t, 1) << 11) /* nG */ 152 #define PTE_GP (_AT(pteval_t, 1) << 50) /* BTI guarded */ [all …]
|
D | pgtable-prot.h | 17 #define PTE_SWP_EXCLUSIVE (_AT(pteval_t, 1) << 2) /* only for swp ptes */ 18 #define PTE_DIRTY (_AT(pteval_t, 1) << 55) 19 #define PTE_SPECIAL (_AT(pteval_t, 1) << 56) 20 #define PTE_DEVMAP (_AT(pteval_t, 1) << 57) 21 #define PTE_PROT_NONE (_AT(pteval_t, 1) << 58) /* only when !PTE_VALID */ 28 #define PMD_PRESENT_INVALID (_AT(pteval_t, 1) << 59) /* only when !PMD_SECT_VALID */
|
D | pgtable-types.h | 14 typedef u64 pteval_t; typedef 23 typedef struct { pteval_t pte; } pte_t; 43 typedef struct { pteval_t pgprot; } pgprot_t;
|
/linux-6.1.9/arch/arm/mm/ |
D | mm.h | 39 pteval_t prot_pte; 40 pteval_t prot_pte_s2;
|
/linux-6.1.9/include/trace/events/ |
D | xen.h | 132 TRACE_DEFINE_SIZEOF(pteval_t); 139 __field(pteval_t, pteval) 145 (int)sizeof(pteval_t) * 2, (unsigned long long)pte_val(native_make_pte(__entry->pteval)), 146 (int)sizeof(pteval_t) * 2, (unsigned long long)__entry->pteval) 266 __field(pteval_t, pteval) 274 (int)sizeof(pteval_t) * 2, (unsigned long long)pte_val(native_make_pte(__entry->pteval)), 275 (int)sizeof(pteval_t) * 2, (unsigned long long)__entry->pteval)
|
/linux-6.1.9/arch/x86/include/asm/xen/ |
D | page.h | 35 #define XEN_PTE_MFN_MASK ((pteval_t)(((signed long)PAGE_MASK) & \ 321 static inline pteval_t pte_val_ma(pte_t pte) in pte_val_ma() 326 static inline pte_t __pte_ma(pteval_t x) in __pte_ma()
|
/linux-6.1.9/arch/x86/boot/compressed/ |
D | ident_map_64.c | 43 pteval_t __default_kernel_pte_mask __read_mostly = ~0; 256 pteval_t set, pteval_t clr) in set_clr_page_flags()
|
/linux-6.1.9/arch/arm64/kernel/ |
D | efi.c | 29 static __init pteval_t create_mapping_protection(efi_memory_desc_t *md) in create_mapping_protection() 79 pteval_t prot_val = create_mapping_protection(md); in efi_create_mapping()
|
/linux-6.1.9/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()
|
/linux-6.1.9/arch/x86/xen/ |
D | mmu_pv.c | 316 static pteval_t pte_mfn_to_pfn(pteval_t val) in pte_mfn_to_pfn() 322 pteval_t flags = val & PTE_FLAGS_MASK; in pte_mfn_to_pfn() 326 val = ((pteval_t)pfn << PAGE_SHIFT) | flags; in pte_mfn_to_pfn() 332 static pteval_t pte_pfn_to_mfn(pteval_t val) in pte_pfn_to_mfn() 336 pteval_t flags = val & PTE_FLAGS_MASK; in pte_pfn_to_mfn() 352 val = ((pteval_t)mfn << PAGE_SHIFT) | flags; in pte_pfn_to_mfn() 358 __visible pteval_t xen_pte_val(pte_t pte) in xen_pte_val() 360 pteval_t pteval = pte.pte; in xen_pte_val() 372 __visible pte_t xen_make_pte(pteval_t pte) in xen_make_pte() 1449 __visible pte_t xen_make_pte_init(pteval_t pte) in xen_make_pte_init()
|
/linux-6.1.9/arch/arm64/mm/ |
D | mmap.c | 82 pteval_t prot = pgprot_val(protection_map[vm_flags & in vm_get_page_prot()
|