Home
last modified time | relevance | path

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

12

/linux-5.19.10/arch/arm/include/asm/
Dpgtable-3level-hwdef.h17 #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))
31 #define PMD_SECT_BUFFERABLE (_AT(pmdval_t, 1) << 2)
32 #define PMD_SECT_CACHEABLE (_AT(pmdval_t, 1) << 3)
33 #define PMD_SECT_USER (_AT(pmdval_t, 1) << 6) /* AP[1] */
[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.h79 #define L_PMD_SECT_VALID (_AT(pmdval_t, 1) << 0)
80 #define L_PMD_SECT_DIRTY (_AT(pmdval_t, 1) << 55)
81 #define L_PMD_SECT_NONE (_AT(pmdval_t, 1) << 57)
224 const pmdval_t mask = PMD_SECT_USER | PMD_SECT_XN | L_PMD_SECT_RDONLY | in pmd_modify()
/linux-5.19.10/arch/arm64/include/asm/
Dpgtable-hwdef.h114 #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)
123 #define PMD_SECT_USER (_AT(pmdval_t, 1) << 6) /* AP[1] */
124 #define PMD_SECT_RDONLY (_AT(pmdval_t, 1) << 7) /* AP[2] */
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)
[all …]
Dpgtable-types.h15 typedef u64 pmdval_t; typedef
28 typedef struct { pmdval_t pmd; } pmd_t;
Dpgalloc.h67 pmdval_t prot) in __pmd_populate()
/linux-5.19.10/arch/x86/kernel/
Dhead64.c50 pmdval_t early_pmd_flags = __PAGE_KERNEL_LARGE & ~(_PAGE_GLOBAL | _PAGE_NX);
130 static unsigned long __head sme_postprocess_startup(struct boot_params *bp, pmdval_t *pmd) in sme_postprocess_startup()
187 pmdval_t *pmd, pmd_entry; in __startup_64()
331 bool __init __early_make_pgtable(unsigned long address, pmdval_t pmd) in __early_make_pgtable()
337 pmdval_t *pmd_p; in __early_make_pgtable()
385 pmd_p = (pmdval_t *)((pud & PTE_PFN_MASK) + __START_KERNEL_map - phys_base); in __early_make_pgtable()
392 pmd_p = (pmdval_t *)early_dynamic_pgts[next_early_pgt++]; in __early_make_pgtable()
404 pmdval_t pmd; in early_make_pgtable()
/linux-5.19.10/arch/x86/include/asm/
Dpgtable_types.h359 static inline pud_t native_make_pud(pmdval_t val) in native_make_pud()
383 typedef struct { pmdval_t pmd; } pmd_t;
385 static inline pmd_t native_make_pmd(pmdval_t val) in native_make_pmd()
390 static inline pmdval_t native_pmd_val(pmd_t pmd) in native_pmd_val()
397 static inline pmd_t native_make_pmd(pmdval_t val) in native_make_pmd()
402 static inline pmdval_t native_pmd_val(pmd_t pmd) in native_pmd_val()
442 static inline pmdval_t pmd_pfn_mask(pmd_t pmd) in pmd_pfn_mask()
450 static inline pmdval_t pmd_flags_mask(pmd_t pmd) in pmd_flags_mask()
455 static inline pmdval_t pmd_flags(pmd_t pmd) in pmd_flags()
Dpgtable-3level.h77 pmdval_t ret; in pmd_read_atomic()
80 ret = (pmdval_t) (*tmp); in pmd_read_atomic()
87 ret |= ((pmdval_t)*(tmp + 1)) << 32; in pmd_read_atomic()
Dpgtable-2level_types.h9 typedef unsigned long pmdval_t; typedef
Dpgtable-3level_types.h9 typedef u64 pmdval_t; typedef
Dpgtable.h28 bool __init __early_make_pgtable(unsigned long address, pmdval_t pmd);
63 extern pmdval_t early_pmd_flags;
373 static inline pmd_t pmd_set_flags(pmd_t pmd, pmdval_t set) in pmd_set_flags()
375 pmdval_t v = native_pmd_val(pmd); in pmd_set_flags()
380 static inline pmd_t pmd_clear_flags(pmd_t pmd, pmdval_t clear) in pmd_clear_flags()
382 pmdval_t v = native_pmd_val(pmd); in pmd_clear_flags()
625 pmdval_t val = pmd_val(pmd), oldval = val; in pmd_modify()
Dparavirt.h449 static inline pmd_t __pmd(pmdval_t val) in __pmd()
451 return (pmd_t) { PVOP_ALT_CALLEE1(pmdval_t, mmu.make_pmd, val, in __pmd()
456 static inline pmdval_t pmd_val(pmd_t pmd) in pmd_val()
458 return PVOP_ALT_CALLEE1(pmdval_t, mmu.pmd_val, pmd.pmd, in pmd_val()
Dpgtable_64_types.h15 typedef unsigned long pmdval_t; typedef
Dpgtable-2level.h61 return __pmd(xchg((pmdval_t *)xp, 0)); in native_pmdp_get_and_clear()
/linux-5.19.10/arch/arm/mm/
Dinit.c309 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()
Dmm.h41 pmdval_t prot_l1;
42 pmdval_t prot_sect;
/linux-5.19.10/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-5.19.10/arch/x86/mm/
Dkmmio.c127 static void clear_pmd_presence(pmd_t *pmd, bool clear, pmdval_t *old) in clear_pmd_presence()
130 pmdval_t v = pmd_val(*pmd); in clear_pmd_presence()
Dmem_encrypt_identity.c77 pmdval_t pmd_flags;
217 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()

12