/linux/arch/x86/include/asm/ |
A D | page_types.h | 14 #define PMD_PAGE_SIZE (_AC(1, UL) << PMD_SHIFT) 29 #define HPAGE_SHIFT PMD_SHIFT 50 #define IOREMAP_MAX_ORDER (PMD_SHIFT)
|
A D | pgtable_64_types.h | 90 #define PMD_SHIFT 21 macro 98 #define PMD_SIZE (_AC(1, UL) << PMD_SHIFT)
|
A D | pgtable_32_types.h | 12 # define PMD_SIZE (1UL << PMD_SHIFT)
|
A D | pgtable-3level_types.h | 37 #define PMD_SHIFT 21 macro
|
A D | boot.h | 16 # define MIN_KERNEL_ALIGN_LG2 PMD_SHIFT
|
/linux/arch/powerpc/include/asm/nohash/64/ |
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)
|
/linux/arch/powerpc/mm/ |
A D | hugetlbpage.c | 142 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() 398 free_hugepd_range(tlb, (hugepd_t *)pmd, PMD_SHIFT, in hugetlb_free_pmd_range() 631 else if (shift > PMD_SHIFT) in hugetlbpage_init() 634 pdshift = PMD_SHIFT; in hugetlbpage_init() 637 pdshift = PMD_SHIFT; in hugetlbpage_init()
|
/linux/arch/arm64/include/asm/ |
A D | kernel-pgtable.h | 94 #define SWAPPER_BLOCK_SHIFT PMD_SHIFT 100 #define SWAPPER_TABLE_SHIFT PMD_SHIFT 127 #define ARM64_MEMSTART_SHIFT PMD_SHIFT
|
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))
|
/linux/arch/arc/include/asm/ |
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)
|
/linux/arch/x86/mm/ |
A D | init_32.c | 132 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()
|
A D | ioremap.c | 818 BUILD_BUG_ON((fix_to_virt(0) + PAGE_SIZE) & ((1 << PMD_SHIFT) - 1)); in early_ioremap_init() 820 WARN_ON((fix_to_virt(0) + PAGE_SIZE) & ((1 << PMD_SHIFT) - 1)); in early_ioremap_init() 834 BUILD_BUG_ON((__fix_to_virt(FIX_BTMAP_BEGIN) >> PMD_SHIFT) in early_ioremap_init() 835 != (__fix_to_virt(FIX_BTMAP_END) >> PMD_SHIFT)); in early_ioremap_init()
|
/linux/arch/mips/include/asm/ |
A D | pgtable-64.h | 49 #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))
|
/linux/arch/arm/include/asm/ |
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
|
A D | pgtable-2level.h | 84 #define PMD_SHIFT 21 macro 87 #define PMD_SIZE (1UL << PMD_SHIFT)
|
/linux/arch/sh/include/asm/ |
A D | pgtable-3level.h | 22 #define PMD_SHIFT (PAGE_SHIFT + (PAGE_SHIFT - PTE_MAGNITUDE)) macro 23 #define PMD_SIZE (1UL << PMD_SHIFT)
|
/linux/include/asm-generic/ |
A D | pgtable-nopmd.h | 20 #define PMD_SHIFT PUD_SHIFT macro 22 #define PMD_SIZE (1UL << PMD_SHIFT)
|
/linux/arch/riscv/include/asm/ |
A D | pgtable-64.h | 16 #define PMD_SHIFT 21 macro 18 #define PMD_SIZE (_AC(1, UL) << PMD_SHIFT)
|
/linux/arch/m68k/include/asm/ |
A D | pgtable_mm.h | 39 #define PMD_SHIFT 18 macro 41 #define PMD_SIZE (1UL << PMD_SHIFT)
|
/linux/arch/um/include/asm/ |
A D | pgtable-3level.h | 26 #define PMD_SHIFT 21 macro 27 #define PMD_SIZE (1UL << PMD_SHIFT)
|
/linux/arch/sparc/include/asm/ |
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; \
|
/linux/arch/parisc/include/asm/ |
A D | pgtable.h | 136 #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))
|
/linux/arch/ia64/include/asm/ |
A D | pgtable.h | 98 #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))
|
/linux/arch/alpha/include/asm/ |
A D | pgtable.h | 32 #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()
|
/linux/arch/x86/mm/pat/ |
A D | cpa-test.c | 28 LPS = (1 << PMD_SHIFT), 30 LPS = (1 << PMD_SHIFT),
|