Home
last modified time | relevance | path

Searched refs:PGDIR_SIZE (Results 1 – 75 of 75) sorted by relevance

/linux-4.4.14/arch/arm/mach-ebsa110/
Dcore.h18 #define ISAIO_SIZE PGDIR_SIZE
21 #define TRICK0_SIZE PGDIR_SIZE
23 #define TRICK1_SIZE PGDIR_SIZE
26 #define TRICK3_SIZE PGDIR_SIZE
28 #define TRICK4_SIZE PGDIR_SIZE
/linux-4.4.14/arch/um/include/asm/
Dpgtable-2level.h16 #define PGDIR_SIZE (1UL << PGDIR_SHIFT) macro
17 #define PGDIR_MASK (~(PGDIR_SIZE-1))
24 #define USER_PTRS_PER_PGD ((TASK_SIZE + (PGDIR_SIZE - 1)) / PGDIR_SIZE)
Dpgtable-3level.h19 #define PGDIR_SIZE (1UL << PGDIR_SHIFT) macro
20 #define PGDIR_MASK (~(PGDIR_SIZE-1))
43 #define USER_PTRS_PER_PGD ((TASK_SIZE + (PGDIR_SIZE - 1)) / PGDIR_SIZE)
/linux-4.4.14/arch/tile/include/asm/
Dkexec.h34 #define KEXEC_SOURCE_MEMORY_LIMIT PGDIR_SIZE
36 #define KEXEC_DESTINATION_MEMORY_LIMIT PGDIR_SIZE
38 #define KEXEC_CONTROL_MEMORY_LIMIT PGDIR_SIZE
Dpgtable_32.h24 #define PGDIR_SIZE HPAGE_SIZE macro
25 #define PGDIR_MASK (~(PGDIR_SIZE-1))
Dpgtable_64.h21 #define PGDIR_SIZE HV_L1_SPAN macro
22 #define PGDIR_MASK (~(PGDIR_SIZE-1))
/linux-4.4.14/arch/m68k/include/asm/
Dpgtable_mm.h48 #define PGDIR_SIZE (1UL << PGDIR_SHIFT) macro
49 #define PGDIR_MASK (~(PGDIR_SIZE-1))
70 #define USER_PTRS_PER_PGD (TASK_SIZE/PGDIR_SIZE)
/linux-4.4.14/arch/arm/include/asm/
Dpgtable-2level.h90 #define PGDIR_SIZE (1UL << PGDIR_SHIFT) macro
91 #define PGDIR_MASK (~(PGDIR_SIZE-1))
107 #define USER_PTRS_PER_PGD (TASK_SIZE / PGDIR_SIZE)
Dpgtable-nommu.h36 #define PGDIR_SIZE (1UL << PGDIR_SHIFT) macro
37 #define PGDIR_MASK (~(PGDIR_SIZE-1))
Dpgtable-3level.h52 #define PGDIR_SIZE (1UL << PGDIR_SHIFT) macro
62 #define USER_PTRS_PER_PGD (PAGE_OFFSET / PGDIR_SIZE)
Dkvm_mmu.h141 ({ u64 __boundary = ((addr) + PGDIR_SIZE) & PGDIR_MASK; \
/linux-4.4.14/arch/x86/include/asm/
Dpgtable_32_types.h17 #define PGDIR_SIZE (1UL << PGDIR_SHIFT) macro
18 #define PGDIR_MASK (~(PGDIR_SIZE - 1))
Dpgtable_64_types.h52 #define PGDIR_SIZE (_AC(1, UL) << PGDIR_SHIFT) macro
53 #define PGDIR_MASK (~(PGDIR_SIZE - 1))
/linux-4.4.14/arch/powerpc/include/asm/
Dpgtable-ppc64-64k.h32 #define PGDIR_SIZE (1UL << PGDIR_SHIFT) macro
33 #define PGDIR_MASK (~(PGDIR_SIZE-1))
Dpgtable-ppc64-4k.h40 #define PGDIR_SIZE (1UL << PGDIR_SHIFT) macro
41 #define PGDIR_MASK (~(PGDIR_SIZE-1))
Dpgtable-ppc32.h31 #define PGDIR_SIZE (1UL << PGDIR_SHIFT) macro
32 #define PGDIR_MASK (~(PGDIR_SIZE-1))
47 #define USER_PTRS_PER_PGD (TASK_SIZE / PGDIR_SIZE)
/linux-4.4.14/arch/metag/include/asm/
Dpgtable.h35 #define PGDIR_SIZE (1UL << PGDIR_SHIFT) macro
36 #define PGDIR_MASK (~(PGDIR_SIZE-1))
45 #define PTRS_PER_PTE (PGDIR_SIZE/PAGE_SIZE)
46 #define HPTRS_PER_PTE (PGDIR_SIZE/HPAGE_SIZE)
173 #define pmd_num_ptrs(pmd) (PGDIR_SIZE >> pmd_page_shift(pmd))
/linux-4.4.14/arch/arc/include/asm/
Dhighmem.h20 #define FIXMAP_SIZE PGDIR_SIZE /* only 1 PGD worth */
26 #define PKMAP_SIZE PGDIR_SIZE
Dpgalloc.h61 num = USER_PTRS_PER_PGD + USER_KERNEL_GUTTER / PGDIR_SIZE; in pgd_alloc()
64 num2 = VMALLOC_SIZE / PGDIR_SIZE; in pgd_alloc()
Dpgtable.h213 #define PGDIR_SIZE (1UL << PGDIR_SHIFT) /* vaddr span, not PDG sz */ macro
214 #define PGDIR_MASK (~(PGDIR_SIZE-1))
223 #define USER_PTRS_PER_PGD (TASK_SIZE / PGDIR_SIZE)
Dprocessor.h118 #define VMALLOC_SIZE (PAGE_OFFSET - VMALLOC_START - PGDIR_SIZE * 4)
/linux-4.4.14/arch/mips/include/asm/
Dpgtable-64.h59 #define PGDIR_SIZE (1UL << PGDIR_SHIFT) macro
60 #define PGDIR_MASK (~(PGDIR_SIZE-1))
117 #if PGDIR_SIZE >= TASK_SIZE64
120 #define USER_PTRS_PER_PGD (TASK_SIZE64 / PGDIR_SIZE)
Dpgtable-32.h43 #define PGDIR_SIZE (1UL << PGDIR_SHIFT) macro
44 #define PGDIR_MASK (~(PGDIR_SIZE-1))
59 #define USER_PTRS_PER_PGD (0x80000000UL/PGDIR_SIZE)
/linux-4.4.14/arch/arm64/mm/
Dkasan_init.c94 BUILD_BUG_ON(!IS_ALIGNED(KASAN_SHADOW_START, PGDIR_SIZE)); in kasan_early_init()
95 BUILD_BUG_ON(!IS_ALIGNED(KASAN_SHADOW_END, PGDIR_SIZE)); in kasan_early_init()
107 for (; start < end; start += PGDIR_SIZE) in clear_pgds()
Ddump.c302 addr = start + i * PGDIR_SIZE; in walk_pgd()
/linux-4.4.14/arch/alpha/include/asm/
Dpgtable.h37 #define PGDIR_SIZE (1UL << PGDIR_SHIFT) macro
38 #define PGDIR_MASK (~(PGDIR_SIZE-1))
47 #define USER_PTRS_PER_PGD (TASK_SIZE / PGDIR_SIZE)
56 #define VMALLOC_START (-2*PGDIR_SIZE)
58 #define VMALLOC_END (-PGDIR_SIZE)
/linux-4.4.14/arch/nios2/mm/
Dioremap.c58 if (end > PGDIR_SIZE) in remap_area_pmd()
59 end = PGDIR_SIZE; in remap_area_pmd()
103 address = (address + PGDIR_SIZE) & PGDIR_MASK; in remap_area_pages()
/linux-4.4.14/arch/mips/mm/
Dioremap.c52 if (end > PGDIR_SIZE) in remap_area_pmd()
53 end = PGDIR_SIZE; in remap_area_pmd()
93 address = (address + PGDIR_SIZE) & PGDIR_MASK; in remap_area_pages()
/linux-4.4.14/arch/x86/platform/efi/
Defi_64.c91 n_pgds = DIV_ROUND_UP((max_pfn << PAGE_SHIFT), PGDIR_SIZE); in efi_call_phys_prolog()
95 save_pgd[pgd] = *pgd_offset_k(pgd * PGDIR_SIZE); in efi_call_phys_prolog()
96 vaddress = (unsigned long)__va(pgd * PGDIR_SIZE); in efi_call_phys_prolog()
97 set_pgd(pgd_offset_k(pgd * PGDIR_SIZE), *pgd_offset_k(vaddress)); in efi_call_phys_prolog()
115 nr_pgds = DIV_ROUND_UP((max_pfn << PAGE_SHIFT) , PGDIR_SIZE); in efi_call_phys_epilog()
118 set_pgd(pgd_offset_k(pgd_idx * PGDIR_SIZE), save_pgd[pgd_idx]); in efi_call_phys_epilog()
/linux-4.4.14/arch/sh/include/asm/
Dpgtable.h59 #define PGDIR_SIZE (1UL << PGDIR_SHIFT) macro
60 #define PGDIR_MASK (~(PGDIR_SIZE-1))
Dpgtable-2level.h21 #define USER_PTRS_PER_PGD (TASK_SIZE/PGDIR_SIZE)
/linux-4.4.14/arch/parisc/kernel/
Dpci-dma.c118 if (end > PGDIR_SIZE) in map_pmd_uncached()
119 end = PGDIR_SIZE; in map_pmd_uncached()
148 vaddr = vaddr + PGDIR_SIZE; in map_uncached_pages()
207 if (end > PGDIR_SIZE) in unmap_uncached_pmd()
208 end = PGDIR_SIZE; in unmap_uncached_pmd()
225 vaddr = vaddr + PGDIR_SIZE; in unmap_uncached_pages()
/linux-4.4.14/arch/x86/mm/
Dkasan_init_64.c34 for (; start < end; start += PGDIR_SIZE) in clear_pgds()
47 start += PGDIR_SIZE; in kasan_map_early_shadow()
Dinit_64.c109 next = (addr & PGDIR_MASK) + PGDIR_SIZE; in kernel_ident_mapping_init()
170 for (address = start; address <= end; address += PGDIR_SIZE) { in sync_global_pgds()
615 next = (start & PGDIR_MASK) + PGDIR_SIZE; in kernel_physical_mapping_init()
/linux-4.4.14/arch/metag/mm/
Dmmu-meta2.c161 addr += PGDIR_SIZE; in mmu_init()
195 addr += PGDIR_SIZE; in mmu_init()
Dmmu-meta1.c154 addr += PGDIR_SIZE; in mmu_init()
/linux-4.4.14/arch/unicore32/mm/
Dmmu.c308 for (addr = 0; addr < MODULES_VADDR; addr += PGDIR_SIZE) in prepare_page_table()
311 for ( ; addr < PAGE_OFFSET; addr += PGDIR_SIZE) in prepare_page_table()
326 addr < VMALLOC_END; addr += PGDIR_SIZE) in prepare_page_table()
360 for (addr = VMALLOC_END; addr; addr += PGDIR_SIZE) in devicemaps_init()
Dioremap.c94 addr += PGDIR_SIZE; in unmap_area_sections()
122 addr += PGDIR_SIZE; in remap_area_sections()
/linux-4.4.14/arch/nios2/include/asm/
Dpgtable.h80 (CONFIG_NIOS2_KERNEL_MMU_REGION_BASE / PGDIR_SIZE)
83 #define PGDIR_SIZE (1UL << PGDIR_SHIFT) macro
84 #define PGDIR_MASK (~(PGDIR_SIZE-1))
/linux-4.4.14/arch/cris/include/asm/
Dpgtable.h52 #define PGDIR_SIZE (1UL << PGDIR_SHIFT) macro
53 #define PGDIR_MASK (~(PGDIR_SIZE-1))
69 #define USER_PTRS_PER_PGD (TASK_SIZE/PGDIR_SIZE)
/linux-4.4.14/mm/kasan/
Dkasan_init.c126 if (IS_ALIGNED(addr, PGDIR_SIZE) && end - addr >= PGDIR_SIZE) { in kasan_populate_zero_shadow()
/linux-4.4.14/arch/m32r/include/asm/
Dpgtable.h52 #define PGDIR_SIZE (1UL << PGDIR_SHIFT) macro
53 #define PGDIR_MASK (~(PGDIR_SIZE - 1))
55 #define USER_PTRS_PER_PGD (TASK_SIZE / PGDIR_SIZE)
/linux-4.4.14/arch/unicore32/include/asm/
Dpgtable.h56 #define PGDIR_SIZE (1UL << PGDIR_SHIFT) macro
57 #define PGDIR_MASK (~(PGDIR_SIZE-1))
67 #define USER_PTRS_PER_PGD ((TASK_SIZE/PGDIR_SIZE) - FIRST_USER_PGD_NR)
/linux-4.4.14/arch/tile/mm/
Dhugetlbpage.c66 if (sz >= PGDIR_SIZE) { in huge_pte_alloc()
67 BUG_ON(sz != PGDIR_SIZE && in huge_pte_alloc()
68 sz != PGDIR_SIZE << huge_shift[HUGE_SHIFT_PGDIR]); in huge_pte_alloc()
Dfault.c903 for (address = start; address >= PAGE_OFFSET; address += PGDIR_SIZE) { in vmalloc_sync_all()
921 start = address + PGDIR_SIZE; in vmalloc_sync_all()
/linux-4.4.14/arch/tile/kernel/
Dhead_32.S162 .set addr, addr + PGDIR_SIZE
168 .org swapper_pg_dir + PGDIR_SIZE
Dmachine_kexec.c230 #define QUASI_VA_IS_PA_ADDR_RANGE PGDIR_SIZE
Dsetup.c252 VMALLOC_RESERVE = (memparse(arg, &arg) + PGDIR_SIZE - 1) & PGDIR_MASK; in parse_vmalloc()
/linux-4.4.14/arch/score/include/asm/
Dpgtable.h16 #define PGDIR_SIZE (_AC(1, UL) << PGDIR_SHIFT) macro
17 #define PGDIR_MASK (~(PGDIR_SIZE - 1))
29 #define USER_PTRS_PER_PGD (0x80000000UL/PGDIR_SIZE)
/linux-4.4.14/arch/avr32/include/asm/
Dpgtable.h29 #define PGDIR_SIZE (1UL << PGDIR_SHIFT) macro
30 #define PGDIR_MASK (~(PGDIR_SIZE-1))
32 #define USER_PTRS_PER_PGD (TASK_SIZE / PGDIR_SIZE)
/linux-4.4.14/arch/arm64/include/asm/
Dpgtable-hwdef.h79 #define PGDIR_SIZE (_AC(1, UL) << PGDIR_SHIFT) macro
80 #define PGDIR_MASK (~(PGDIR_SIZE-1))
/linux-4.4.14/arch/openrisc/include/asm/
Dpgtable.h61 #define PGDIR_SIZE (1UL << PGDIR_SHIFT) macro
62 #define PGDIR_MASK (~(PGDIR_SIZE-1))
79 #define USER_PTRS_PER_PGD (TASK_SIZE/PGDIR_SIZE)
/linux-4.4.14/arch/xtensa/include/asm/
Dpgtable.h52 #define PGDIR_SIZE (1UL << PGDIR_SHIFT) macro
53 #define PGDIR_MASK (~(PGDIR_SIZE-1))
63 #define USER_PTRS_PER_PGD (TASK_SIZE/PGDIR_SIZE)
/linux-4.4.14/include/asm-generic/
D4level-fixup.h8 #define PUD_SIZE PGDIR_SIZE
Dpgtable.h333 ({ unsigned long __boundary = ((addr) + PGDIR_SIZE) & PGDIR_MASK; \
/linux-4.4.14/arch/microblaze/include/asm/
Dpgtable.h148 #define PGDIR_SIZE (1UL << PGDIR_SHIFT) macro
149 #define PGDIR_MASK (~(PGDIR_SIZE-1))
159 #define USER_PTRS_PER_PGD (TASK_SIZE / PGDIR_SIZE)
/linux-4.4.14/arch/mn10300/include/asm/
Dpgtable.h66 #define PGDIR_SIZE (1UL << PGDIR_SHIFT) macro
67 #define PGDIR_MASK (~(PGDIR_SIZE - 1))
69 #define USER_PTRS_PER_PGD (TASK_SIZE / PGDIR_SIZE)
/linux-4.4.14/arch/frv/include/asm/
Dpgtable.h122 #define PGDIR_SIZE (1UL << PGDIR_SHIFT) macro
123 #define PGDIR_MASK (~(PGDIR_SIZE - 1))
144 #define USER_PGDS_IN_LAST_PML4 (TASK_SIZE / PGDIR_SIZE)
/linux-4.4.14/arch/hexagon/include/asm/
Dpgtable.h88 #define PGDIR_SIZE (1UL << PGDIR_SHIFT) macro
89 #define PGDIR_MASK (~(PGDIR_SIZE-1))
/linux-4.4.14/arch/x86/xen/
Dxen-head.S108 ELFNOTE(Xen, XEN_ELFNOTE_INIT_P2M, .quad PGDIR_SIZE)
Dmmu.c125 #define USER_LIMIT ((STACK_TOP_MAX + PGDIR_SIZE - 1) & PGDIR_MASK)
1168 unpin = (vaddr == 2 * PGDIR_SIZE); in xen_cleanmfnmap()
2102 n_pud = roundup(size, PGDIR_SIZE) >> PGDIR_SHIFT; in xen_relocate_p2m()
2125 new_p2m = (unsigned long *)(2 * PGDIR_SIZE); in xen_relocate_p2m()
/linux-4.4.14/arch/powerpc/mm/
Dtlb_hash32.c108 pmd_end = ((start + PGDIR_SIZE) & PGDIR_MASK) - 1; in flush_range()
/linux-4.4.14/arch/m68k/sun3x/
Ddvma.c110 end2 = (vaddr + (PGDIR_SIZE-1)) & PGDIR_MASK; in dvma_map_cpu()
/linux-4.4.14/arch/ia64/include/asm/
Dpgtable.h125 #define PGDIR_SIZE (__IA64_UL(1) << PGDIR_SHIFT) macro
126 #define PGDIR_MASK (~(PGDIR_SIZE-1))
/linux-4.4.14/arch/parisc/include/asm/
Dpgtable.h131 #define PGDIR_SIZE (1UL << PGDIR_SHIFT) macro
132 #define PGDIR_MASK (~(PGDIR_SIZE-1))
/linux-4.4.14/arch/s390/mm/
Ddump_pagetables.c185 addr += PGDIR_SIZE; in walk_pgd_level()
Dvmem.c160 address += PGDIR_SIZE; in vmem_remove_range()
/linux-4.4.14/arch/arm/kvm/
Dmmu.c434 for (addr = PAGE_OFFSET; virt_addr_valid(addr); addr += PGDIR_SIZE) in free_hyp_pgds()
435 unmap_range(NULL, hyp_pgd, KERN_TO_HYP(addr), PGDIR_SIZE); in free_hyp_pgds()
436 for (addr = VMALLOC_START; is_vmalloc_addr((void*)addr); addr += PGDIR_SIZE) in free_hyp_pgds()
437 unmap_range(NULL, hyp_pgd, KERN_TO_HYP(addr), PGDIR_SIZE); in free_hyp_pgds()
/linux-4.4.14/arch/sparc/include/asm/
Dpgtable_32.h41 #define PGDIR_SIZE SRMMU_PGDIR_SIZE macro
Dpgtable_64.h63 #define PGDIR_SIZE (_AC(1,UL) << PGDIR_SHIFT) macro
64 #define PGDIR_MASK (~(PGDIR_SIZE-1))
/linux-4.4.14/arch/arm/mm/
Ddump.c315 addr = i * PGDIR_SIZE; in walk_pgd()
/linux-4.4.14/arch/arm/mach-rpc/
Decard.c232 memcpy(dst_pgd, src_pgd, sizeof(pgd_t) * (IO_SIZE / PGDIR_SIZE)); in ecard_init_pgtables()
237 memcpy(dst_pgd, src_pgd, sizeof(pgd_t) * (EASI_SIZE / PGDIR_SIZE)); in ecard_init_pgtables()
/linux-4.4.14/arch/um/kernel/
Dtlb.c322 last = ADD_ROUND(addr, PGDIR_SIZE); in flush_tlb_kernel_range_common()
/linux-4.4.14/arch/ia64/mm/
Dinit.c394 end_address += PGDIR_SIZE; in vmemmap_find_next_valid_pfn()
/linux-4.4.14/arch/s390/include/asm/
Dpgtable.h74 #define PGDIR_SIZE (1UL << PGDIR_SHIFT) macro
75 #define PGDIR_MASK (~(PGDIR_SIZE-1))