Home
last modified time | relevance | path

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

123

/arch/sh/include/asm/
Dpgtable-3level.h23 #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/
Dpage_types.h14 #define PMD_PAGE_SIZE (_AC(1, UL) << PMD_SHIFT)
29 #define HPAGE_SHIFT PMD_SHIFT
52 #define IOREMAP_MAX_ORDER (PMD_SHIFT)
Dpgtable_64_types.h90 #define PMD_SHIFT 21 macro
98 #define PMD_SIZE (_AC(1, UL) << PMD_SHIFT)
Dboot.h16 # define MIN_KERNEL_ALIGN_LG2 PMD_SHIFT
Dpgtable-3level_types.h40 #define PMD_SHIFT 21 macro
Dpgtable_32_types.h12 # define PMD_SIZE (1UL << PMD_SHIFT)
/arch/riscv/include/asm/
Dpgtable-64.h16 #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/
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.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
/arch/m68k/include/asm/
Dpgtable_mm.h34 #define PMD_SHIFT 17 macro
36 #define PMD_SHIFT 22 macro
38 #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
158 #define pmd_index(addr) (((addr) >> PMD_SHIFT) & (PTRS_PER_PMD - 1))
Dpgtable-2level.h84 #define PMD_SHIFT 21 macro
87 #define PMD_SIZE (1UL << PMD_SHIFT)
/arch/mips/include/asm/
Dpgtable-64.h50 #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))
Dpgtable-32.h204 #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/
Dhugetlbpage.c149 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/
Dpgtable-3level.h27 #define PMD_SHIFT 21 macro
28 #define PMD_SIZE (1UL << PMD_SHIFT)
/arch/x86/mm/
Dinit_32.c131 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()
Dioremap.c834 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/
Dpgtable.h135 #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/
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))
396 ((pmd_t *) pud_page_vaddr(*(dir)) + (((addr) >> PMD_SHIFT) & (PTRS_PER_PMD - 1)))
/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_32.h37 #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/
Dpgtable.h32 #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/
Dpgtable.h22 #define PMD_SHIFT 22 macro
30 #define PMD_SHIFT 24 macro
45 #define PMD_SIZE (1UL << PMD_SHIFT)

123