/arch/arm/include/asm/ |
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)) 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 …]
|
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) 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 …]
|
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];
|
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()
|
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;
|
D | pgtable-3level.h | 79 #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()
|
/arch/arm64/include/asm/ |
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) 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 …]
|
D | pgtable-types.h | 15 typedef u64 pmdval_t; typedef 28 typedef struct { pmdval_t pmd; } pmd_t;
|
D | pgalloc.h | 67 pmdval_t prot) in __pmd_populate()
|
/arch/arm/mm/ |
D | mm.h | 41 pmdval_t prot_l1; 42 pmdval_t prot_sect;
|
D | init.c | 354 pmdval_t mask; 355 pmdval_t prot; 356 pmdval_t clear; 411 static inline void section_update(unsigned long addr, pmdval_t mask, in section_update() 412 pmdval_t prot, struct mm_struct *mm) in section_update()
|
D | mmu.c | 56 pmdval_t user_pmd_table = _PAGE_USER_TABLE; 75 pmdval_t pmd;
|
/arch/x86/include/asm/ |
D | pgtable_types.h | 358 static inline pud_t native_make_pud(pmdval_t val) in native_make_pud() 382 typedef struct { pmdval_t pmd; } pmd_t; 384 static inline pmd_t native_make_pmd(pmdval_t val) in native_make_pmd() 389 static inline pmdval_t native_pmd_val(pmd_t pmd) in native_pmd_val() 396 static inline pmd_t native_make_pmd(pmdval_t val) in native_make_pmd() 401 static inline pmdval_t native_pmd_val(pmd_t pmd) in native_pmd_val() 441 static inline pmdval_t pmd_pfn_mask(pmd_t pmd) in pmd_pfn_mask() 449 static inline pmdval_t pmd_flags_mask(pmd_t pmd) in pmd_flags_mask() 454 static inline pmdval_t pmd_flags(pmd_t pmd) in pmd_flags()
|
D | pgtable-3level.h | 77 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()
|
D | pgtable-2level_types.h | 9 typedef unsigned long pmdval_t; typedef
|
D | pgtable-3level_types.h | 9 typedef u64 pmdval_t; typedef
|
D | pgtable_64_types.h | 15 typedef unsigned long pmdval_t; typedef
|
D | pgtable.h | 31 bool __init __early_make_pgtable(unsigned long address, pmdval_t pmd); 60 extern pmdval_t early_pmd_flags; 371 static inline pmd_t pmd_set_flags(pmd_t pmd, pmdval_t set) in pmd_set_flags() 373 pmdval_t v = native_pmd_val(pmd); in pmd_set_flags() 378 static inline pmd_t pmd_clear_flags(pmd_t pmd, pmdval_t clear) in pmd_clear_flags() 380 pmdval_t v = native_pmd_val(pmd); in pmd_clear_flags() 623 pmdval_t val = pmd_val(pmd), oldval = val; in pmd_modify()
|
D | pgtable-2level.h | 61 return __pmd(xchg((pmdval_t *)xp, 0)); in native_pmdp_get_and_clear()
|
D | paravirt.h | 443 static inline pmd_t __pmd(pmdval_t val) in __pmd() 445 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()
|
/arch/x86/kernel/ |
D | head64.c | 49 pmdval_t early_pmd_flags = __PAGE_KERNEL_LARGE & ~(_PAGE_GLOBAL | _PAGE_NX); 144 pmdval_t *pmd, pmd_entry; in __startup_64() 322 bool __init __early_make_pgtable(unsigned long address, pmdval_t pmd) in __early_make_pgtable() 328 pmdval_t *pmd_p; in __early_make_pgtable() 376 pmd_p = (pmdval_t *)((pud & PTE_PFN_MASK) + __START_KERNEL_map - phys_base); in __early_make_pgtable() 383 pmd_p = (pmdval_t *)early_dynamic_pgts[next_early_pgt++]; in __early_make_pgtable() 395 pmdval_t pmd; in early_make_pgtable()
|
/arch/x86/mm/ |
D | kmmio.c | 127 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()
|
D | mem_encrypt_identity.c | 74 pmdval_t pmd_flags; 214 pmdval_t pmd_flags, pteval_t pte_flags) in __sme_map_range()
|
D | mem_encrypt.c | 125 pmdval_t pmd_flags, pmd; in __sme_early_map_unmap_mem()
|
D | kasan_init_64.c | 293 pmdval_t pmd_val = __pa_nodebug(kasan_early_shadow_pte) | _KERNPG_TABLE; in kasan_early_init()
|