Home
last modified time | relevance | path

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

/linux-4.4.14/arch/m68k/include/asm/
Dpgtable_mm.h42 #define PGDIR_SHIFT 17 macro
44 #define PGDIR_SHIFT 22 macro
46 #define PGDIR_SHIFT 25 macro
48 #define PGDIR_SIZE (1UL << PGDIR_SHIFT)
Dsun3_pgalloc.h95 memset(new_pgd, 0, (PAGE_OFFSET >> PGDIR_SHIFT)); in pgd_alloc()
Dmcf_pgalloc.h100 memset(new_pgd, 0, PAGE_OFFSET >> PGDIR_SHIFT); in pgd_alloc()
Dmotorola_pgtable.h192 #define pgd_index(address) ((address) >> PGDIR_SHIFT)
206 return kernel_pg_dir + (address >> PGDIR_SHIFT); in pgd_offset_k()
Dsun3_pgtable.h188 #define pgd_index(address) ((address) >> PGDIR_SHIFT)
Dmcf_pgtable.h333 #define pgd_index(address) ((address) >> PGDIR_SHIFT)
/linux-4.4.14/arch/x86/include/asm/
Dpgtable_64_types.h27 #define PGDIR_SHIFT 39 macro
52 #define PGDIR_SIZE (_AC(1, UL) << PGDIR_SHIFT)
64 #define ESPFIX_BASE_ADDR (ESPFIX_PGD_ENTRY << PGDIR_SHIFT)
Dpgtable-2level_types.h25 #define PGDIR_SHIFT 22 macro
Dpgtable-3level_types.h30 #define PGDIR_SHIFT 30 macro
Dpgtable_32_types.h17 #define PGDIR_SIZE (1UL << PGDIR_SHIFT)
Dpgtable.h673 #define pgd_index(address) (((address) >> PGDIR_SHIFT) & (PTRS_PER_PGD - 1))
/linux-4.4.14/arch/powerpc/include/asm/
Dmmu-44x.h147 #define PPC44x_PGD_OFF_SHIFT (32 - PGDIR_SHIFT + PGD_T_LOG2)
148 #define PPC44x_PGD_OFF_MASK_BIT (PGDIR_SHIFT - PGD_T_LOG2)
149 #define PPC44x_PTE_ADD_SHIFT (32 - PGDIR_SHIFT + PTE_SHIFT + PTE_T_LOG2)
Dpgtable-ppc32.h30 #define PGDIR_SHIFT (PAGE_SHIFT + PTE_SHIFT) macro
31 #define PGDIR_SIZE (1UL << PGDIR_SHIFT)
40 #define PGD_TABLE_SIZE (sizeof(pgd_t) << (32 - PGDIR_SHIFT))
45 #define PTRS_PER_PGD (1 << (32 - PGDIR_SHIFT))
302 #define pgd_index(address) ((address) >> PGDIR_SHIFT)
Dpgtable-ppc64-64k.h31 #define PGDIR_SHIFT (PMD_SHIFT + PMD_INDEX_SIZE) macro
32 #define PGDIR_SIZE (1UL << PGDIR_SHIFT)
Dpgtable-ppc64-4k.h39 #define PGDIR_SHIFT (PUD_SHIFT + PUD_INDEX_SIZE) macro
40 #define PGDIR_SIZE (1UL << PGDIR_SHIFT)
Dpgtable-ppc64.h187 #define pgd_index(address) (((address) >> (PGDIR_SHIFT)) & (PTRS_PER_PGD - 1))
/linux-4.4.14/arch/um/include/asm/
Dpgtable-3level.h15 #define PGDIR_SHIFT 30 macro
17 #define PGDIR_SHIFT 31 macro
19 #define PGDIR_SIZE (1UL << PGDIR_SHIFT)
Dpgtable-2level.h15 #define PGDIR_SHIFT 22 macro
16 #define PGDIR_SIZE (1UL << PGDIR_SHIFT)
Dpgtable.h297 #define pgd_index(address) (((address) >> PGDIR_SHIFT) & (PTRS_PER_PGD-1))
/linux-4.4.14/arch/xtensa/include/asm/
Dpgtable.h51 #define PGDIR_SHIFT 22 macro
52 #define PGDIR_SIZE (1UL << PGDIR_SHIFT)
65 #define FIRST_USER_PGD_NR (FIRST_USER_ADDRESS >> PGDIR_SHIFT)
365 #define pgd_index(address) ((address) >> PGDIR_SHIFT)
408 #define _PGD_INDEX(rt,rs) extui rt, rs, PGDIR_SHIFT, 32-PGDIR_SHIFT
/linux-4.4.14/arch/mips/include/asm/
Dpgtable-64.h48 #define PGDIR_SHIFT (PAGE_SHIFT + PAGE_SHIFT + PTE_ORDER - 3) macro
57 #define PGDIR_SHIFT (PMD_SHIFT + (PAGE_SHIFT + PMD_ORDER - 3)) macro
59 #define PGDIR_SIZE (1UL << PGDIR_SHIFT)
243 #define pgd_index(address) (((address) >> PGDIR_SHIFT) & (PTRS_PER_PGD-1))
Dpgtable-32.h42 #define PGDIR_SHIFT (2 * PAGE_SHIFT + PTE_ORDER - PTE_T_LOG2) macro
43 #define PGDIR_SIZE (1UL << PGDIR_SHIFT)
141 #define pgd_index(address) (((address) >> PGDIR_SHIFT) & (PTRS_PER_PGD-1))
/linux-4.4.14/arch/sh/include/asm/
Dpgtable-3level.h15 #define PGDIR_SHIFT 30 macro
25 #define PTRS_PER_PMD ((1 << PGDIR_SHIFT) / PMD_SIZE)
Dpgtable-2level.h18 #define PGDIR_SHIFT (PTE_SHIFT + PTE_BITS) macro
Dpgtable.h59 #define PGDIR_SIZE (1UL << PGDIR_SHIFT)
Dpgtable_64.h51 #define pgd_index(address) (((address) >> PGDIR_SHIFT) & (PTRS_PER_PGD-1))
Dpgtable_32.h407 #define pgd_index(address) (((address) >> PGDIR_SHIFT) & (PTRS_PER_PGD-1))
/linux-4.4.14/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)
Dpgtable-3level.h43 #define PGDIR_SHIFT 30 macro
52 #define PGDIR_SIZE (1UL << PGDIR_SHIFT)
53 #define PGDIR_MASK (~((1 << PGDIR_SHIFT) - 1))
Dpgtable.h177 #define pgd_index(addr) ((addr) >> PGDIR_SHIFT)
/linux-4.4.14/arch/parisc/include/asm/
Dpgtable.h125 #define PGDIR_SHIFT (PMD_SHIFT + BITS_PER_PMD) macro
126 #if (PGDIR_SHIFT + PAGE_SHIFT + PGD_ORDER - BITS_PER_PGD_ENTRY) > BITS_PER_LONG
127 #define BITS_PER_PGD (BITS_PER_LONG - PGDIR_SHIFT)
131 #define PGDIR_SIZE (1UL << PGDIR_SHIFT)
137 #define MAX_ADDRBITS (PGDIR_SHIFT + BITS_PER_PGD)
419 #define pgd_index(address) ((address) >> PGDIR_SHIFT)
423 ((mm)->pgd + ((address) >> PGDIR_SHIFT))
/linux-4.4.14/arch/arm64/include/asm/
Dpgtable-hwdef.h78 #define PGDIR_SHIFT ARM64_HW_PGTABLE_LEVEL_SHIFT(4 - CONFIG_PGTABLE_LEVELS) macro
79 #define PGDIR_SIZE (_AC(1, UL) << PGDIR_SHIFT)
81 #define PTRS_PER_PGD (1 << (VA_BITS - PGDIR_SHIFT))
Dkvm_mmu.h155 #if PGDIR_SHIFT > KVM_PHYS_SHIFT
158 #define PTRS_PER_S2_PGD_SHIFT (KVM_PHYS_SHIFT - PGDIR_SHIFT)
163 #define kvm_pgd_index(addr) (((addr) >> PGDIR_SHIFT) & (PTRS_PER_S2_PGD - 1))
Dpgtable.h517 #define pgd_index(addr) (((addr) >> PGDIR_SHIFT) & (PTRS_PER_PGD - 1))
/linux-4.4.14/arch/metag/include/asm/
Dpgtable.h34 #define PGDIR_SHIFT 22 macro
35 #define PGDIR_SIZE (1UL << PGDIR_SHIFT)
180 #define pgd_index(address) ((((address) & ~0x80000000) >> PGDIR_SHIFT) \
183 #define pgd_index(address) (((address) >> PGDIR_SHIFT) & (PTRS_PER_PGD-1))
/linux-4.4.14/arch/ia64/include/asm/
Dpgtable.h121 #define PGDIR_SHIFT (PUD_SHIFT + (PTRS_PER_PTD_SHIFT)) macro
123 #define PGDIR_SHIFT (PMD_SHIFT + (PTRS_PER_PTD_SHIFT)) macro
125 #define PGDIR_SIZE (__IA64_UL(1) << PGDIR_SHIFT)
242 #define RGN_MAP_SHIFT (PGDIR_SHIFT + PTRS_PER_PGD_SHIFT - 3)
364 unsigned long l1index = (address >> PGDIR_SHIFT) & ((PTRS_PER_PGD >> 3) - 1); in pgd_index()
380 (init_mm.pgd + (((addr) >> PGDIR_SHIFT) & (PTRS_PER_PGD - 1)))
/linux-4.4.14/arch/microblaze/include/asm/
Dpgtable.h147 #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)
/linux-4.4.14/arch/metag/mm/
Dmmu-meta2.c28 offset = vaddr >> PGDIR_SHIFT; in mmu_read_first_level_page()
33 linear_base = (phys0 >> PGDIR_SHIFT) & 0x1ff; in mmu_read_first_level_page()
Dmmu-meta1.c86 pgd_phys = mmu_base_phys + ((virt >> PGDIR_SHIFT) * 4); in pgd_entry_addr()
/linux-4.4.14/arch/nios2/include/asm/
Dpgtable.h82 #define PGDIR_SHIFT 22 macro
83 #define PGDIR_SIZE (1UL << PGDIR_SHIFT)
106 #define pgd_index(addr) (((addr) >> PGDIR_SHIFT) & (PTRS_PER_PGD - 1))
/linux-4.4.14/arch/cris/include/asm/
Dpgtable.h51 #define PGDIR_SHIFT (PAGE_SHIFT + (PAGE_SHIFT-2)) macro
52 #define PGDIR_SIZE (1UL << PGDIR_SHIFT)
232 #define pgd_index(address) (((address) >> PGDIR_SHIFT) & (PTRS_PER_PGD-1))
/linux-4.4.14/arch/arc/include/asm/
Dpgtable.h212 #define PGDIR_SHIFT (32 - BITS_FOR_PGD) macro
213 #define PGDIR_SIZE (1UL << PGDIR_SHIFT) /* vaddr span, not PDG sz */
337 #define pgd_index(addr) ((addr) >> PGDIR_SHIFT)
/linux-4.4.14/arch/unicore32/include/asm/
Dpgtable.h46 #define PGDIR_SHIFT 22 macro
56 #define PGDIR_SIZE (1UL << PGDIR_SHIFT)
233 #define pgd_index(addr) ((addr) >> PGDIR_SHIFT)
/linux-4.4.14/arch/powerpc/mm/
Dhugetlbpage.c198 #define HUGEPD_PGD_SHIFT PGDIR_SHIFT
217 unsigned pdshift = PGDIR_SHIFT; in huge_pte_alloc()
222 if (pshift == PGDIR_SHIFT) in huge_pte_alloc()
267 unsigned pdshift = PGDIR_SHIFT; in huge_pte_alloc()
693 free_hugepd_range(tlb, (hugepd_t *)pgd, PGDIR_SHIFT, in hugetlb_free_pgd_range()
919 pdshift = PGDIR_SHIFT; in hugetlbpage_init()
986 unsigned pdshift = PGDIR_SHIFT; in __find_linux_pte_or_hugepte()
Dtlb_low_64e.S146 rldicl r15,r16,64-PGDIR_SHIFT+3,64-PGD_INDEX_SIZE-3
402 rldicl r15,r16,64-PGDIR_SHIFT+3,64-PGD_INDEX_SIZE-3
1095 rldicl r11,r16,64-(PGDIR_SHIFT-3),64-PGD_INDEX_SIZE-3
Dpgtable_32.c70 #define PGDIR_ORDER (32 + PGD_T_LOG2 - PGDIR_SHIFT)
/linux-4.4.14/arch/score/include/asm/
Dpgtable.h15 #define PGDIR_SHIFT 22 macro
16 #define PGDIR_SIZE (_AC(1, UL) << PGDIR_SHIFT)
76 #define pgd_index(address) (((address) >> PGDIR_SHIFT) & (PTRS_PER_PGD-1))
/linux-4.4.14/arch/hexagon/include/asm/
Dpgtable.h85 #define PGDIR_SHIFT 22 macro
88 #define PGDIR_SIZE (1UL << PGDIR_SHIFT)
241 #define pgd_index(address) (((address) >> PGDIR_SHIFT) & (PTRS_PER_PGD-1))
Dmem-layout.h67 #define MIN_KERNEL_SEG (PAGE_OFFSET >> PGDIR_SHIFT) /* L1 shift is 22 bits */
/linux-4.4.14/arch/mn10300/include/asm/
Dpgtable.h56 #define PGDIR_SHIFT 22 macro
66 #define PGDIR_SIZE (1UL << PGDIR_SHIFT)
72 #define USER_PGD_PTRS (PAGE_OFFSET >> PGDIR_SHIFT)
419 #define pgd_index(address) (((address) >> PGDIR_SHIFT) & (PTRS_PER_PGD - 1))
/linux-4.4.14/arch/frv/include/asm/
Dpgtable.h121 #define PGDIR_SHIFT 26 macro
122 #define PGDIR_SIZE (1UL << PGDIR_SHIFT)
147 #define USER_PGD_PTRS (PAGE_OFFSET >> PGDIR_SHIFT)
432 #define pgd_index(address) (((address) >> PGDIR_SHIFT) & (PTRS_PER_PGD - 1))
/linux-4.4.14/arch/alpha/include/asm/
Dpgtable.h36 #define PGDIR_SHIFT (PAGE_SHIFT + 2*(PAGE_SHIFT-3)) macro
37 #define PGDIR_SIZE (1UL << PGDIR_SHIFT)
286 #define pgd_index(address) (((address) >> PGDIR_SHIFT) & (PTRS_PER_PGD-1))
/linux-4.4.14/arch/openrisc/include/asm/
Dpgtable.h60 #define PGDIR_SHIFT (PAGE_SHIFT + (PAGE_SHIFT-2)) macro
61 #define PGDIR_SIZE (1UL << PGDIR_SHIFT)
375 #define pgd_index(address) ((address >> PGDIR_SHIFT) & (PTRS_PER_PGD-1))
/linux-4.4.14/arch/avr32/include/asm/
Dpgtable-2level.h16 #define PGDIR_SHIFT 22 macro
Dpgtable.h29 #define PGDIR_SIZE (1UL << PGDIR_SHIFT)
295 #define pgd_index(address) (((address) >> PGDIR_SHIFT) \
/linux-4.4.14/include/asm-generic/
Dpgtable-nopud.h15 #define PUD_SHIFT PGDIR_SHIFT
D4level-fixup.h7 #define PUD_SHIFT PGDIR_SHIFT
/linux-4.4.14/arch/m68k/mm/
Dsun3mmu.c64 pg_dir += PAGE_OFFSET >> PGDIR_SHIFT; in paging_init()
Dmcfmmu.c56 pg_dir += PAGE_OFFSET >> PGDIR_SHIFT; in paging_init()
/linux-4.4.14/arch/tile/include/asm/
Dpgtable_32.h23 #define PGDIR_SHIFT HPAGE_SHIFT macro
Dpgtable_64.h20 #define PGDIR_SHIFT HV_LOG2_L1_SPAN macro
Dpgtable.h320 #define pgd_index(address) (((address) >> PGDIR_SHIFT) & (PTRS_PER_PGD - 1))
/linux-4.4.14/arch/m32r/include/asm/
Dpgtable.h52 #define PGDIR_SIZE (1UL << PGDIR_SHIFT)
308 (((address) >> PGDIR_SHIFT) & (PTRS_PER_PGD - 1))
Dpgtable-2level.h9 #define PGDIR_SHIFT 22 macro
/linux-4.4.14/arch/sparc/include/asm/
Dpgtable_64.h62 #define PGDIR_SHIFT (PUD_SHIFT + PUD_BITS) macro
63 #define PGDIR_SIZE (_AC(1,UL) << PGDIR_SHIFT)
67 #if (MAX_PHYS_ADDRESS_BITS > PGDIR_SHIFT + PGDIR_BITS)
71 #if (PGDIR_SHIFT + PGDIR_BITS) != 53
856 #define pgd_index(address) (((address) >> PGDIR_SHIFT) & (PTRS_PER_PGD - 1))
Dpgtable_32.h40 #define PGDIR_SHIFT SRMMU_PGDIR_SHIFT macro
312 #define pgd_index(address) ((address) >> PGDIR_SHIFT)
Dtsb.h158 sllx VADDR, 64 - (PGDIR_SHIFT + PGDIR_BITS), REG2; \
236 sllx VADDR, 64 - (PGDIR_SHIFT + PGDIR_BITS), REG2; \
/linux-4.4.14/arch/avr32/kernel/
Dentry-avr32b.S107 lsr r2, r0, PGDIR_SHIFT
109 bfextu r1, r0, PAGE_SHIFT, PGDIR_SHIFT - PAGE_SHIFT
492 lsr r2, r1, PGDIR_SHIFT
494 lsl r1, (32 - PGDIR_SHIFT)
495 lsr r1, (32 - PGDIR_SHIFT) + PAGE_SHIFT
/linux-4.4.14/arch/unicore32/mm/
Dmmu.c464 unsigned long pmdval = (i << PGDIR_SHIFT) | base_pmdval; in setup_mm_for_reboot()
467 pmd = pmd_off(pgd, i << PGDIR_SHIFT); in setup_mm_for_reboot()
/linux-4.4.14/arch/tile/kernel/
Dhead_32.S159 .rept (MEM_USER_INTRPT - PAGE_OFFSET) >> PGDIR_SHIFT
Dsetup.c1238 ((PGD_LIST_OFFSET / sizeof(pgd_t)) << PGDIR_SHIFT); in validate_va()
/linux-4.4.14/arch/x86/kernel/
Despfix_64.c53 #define ESPFIX_PAGE_SPACE (1UL << (PGDIR_SHIFT-PAGE_SHIFT-16))
Dhead_64.S111 shrq $PGDIR_SHIFT, %rax
Dtraps.c328 if (((long)regs->sp >> PGDIR_SHIFT) == ESPFIX_PGD_ENTRY && in do_double_fault()
/linux-4.4.14/arch/ia64/kernel/
Divt.S135 shr.u r18=r22,PGDIR_SHIFT // get bottom portion of pgd index bit
143 (p6) shr.u r21=r21,PGDIR_SHIFT+PAGE_SHIFT
144 (p7) shr.u r21=r21,PGDIR_SHIFT+PAGE_SHIFT-3
463 add r18=PGDIR_SHIFT-PAGE_SHIFT,r18
473 (p6) shr.u r21=r21,PGDIR_SHIFT+PAGE_SHIFT
474 (p7) shr.u r21=r21,PGDIR_SHIFT+PAGE_SHIFT-3
/linux-4.4.14/arch/mips/mm/
Dtlbex.c803 uasm_i_dsrl_safe(p, ptr, tmp, PGDIR_SHIFT + PGD_ORDER + PAGE_SHIFT - 3); in build_get_pmde64()
842 uasm_i_dsrl_safe(p, tmp, tmp, PGDIR_SHIFT - 3); in build_get_pmde64()
951 uasm_i_srl(p, tmp, tmp, PGDIR_SHIFT); /* get pgd only bits */ in build_get_pgde32()
1092 PGDIR_SHIFT + PGD_ORDER + PAGE_SHIFT - 3); in build_fast_tlb_refill_handler()
1135 uasm_i_dsrl_safe(p, scratch, tmp, PGDIR_SHIFT - 3); in build_fast_tlb_refill_handler()
1147 uasm_i_dsrl_safe(p, scratch, tmp, PGDIR_SHIFT - 3); in build_fast_tlb_refill_handler()
2283 pwfield |= PGDIR_SHIFT << MIPS_PWFIELD_GDI_SHIFT; in config_htw_params()
2402 check_for_high_segbits = current_cpu_data.vmbits > (PGDIR_SHIFT + PGD_ORDER + PAGE_SHIFT - 3); in build_tlb_refill_handler()
/linux-4.4.14/arch/arm64/kernel/
Dhead.S274 create_table_entry \tbl, \virt, PGDIR_SHIFT, PTRS_PER_PGD, \tmp1, \tmp2
345 #define EXTRA_SHIFT (PGDIR_SHIFT + PAGE_SHIFT - 3)
/linux-4.4.14/arch/microblaze/kernel/
Dhw_exception_handler.S632 bsrli r5, r3, PGDIR_SHIFT - 2
733 bsrli r5, r3, PGDIR_SHIFT - 2
804 bsrli r5, r3, PGDIR_SHIFT - 2
/linux-4.4.14/arch/score/kernel/
Dasm-offsets.c159 DEFINE(_PGDIR_SHIFT, PGDIR_SHIFT); in output_mm_defines()
/linux-4.4.14/arch/m32r/mm/
Dfault.c258 page = ((unsigned long *) page)[address >> PGDIR_SHIFT]; in do_page_fault()
/linux-4.4.14/arch/cris/arch-v10/
DREADME.mm182 return mm->pgd + (address >> PGDIR_SHIFT);
185 PGDIR_SHIFT is the log2 of the amount of memory an entry in the PGD can map; in our
/linux-4.4.14/arch/parisc/kernel/
Dasm-offsets.c280 DEFINE(ASM_PGDIR_SHIFT, PGDIR_SHIFT); in main()
286 DEFINE(ASM_PGD_ENTRY, PAGE_OFFSET >> PGDIR_SHIFT); in main()
/linux-4.4.14/arch/s390/include/asm/
Dpgtable.h68 #define PGDIR_SHIFT 42 macro
74 #define PGDIR_SIZE (1UL << PGDIR_SHIFT)
1313 #define pgd_index(address) (((address) >> PGDIR_SHIFT) & (PTRS_PER_PGD-1))
/linux-4.4.14/arch/arc/mm/
Dtlbex.S207 lsr r0, r2, PGDIR_SHIFT ; Bits for indexing into PGD
/linux-4.4.14/drivers/lguest/
Dpage_tables.c138 unsigned int index = vaddr >> (PGDIR_SHIFT); in gpgd_addr()
/linux-4.4.14/arch/mips/kernel/
Dasm-offsets.c202 DEFINE(_PGDIR_SHIFT, PGDIR_SHIFT); in output_mm_defines()
/linux-4.4.14/mm/
Dgup.c1369 PGDIR_SHIFT, next, write, pages, &nr)) in __get_user_pages_fast()
/linux-4.4.14/arch/arm/mm/
Dmmu.c874 pgd += SUPERSECTION_SIZE >> PGDIR_SHIFT; in create_36bit_mapping()
/linux-4.4.14/arch/x86/xen/
Dmmu.c2102 n_pud = roundup(size, PGDIR_SIZE) >> PGDIR_SHIFT; in xen_relocate_p2m()