/openbmc/linux/arch/powerpc/mm/ |
H A D | hugetlbpage.c | 143 else if (pshift > PMD_SHIFT) { in huge_pte_alloc() 147 pdshift = PMD_SHIFT; in huge_pte_alloc() 151 if (pshift == PMD_SHIFT) in huge_pte_alloc() 173 pdshift = PMD_SHIFT; in huge_pte_alloc() 185 if (IS_ENABLED(CONFIG_PPC_8xx) && pshift < PMD_SHIFT) in huge_pte_alloc() 399 free_hugepd_range(tlb, (hugepd_t *)pmd, PMD_SHIFT, in hugetlb_free_pmd_range() 567 else if (shift > PMD_SHIFT) in hugetlbpage_init() 570 pdshift = PMD_SHIFT; in hugetlbpage_init() 573 pdshift = PMD_SHIFT; in hugetlbpage_init()
|
/openbmc/linux/arch/powerpc/include/asm/nohash/64/ |
H A D | pgtable-4k.h | 30 #define PMD_SHIFT (PAGE_SHIFT + PTE_INDEX_SIZE) macro 31 #define PMD_SIZE (1UL << PMD_SHIFT) 35 #define PUD_SHIFT (PMD_SHIFT + PMD_INDEX_SIZE)
|
/openbmc/linux/arch/arc/include/asm/ |
H A D | pgtable-levels.h | 65 #define PMD_SHIFT 21 macro 81 #define PMD_SIZE BIT(PMD_SHIFT) 83 #define PTRS_PER_PMD BIT(PUD_SHIFT - PMD_SHIFT) 86 #define PTRS_PER_PTE BIT(PMD_SHIFT - PAGE_SHIFT)
|
/openbmc/linux/arch/x86/mm/ |
H A D | init_32.c | 129 int pmd_idx_kmap_begin = fix_to_virt(FIX_KMAP_END) >> PMD_SHIFT; in page_table_range_init_count() 130 int pmd_idx_kmap_end = fix_to_virt(FIX_KMAP_BEGIN) >> PMD_SHIFT; in page_table_range_init_count() 144 if ((vaddr >> PMD_SHIFT) >= pmd_idx_kmap_begin && in page_table_range_init_count() 145 (vaddr >> PMD_SHIFT) <= pmd_idx_kmap_end) in page_table_range_init_count() 166 int pmd_idx_kmap_begin = fix_to_virt(FIX_KMAP_END) >> PMD_SHIFT; in page_table_kmap_check() 167 int pmd_idx_kmap_end = fix_to_virt(FIX_KMAP_BEGIN) >> PMD_SHIFT; in page_table_kmap_check() 170 && (vaddr >> PMD_SHIFT) >= pmd_idx_kmap_begin in page_table_kmap_check() 171 && (vaddr >> PMD_SHIFT) <= pmd_idx_kmap_end) { in page_table_kmap_check()
|
/openbmc/linux/arch/sh/include/asm/ |
H A D | pgtable-3level.h | 22 #define PMD_SHIFT (PAGE_SHIFT + (PAGE_SHIFT - PTE_MAGNITUDE)) macro 23 #define PMD_SIZE (1UL << PMD_SHIFT)
|
/openbmc/linux/arch/x86/include/asm/ |
H A D | page_types.h | 23 #define HPAGE_SHIFT PMD_SHIFT 44 #define IOREMAP_MAX_ORDER (PMD_SHIFT)
|
H A D | pgtable_64_types.h | 91 #define PMD_SHIFT 21 macro 99 #define PMD_SIZE (_AC(1, UL) << PMD_SHIFT)
|
H A D | pgtable_32_types.h | 12 # define PMD_SIZE (1UL << PMD_SHIFT)
|
H A D | pgtable-3level_types.h | 44 #define PMD_SHIFT 21 macro
|
H A D | boot.h | 16 # define MIN_KERNEL_ALIGN_LG2 PMD_SHIFT
|
/openbmc/linux/arch/mips/include/asm/ |
H A D | pgtable-64.h | 49 #define PMD_SHIFT (PAGE_SHIFT + (PAGE_SHIFT - 3)) macro 50 #define PMD_SIZE (1UL << PMD_SHIFT) 54 # define PGDIR_SHIFT (PMD_SHIFT + (PAGE_SHIFT + PMD_TABLE_ORDER - 3)) 59 #define PUD_SHIFT (PMD_SHIFT + (PAGE_SHIFT + PMD_TABLE_ORDER - 3))
|
/openbmc/linux/arch/arm/include/asm/ |
H A D | pgtable-3level.h | 38 #define PMD_SHIFT 21 macro 40 #define PMD_SIZE (1UL << PMD_SHIFT) 41 #define PMD_MASK (~((1 << PMD_SHIFT) - 1)) 57 #define HPAGE_SHIFT PMD_SHIFT
|
H A D | pgtable-2level.h | 84 #define PMD_SHIFT 21 macro 87 #define PMD_SIZE (1UL << PMD_SHIFT)
|
/openbmc/linux/include/asm-generic/ |
H A D | pgtable-nopmd.h | 20 #define PMD_SHIFT PUD_SHIFT macro 22 #define PMD_SIZE (1UL << PMD_SHIFT)
|
/openbmc/linux/arch/arm64/include/asm/ |
H A D | pgtable-hwdef.h | 49 #define PMD_SHIFT ARM64_HW_PGTABLE_LEVEL_SHIFT(2) macro 50 #define PMD_SIZE (_AC(1, UL) << PMD_SHIFT) 82 #define CONT_PMD_SHIFT (CONFIG_ARM64_CONT_PMD_SHIFT + PMD_SHIFT) 83 #define CONT_PMDS (1 << (CONT_PMD_SHIFT - PMD_SHIFT))
|
H A D | kernel-pgtable.h | 98 #define SWAPPER_BLOCK_SHIFT PMD_SHIFT 104 #define SWAPPER_TABLE_SHIFT PMD_SHIFT
|
/openbmc/linux/arch/um/include/asm/ |
H A D | pgtable-3level.h | 26 #define PMD_SHIFT 21 macro 27 #define PMD_SIZE (1UL << PMD_SHIFT)
|
/openbmc/linux/arch/loongarch/include/asm/ |
H A D | pgtable.h | 28 #define PMD_SHIFT (PAGE_SHIFT + (PAGE_SHIFT - 3)) macro 29 #define PMD_SIZE (1UL << PMD_SHIFT) 31 #define PGDIR_SHIFT (PMD_SHIFT + (PAGE_SHIFT - 3)) 33 #define PMD_SHIFT (PAGE_SHIFT + (PAGE_SHIFT - 3)) macro 34 #define PMD_SIZE (1UL << PMD_SHIFT) 36 #define PUD_SHIFT (PMD_SHIFT + (PAGE_SHIFT - 3))
|
/openbmc/linux/arch/m68k/include/asm/ |
H A D | pgtable_mm.h | 37 #define PMD_SHIFT 18 macro 39 #define PMD_SIZE (1UL << PMD_SHIFT)
|
/openbmc/linux/arch/loongarch/mm/ |
H A D | tlbex.S | 69 bstrpick.d ra, t0, PTRS_PER_PMD_BITS + PMD_SHIFT - 1, PMD_SHIFT 222 bstrpick.d ra, t0, PTRS_PER_PMD_BITS + PMD_SHIFT - 1, PMD_SHIFT 378 bstrpick.d ra, t0, PTRS_PER_PMD_BITS + PMD_SHIFT - 1, PMD_SHIFT
|
/openbmc/linux/arch/ia64/include/asm/ |
H A D | pgtable.h | 101 #define PMD_SHIFT (PAGE_SHIFT + (PTRS_PER_PTD_SHIFT)) macro 102 #define PMD_SIZE (1UL << PMD_SHIFT) 113 #define PUD_SHIFT (PMD_SHIFT + (PTRS_PER_PTD_SHIFT)) 127 #define PGDIR_SHIFT (PMD_SHIFT + (PTRS_PER_PTD_SHIFT))
|
/openbmc/linux/arch/sparc/include/asm/ |
H A D | tsb.h | 176 sllx VADDR, 64 - (PMD_SHIFT + PMD_BITS), REG2; \ 191 698: sllx VADDR, 64 - PMD_SHIFT, REG2; \ 283 sllx VADDR, 64 - (PMD_SHIFT + PMD_BITS), REG2; \ 288 sllx VADDR, 64 - PMD_SHIFT, REG2; \
|
/openbmc/linux/arch/alpha/include/asm/ |
H A D | pgtable.h | 31 #define PMD_SHIFT (PAGE_SHIFT + (PAGE_SHIFT-3)) macro 32 #define PMD_SIZE (1UL << PMD_SHIFT) 279 pmd_t *ret = pud_pgtable(*dir) + ((address >> PMD_SHIFT) & (PTRS_PER_PAGE - 1)); in pmd_offset()
|
/openbmc/linux/arch/riscv/include/asm/ |
H A D | pgtable-64.h | 41 #define PMD_SHIFT 21 macro 43 #define PMD_SIZE (_AC(1, UL) << PMD_SHIFT) 247 #define pmd_index(addr) (((addr) >> PMD_SHIFT) & (PTRS_PER_PMD - 1))
|
/openbmc/linux/arch/arm64/mm/ |
H A D | fixmap.c | 20 SPAN_NR_ENTRIES(FIXADDR_TOT_START, FIXADDR_TOP, PMD_SHIFT) 29 #define BM_PTE_TABLE_IDX(addr) __BM_TABLE_IDX(addr, PMD_SHIFT)
|