Home
last modified time | relevance | path

Searched refs:pmdval_t (Results 1 – 25 of 28) sorted by relevance

12

/linux-6.12.1/arch/arm/include/asm/
Dpgtable-3level-hwdef.h17 #define PUD_TABLE_BIT (_AT(pmdval_t, 1) << 1)
18 #define PMD_TYPE_MASK (_AT(pmdval_t, 3) << 0)
19 #define PMD_TYPE_FAULT (_AT(pmdval_t, 0) << 0)
20 #define PMD_TYPE_TABLE (_AT(pmdval_t, 3) << 0)
21 #define PMD_TYPE_SECT (_AT(pmdval_t, 1) << 0)
22 #define PMD_TABLE_BIT (_AT(pmdval_t, 1) << 1)
23 #define PMD_BIT4 (_AT(pmdval_t, 0))
24 #define PMD_DOMAIN(x) (_AT(pmdval_t, 0))
32 #define PMD_SECT_BUFFERABLE (_AT(pmdval_t, 1) << 2)
33 #define PMD_SECT_CACHEABLE (_AT(pmdval_t, 1) << 3)
[all …]
Dpgtable-2level-hwdef.h16 #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)
20 #define PMD_PXNTABLE (_AT(pmdval_t, 1) << 2) /* v7 */
21 #define PMD_BIT4 (_AT(pmdval_t, 1) << 4)
22 #define PMD_DOMAIN(x) (_AT(pmdval_t, (x)) << 5)
24 #define PMD_PROTECTION (_AT(pmdval_t, 1) << 9) /* v5 */
28 #define PMD_SECT_PXN (_AT(pmdval_t, 1) << 0) /* v7 */
29 #define PMD_SECT_BUFFERABLE (_AT(pmdval_t, 1) << 2)
[all …]
Dpgtable-2level-types.h13 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];
Dpgalloc.h108 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()
Dpgtable-3level-types.h14 typedef u64 pmdval_t; typedef
25 typedef struct { pmdval_t pmd; } pmd_t;
42 typedef pmdval_t pmd_t;
Dpgtable-3level.h82 #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)
225 const pmdval_t mask = PMD_SECT_USER | PMD_SECT_XN | L_PMD_SECT_RDONLY | in pmd_modify()
/linux-6.12.1/arch/arm64/include/asm/
Dpgtable-hwdef.h130 #define PMD_TYPE_MASK (_AT(pmdval_t, 3) << 0)
131 #define PMD_TYPE_TABLE (_AT(pmdval_t, 3) << 0)
132 #define PMD_TYPE_SECT (_AT(pmdval_t, 1) << 0)
133 #define PMD_TABLE_BIT (_AT(pmdval_t, 1) << 1)
138 #define PMD_SECT_USER (_AT(pmdval_t, 1) << 6) /* AP[1] */
139 #define PMD_SECT_RDONLY (_AT(pmdval_t, 1) << 7) /* AP[2] */
140 #define PMD_SECT_S (_AT(pmdval_t, 3) << 8)
141 #define PMD_SECT_AF (_AT(pmdval_t, 1) << 10)
142 #define PMD_SECT_NG (_AT(pmdval_t, 1) << 11)
143 #define PMD_SECT_CONT (_AT(pmdval_t, 1) << 52)
[all …]
Dpgtable-types.h15 typedef u64 pmdval_t; typedef
28 typedef struct { pmdval_t pmd; } pmd_t;
Dpgalloc.h117 pmdval_t prot) in __pmd_populate()
/linux-6.12.1/arch/x86/kernel/
Dhead64.c53 pmdval_t early_pmd_flags = __PAGE_KERNEL_LARGE & ~(_PAGE_GLOBAL | _PAGE_NX);
94 static unsigned long __head sme_postprocess_startup(struct boot_params *bp, pmdval_t *pmd) in sme_postprocess_startup()
152 pmdval_t *pmd, pmd_entry; in __startup_64()
282 bool __init __early_make_pgtable(unsigned long address, pmdval_t pmd) in __early_make_pgtable()
288 pmdval_t *pmd_p; in __early_make_pgtable()
336 pmd_p = (pmdval_t *)((pud & PTE_PFN_MASK) + __START_KERNEL_map - phys_base); in __early_make_pgtable()
343 pmd_p = (pmdval_t *)early_dynamic_pgts[next_early_pgt++]; in __early_make_pgtable()
355 pmdval_t pmd; in early_make_pgtable()
/linux-6.12.1/arch/x86/include/asm/
Dpgtable_types.h370 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()
Dpgtable-3level_types.h9 typedef u64 pmdval_t; typedef
26 pmdval_t pmd;
Dpgtable_64_types.h15 typedef unsigned long pmdval_t; typedef
22 typedef struct { pmdval_t pmd; } pmd_t;
Dpgtable-2level_types.h9 typedef unsigned long pmdval_t; typedef
Dpgtable.h28 bool __init __early_make_pgtable(unsigned long address, pmdval_t pmd);
63 extern pmdval_t early_pmd_flags;
123 static inline pmd_t pmd_set_flags(pmd_t pmd, pmdval_t set) in pmd_set_flags()
125 pmdval_t v = native_pmd_val(pmd); in pmd_set_flags()
130 static inline pmd_t pmd_clear_flags(pmd_t pmd, pmdval_t clear) in pmd_clear_flags()
132 pmdval_t v = native_pmd_val(pmd); in pmd_clear_flags()
545 pmdval_t v = native_pmd_val(pmd); in pmd_mksaveddirty()
554 pmdval_t v = native_pmd_val(pmd); in pmd_clear_saveddirty()
857 pmdval_t val = pmd_val(pmd), oldval = val; in pmd_modify()
Dparavirt.h444 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()
450 static inline pmdval_t pmd_val(pmd_t pmd) in pmd_val()
452 return PVOP_ALT_CALLEE1(pmdval_t, mmu.pmd_val, pmd.pmd, in pmd_val()
Dpgtable-2level.h61 return __pmd(xchg((pmdval_t *)xp, 0)); in native_pmdp_get_and_clear()
/linux-6.12.1/arch/arm/mm/
Dinit.c310 pmdval_t mask;
311 pmdval_t prot;
312 pmdval_t clear;
367 static inline void section_update(unsigned long addr, pmdval_t mask, in section_update()
368 pmdval_t prot, struct mm_struct *mm) in section_update()
Dmm.h41 pmdval_t prot_l1;
42 pmdval_t prot_sect;
/linux-6.12.1/include/trace/events/
Dxen.h156 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)
/linux-6.12.1/arch/x86/mm/
Dkmmio.c133 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()
Dmem_encrypt_identity.c77 pmdval_t pmd_flags;
213 pmdval_t pmd_flags, pteval_t pte_flags) in __sme_map_range()
Dmem_encrypt_amd.c160 pmdval_t pmd_flags, pmd; in __sme_early_map_unmap_mem()
Dkasan_init_64.c293 pmdval_t pmd_val = __pa_nodebug(kasan_early_shadow_pte) | _KERNPG_TABLE; in kasan_early_init()
/linux-6.12.1/arch/x86/xen/
Dmmu_pv.c93 pmdval_t xen_pmd_val(pmd_t pmd);
98 pmd_t xen_make_pmd(pmdval_t pmd);
402 __visible pmdval_t xen_pmd_val(pmd_t pmd) in xen_pmd_val()
440 __visible pmd_t xen_make_pmd(pmdval_t pmd) in xen_make_pmd()

12