Home
last modified time | relevance | path

Searched refs:PMD_SHIFT (Results 1 – 25 of 81) sorted by relevance

1234

/openbmc/linux/arch/powerpc/mm/
H A Dhugetlbpage.c143 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 Dpgtable-4k.h30 #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 Dpgtable-levels.h65 #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 Dinit_32.c129 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 Dpgtable-3level.h22 #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 Dpage_types.h23 #define HPAGE_SHIFT PMD_SHIFT
44 #define IOREMAP_MAX_ORDER (PMD_SHIFT)
H A Dpgtable_64_types.h91 #define PMD_SHIFT 21 macro
99 #define PMD_SIZE (_AC(1, UL) << PMD_SHIFT)
H A Dpgtable_32_types.h12 # define PMD_SIZE (1UL << PMD_SHIFT)
H A Dpgtable-3level_types.h44 #define PMD_SHIFT 21 macro
H A Dboot.h16 # define MIN_KERNEL_ALIGN_LG2 PMD_SHIFT
/openbmc/linux/arch/mips/include/asm/
H A Dpgtable-64.h49 #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 Dpgtable-3level.h38 #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 Dpgtable-2level.h84 #define PMD_SHIFT 21 macro
87 #define PMD_SIZE (1UL << PMD_SHIFT)
/openbmc/linux/include/asm-generic/
H A Dpgtable-nopmd.h20 #define PMD_SHIFT PUD_SHIFT macro
22 #define PMD_SIZE (1UL << PMD_SHIFT)
/openbmc/linux/arch/arm64/include/asm/
H A Dpgtable-hwdef.h49 #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 Dkernel-pgtable.h98 #define SWAPPER_BLOCK_SHIFT PMD_SHIFT
104 #define SWAPPER_TABLE_SHIFT PMD_SHIFT
/openbmc/linux/arch/um/include/asm/
H A Dpgtable-3level.h26 #define PMD_SHIFT 21 macro
27 #define PMD_SIZE (1UL << PMD_SHIFT)
/openbmc/linux/arch/loongarch/include/asm/
H A Dpgtable.h28 #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 Dpgtable_mm.h37 #define PMD_SHIFT 18 macro
39 #define PMD_SIZE (1UL << PMD_SHIFT)
/openbmc/linux/arch/loongarch/mm/
H A Dtlbex.S69 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 Dpgtable.h101 #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 Dtsb.h176 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 Dpgtable.h31 #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 Dpgtable-64.h41 #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 Dfixmap.c20 SPAN_NR_ENTRIES(FIXADDR_TOT_START, FIXADDR_TOP, PMD_SHIFT)
29 #define BM_PTE_TABLE_IDX(addr) __BM_TABLE_IDX(addr, PMD_SHIFT)

1234