/arch/sh/include/asm/ |
D | pgtable-3level.h | 23 #define PMD_SHIFT (PAGE_SHIFT + (PAGE_SHIFT - PTE_MAGNITUDE)) macro 24 #define PMD_SIZE (1UL << PMD_SHIFT) 44 #define pmd_index(address) (((address) >> PMD_SHIFT) & (PTRS_PER_PMD-1))
|
/arch/x86/include/asm/ |
D | page_types.h | 14 #define PMD_PAGE_SIZE (_AC(1, UL) << PMD_SHIFT) 29 #define HPAGE_SHIFT PMD_SHIFT 52 #define IOREMAP_MAX_ORDER (PMD_SHIFT)
|
D | pgtable_64_types.h | 90 #define PMD_SHIFT 21 macro 98 #define PMD_SIZE (_AC(1, UL) << PMD_SHIFT)
|
D | boot.h | 16 # define MIN_KERNEL_ALIGN_LG2 PMD_SHIFT
|
D | pgtable-3level_types.h | 40 #define PMD_SHIFT 21 macro
|
D | pgtable_32_types.h | 12 # define PMD_SIZE (1UL << PMD_SHIFT)
|
/arch/riscv/include/asm/ |
D | pgtable-64.h | 16 #define PMD_SHIFT 21 macro 18 #define PMD_SIZE (_AC(1, UL) << PMD_SHIFT) 61 #define pmd_index(addr) (((addr) >> PMD_SHIFT) & (PTRS_PER_PMD - 1))
|
/arch/powerpc/include/asm/nohash/64/ |
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)
|
/arch/arm64/include/asm/ |
D | kernel-pgtable.h | 100 #define SWAPPER_TABLE_SHIFT PMD_SHIFT 128 #define ARM64_MEMSTART_SHIFT (PMD_SHIFT + 5) 130 #define ARM64_MEMSTART_SHIFT PMD_SHIFT
|
D | pgtable-hwdef.h | 49 #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
|
/arch/m68k/include/asm/ |
D | pgtable_mm.h | 34 #define PMD_SHIFT 17 macro 36 #define PMD_SHIFT 22 macro 38 #define PMD_SIZE (1UL << PMD_SHIFT)
|
/arch/arm/include/asm/ |
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 158 #define pmd_index(addr) (((addr) >> PMD_SHIFT) & (PTRS_PER_PMD - 1))
|
D | pgtable-2level.h | 84 #define PMD_SHIFT 21 macro 87 #define PMD_SIZE (1UL << PMD_SHIFT)
|
/arch/mips/include/asm/ |
D | pgtable-64.h | 50 #define PMD_SHIFT (PAGE_SHIFT + (PAGE_SHIFT + PTE_ORDER - 3)) macro 51 #define PMD_SIZE (1UL << PMD_SHIFT) 55 # define PGDIR_SHIFT (PMD_SHIFT + (PAGE_SHIFT + PMD_ORDER - 3)) 60 #define PUD_SHIFT (PMD_SHIFT + (PAGE_SHIFT + PMD_ORDER - 3)) 330 #define pmd_index(address) (((address) >> PMD_SHIFT) & (PTRS_PER_PMD-1))
|
D | pgtable-32.h | 204 #define __pmd_offset(address) (((address) >> PMD_SHIFT) & (PTRS_PER_PMD-1)) 210 #define pmd_index(address) (((address) >> PMD_SHIFT) & (PTRS_PER_PMD-1))
|
/arch/powerpc/mm/ |
D | hugetlbpage.c | 149 else if (pshift > PMD_SHIFT) { in huge_pte_alloc() 153 pdshift = PMD_SHIFT; in huge_pte_alloc() 157 if (pshift == PMD_SHIFT) in huge_pte_alloc() 179 pdshift = PMD_SHIFT; in huge_pte_alloc() 372 free_hugepd_range(tlb, (hugepd_t *)pmd, PMD_SHIFT, in hugetlb_free_pmd_range() 629 else if (shift > PMD_SHIFT) in hugetlbpage_init() 632 pdshift = PMD_SHIFT; in hugetlbpage_init() 635 pdshift = PMD_SHIFT; in hugetlbpage_init()
|
/arch/um/include/asm/ |
D | pgtable-3level.h | 27 #define PMD_SHIFT 21 macro 28 #define PMD_SIZE (1UL << PMD_SHIFT)
|
/arch/x86/mm/ |
D | init_32.c | 131 int pmd_idx_kmap_begin = fix_to_virt(FIX_KMAP_END) >> PMD_SHIFT; in page_table_range_init_count() 132 int pmd_idx_kmap_end = fix_to_virt(FIX_KMAP_BEGIN) >> PMD_SHIFT; in page_table_range_init_count() 146 if ((vaddr >> PMD_SHIFT) >= pmd_idx_kmap_begin && in page_table_range_init_count() 147 (vaddr >> PMD_SHIFT) <= pmd_idx_kmap_end) in page_table_range_init_count() 168 int pmd_idx_kmap_begin = fix_to_virt(FIX_KMAP_END) >> PMD_SHIFT; in page_table_kmap_check() 169 int pmd_idx_kmap_end = fix_to_virt(FIX_KMAP_BEGIN) >> PMD_SHIFT; in page_table_kmap_check() 172 && (vaddr >> PMD_SHIFT) >= pmd_idx_kmap_begin in page_table_kmap_check() 173 && (vaddr >> PMD_SHIFT) <= pmd_idx_kmap_end) { in page_table_kmap_check()
|
D | ioremap.c | 834 BUILD_BUG_ON((fix_to_virt(0) + PAGE_SIZE) & ((1 << PMD_SHIFT) - 1)); in early_ioremap_init() 836 WARN_ON((fix_to_virt(0) + PAGE_SIZE) & ((1 << PMD_SHIFT) - 1)); in early_ioremap_init() 850 BUILD_BUG_ON((__fix_to_virt(FIX_BTMAP_BEGIN) >> PMD_SHIFT) in early_ioremap_init() 851 != (__fix_to_virt(FIX_BTMAP_END) >> PMD_SHIFT)); in early_ioremap_init()
|
/arch/parisc/include/asm/ |
D | pgtable.h | 135 #define PMD_SHIFT (PLD_SHIFT + BITS_PER_PTE) macro 136 #define PMD_SIZE (1UL << PMD_SHIFT) 147 #define PGDIR_SHIFT (PMD_SHIFT + BITS_PER_PMD) 170 #if (KERNEL_INITIAL_ORDER) >= (PMD_SHIFT) 171 # define PT_INITIAL (1 << (KERNEL_INITIAL_ORDER - PMD_SHIFT)) 453 #define pmd_index(addr) (((addr) >> PMD_SHIFT) & (PTRS_PER_PMD - 1))
|
/arch/ia64/include/asm/ |
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)) 396 ((pmd_t *) pud_page_vaddr(*(dir)) + (((addr) >> PMD_SHIFT) & (PTRS_PER_PMD - 1)))
|
/arch/sparc/include/asm/ |
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; \
|
D | pgtable_32.h | 37 #define PMD_SHIFT 22 macro 38 #define PMD_SIZE (1UL << PMD_SHIFT) 325 ((address >> PMD_SHIFT) & (PTRS_PER_PMD - 1)); in pmd_offset()
|
/arch/alpha/include/asm/ |
D | pgtable.h | 32 #define PMD_SHIFT (PAGE_SHIFT + (PAGE_SHIFT-3)) macro 33 #define PMD_SIZE (1UL << PMD_SHIFT) 306 pmd_t *ret = (pmd_t *) pgd_page_vaddr(*dir) + ((address >> PMD_SHIFT) & (PTRS_PER_PAGE - 1)); in pmd_offset()
|
/arch/nds32/include/asm/ |
D | pgtable.h | 22 #define PMD_SHIFT 22 macro 30 #define PMD_SHIFT 24 macro 45 #define PMD_SIZE (1UL << PMD_SHIFT)
|