Home
last modified time | relevance | path

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

1234

/kernel/linux/linux-5.10/arch/x86/include/asm/
Dpage_types.h14 #define PMD_PAGE_SIZE (_AC(1, UL) << PMD_SHIFT)
29 #define HPAGE_SHIFT PMD_SHIFT
50 #define IOREMAP_MAX_ORDER (PMD_SHIFT)
Dpgtable_64_types.h90 #define PMD_SHIFT 21 macro
98 #define PMD_SIZE (_AC(1, UL) << PMD_SHIFT)
Dpgtable_32_types.h12 # define PMD_SIZE (1UL << PMD_SHIFT)
Dpgtable-3level_types.h37 #define PMD_SHIFT 21 macro
Dboot.h16 # define MIN_KERNEL_ALIGN_LG2 PMD_SHIFT
/kernel/linux/linux-5.10/arch/powerpc/include/asm/nohash/64/
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)
/kernel/linux/linux-5.10/arch/arm64/include/asm/
Dkernel-pgtable.h100 #define SWAPPER_TABLE_SHIFT PMD_SHIFT
128 #define ARM64_MEMSTART_SHIFT (PMD_SHIFT + 5)
130 #define ARM64_MEMSTART_SHIFT PMD_SHIFT
Dpgtable-hwdef.h49 #define PMD_SHIFT ARM64_HW_PGTABLE_LEVEL_SHIFT(2) macro
50 #define PMD_SIZE (_AC(1, UL) << PMD_SHIFT)
77 #define SECTION_SHIFT PMD_SHIFT
89 #define CONT_PMD_SHIFT (CONFIG_ARM64_CONT_PMD_SHIFT + PMD_SHIFT)
90 #define CONT_PMDS (1 << (CONT_PMD_SHIFT - PMD_SHIFT))
/kernel/linux/linux-5.10/arch/powerpc/mm/
Dhugetlbpage.c141 else if (pshift > PMD_SHIFT) { in huge_pte_alloc()
145 pdshift = PMD_SHIFT; in huge_pte_alloc()
149 if (pshift == PMD_SHIFT) in huge_pte_alloc()
171 pdshift = PMD_SHIFT; in huge_pte_alloc()
183 if (IS_ENABLED(CONFIG_PPC_8xx) && pshift < PMD_SHIFT) in huge_pte_alloc()
394 free_hugepd_range(tlb, (hugepd_t *)pmd, PMD_SHIFT, in hugetlb_free_pmd_range()
643 else if (shift > PMD_SHIFT) in hugetlbpage_init()
646 pdshift = PMD_SHIFT; in hugetlbpage_init()
649 pdshift = PMD_SHIFT; in hugetlbpage_init()
/kernel/linux/linux-5.10/arch/sh/include/asm/
Dpgtable-3level.h22 #define PMD_SHIFT (PAGE_SHIFT + (PAGE_SHIFT - PTE_MAGNITUDE)) macro
23 #define PMD_SIZE (1UL << PMD_SHIFT)
/kernel/linux/linux-5.10/arch/mips/include/asm/
Dpgtable-64.h49 #define PMD_SHIFT (PAGE_SHIFT + (PAGE_SHIFT + PTE_ORDER - 3)) macro
50 #define PMD_SIZE (1UL << PMD_SHIFT)
54 # define PGDIR_SHIFT (PMD_SHIFT + (PAGE_SHIFT + PMD_ORDER - 3))
59 #define PUD_SHIFT (PMD_SHIFT + (PAGE_SHIFT + PMD_ORDER - 3))
/kernel/linux/linux-5.10/arch/x86/mm/
Dinit_32.c132 int pmd_idx_kmap_begin = fix_to_virt(FIX_KMAP_END) >> PMD_SHIFT; in page_table_range_init_count()
133 int pmd_idx_kmap_end = fix_to_virt(FIX_KMAP_BEGIN) >> PMD_SHIFT; in page_table_range_init_count()
147 if ((vaddr >> PMD_SHIFT) >= pmd_idx_kmap_begin && in page_table_range_init_count()
148 (vaddr >> PMD_SHIFT) <= pmd_idx_kmap_end) in page_table_range_init_count()
169 int pmd_idx_kmap_begin = fix_to_virt(FIX_KMAP_END) >> PMD_SHIFT; in page_table_kmap_check()
170 int pmd_idx_kmap_end = fix_to_virt(FIX_KMAP_BEGIN) >> PMD_SHIFT; in page_table_kmap_check()
173 && (vaddr >> PMD_SHIFT) >= pmd_idx_kmap_begin in page_table_kmap_check()
174 && (vaddr >> PMD_SHIFT) <= pmd_idx_kmap_end) { in page_table_kmap_check()
Dioremap.c888 BUILD_BUG_ON((fix_to_virt(0) + PAGE_SIZE) & ((1 << PMD_SHIFT) - 1)); in early_ioremap_init()
890 WARN_ON((fix_to_virt(0) + PAGE_SIZE) & ((1 << PMD_SHIFT) - 1)); in early_ioremap_init()
904 BUILD_BUG_ON((__fix_to_virt(FIX_BTMAP_BEGIN) >> PMD_SHIFT) in early_ioremap_init()
905 != (__fix_to_virt(FIX_BTMAP_END) >> PMD_SHIFT)); in early_ioremap_init()
/kernel/linux/linux-5.10/include/asm-generic/
Dpgtable-nopmd.h20 #define PMD_SHIFT PUD_SHIFT macro
22 #define PMD_SIZE (1UL << PMD_SHIFT)
/kernel/linux/linux-5.10/arch/arm/include/asm/
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
Dpgtable-2level.h84 #define PMD_SHIFT 21 macro
87 #define PMD_SIZE (1UL << PMD_SHIFT)
/kernel/linux/linux-5.10/arch/riscv/include/asm/
Dpgtable-64.h16 #define PMD_SHIFT 21 macro
18 #define PMD_SIZE (_AC(1, UL) << PMD_SHIFT)
/kernel/linux/linux-5.10/arch/m68k/include/asm/
Dpgtable_mm.h39 #define PMD_SHIFT 18 macro
41 #define PMD_SIZE (1UL << PMD_SHIFT)
/kernel/linux/linux-5.10/arch/um/include/asm/
Dpgtable-3level.h26 #define PMD_SHIFT 21 macro
27 #define PMD_SIZE (1UL << PMD_SHIFT)
/kernel/linux/linux-5.10/arch/parisc/include/asm/
Dpgtable.h136 #define PMD_SHIFT (PLD_SHIFT + BITS_PER_PTE) macro
137 #define PMD_SIZE (1UL << PMD_SHIFT)
169 #if (KERNEL_INITIAL_ORDER) >= (PMD_SHIFT)
170 # define PT_INITIAL (1 << (KERNEL_INITIAL_ORDER - PMD_SHIFT))
/kernel/linux/linux-5.10/arch/sparc/include/asm/
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; \
Dpgtable_64.h51 #define PMD_SHIFT (PAGE_SHIFT + (PAGE_SHIFT-3)) macro
52 #define PMD_SIZE (_AC(1,UL) << PMD_SHIFT)
59 #define PUD_SHIFT (PMD_SHIFT + PMD_BITS)
78 #if (PMD_SHIFT != HPAGE_SHIFT)
79 #error PMD_SHIFT must equal HPAGE_SHIFT for transparent huge pages.
/kernel/linux/linux-5.10/arch/alpha/include/asm/
Dpgtable.h32 #define PMD_SHIFT (PAGE_SHIFT + (PAGE_SHIFT-3)) macro
33 #define PMD_SIZE (1UL << PMD_SHIFT)
295 pmd_t *ret = (pmd_t *) pud_page_vaddr(*dir) + ((address >> PMD_SHIFT) & (PTRS_PER_PAGE - 1)); in pmd_offset()
/kernel/linux/linux-5.10/arch/ia64/include/asm/
Dpgtable.h98 #define PMD_SHIFT (PAGE_SHIFT + (PTRS_PER_PTD_SHIFT)) macro
99 #define PMD_SIZE (1UL << PMD_SHIFT)
110 #define PUD_SHIFT (PMD_SHIFT + (PTRS_PER_PTD_SHIFT))
124 #define PGDIR_SHIFT (PMD_SHIFT + (PTRS_PER_PTD_SHIFT))
/kernel/linux/linux-5.10/arch/x86/mm/pat/
Dcpa-test.c28 LPS = (1 << PMD_SHIFT),
30 LPS = (1 << PMD_SHIFT),

1234