Home
last modified time | relevance | path

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

123

/Linux-v4.19/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-v4.19/arch/um/include/asm/
Dpgtable-2level.h17 #define PGDIR_SIZE (1UL << PGDIR_SHIFT) macro
18 #define PGDIR_MASK (~(PGDIR_SIZE-1))
25 #define USER_PTRS_PER_PGD ((TASK_SIZE + (PGDIR_SIZE - 1)) / PGDIR_SIZE)
Dpgtable-3level.h20 #define PGDIR_SIZE (1UL << PGDIR_SHIFT) macro
21 #define PGDIR_MASK (~(PGDIR_SIZE-1))
44 #define USER_PTRS_PER_PGD ((TASK_SIZE + (PGDIR_SIZE - 1)) / PGDIR_SIZE)
/Linux-v4.19/arch/riscv/kernel/
Dsetup.c118 pmd_t swapper_pmd[PTRS_PER_PMD*((-PAGE_OFFSET)/PGDIR_SIZE)] __page_aligned_bss;
133 BUG_ON((PAGE_OFFSET % PGDIR_SIZE) != 0); in setup_vm()
142 for (i = 0; i < (-PAGE_OFFSET)/PGDIR_SIZE; ++i) { in setup_vm()
154 for (i = 0; i < (-PAGE_OFFSET)/PGDIR_SIZE; ++i) { in setup_vm()
157 pfn_pgd(PFN_DOWN(pa + i * PGDIR_SIZE), prot); in setup_vm()
/Linux-v4.19/arch/riscv/include/asm/
Dpgtable-32.h22 #define PGDIR_SIZE (_AC(1, UL) << PGDIR_SHIFT) macro
23 #define PGDIR_MASK (~(PGDIR_SIZE - 1))
Dpgtable-64.h21 #define PGDIR_SIZE (_AC(1, UL) << PGDIR_SHIFT) macro
22 #define PGDIR_MASK (~(PGDIR_SIZE - 1))
/Linux-v4.19/arch/x86/include/asm/
Dpgtable_64_types.h102 #define PGDIR_SIZE (_AC(1, UL) << PGDIR_SHIFT) macro
103 #define PGDIR_MASK (~(PGDIR_SIZE - 1))
118 #define LDT_END_ADDR (LDT_BASE_ADDR + PGDIR_SIZE)
Dpgtable_32_types.h20 #define PGDIR_SIZE (1UL << PGDIR_SHIFT) macro
21 #define PGDIR_MASK (~(PGDIR_SIZE - 1))
/Linux-v4.19/arch/m68k/include/asm/
Dpgtable_mm.h49 #define PGDIR_SIZE (1UL << PGDIR_SHIFT) macro
50 #define PGDIR_MASK (~(PGDIR_SIZE-1))
71 #define USER_PTRS_PER_PGD (TASK_SIZE/PGDIR_SIZE)
/Linux-v4.19/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))
/Linux-v4.19/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()
/Linux-v4.19/arch/parisc/kernel/
Dpci-dma.c113 if (end > PGDIR_SIZE) in map_pmd_uncached()
114 end = PGDIR_SIZE; in map_pmd_uncached()
143 vaddr = vaddr + PGDIR_SIZE; in map_uncached_pages()
202 if (end > PGDIR_SIZE) in unmap_uncached_pmd()
203 end = PGDIR_SIZE; in unmap_uncached_pmd()
220 vaddr = vaddr + PGDIR_SIZE; in unmap_uncached_pages()
/Linux-v4.19/arch/alpha/include/asm/
Dpgtable.h38 #define PGDIR_SIZE (1UL << PGDIR_SHIFT) macro
39 #define PGDIR_MASK (~(PGDIR_SIZE-1))
48 #define USER_PTRS_PER_PGD (TASK_SIZE / PGDIR_SIZE)
57 #define VMALLOC_START (-2*PGDIR_SIZE)
59 #define VMALLOC_END (-PGDIR_SIZE)
/Linux-v4.19/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-v4.19/arch/powerpc/include/asm/nohash/64/
Dpgtable-4k.h41 #define PGDIR_SIZE (1UL << PGDIR_SHIFT) macro
42 #define PGDIR_MASK (~(PGDIR_SIZE-1))
/Linux-v4.19/arch/mips/mm/
Dioremap.c54 if (end > PGDIR_SIZE) in remap_area_pmd()
55 end = PGDIR_SIZE; in remap_area_pmd()
95 address = (address + PGDIR_SIZE) & PGDIR_MASK; in remap_area_pages()
/Linux-v4.19/arch/mips/include/asm/
Dpgtable-64.h64 #define PGDIR_SIZE (1UL << PGDIR_SHIFT) macro
65 #define PGDIR_MASK (~(PGDIR_SIZE-1))
138 #define USER_PTRS_PER_PGD ((TASK_SIZE64 / PGDIR_SIZE)?(TASK_SIZE64 / PGDIR_SIZE):1)
Dpgtable-32.h48 #define PGDIR_SIZE (1UL << PGDIR_SHIFT) macro
49 #define PGDIR_MASK (~(PGDIR_SIZE-1))
64 #define USER_PTRS_PER_PGD (0x80000000UL/PGDIR_SIZE)
/Linux-v4.19/arch/sh/include/asm/
Dpgtable.h59 #define PGDIR_SIZE (1UL << PGDIR_SHIFT) macro
60 #define PGDIR_MASK (~(PGDIR_SIZE-1))
/Linux-v4.19/arch/x86/platform/efi/
Defi_64.c92 n_pgds = DIV_ROUND_UP((max_pfn << PAGE_SHIFT), PGDIR_SIZE); in efi_call_phys_prolog()
104 addr_pgd = (unsigned long)(pgd * PGDIR_SIZE); in efi_call_phys_prolog()
105 vaddr = (unsigned long)__va(pgd * PGDIR_SIZE); in efi_call_phys_prolog()
138 pgd_offset_k(pgd * PGDIR_SIZE)->pgd &= ~_PAGE_NX; in efi_call_phys_prolog()
163 nr_pgds = DIV_ROUND_UP((max_pfn << PAGE_SHIFT) , PGDIR_SIZE); in efi_call_phys_epilog()
166 pgd = pgd_offset_k(pgd_idx * PGDIR_SIZE); in efi_call_phys_epilog()
167 set_pgd(pgd_offset_k(pgd_idx * PGDIR_SIZE), save_pgd[pgd_idx]); in efi_call_phys_epilog()
174 pgd_idx * PGDIR_SIZE + i * P4D_SIZE); in efi_call_phys_epilog()
/Linux-v4.19/arch/powerpc/include/asm/nohash/32/
Dpgtable.h52 #define PGDIR_SIZE (1UL << PGDIR_SHIFT) macro
53 #define PGDIR_MASK (~(PGDIR_SIZE-1))
58 #define USER_PTRS_PER_PGD (TASK_SIZE / PGDIR_SIZE)
/Linux-v4.19/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()
/Linux-v4.19/arch/arm64/mm/
Dkasan_init.c140 BUILD_BUG_ON(!IS_ALIGNED(KASAN_SHADOW_START, PGDIR_SIZE)); in kasan_early_init()
141 BUILD_BUG_ON(!IS_ALIGNED(KASAN_SHADOW_END, PGDIR_SIZE)); in kasan_early_init()
176 for (; start < end; start += PGDIR_SIZE) in clear_pgds()

123