Home
last modified time | relevance | path

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

12

/Linux-v5.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.h102 pmdval_t prot) in __pmd_populate()
104 pmdval_t pmdval = (pte + PTE_HWTABLE_OFF) | prot; in __pmd_populate()
130 extern pmdval_t user_pmd_table; in pmd_populate()
131 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)
226 const pmdval_t mask = PMD_SECT_USER | PMD_SECT_XN | L_PMD_SECT_RDONLY | in pmd_modify()
/Linux-v5.10/arch/arm64/include/asm/
Dpgtable-hwdef.h108 #define PMD_TYPE_MASK (_AT(pmdval_t, 3) << 0)
109 #define PMD_TYPE_TABLE (_AT(pmdval_t, 3) << 0)
110 #define PMD_TYPE_SECT (_AT(pmdval_t, 1) << 0)
111 #define PMD_TABLE_BIT (_AT(pmdval_t, 1) << 1)
116 #define PMD_SECT_VALID (_AT(pmdval_t, 1) << 0)
117 #define PMD_SECT_USER (_AT(pmdval_t, 1) << 6) /* AP[1] */
118 #define PMD_SECT_RDONLY (_AT(pmdval_t, 1) << 7) /* AP[2] */
119 #define PMD_SECT_S (_AT(pmdval_t, 3) << 8)
120 #define PMD_SECT_AF (_AT(pmdval_t, 1) << 10)
121 #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.h61 pmdval_t prot) in __pmd_populate()
/Linux-v5.10/arch/x86/include/asm/
Dpgtable_types.h361 static inline pud_t native_make_pud(pmdval_t val) in native_make_pud()
385 typedef struct { pmdval_t pmd; } pmd_t;
387 static inline pmd_t native_make_pmd(pmdval_t val) in native_make_pmd()
392 static inline pmdval_t native_pmd_val(pmd_t pmd) in native_pmd_val()
399 static inline pmd_t native_make_pmd(pmdval_t val) in native_make_pmd()
404 static inline pmdval_t native_pmd_val(pmd_t pmd) in native_pmd_val()
444 static inline pmdval_t pmd_pfn_mask(pmd_t pmd) in pmd_pfn_mask()
452 static inline pmdval_t pmd_flags_mask(pmd_t pmd) in pmd_flags_mask()
457 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.h31 bool __init __early_make_pgtable(unsigned long address, pmdval_t pmd);
60 extern pmdval_t early_pmd_flags;
399 static inline pmd_t pmd_set_flags(pmd_t pmd, pmdval_t set) in pmd_set_flags()
401 pmdval_t v = native_pmd_val(pmd); in pmd_set_flags()
406 static inline pmd_t pmd_clear_flags(pmd_t pmd, pmdval_t clear) in pmd_clear_flags()
408 pmdval_t v = native_pmd_val(pmd); in pmd_clear_flags()
651 pmdval_t val = pmd_val(pmd), oldval = val; in pmd_modify()
Dparavirt.h420 static inline pmd_t __pmd(pmdval_t val) in __pmd()
422 return (pmd_t) { PVOP_CALLEE1(pmdval_t, mmu.make_pmd, val) }; in __pmd()
425 static inline pmdval_t pmd_val(pmd_t pmd) in pmd_val()
427 return PVOP_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-v5.10/arch/x86/kernel/
Dhead64.c50 pmdval_t early_pmd_flags = __PAGE_KERNEL_LARGE & ~(_PAGE_GLOBAL | _PAGE_NX);
145 pmdval_t *pmd, pmd_entry; in __startup_64()
323 bool __init __early_make_pgtable(unsigned long address, pmdval_t pmd) in __early_make_pgtable()
329 pmdval_t *pmd_p; in __early_make_pgtable()
377 pmd_p = (pmdval_t *)((pud & PTE_PFN_MASK) + __START_KERNEL_map - phys_base); in __early_make_pgtable()
384 pmd_p = (pmdval_t *)early_dynamic_pgts[next_early_pgt++]; in __early_make_pgtable()
396 pmdval_t pmd; in early_make_pgtable()
/Linux-v5.10/arch/arm/mm/
Dmm.h41 pmdval_t prot_l1;
42 pmdval_t prot_sect;
Dinit.c420 pmdval_t mask;
421 pmdval_t prot;
422 pmdval_t clear;
477 static inline void section_update(unsigned long addr, pmdval_t mask, in section_update()
478 pmdval_t prot, struct mm_struct *mm) in section_update()
/Linux-v5.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-v5.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.c65 pmdval_t pmd_flags;
205 pmdval_t pmd_flags, pteval_t pte_flags) in __sme_map_range()
Dmem_encrypt.c125 pmdval_t pmd_flags, pmd; in __sme_early_map_unmap_mem()
Dkasan_init_64.c295 pmdval_t pmd_val = __pa_nodebug(kasan_early_shadow_pte) | _KERNPG_TABLE; in kasan_early_init()

12