Home
last modified time | relevance | path

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

12

/linux/arch/arc/include/asm/
H A Dpgtable-levels.h34 #define PGDIR_SHIFT 24 macro
36 #define PGDIR_SHIFT 21 macro
45 #define PGDIR_SHIFT 22 macro
47 #define PGDIR_SHIFT 21 macro
60 #define PGDIR_SHIFT 28 macro
70 #define PGDIR_SIZE BIT(PGDIR_SHIFT)
72 #define PTRS_PER_PGD BIT(32 - PGDIR_SHIFT)
77 #define PTRS_PER_PUD BIT(PGDIR_SHIFT - PUD_SHIFT)
/linux/arch/x86/include/asm/
H A Dpgtable_64_types.h50 #define PGDIR_SHIFT pgdir_shift macro
86 #define PGDIR_SIZE (_AC(1, UL) << PGDIR_SHIFT)
99 #define GUARD_HOLE_SIZE (16UL << PGDIR_SHIFT)
100 #define GUARD_HOLE_BASE_ADDR (GUARD_HOLE_PGD_ENTRY << PGDIR_SHIFT)
104 #define LDT_BASE_ADDR (LDT_PGD_ENTRY << PGDIR_SHIFT)
H A Dpgtable_32_types.h20 #define PGDIR_SIZE (1UL << PGDIR_SHIFT)
/linux/arch/loongarch/mm/
H A Dtlbex.S72 PTR_BSTRPICK ra, t0, 31, PGDIR_SHIFT
74 PTR_BSTRPICK ra, t0, PTRS_PER_PGD_BITS + PGDIR_SHIFT - 1, PGDIR_SHIFT
235 PTR_BSTRPICK ra, t0, 31, PGDIR_SHIFT
237 PTR_BSTRPICK ra, t0, PTRS_PER_PGD_BITS + PGDIR_SHIFT - 1, PGDIR_SHIFT
423 PTR_BSTRPICK ra, t0, 31, PGDIR_SHIFT
425 PTR_BSTRPICK ra, t0, PTRS_PER_PGD_BITS + PGDIR_SHIFT - 1, PGDIR_SHIFT
601 srli.w t1, t1, PGDIR_SHIFT
608 slli.w t1, t1, (32 - PGDIR_SHIFT)
609 srli.w t1, t1, (32 - PGDIR_SHIFT + PAGE_SHIFT + 1)
/linux/arch/powerpc/include/asm/nohash/32/
H A 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)
H A Dpgtable.h17 #define PGD_INDEX_SIZE (32 - PGDIR_SHIFT)
45 #define PGDIR_SHIFT (PAGE_SHIFT + PTE_INDEX_SIZE) macro
46 #define PGDIR_SIZE (1UL << PGDIR_SHIFT)
/linux/arch/riscv/include/asm/
H A Dpgtable-32.h14 #define PGDIR_SHIFT 22 macro
15 #define PGDIR_SIZE (_AC(1, UL) << PGDIR_SHIFT)
H A Dpgtable-64.h19 #define PGDIR_SHIFT (pgtable_l5_enabled ? PGDIR_SHIFT_L5 : \ macro
22 #define PGDIR_SIZE (_AC(1, UL) << PGDIR_SHIFT)
/linux/arch/um/include/asm/
H A Dpgtable-2level.h15 #define PGDIR_SHIFT 22 macro
16 #define PGDIR_SIZE (1UL << PGDIR_SHIFT)
H A Dpgtable-4level.h14 #define PGDIR_SHIFT 39 macro
15 #define PGDIR_SIZE (1UL << PGDIR_SHIFT)
/linux/arch/arm/include/asm/
H A Dpgtable-nommu.h28 #define PGDIR_SHIFT 21 macro
30 #define PGDIR_SIZE (1UL << PGDIR_SHIFT)
H A Dpgtable-3level.h33 #define PGDIR_SHIFT 30 macro
42 #define PGDIR_SIZE (1UL << PGDIR_SHIFT)
43 #define PGDIR_MASK (~((1 << PGDIR_SHIFT) - 1))
/linux/arch/sh/include/asm/
H A Dpgtable-3level.h16 #define PGDIR_SHIFT 30 macro
26 #define PTRS_PER_PMD ((1 << PGDIR_SHIFT) / PMD_SIZE)
H A Dpgtable-2level.h19 #define PGDIR_SHIFT (PTE_SHIFT + PTE_BITS) macro
/linux/arch/powerpc/include/asm/nohash/64/
H A Dpgtable-4k.h40 #define PGDIR_SHIFT (PUD_SHIFT + PUD_INDEX_SIZE) macro
41 #define PGDIR_SIZE (1UL << PGDIR_SHIFT)
/linux/arch/parisc/include/asm/
H A Dpgtable.h122 #define PGDIR_SHIFT (PLD_SHIFT + BITS_PER_PTE + BITS_PER_PMD) macro
123 #if (PGDIR_SHIFT + PAGE_SHIFT + PGD_TABLE_ORDER - BITS_PER_PGD_ENTRY) > BITS_PER_LONG
124 #define BITS_PER_PGD (BITS_PER_LONG - PGDIR_SHIFT)
128 #define PGDIR_SIZE (1UL << PGDIR_SHIFT)
134 #define MAX_ADDRBITS (PGDIR_SHIFT + BITS_PER_PGD)
/linux/arch/x86/kernel/
H A Dhead32.c45 *(pl2p + ((PAGE_OFFSET >> PGDIR_SHIFT))) = (pte_t) {.pte = 0}; in zap_early_initrd_mapping()
115 *(*pl2p + ((PAGE_OFFSET >> PGDIR_SHIFT))) = pl2; in init_map()
/linux/arch/loongarch/include/asm/
H A Dpgtable.h31 #define PGDIR_SHIFT (PAGE_SHIFT + (PAGE_SHIFT - PTRLOG)) macro
36 #define PGDIR_SHIFT (PMD_SHIFT + (PAGE_SHIFT - PTRLOG)) macro
44 #define PGDIR_SHIFT (PUD_SHIFT + (PAGE_SHIFT - PTRLOG)) macro
47 #define PGDIR_SIZE (1UL << PGDIR_SHIFT)
53 #define VA_BITS (PGDIR_SHIFT + (PAGE_SHIFT - PTRLOG))
/linux/arch/x86/boot/startup/
H A Dmap_kernel.c158 i = (physaddr >> PGDIR_SHIFT) % PTRS_PER_PGD; in __startup_64()
166 i = (physaddr >> PGDIR_SHIFT) % PTRS_PER_PGD; in __startup_64()
/linux/arch/powerpc/include/asm/book3s/32/
H A Dpgtable.h100 #define PGD_INDEX_SIZE (32 - PGDIR_SHIFT)
129 #define PGDIR_SHIFT (PAGE_SHIFT + PTE_INDEX_SIZE) macro
130 #define PGDIR_SIZE (1UL << PGDIR_SHIFT)
/linux/arch/m68k/include/asm/
H A Dsun3_pgalloc.h46 memset(new_pgd, 0, (PAGE_OFFSET >> PGDIR_SHIFT)); in pgd_alloc()
H A Dmcf_pgalloc.h95 memset(new_pgd, 0, PAGE_OFFSET >> PGDIR_SHIFT); in pgd_alloc()
/linux/arch/hexagon/include/asm/
H A Dmem-layout.h54 #define MIN_KERNEL_SEG (PAGE_OFFSET >> PGDIR_SHIFT) /* L1 shift is 22 bits */
/linux/include/asm-generic/
H A Dpgtable-nop4d.h11 #define P4D_SHIFT PGDIR_SHIFT
/linux/arch/mips/mm/
H A Dtlbex.c783 uasm_i_dsrl_safe(p, ptr, tmp, PGDIR_SHIFT + PGD_TABLE_ORDER + PAGE_SHIFT - 3); in build_get_pmde64()
825 uasm_i_dsrl_safe(p, tmp, tmp, PGDIR_SHIFT - 3); in build_get_pmde64()
947 uasm_i_srl(p, tmp, tmp, PGDIR_SHIFT); /* get pgd only bits */ in build_get_pgde32()
1076 PGDIR_SHIFT + PGD_TABLE_ORDER + PAGE_SHIFT - 3); in build_fast_tlb_refill_handler()
1120 uasm_i_dsrl_safe(p, scratch, tmp, PGDIR_SHIFT - 3); in build_fast_tlb_refill_handler()
1132 uasm_i_dsrl_safe(p, scratch, tmp, PGDIR_SHIFT - 3); in build_fast_tlb_refill_handler()
1440 pgd_i = PGDIR_SHIFT; /* 1st level PGD */ in setup_pw()
1442 pgd_w = PGDIR_SHIFT - PMD_SHIFT + PGD_TABLE_ORDER; in setup_pw()
1447 pgd_w = PGDIR_SHIFT - PAGE_SHIFT + PGD_TABLE_ORDER; in setup_pw()
1486 PGDIR_SHIFT + PGD_TABLE_ORDER + PAGE_SHIFT - 3); in build_loongson3_tlb_refill_handler()
[all …]

12