Home
last modified time | relevance | path

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

123

/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)
Dboot.h16 # define MIN_KERNEL_ALIGN_LG2 PMD_SHIFT
Dpgtable-3level_types.h37 #define PMD_SHIFT 21 macro
Dfixmap.h58 #define FIXADDR_TOP (round_up(VSYSCALL_ADDR + PAGE_SIZE, 1<<PMD_SHIFT) - \
/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)
/arch/arm64/include/asm/
Dkernel-pgtable.h94 #define SWAPPER_BLOCK_SHIFT PMD_SHIFT
100 #define SWAPPER_TABLE_SHIFT PMD_SHIFT
127 #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)
82 #define CONT_PMD_SHIFT (CONFIG_ARM64_CONT_PMD_SHIFT + PMD_SHIFT)
83 #define CONT_PMDS (1 << (CONT_PMD_SHIFT - PMD_SHIFT))
/arch/sh/include/asm/
Dpgtable-3level.h22 #define PMD_SHIFT (PAGE_SHIFT + (PAGE_SHIFT - PTE_MAGNITUDE)) macro
23 #define PMD_SIZE (1UL << PMD_SHIFT)
/arch/arc/include/asm/
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)
/arch/powerpc/mm/
Dhugetlbpage.c142 else if (pshift > PMD_SHIFT) { in huge_pte_alloc()
146 pdshift = PMD_SHIFT; in huge_pte_alloc()
150 if (pshift == PMD_SHIFT) in huge_pte_alloc()
172 pdshift = PMD_SHIFT; in huge_pte_alloc()
184 if (IS_ENABLED(CONFIG_PPC_8xx) && pshift < PMD_SHIFT) in huge_pte_alloc()
393 free_hugepd_range(tlb, (hugepd_t *)pmd, PMD_SHIFT, in hugetlb_free_pmd_range()
626 else if (shift > PMD_SHIFT) in hugetlbpage_init()
629 pdshift = PMD_SHIFT; in hugetlbpage_init()
632 pdshift = PMD_SHIFT; in hugetlbpage_init()
/arch/riscv/include/asm/
Dpgtable-64.h16 #define PMD_SHIFT 21 macro
18 #define PMD_SIZE (_AC(1, UL) << PMD_SHIFT)
/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))
/arch/m68k/include/asm/
Dpgtable_mm.h39 #define PMD_SHIFT 18 macro
41 #define PMD_SIZE (1UL << PMD_SHIFT)
/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)
/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.c869 BUILD_BUG_ON((fix_to_virt(0) + PAGE_SIZE) & ((1 << PMD_SHIFT) - 1)); in early_ioremap_init()
871 WARN_ON((fix_to_virt(0) + PAGE_SIZE) & ((1 << PMD_SHIFT) - 1)); in early_ioremap_init()
885 BUILD_BUG_ON((__fix_to_virt(FIX_BTMAP_BEGIN) >> PMD_SHIFT) in early_ioremap_init()
886 != (__fix_to_virt(FIX_BTMAP_END) >> PMD_SHIFT)); in early_ioremap_init()
/arch/um/include/asm/
Dpgtable-3level.h26 #define PMD_SHIFT 21 macro
27 #define PMD_SIZE (1UL << PMD_SHIFT)
/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))
/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; \
/arch/alpha/include/asm/
Dpgtable.h32 #define PMD_SHIFT (PAGE_SHIFT + (PAGE_SHIFT-3)) macro
33 #define PMD_SIZE (1UL << PMD_SHIFT)
292 pmd_t *ret = pud_pgtable(*dir) + ((address >> PMD_SHIFT) & (PTRS_PER_PAGE - 1)); in pmd_offset()
/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))
/arch/x86/mm/pat/
Dcpa-test.c28 LPS = (1 << PMD_SHIFT),
30 LPS = (1 << PMD_SHIFT),

123