/openbmc/linux/arch/arm/include/asm/ |
H A D | pgtable-3level-hwdef.h | 17 #define PMD_TYPE_MASK (_AT(pmdval_t, 3) << 0) 18 #define PMD_TYPE_FAULT (_AT(pmdval_t, 0) << 0) 19 #define PMD_TYPE_TABLE (_AT(pmdval_t, 3) << 0) 20 #define PMD_TYPE_SECT (_AT(pmdval_t, 1) << 0) 21 #define PMD_TABLE_BIT (_AT(pmdval_t, 1) << 1) 22 #define PMD_BIT4 (_AT(pmdval_t, 0)) 23 #define PMD_DOMAIN(x) (_AT(pmdval_t, 0)) 35 #define PMD_SECT_S (_AT(pmdval_t, 3) << 8) 40 #define PMD_SECT_AP_WRITE (_AT(pmdval_t, 0)) 41 #define PMD_SECT_AP_READ (_AT(pmdval_t, 0)) [all …]
|
H A D | pgtable-2level-hwdef.h | 16 #define PMD_TYPE_MASK (_AT(pmdval_t, 3) << 0) 17 #define PMD_TYPE_FAULT (_AT(pmdval_t, 0) << 0) 18 #define PMD_TYPE_TABLE (_AT(pmdval_t, 1) << 0) 19 #define PMD_TYPE_SECT (_AT(pmdval_t, 2) << 0) 21 #define PMD_BIT4 (_AT(pmdval_t, 1) << 4) 22 #define PMD_DOMAIN(x) (_AT(pmdval_t, (x)) << 5) 30 #define PMD_SECT_CACHEABLE (_AT(pmdval_t, 1) << 3) 32 #define PMD_SECT_AP_WRITE (_AT(pmdval_t, 1) << 10) 33 #define PMD_SECT_AP_READ (_AT(pmdval_t, 1) << 11) 39 #define PMD_SECT_AF (_AT(pmdval_t, 0)) [all …]
|
H A D | pgtable-2level-types.h | 13 typedef u32 pmdval_t; typedef 22 typedef struct { pmdval_t pmd; } pmd_t; 23 typedef struct { pmdval_t pgd[2]; } pgd_t; 40 typedef pmdval_t pmd_t; 41 typedef pmdval_t pgd_t[2];
|
H A D | pgalloc.h | 108 pmdval_t prot) in __pmd_populate() 110 pmdval_t pmdval = (pte + PTE_HWTABLE_OFF) | prot; in __pmd_populate() 136 extern pmdval_t user_pmd_table; in pmd_populate() 137 pmdval_t prot; in pmd_populate()
|
H A D | pgtable-3level-types.h | 14 typedef u64 pmdval_t; typedef 25 typedef struct { pmdval_t pmd; } pmd_t; 42 typedef pmdval_t pmd_t;
|
H A D | pgtable-3level.h | 82 #define L_PMD_SECT_VALID (_AT(pmdval_t, 1) << 0) 83 #define L_PMD_SECT_DIRTY (_AT(pmdval_t, 1) << 55) 84 #define L_PMD_SECT_NONE (_AT(pmdval_t, 1) << 57) 227 const pmdval_t mask = PMD_SECT_USER | PMD_SECT_XN | L_PMD_SECT_RDONLY | in pmd_modify()
|
/openbmc/linux/arch/arm64/include/asm/ |
H A D | pgtable-hwdef.h | 114 #define PMD_TYPE_MASK (_AT(pmdval_t, 3) << 0) 115 #define PMD_TYPE_TABLE (_AT(pmdval_t, 3) << 0) 116 #define PMD_TYPE_SECT (_AT(pmdval_t, 1) << 0) 117 #define PMD_TABLE_BIT (_AT(pmdval_t, 1) << 1) 122 #define PMD_SECT_VALID (_AT(pmdval_t, 1) << 0) 125 #define PMD_SECT_S (_AT(pmdval_t, 3) << 8) 126 #define PMD_SECT_AF (_AT(pmdval_t, 1) << 10) 127 #define PMD_SECT_NG (_AT(pmdval_t, 1) << 11) 128 #define PMD_SECT_CONT (_AT(pmdval_t, 1) << 52) 129 #define PMD_SECT_PXN (_AT(pmdval_t, 1) << 53) [all …]
|
H A D | pgtable-types.h | 15 typedef u64 pmdval_t; typedef 28 typedef struct { pmdval_t pmd; } pmd_t;
|
H A D | pgalloc.h | 67 pmdval_t prot) in __pmd_populate()
|
/openbmc/linux/arch/x86/kernel/ |
H A D | head64.c | 51 pmdval_t early_pmd_flags = __PAGE_KERNEL_LARGE & ~(_PAGE_GLOBAL | _PAGE_NX); 129 static unsigned long __head sme_postprocess_startup(struct boot_params *bp, pmdval_t *pmd) in sme_postprocess_startup() 186 pmdval_t *pmd, pmd_entry; in __startup_64() 330 bool __init __early_make_pgtable(unsigned long address, pmdval_t pmd) in __early_make_pgtable() 336 pmdval_t *pmd_p; in __early_make_pgtable() 384 pmd_p = (pmdval_t *)((pud & PTE_PFN_MASK) + __START_KERNEL_map - phys_base); in __early_make_pgtable() 391 pmd_p = (pmdval_t *)early_dynamic_pgts[next_early_pgt++]; in __early_make_pgtable() 403 pmdval_t pmd; in early_make_pgtable()
|
/openbmc/linux/arch/x86/include/asm/ |
H A D | pgtable-3level_types.h | 9 typedef u64 pmdval_t; typedef 26 pmdval_t pmd;
|
H A D | pgtable_types.h | 370 static inline pud_t native_make_pud(pmdval_t val) in native_make_pud() 394 static inline pmd_t native_make_pmd(pmdval_t val) in native_make_pmd() 399 static inline pmdval_t native_pmd_val(pmd_t pmd) in native_pmd_val() 406 static inline pmd_t native_make_pmd(pmdval_t val) in native_make_pmd() 411 static inline pmdval_t native_pmd_val(pmd_t pmd) in native_pmd_val() 451 static inline pmdval_t pmd_pfn_mask(pmd_t pmd) in pmd_pfn_mask() 459 static inline pmdval_t pmd_flags_mask(pmd_t pmd) in pmd_flags_mask() 464 static inline pmdval_t pmd_flags(pmd_t pmd) in pmd_flags()
|
H A D | pgtable_64_types.h | 15 typedef unsigned long pmdval_t; typedef 22 typedef struct { pmdval_t pmd; } pmd_t;
|
H A D | pgtable-2level_types.h | 9 typedef unsigned long pmdval_t; typedef
|
H A D | pgtable.h | 28 bool __init __early_make_pgtable(unsigned long address, pmdval_t pmd); 64 extern pmdval_t early_pmd_flags; 477 static inline pmd_t pmd_set_flags(pmd_t pmd, pmdval_t set) in pmd_set_flags() 479 pmdval_t v = native_pmd_val(pmd); in pmd_set_flags() 484 static inline pmd_t pmd_clear_flags(pmd_t pmd, pmdval_t clear) in pmd_clear_flags() 486 pmdval_t v = native_pmd_val(pmd); in pmd_clear_flags() 494 pmdval_t v = native_pmd_val(pmd); in pmd_mksaveddirty() 503 pmdval_t v = native_pmd_val(pmd); in pmd_clear_saveddirty() 814 pmdval_t val = pmd_val(pmd), oldval = val; in pmd_modify()
|
H A D | paravirt.h | 444 static inline pmd_t __pmd(pmdval_t val) in __pmd() 446 return (pmd_t) { PVOP_ALT_CALLEE1(pmdval_t, mmu.make_pmd, val, in __pmd() 451 static inline pmdval_t pmd_val(pmd_t pmd) in pmd_val() 453 return PVOP_ALT_CALLEE1(pmdval_t, mmu.pmd_val, pmd.pmd, in pmd_val()
|
H A D | pgtable-2level.h | 61 return __pmd(xchg((pmdval_t *)xp, 0)); in native_pmdp_get_and_clear()
|
/openbmc/linux/arch/arm/mm/ |
H A D | mm.h | 41 pmdval_t prot_l1; 42 pmdval_t prot_sect;
|
H A D | init.c | 309 pmdval_t mask; 310 pmdval_t prot; 311 pmdval_t clear; 366 static inline void section_update(unsigned long addr, pmdval_t mask, in section_update() 367 pmdval_t prot, struct mm_struct *mm) in section_update()
|
/openbmc/linux/include/trace/events/ |
H A D | xen.h | 156 TRACE_DEFINE_SIZEOF(pmdval_t); 163 __field(pmdval_t, pmdval) 169 (int)sizeof(pmdval_t) * 2, (unsigned long long)pmd_val(native_make_pmd(__entry->pmdval)), 170 (int)sizeof(pmdval_t) * 2, (unsigned long long)__entry->pmdval)
|
/openbmc/linux/arch/x86/mm/ |
H A D | kmmio.c | 133 static void clear_pmd_presence(pmd_t *pmd, bool clear, pmdval_t *old) in clear_pmd_presence() 136 pmdval_t v = pmd_val(*pmd); in clear_pmd_presence()
|
H A D | mem_encrypt_identity.c | 77 pmdval_t pmd_flags; 213 pmdval_t pmd_flags, pteval_t pte_flags) in __sme_map_range()
|
H A D | mem_encrypt_amd.c | 162 pmdval_t pmd_flags, pmd; in __sme_early_map_unmap_mem()
|
H A D | kasan_init_64.c | 293 pmdval_t pmd_val = __pa_nodebug(kasan_early_shadow_pte) | _KERNPG_TABLE; in kasan_early_init()
|
/openbmc/linux/arch/x86/xen/ |
H A D | mmu_pv.c | 95 pmdval_t xen_pmd_val(pmd_t pmd); 100 pmd_t xen_make_pmd(pmdval_t pmd); 403 __visible pmdval_t xen_pmd_val(pmd_t pmd) in xen_pmd_val() 441 __visible pmd_t xen_make_pmd(pmdval_t pmd) in xen_make_pmd()
|