| /Linux-v5.4/arch/x86/include/asm/ |
| D | pgtable_64_types.h | 55 #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)
|
| D | pgtable-2level_types.h | 27 #define PGDIR_SHIFT 22 macro 39 #define PGD_KERNEL_START (CONFIG_PAGE_OFFSET >> PGDIR_SHIFT)
|
| D | pgtable-3level_types.h | 33 #define PGDIR_SHIFT 30 macro 49 #define PGD_KERNEL_START (CONFIG_PAGE_OFFSET >> PGDIR_SHIFT)
|
| /Linux-v5.4/arch/m68k/include/asm/ |
| D | pgtable_mm.h | 43 #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-v5.4/arch/arc/include/asm/ |
| D | pgtable.h | 204 #define PGDIR_SHIFT 24 macro 206 #define PGDIR_SHIFT 21 macro 212 #define PGDIR_SHIFT 21 macro 215 #define BITS_FOR_PTE (PGDIR_SHIFT - PAGE_SHIFT) 216 #define BITS_FOR_PGD (32 - PGDIR_SHIFT) 218 #define PGDIR_SIZE BIT(PGDIR_SHIFT) /* vaddr span, not PDG sz */ 338 #define pgd_index(addr) ((addr) >> PGDIR_SHIFT)
|
| /Linux-v5.4/arch/riscv/include/asm/ |
| D | pgtable-32.h | 13 #define PGDIR_SHIFT 22 macro 14 #define PGDIR_SIZE (_AC(1, UL) << PGDIR_SHIFT)
|
| D | pgtable-64.h | 11 #define PGDIR_SHIFT 30 macro 13 #define PGDIR_SIZE (_AC(1, UL) << PGDIR_SHIFT)
|
| /Linux-v5.4/arch/powerpc/include/asm/nohash/32/ |
| D | mmu-44x.h | 151 #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)
|
| D | pgtable.h | 23 #define PGD_INDEX_SIZE (32 - PGDIR_SHIFT) 49 #define PGDIR_SHIFT (PAGE_SHIFT + PTE_INDEX_SIZE) macro 50 #define PGDIR_SIZE (1UL << PGDIR_SHIFT) 361 #define pgd_index(address) ((address) >> PGDIR_SHIFT)
|
| /Linux-v5.4/arch/um/include/asm/ |
| D | pgtable-3level.h | 16 #define PGDIR_SHIFT 30 macro 18 #define PGDIR_SHIFT 31 macro 20 #define PGDIR_SIZE (1UL << PGDIR_SHIFT)
|
| D | pgtable-2level.h | 16 #define PGDIR_SHIFT 22 macro 17 #define PGDIR_SIZE (1UL << PGDIR_SHIFT)
|
| /Linux-v5.4/arch/arm64/include/asm/ |
| D | pgtable-hwdef.h | 69 #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 << (MAX_USER_VA_BITS - PGDIR_SHIFT)) 309 #define TTBR1_BADDR_4852_OFFSET (((UL(1) << (52 - PGDIR_SHIFT)) - \ 310 (UL(1) << (48 - PGDIR_SHIFT))) * 8)
|
| /Linux-v5.4/arch/powerpc/mm/ |
| D | hugetlbpage.c | 119 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() 484 free_hugepd_range(tlb, (hugepd_t *)pgd, PGDIR_SHIFT, in hugetlb_free_pgd_range() 619 if (shift > PGDIR_SHIFT) in hugetlbpage_init() 622 pdshift = PGDIR_SHIFT; in hugetlbpage_init() 630 else if (shift < PGDIR_SHIFT) in hugetlbpage_init() 633 pdshift = PGDIR_SHIFT; in hugetlbpage_init()
|
| /Linux-v5.4/arch/xtensa/include/asm/ |
| D | pgtable.h | 50 #define PGDIR_SHIFT 22 macro 51 #define PGDIR_SIZE (1UL << PGDIR_SHIFT) 64 #define FIRST_USER_PGD_NR (FIRST_USER_ADDRESS >> PGDIR_SHIFT) 372 #define pgd_index(address) ((address) >> PGDIR_SHIFT) 415 #define _PGD_INDEX(rt,rs) extui rt, rs, PGDIR_SHIFT, 32-PGDIR_SHIFT
|
| /Linux-v5.4/arch/mips/include/asm/ |
| D | pgtable-64.h | 44 #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) 324 #define pgd_index(address) (((address) >> PGDIR_SHIFT) & (PTRS_PER_PGD-1))
|
| D | pgtable-32.h | 66 # define PGDIR_SHIFT (2 * PAGE_SHIFT + PTE_ORDER - PTE_T_LOG2 - 1) macro 68 # define PGDIR_SHIFT (2 * PAGE_SHIFT + PTE_ORDER - PTE_T_LOG2) macro 71 #define PGDIR_SIZE (1UL << PGDIR_SHIFT) 206 #define pgd_index(address) (((address) >> PGDIR_SHIFT) & (PTRS_PER_PGD-1))
|
| /Linux-v5.4/arch/sh/include/asm/ |
| D | pgtable-3level.h | 17 #define PGDIR_SHIFT 30 macro 27 #define PTRS_PER_PMD ((1 << PGDIR_SHIFT) / PMD_SIZE)
|
| /Linux-v5.4/arch/arm/include/asm/ |
| D | pgtable-nommu.h | 31 #define PGDIR_SHIFT 21 macro 33 #define PGDIR_SIZE (1UL << PGDIR_SHIFT)
|
| D | pgtable-2level.h | 83 #define PGDIR_SHIFT 21 macro 87 #define PGDIR_SIZE (1UL << PGDIR_SHIFT)
|
| /Linux-v5.4/arch/parisc/include/asm/ |
| D | pgtable.h | 147 #define PGDIR_SHIFT (PMD_SHIFT + BITS_PER_PMD) macro 148 #if (PGDIR_SHIFT + PAGE_SHIFT + PGD_ORDER - BITS_PER_PGD_ENTRY) > BITS_PER_LONG 149 #define BITS_PER_PGD (BITS_PER_LONG - PGDIR_SHIFT) 153 #define PGDIR_SIZE (1UL << PGDIR_SHIFT) 159 #define MAX_ADDRBITS (PGDIR_SHIFT + BITS_PER_PGD) 441 #define pgd_index(address) ((address) >> PGDIR_SHIFT) 445 ((mm)->pgd + ((address) >> PGDIR_SHIFT))
|
| /Linux-v5.4/arch/powerpc/include/asm/nohash/64/ |
| D | pgtable-4k.h | 40 #define PGDIR_SHIFT (PUD_SHIFT + PUD_INDEX_SIZE) macro 41 #define PGDIR_SIZE (1UL << PGDIR_SHIFT)
|
| /Linux-v5.4/arch/nds32/mm/ |
| D | mm-nds32.c | 86 pmdval = (i << PGDIR_SHIFT); in setup_mm_for_reboot() 87 pmd = pmd_offset(pgd + i, i << PGDIR_SHIFT); in setup_mm_for_reboot()
|
| /Linux-v5.4/arch/ia64/include/asm/ |
| D | pgtable.h | 122 #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-v5.4/arch/openrisc/include/asm/ |
| D | pgtable.h | 57 #define PGDIR_SHIFT (PAGE_SHIFT + (PAGE_SHIFT-2)) macro 58 #define PGDIR_SIZE (1UL << PGDIR_SHIFT) 69 #define PTRS_PER_PGD (1UL << (32-PGDIR_SHIFT)) 372 #define pgd_index(address) ((address >> PGDIR_SHIFT) & (PTRS_PER_PGD-1))
|
| /Linux-v5.4/arch/microblaze/include/asm/ |
| D | pgtable.h | 147 #define PGDIR_SHIFT PMD_SHIFT macro 148 #define PGDIR_SIZE (1UL << PGDIR_SHIFT) 157 #define PTRS_PER_PGD (1 << (32 - PGDIR_SHIFT)) 162 #define USER_PGD_PTRS (PAGE_OFFSET >> PGDIR_SHIFT) 479 #define pgd_index(address) ((address) >> PGDIR_SHIFT)
|