Home
last modified time | relevance | path

Searched refs:PGDIR_SHIFT (Results 1 – 25 of 65) sorted by relevance

123

/arch/x86/include/asm/
Dpgtable_64_types.h55 #define PGDIR_SHIFT pgdir_shift macro
74 #define PGDIR_SHIFT 39 macro
102 #define PGDIR_SIZE (_AC(1, UL) << PGDIR_SHIFT)
115 #define GUARD_HOLE_SIZE (16UL << PGDIR_SHIFT)
116 #define GUARD_HOLE_BASE_ADDR (GUARD_HOLE_PGD_ENTRY << PGDIR_SHIFT)
120 #define LDT_BASE_ADDR (LDT_PGD_ENTRY << PGDIR_SHIFT)
Dpgtable-2level_types.h29 #define PGDIR_SHIFT 22 macro
41 #define PGD_KERNEL_START (CONFIG_PAGE_OFFSET >> PGDIR_SHIFT)
Dpgtable-3level_types.h30 #define PGDIR_SHIFT 30 macro
46 #define PGD_KERNEL_START (CONFIG_PAGE_OFFSET >> PGDIR_SHIFT)
Dpgtable_32_types.h20 #define PGDIR_SIZE (1UL << PGDIR_SHIFT)
/arch/m68k/include/asm/
Dpgtable_mm.h46 #define PGDIR_SHIFT 17 macro
48 #define PGDIR_SHIFT 22 macro
50 #define PGDIR_SHIFT 25 macro
52 #define PGDIR_SIZE (1UL << PGDIR_SHIFT)
/arch/nds32/mm/
Dmm-nds32.c90 pmdval = (i << PGDIR_SHIFT); in setup_mm_for_reboot()
91 p4d = p4d_offset(pgd, i << PGDIR_SHIFT); in setup_mm_for_reboot()
92 pud = pud_offset(p4d, i << PGDIR_SHIFT); in setup_mm_for_reboot()
93 pmd = pmd_offset(pud + i, i << PGDIR_SHIFT); in setup_mm_for_reboot()
/arch/riscv/include/asm/
Dpgtable-32.h13 #define PGDIR_SHIFT 22 macro
14 #define PGDIR_SIZE (_AC(1, UL) << PGDIR_SHIFT)
Dpgtable-64.h11 #define PGDIR_SHIFT 30 macro
13 #define PGDIR_SIZE (_AC(1, UL) << PGDIR_SHIFT)
/arch/arc/include/asm/
Dpgtable.h199 #define PGDIR_SHIFT 24 macro
201 #define PGDIR_SHIFT 21 macro
207 #define PGDIR_SHIFT 21 macro
210 #define BITS_FOR_PTE (PGDIR_SHIFT - PAGE_SHIFT)
211 #define BITS_FOR_PGD (32 - PGDIR_SHIFT)
213 #define PGDIR_SIZE BIT(PGDIR_SHIFT) /* vaddr span, not PDG sz */
/arch/powerpc/include/asm/nohash/32/
Dmmu-44x.h151 #define PPC44x_PGD_OFF_SHIFT (32 - PGDIR_SHIFT + PGD_T_LOG2)
152 #define PPC44x_PGD_OFF_MASK_BIT (PGDIR_SHIFT - PGD_T_LOG2)
153 #define PPC44x_PTE_ADD_SHIFT (32 - PGDIR_SHIFT + PTE_SHIFT + PTE_T_LOG2)
/arch/arm/include/asm/
Dpgtable-nommu.h30 #define PGDIR_SHIFT 21 macro
32 #define PGDIR_SIZE (1UL << PGDIR_SHIFT)
Dpgtable-2level.h85 #define PGDIR_SHIFT 21 macro
89 #define PGDIR_SIZE (1UL << PGDIR_SHIFT)
Dpgtable-3level.h33 #define PGDIR_SHIFT 30 macro
42 #define PGDIR_SIZE (1UL << PGDIR_SHIFT)
43 #define PGDIR_MASK (~((1 << PGDIR_SHIFT) - 1))
/arch/um/include/asm/
Dpgtable-2level.h15 #define PGDIR_SHIFT 22 macro
16 #define PGDIR_SIZE (1UL << PGDIR_SHIFT)
Dpgtable-3level.h15 #define PGDIR_SHIFT 30 macro
17 #define PGDIR_SHIFT 31 macro
19 #define PGDIR_SIZE (1UL << PGDIR_SHIFT)
/arch/sh/include/asm/
Dpgtable-3level.h16 #define PGDIR_SHIFT 30 macro
26 #define PTRS_PER_PMD ((1 << PGDIR_SHIFT) / PMD_SIZE)
Dpgtable-2level.h19 #define PGDIR_SHIFT (PTE_SHIFT + PTE_BITS) macro
/arch/arm64/include/asm/
Dpgtable-hwdef.h69 #define PGDIR_SHIFT ARM64_HW_PGTABLE_LEVEL_SHIFT(4 - CONFIG_PGTABLE_LEVELS) macro
70 #define PGDIR_SIZE (_AC(1, UL) << PGDIR_SHIFT)
72 #define PTRS_PER_PGD (1 << (VA_BITS - PGDIR_SHIFT))
282 #define TTBR1_BADDR_4852_OFFSET (((UL(1) << (52 - PGDIR_SHIFT)) - \
283 (UL(1) << (48 - PGDIR_SHIFT))) * 8)
/arch/powerpc/include/asm/nohash/64/
Dpgtable-4k.h40 #define PGDIR_SHIFT (PUD_SHIFT + PUD_INDEX_SIZE) macro
41 #define PGDIR_SIZE (1UL << PGDIR_SHIFT)
/arch/mips/include/asm/
Dpgtable-64.h45 #define PGDIR_SHIFT (PAGE_SHIFT + PAGE_SHIFT + PTE_ORDER - 3) macro
54 # define PGDIR_SHIFT (PMD_SHIFT + (PAGE_SHIFT + PMD_ORDER - 3)) macro
62 #define PGDIR_SHIFT (PUD_SHIFT + (PAGE_SHIFT + PUD_ORDER - 3)) macro
65 #define PGDIR_SIZE (1UL << PGDIR_SHIFT)
Dpgtable-32.h65 # define PGDIR_SHIFT (2 * PAGE_SHIFT + PTE_ORDER - PTE_T_LOG2 - 1) macro
67 # define PGDIR_SHIFT (2 * PAGE_SHIFT + PTE_ORDER - PTE_T_LOG2) macro
70 #define PGDIR_SIZE (1UL << PGDIR_SHIFT)
/arch/powerpc/mm/
Dhugetlbpage.c118 unsigned pdshift = PGDIR_SHIFT; in huge_pte_alloc()
126 if (pshift == PGDIR_SHIFT) in huge_pte_alloc()
160 if (pshift >= PGDIR_SHIFT) { in huge_pte_alloc()
515 free_hugepd_range(tlb, (hugepd_t *)p4d, PGDIR_SHIFT, in hugetlb_free_pgd_range()
640 if (shift > PGDIR_SHIFT) in hugetlbpage_init()
643 pdshift = PGDIR_SHIFT; in hugetlbpage_init()
651 else if (shift < PGDIR_SHIFT) in hugetlbpage_init()
654 pdshift = PGDIR_SHIFT; in hugetlbpage_init()
/arch/xtensa/include/asm/
Dpgtable.h49 #define PGDIR_SHIFT 22 macro
50 #define PGDIR_SIZE (1UL << PGDIR_SHIFT)
63 #define FIRST_USER_PGD_NR (FIRST_USER_ADDRESS >> PGDIR_SHIFT)
392 #define _PGD_INDEX(rt,rs) extui rt, rs, PGDIR_SHIFT, 32-PGDIR_SHIFT
/arch/ia64/include/asm/
Dpgtable.h122 #define PGDIR_SHIFT (PUD_SHIFT + (PTRS_PER_PTD_SHIFT)) macro
124 #define PGDIR_SHIFT (PMD_SHIFT + (PTRS_PER_PTD_SHIFT)) macro
126 #define PGDIR_SIZE (__IA64_UL(1) << PGDIR_SHIFT)
243 #define RGN_MAP_SHIFT (PGDIR_SHIFT + PTRS_PER_PGD_SHIFT - 3)
363 unsigned long l1index = (address >> PGDIR_SHIFT) & ((PTRS_PER_PGD >> 3) - 1); in pgd_index()
376 (init_mm.pgd + (((addr) >> PGDIR_SHIFT) & (PTRS_PER_PGD - 1)))
/arch/parisc/include/asm/
Dpgtable.h146 #define PGDIR_SHIFT (PLD_SHIFT + BITS_PER_PTE + BITS_PER_PMD) macro
147 #if (PGDIR_SHIFT + PAGE_SHIFT + PGD_ORDER - BITS_PER_PGD_ENTRY) > BITS_PER_LONG
148 #define BITS_PER_PGD (BITS_PER_LONG - PGDIR_SHIFT)
152 #define PGDIR_SIZE (1UL << PGDIR_SHIFT)
158 #define MAX_ADDRBITS (PGDIR_SHIFT + BITS_PER_PGD)

123