/linux-4.1.27/arch/arm/include/asm/ |
H A D | pgtable-2level-hwdef.h | 19 #define PMD_TYPE_MASK (_AT(pmdval_t, 3) << 0) 20 #define PMD_TYPE_FAULT (_AT(pmdval_t, 0) << 0) 21 #define PMD_TYPE_TABLE (_AT(pmdval_t, 1) << 0) 22 #define PMD_TYPE_SECT (_AT(pmdval_t, 2) << 0) 23 #define PMD_PXNTABLE (_AT(pmdval_t, 1) << 2) /* v7 */ 24 #define PMD_BIT4 (_AT(pmdval_t, 1) << 4) 25 #define PMD_DOMAIN(x) (_AT(pmdval_t, (x)) << 5) 26 #define PMD_PROTECTION (_AT(pmdval_t, 1) << 9) /* v5 */ 30 #define PMD_SECT_PXN (_AT(pmdval_t, 1) << 0) /* v7 */ 31 #define PMD_SECT_BUFFERABLE (_AT(pmdval_t, 1) << 2) 32 #define PMD_SECT_CACHEABLE (_AT(pmdval_t, 1) << 3) 33 #define PMD_SECT_XN (_AT(pmdval_t, 1) << 4) /* v6 */ 34 #define PMD_SECT_AP_WRITE (_AT(pmdval_t, 1) << 10) 35 #define PMD_SECT_AP_READ (_AT(pmdval_t, 1) << 11) 36 #define PMD_SECT_TEX(x) (_AT(pmdval_t, (x)) << 12) /* v5 */ 37 #define PMD_SECT_APX (_AT(pmdval_t, 1) << 15) /* v6 */ 38 #define PMD_SECT_S (_AT(pmdval_t, 1) << 16) /* v6 */ 39 #define PMD_SECT_nG (_AT(pmdval_t, 1) << 17) /* v6 */ 40 #define PMD_SECT_SUPER (_AT(pmdval_t, 1) << 18) /* v6 */ 41 #define PMD_SECT_AF (_AT(pmdval_t, 0)) 43 #define PMD_SECT_UNCACHED (_AT(pmdval_t, 0))
|
H A D | pgtable-3level-hwdef.h | 29 #define PMD_TYPE_MASK (_AT(pmdval_t, 3) << 0) 30 #define PMD_TYPE_FAULT (_AT(pmdval_t, 0) << 0) 31 #define PMD_TYPE_TABLE (_AT(pmdval_t, 3) << 0) 32 #define PMD_TYPE_SECT (_AT(pmdval_t, 1) << 0) 33 #define PMD_TABLE_BIT (_AT(pmdval_t, 1) << 1) 34 #define PMD_BIT4 (_AT(pmdval_t, 0)) 35 #define PMD_DOMAIN(x) (_AT(pmdval_t, 0)) 43 #define PMD_SECT_BUFFERABLE (_AT(pmdval_t, 1) << 2) 44 #define PMD_SECT_CACHEABLE (_AT(pmdval_t, 1) << 3) 45 #define PMD_SECT_USER (_AT(pmdval_t, 1) << 6) /* AP[1] */ 46 #define PMD_SECT_AP2 (_AT(pmdval_t, 1) << 7) /* read only */ 47 #define PMD_SECT_S (_AT(pmdval_t, 3) << 8) 48 #define PMD_SECT_AF (_AT(pmdval_t, 1) << 10) 49 #define PMD_SECT_nG (_AT(pmdval_t, 1) << 11) 50 #define PMD_SECT_PXN (_AT(pmdval_t, 1) << 53) 51 #define PMD_SECT_XN (_AT(pmdval_t, 1) << 54) 52 #define PMD_SECT_AP_WRITE (_AT(pmdval_t, 0)) 53 #define PMD_SECT_AP_READ (_AT(pmdval_t, 0)) 54 #define PMD_SECT_AP1 (_AT(pmdval_t, 1) << 6) 55 #define PMD_SECT_TEX(x) (_AT(pmdval_t, 0)) 60 #define PMD_SECT_UNCACHED (_AT(pmdval_t, 0) << 2) /* strongly ordered */ 61 #define PMD_SECT_BUFFERED (_AT(pmdval_t, 1) << 2) /* normal non-cacheable */ 62 #define PMD_SECT_WT (_AT(pmdval_t, 2) << 2) /* normal inner write-through */ 63 #define PMD_SECT_WB (_AT(pmdval_t, 3) << 2) /* normal inner write-back */ 64 #define PMD_SECT_WBWA (_AT(pmdval_t, 7) << 2) /* normal inner write-alloc */
|
H A D | pgtable-2level-types.h | 25 typedef u32 pmdval_t; typedef 34 typedef struct { pmdval_t pmd; } pmd_t; 35 typedef struct { pmdval_t pgd[2]; } pgd_t; 52 typedef pmdval_t pmd_t; 53 typedef pmdval_t pgd_t[2];
|
H A D | pgtable-3level-types.h | 26 typedef u64 pmdval_t; typedef 37 typedef struct { pmdval_t pmd; } pmd_t; 54 typedef pmdval_t pmd_t;
|
H A D | pgalloc.h | 132 pmdval_t prot) __pmd_populate() 134 pmdval_t pmdval = (pte + PTE_HWTABLE_OFF) | prot; __pmd_populate() 160 extern pmdval_t user_pmd_table; pmd_populate() 161 pmdval_t prot; pmd_populate()
|
H A D | pgtable-3level.h | 89 #define L_PMD_SECT_VALID (_AT(pmdval_t, 1) << 0) 90 #define L_PMD_SECT_DIRTY (_AT(pmdval_t, 1) << 55) 91 #define L_PMD_SECT_SPLITTING (_AT(pmdval_t, 1) << 56) 92 #define L_PMD_SECT_NONE (_AT(pmdval_t, 1) << 57) 132 #define L_PMD_S2_RDONLY (_AT(pmdval_t, 1) << 6) /* HAP[1] */ 133 #define L_PMD_S2_RDWR (_AT(pmdval_t, 3) << 6) /* HAP[2:1] */ 268 const pmdval_t mask = PMD_SECT_USER | PMD_SECT_XN | L_PMD_SECT_RDONLY | pmd_modify()
|
/linux-4.1.27/arch/arm64/include/asm/ |
H A D | pgtable-hwdef.h | 70 #define PMD_TYPE_MASK (_AT(pmdval_t, 3) << 0) 71 #define PMD_TYPE_FAULT (_AT(pmdval_t, 0) << 0) 72 #define PMD_TYPE_TABLE (_AT(pmdval_t, 3) << 0) 73 #define PMD_TYPE_SECT (_AT(pmdval_t, 1) << 0) 74 #define PMD_TABLE_BIT (_AT(pmdval_t, 1) << 1) 79 #define PMD_SECT_VALID (_AT(pmdval_t, 1) << 0) 80 #define PMD_SECT_USER (_AT(pmdval_t, 1) << 6) /* AP[1] */ 81 #define PMD_SECT_RDONLY (_AT(pmdval_t, 1) << 7) /* AP[2] */ 82 #define PMD_SECT_S (_AT(pmdval_t, 3) << 8) 83 #define PMD_SECT_AF (_AT(pmdval_t, 1) << 10) 84 #define PMD_SECT_NG (_AT(pmdval_t, 1) << 11) 85 #define PMD_SECT_PXN (_AT(pmdval_t, 1) << 53) 86 #define PMD_SECT_UXN (_AT(pmdval_t, 1) << 54) 91 #define PMD_ATTRINDX(t) (_AT(pmdval_t, (t)) << 2) 92 #define PMD_ATTRINDX_MASK (_AT(pmdval_t, 7) << 2) 121 #define PMD_S2_RDONLY (_AT(pmdval_t, 1) << 6) /* HAP[2:1] */ 122 #define PMD_S2_RDWR (_AT(pmdval_t, 3) << 6) /* HAP[2:1] */
|
H A D | pgtable-types.h | 26 typedef u64 pmdval_t; typedef 42 typedef struct { pmdval_t pmd; } pmd_t; 68 typedef pmdval_t pmd_t;
|
H A D | pgalloc.h | 111 pmdval_t prot) __pmd_populate()
|
/linux-4.1.27/arch/x86/include/asm/ |
H A D | pgtable-2level_types.h | 8 typedef unsigned long pmdval_t; typedef
|
H A D | pgtable-3level_types.h | 8 typedef u64 pmdval_t; typedef
|
H A D | pgtable_types.h | 240 static inline pud_t native_make_pud(pmdval_t val) native_make_pud() 259 typedef struct { pmdval_t pmd; } pmd_t; 261 static inline pmd_t native_make_pmd(pmdval_t val) native_make_pmd() 266 static inline pmdval_t native_pmd_val(pmd_t pmd) native_pmd_val() 273 static inline pmdval_t native_pmd_val(pmd_t pmd) native_pmd_val() 284 static inline pmdval_t pmd_flags(pmd_t pmd) pmd_flags()
|
H A D | pgtable-2level.h | 52 return __pmd(xchg((pmdval_t *)xp, 0)); native_pmdp_get_and_clear()
|
H A D | pgtable_64_types.h | 13 typedef unsigned long pmdval_t; typedef
|
H A D | paravirt.h | 530 if (sizeof(pmdval_t) > sizeof(long)) set_pmd_at() 540 pmdval_t val = native_pmd_val(pmd); set_pmd() 542 if (sizeof(pmdval_t) > sizeof(long)) set_pmd() 549 static inline pmd_t __pmd(pmdval_t val) __pmd() 551 pmdval_t ret; __pmd() 553 if (sizeof(pmdval_t) > sizeof(long)) __pmd() 554 ret = PVOP_CALLEE2(pmdval_t, pv_mmu_ops.make_pmd, __pmd() 557 ret = PVOP_CALLEE1(pmdval_t, pv_mmu_ops.make_pmd, __pmd() 563 static inline pmdval_t pmd_val(pmd_t pmd) pmd_val() 565 pmdval_t ret; pmd_val() 567 if (sizeof(pmdval_t) > sizeof(long)) pmd_val() 568 ret = PVOP_CALLEE2(pmdval_t, pv_mmu_ops.pmd_val, pmd_val() 571 ret = PVOP_CALLEE1(pmdval_t, pv_mmu_ops.pmd_val, pmd_val()
|
H A D | pgtable-3level.h | 72 pmdval_t ret; pmd_read_atomic() 75 ret = (pmdval_t) (*tmp); pmd_read_atomic() 82 ret |= ((pmdval_t)*(tmp + 1)) << 32; pmd_read_atomic()
|
H A D | pgtable.h | 251 static inline pmd_t pmd_set_flags(pmd_t pmd, pmdval_t set) pmd_set_flags() 253 pmdval_t v = native_pmd_val(pmd); pmd_set_flags() 258 static inline pmd_t pmd_clear_flags(pmd_t pmd, pmdval_t clear) pmd_clear_flags() 260 pmdval_t v = native_pmd_val(pmd); pmd_clear_flags() 365 pmdval_t val = pmd_val(pmd); pmd_modify()
|
/linux-4.1.27/arch/x86/kernel/ |
H A D | head64.c | 38 pmdval_t early_pmd_flags = __PAGE_KERNEL_LARGE & ~(_PAGE_GLOBAL | _PAGE_NX); 60 pmdval_t pmd, *pmd_p; early_make_pgtable() 92 pmd_p = (pmdval_t *)((pud & PTE_PFN_MASK) + __START_KERNEL_map - phys_base); early_make_pgtable() 99 pmd_p = (pmdval_t *)early_dynamic_pgts[next_early_pgt++]; early_make_pgtable()
|
/linux-4.1.27/arch/arm/mm/ |
H A D | mm.h | 44 pmdval_t prot_l1; 45 pmdval_t prot_sect;
|
H A D | init.c | 574 pmdval_t mask; 575 pmdval_t prot; 576 pmdval_t clear; 628 static inline void section_update(unsigned long addr, pmdval_t mask, section_update() 629 pmdval_t prot) section_update()
|
H A D | mmu.c | 56 pmdval_t user_pmd_table = _PAGE_USER_TABLE; 78 pmdval_t pmd; 1398 pmdval_t pmdprot = procinfo->__cpu_mm_mmu_flags; early_paging_init()
|
/linux-4.1.27/include/trace/events/ |
H A D | xen.h | 207 __field(pmdval_t, pmdval) 213 (int)sizeof(pmdval_t) * 2, (unsigned long long)pmd_val(native_make_pmd(__entry->pmdval)), 214 (int)sizeof(pmdval_t) * 2, (unsigned long long)__entry->pmdval)
|
/linux-4.1.27/arch/x86/mm/ |
H A D | kasan_init_64.c | 185 pmdval_t pmd_val = __pa_nodebug(kasan_zero_pte) | _KERNPG_TABLE; kasan_early_init()
|
H A D | kmmio.c | 115 static void clear_pmd_presence(pmd_t *pmd, bool clear, pmdval_t *old) clear_pmd_presence() 117 pmdval_t v = pmd_val(*pmd); clear_pmd_presence()
|
/linux-4.1.27/include/asm-generic/ |
H A D | pgtable.h | 587 * only going to work, if the pmdval_t isn't larger than pmd_read_atomic()
|
/linux-4.1.27/arch/x86/xen/ |
H A D | mmu.c | 439 __visible pmdval_t xen_pmd_val(pmd_t pmd) xen_pmd_val() 498 __visible pmd_t xen_make_pmd(pmdval_t pmd) xen_make_pmd()
|