Home
last modified time | relevance | path

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

12

/linux/arch/um/include/asm/
H A 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)
H A Dpgtable-4level.h15 #define PGDIR_SIZE (1UL << PGDIR_SHIFT) macro
16 #define PGDIR_MASK (~(PGDIR_SIZE-1))
43 #define USER_PTRS_PER_PGD ((TASK_SIZE + (PGDIR_SIZE - 1)) / PGDIR_SIZE)
/linux/arch/powerpc/include/asm/
H A Dfixmap.h84 #define FIXMAP_ALIGNED_SIZE (ALIGN(FIXADDR_TOP, PGDIR_SIZE) - \
85 ALIGN_DOWN(FIXADDR_START, PGDIR_SIZE))
86 #define FIXMAP_PTE_SIZE (FIXMAP_ALIGNED_SIZE / PGDIR_SIZE * PTE_TABLE_SIZE)
/linux/arch/loongarch/include/asm/
H A Dkasan.h54 #define XKVRANGE_VC_SIZE round_up(KFENCE_AREA_END - MODULES_VADDR + 1, PGDIR_SIZE)
60 #define KASAN_SHADOW_START round_up(KFENCE_AREA_END, PGDIR_SIZE)
62 #define KASAN_SHADOW_END (round_up(KASAN_SHADOW_START + KASAN_SHADOW_SIZE, PGDIR_SIZE) - 1)
H A Dpgtable.h47 #define PGDIR_SIZE (1UL << PGDIR_SHIFT) macro
48 #define PGDIR_MASK (~(PGDIR_SIZE-1))
66 #define USER_PTRS_PER_PGD (TASK_SIZE / PGDIR_SIZE)
68 #define USER_PTRS_PER_PGD ((TASK_SIZE64 / PGDIR_SIZE)?(TASK_SIZE64 / PGDIR_SIZE):1)
/linux/arch/riscv/mm/
H A Dkasan_init.c151 if (pgd_none(pgdp_get(pgdp)) && IS_ALIGNED(vaddr, PGDIR_SIZE) && in kasan_populate_pgd()
152 (next - vaddr) >= PGDIR_SIZE) { in kasan_populate_pgd()
153 phys_addr = memblock_phys_alloc(PGDIR_SIZE, PGDIR_SIZE); in kasan_populate_pgd()
156 memset(__va(phys_addr), KASAN_SHADOW_INIT, PGDIR_SIZE); in kasan_populate_pgd()
224 if (pgtable_l5_enabled && IS_ALIGNED(vaddr, PGDIR_SIZE) && in kasan_early_clear_pgd()
225 (next - vaddr) >= PGDIR_SIZE) { in kasan_early_clear_pgd()
311 if (pgd_none(pgdp_get(pgdp)) && IS_ALIGNED(vaddr, PGDIR_SIZE) && in kasan_early_populate_pgd()
312 (next - vaddr) >= PGDIR_SIZE) { in kasan_early_populate_pgd()
H A Dtlbflush.c186 if (stride_size >= PGDIR_SIZE) in flush_tlb_range()
187 stride_size = PGDIR_SIZE; in flush_tlb_range()
H A Dinit.c684 if (sz == PGDIR_SIZE) { in create_pgd_mapping()
864 PGDIR_SIZE, PAGE_TABLE); in set_satp_mode()
1083 BUG_ON((PAGE_OFFSET % PGDIR_SIZE) != 0); in setup_vm()
1111 fixmap_pgd_next, PGDIR_SIZE, PAGE_TABLE); in setup_vm()
1126 trampoline_pgd_next, PGDIR_SIZE, PAGE_TABLE); in setup_vm()
1138 kernel_map.phys_addr, PGDIR_SIZE, PAGE_KERNEL_EXEC); in setup_vm()
1271 PGDIR_SIZE, PAGE_TABLE); in setup_vm_final()
1403 for (addr = start; addr < end && addr >= start; addr = ALIGN(addr + 1, PGDIR_SIZE)) { in preallocate_pgd_pages_range()
/linux/arch/x86/include/asm/
H A Dpgtable_32_types.h20 #define PGDIR_SIZE (1UL << PGDIR_SHIFT) macro
21 #define PGDIR_MASK (~(PGDIR_SIZE - 1))
H A Dpgtable_64_types.h86 #define PGDIR_SIZE (_AC(1, UL) << PGDIR_SHIFT) macro
87 #define PGDIR_MASK (~(PGDIR_SIZE - 1))
105 #define LDT_END_ADDR (LDT_BASE_ADDR + PGDIR_SIZE)
/linux/arch/powerpc/include/asm/nohash/32/
H A Dpgtable.h46 #define PGDIR_SIZE (1UL << PGDIR_SHIFT) macro
47 #define PGDIR_MASK (~(PGDIR_SIZE-1))
52 #define USER_PTRS_PER_PGD (TASK_SIZE / PGDIR_SIZE)
/linux/arch/riscv/include/asm/
H A Dpgtable-32.h15 #define PGDIR_SIZE (_AC(1, UL) << PGDIR_SHIFT) macro
16 #define PGDIR_MASK (~(PGDIR_SIZE - 1))
/linux/arch/parisc/kernel/
H A Dpci-dma.c112 if (end > PGDIR_SIZE) in map_pmd_uncached()
113 end = PGDIR_SIZE; in map_pmd_uncached()
147 vaddr = vaddr + PGDIR_SIZE; in map_uncached_pages()
206 if (end > PGDIR_SIZE) in unmap_uncached_pmd()
207 end = PGDIR_SIZE; in unmap_uncached_pmd()
224 vaddr = vaddr + PGDIR_SIZE; in unmap_uncached_pages()
/linux/arch/arm/include/asm/
H A Dpgtable-nommu.h30 #define PGDIR_SIZE (1UL << PGDIR_SHIFT) macro
31 #define PGDIR_MASK (~(PGDIR_SIZE-1))
H A Dpgtable-3level.h42 #define PGDIR_SIZE (1UL << PGDIR_SHIFT) macro
52 #define USER_PTRS_PER_PGD (PAGE_OFFSET / PGDIR_SIZE)
/linux/arch/arc/include/asm/
H A Dhighmem.h14 #define FIXMAP_SIZE PGDIR_SIZE
15 #define PKMAP_SIZE PGDIR_SIZE
H A Dpgtable-levels.h70 #define PGDIR_SIZE BIT(PGDIR_SHIFT) macro
71 #define PGDIR_MASK (~(PGDIR_SIZE - 1))
/linux/arch/nios2/mm/
H A Dioremap.c58 if (end > PGDIR_SIZE) in remap_area_pmd()
59 end = PGDIR_SIZE; in remap_area_pmd()
107 address = (address + PGDIR_SIZE) & PGDIR_MASK; in remap_area_pages()
/linux/arch/powerpc/mm/kasan/
H A Dinit_book3e_64.c89 BUILD_BUG_ON(!IS_ALIGNED(KASAN_SHADOW_START, PGDIR_SIZE)); in kasan_early_init()
90 BUILD_BUG_ON(!IS_ALIGNED(KASAN_SHADOW_END, PGDIR_SIZE)); in kasan_early_init()
104 for (addr = KASAN_SHADOW_START; addr != KASAN_SHADOW_END; addr += PGDIR_SIZE) in kasan_early_init()
/linux/arch/powerpc/include/asm/nohash/64/
H A Dpgtable-4k.h41 #define PGDIR_SIZE (1UL << PGDIR_SHIFT) macro
42 #define PGDIR_MASK (~(PGDIR_SIZE-1))
/linux/arch/powerpc/mm/
H A Dpgtable_32.c40 unsigned long addr = ALIGN_DOWN(FIXADDR_START, PGDIR_SIZE); in early_ioremap_init()
45 addr += PGDIR_SIZE, ptep += PTRS_PER_PTE, pmdp++) in early_ioremap_init()
H A Dmem.c387 for (va = ALIGN_DOWN(MODULES_VADDR, PGDIR_SIZE); va < MODULES_END; va += PGDIR_SIZE) in prealloc_execmem_pgtable()
/linux/arch/sh/include/asm/
H A Dpgtable-2level.h22 #define USER_PTRS_PER_PGD (TASK_SIZE/PGDIR_SIZE)
/linux/arch/powerpc/include/asm/book3s/32/
H A Dpgtable.h130 #define PGDIR_SIZE (1UL << PGDIR_SHIFT) macro
131 #define PGDIR_MASK (~(PGDIR_SIZE-1))
133 #define USER_PTRS_PER_PGD (TASK_SIZE / PGDIR_SIZE)
/linux/arch/powerpc/mm/book3s32/
H A Dtlb.c63 pmd_end = ((start + PGDIR_SIZE) & PGDIR_MASK) - 1; in hash__flush_range()

12