Home
last modified time | relevance | path

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

1234

/Linux-v4.19/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)
117 #define LDT_BASE_ADDR (LDT_PGD_ENTRY << PGDIR_SHIFT)
Dpgtable-2level_types.h27 #define PGDIR_SHIFT 22 macro
39 #define PGD_KERNEL_START (CONFIG_PAGE_OFFSET >> PGDIR_SHIFT)
Dpgtable-3level_types.h33 #define PGDIR_SHIFT 30 macro
49 #define PGD_KERNEL_START (CONFIG_PAGE_OFFSET >> PGDIR_SHIFT)
/Linux-v4.19/arch/m68k/include/asm/
Dpgtable_mm.h43 #define PGDIR_SHIFT 17 macro
45 #define PGDIR_SHIFT 22 macro
47 #define PGDIR_SHIFT 25 macro
49 #define PGDIR_SIZE (1UL << PGDIR_SHIFT)
/Linux-v4.19/arch/arc/include/asm/
Dpgtable.h207 #define PGDIR_SHIFT 24 macro
209 #define PGDIR_SHIFT 21 macro
215 #define PGDIR_SHIFT 21 macro
218 #define BITS_FOR_PTE (PGDIR_SHIFT - PAGE_SHIFT)
219 #define BITS_FOR_PGD (32 - PGDIR_SHIFT)
221 #define PGDIR_SIZE _BITUL(PGDIR_SHIFT) /* vaddr span, not PDG sz */
341 #define pgd_index(addr) ((addr) >> PGDIR_SHIFT)
/Linux-v4.19/arch/riscv/kernel/
Dsetup.c117 #define NUM_SWAPPER_PMDS ((uintptr_t)-PAGE_OFFSET >> PGDIR_SHIFT)
137 trampoline_pg_dir[(PAGE_OFFSET >> PGDIR_SHIFT) % PTRS_PER_PGD] = in setup_vm()
143 size_t o = (PAGE_OFFSET >> PGDIR_SHIFT) % PTRS_PER_PGD + i; in setup_vm()
151 trampoline_pg_dir[(PAGE_OFFSET >> PGDIR_SHIFT) % PTRS_PER_PGD] = in setup_vm()
155 size_t o = (PAGE_OFFSET >> PGDIR_SHIFT) % PTRS_PER_PGD + i; in setup_vm()
/Linux-v4.19/arch/riscv/include/asm/
Dpgtable-32.h21 #define PGDIR_SHIFT 22 macro
22 #define PGDIR_SIZE (_AC(1, UL) << PGDIR_SHIFT)
Dpgtable-64.h19 #define PGDIR_SHIFT 30 macro
21 #define PGDIR_SIZE (_AC(1, UL) << PGDIR_SHIFT)
/Linux-v4.19/arch/powerpc/include/asm/
Dmmu-44x.h148 #define PPC44x_PGD_OFF_SHIFT (32 - PGDIR_SHIFT + PGD_T_LOG2)
149 #define PPC44x_PGD_OFF_MASK_BIT (PGDIR_SHIFT - PGD_T_LOG2)
150 #define PPC44x_PTE_ADD_SHIFT (32 - PGDIR_SHIFT + PTE_SHIFT + PTE_T_LOG2)
/Linux-v4.19/arch/um/include/asm/
Dpgtable-3level.h16 #define PGDIR_SHIFT 30 macro
18 #define PGDIR_SHIFT 31 macro
20 #define PGDIR_SIZE (1UL << PGDIR_SHIFT)
Dpgtable-2level.h16 #define PGDIR_SHIFT 22 macro
17 #define PGDIR_SIZE (1UL << PGDIR_SHIFT)
/Linux-v4.19/arch/xtensa/include/asm/
Dpgtable.h53 #define PGDIR_SHIFT 22 macro
54 #define PGDIR_SIZE (1UL << PGDIR_SHIFT)
67 #define FIRST_USER_PGD_NR (FIRST_USER_ADDRESS >> PGDIR_SHIFT)
376 #define pgd_index(address) ((address) >> PGDIR_SHIFT)
419 #define _PGD_INDEX(rt,rs) extui rt, rs, PGDIR_SHIFT, 32-PGDIR_SHIFT
/Linux-v4.19/arch/mips/include/asm/
Dpgtable-64.h44 #define PGDIR_SHIFT (PAGE_SHIFT + PAGE_SHIFT + PTE_ORDER - 3) macro
53 # define PGDIR_SHIFT (PMD_SHIFT + (PAGE_SHIFT + PMD_ORDER - 3)) macro
61 #define PGDIR_SHIFT (PUD_SHIFT + (PAGE_SHIFT + PUD_ORDER - 3)) macro
64 #define PGDIR_SIZE (1UL << PGDIR_SHIFT)
319 #define pgd_index(address) (((address) >> PGDIR_SHIFT) & (PTRS_PER_PGD-1))
Dpgtable-32.h47 #define PGDIR_SHIFT (2 * PAGE_SHIFT + PTE_ORDER - PTE_T_LOG2) macro
48 #define PGDIR_SIZE (1UL << PGDIR_SHIFT)
161 #define pgd_index(address) (((address) >> PGDIR_SHIFT) & (PTRS_PER_PGD-1))
/Linux-v4.19/arch/sh/include/asm/
Dpgtable-3level.h17 #define PGDIR_SHIFT 30 macro
27 #define PTRS_PER_PMD ((1 << PGDIR_SHIFT) / PMD_SIZE)
/Linux-v4.19/arch/powerpc/include/asm/nohash/32/
Dpgtable.h25 #define PGD_INDEX_SIZE (32 - PGDIR_SHIFT)
51 #define PGDIR_SHIFT (PAGE_SHIFT + PTE_INDEX_SIZE) macro
52 #define PGDIR_SIZE (1UL << PGDIR_SHIFT)
301 #define pgd_index(address) ((address) >> PGDIR_SHIFT)
/Linux-v4.19/arch/arm/include/asm/
Dpgtable-nommu.h34 #define PGDIR_SHIFT 21 macro
36 #define PGDIR_SIZE (1UL << PGDIR_SHIFT)
Dpgtable-2level.h86 #define PGDIR_SHIFT 21 macro
90 #define PGDIR_SIZE (1UL << PGDIR_SHIFT)
/Linux-v4.19/arch/parisc/include/asm/
Dpgtable.h126 #define PGDIR_SHIFT (PMD_SHIFT + BITS_PER_PMD) macro
127 #if (PGDIR_SHIFT + PAGE_SHIFT + PGD_ORDER - BITS_PER_PGD_ENTRY) > BITS_PER_LONG
128 #define BITS_PER_PGD (BITS_PER_LONG - PGDIR_SHIFT)
132 #define PGDIR_SIZE (1UL << PGDIR_SHIFT)
138 #define MAX_ADDRBITS (PGDIR_SHIFT + BITS_PER_PGD)
420 #define pgd_index(address) ((address) >> PGDIR_SHIFT)
424 ((mm)->pgd + ((address) >> PGDIR_SHIFT))
/Linux-v4.19/arch/powerpc/mm/
Dhugetlbpage.c131 unsigned pdshift = PGDIR_SHIFT; in huge_pte_alloc()
138 if (pshift == PGDIR_SHIFT) in huge_pte_alloc()
168 if (pshift >= PGDIR_SHIFT) { in huge_pte_alloc()
485 free_hugepd_range(tlb, (hugepd_t *)pgd, PGDIR_SHIFT, in hugetlb_free_pgd_range()
677 if (shift > PGDIR_SHIFT) in hugetlbpage_init()
680 pdshift = PGDIR_SHIFT; in hugetlbpage_init()
688 else if (shift < PGDIR_SHIFT) in hugetlbpage_init()
691 pdshift = PGDIR_SHIFT; in hugetlbpage_init()
783 unsigned pdshift = PGDIR_SHIFT; in __find_linux_pte()
/Linux-v4.19/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)
/Linux-v4.19/arch/nds32/mm/
Dmm-nds32.c86 pmdval = (i << PGDIR_SHIFT); in setup_mm_for_reboot()
87 pmd = pmd_offset(pgd + i, i << PGDIR_SHIFT); in setup_mm_for_reboot()
/Linux-v4.19/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)
365 unsigned long l1index = (address >> PGDIR_SHIFT) & ((PTRS_PER_PGD >> 3) - 1); in pgd_index()
381 (init_mm.pgd + (((addr) >> PGDIR_SHIFT) & (PTRS_PER_PGD - 1)))
/Linux-v4.19/arch/openrisc/include/asm/
Dpgtable.h61 #define PGDIR_SHIFT (PAGE_SHIFT + (PAGE_SHIFT-2)) macro
62 #define PGDIR_SIZE (1UL << PGDIR_SHIFT)
73 #define PTRS_PER_PGD (1UL << (32-PGDIR_SHIFT))
376 #define pgd_index(address) ((address >> PGDIR_SHIFT) & (PTRS_PER_PGD-1))
/Linux-v4.19/arch/microblaze/include/asm/
Dpgtable.h149 #define PGDIR_SHIFT PMD_SHIFT macro
150 #define PGDIR_SIZE (1UL << PGDIR_SHIFT)
159 #define PTRS_PER_PGD (1 << (32 - PGDIR_SHIFT))
164 #define USER_PGD_PTRS (PAGE_OFFSET >> PGDIR_SHIFT)
481 #define pgd_index(address) ((address) >> PGDIR_SHIFT)

1234