Home
last modified time | relevance | path

Searched refs:PTRS_PER_P4D (Results 1 – 25 of 27) sorted by relevance

12

/linux/arch/x86/boot/startup/
H A Dsme.c120 memset(p4d, 0, sizeof(*p4d) * PTRS_PER_P4D); in sme_prepare_pgd()
121 ppd->pgtable_area += sizeof(*p4d) * PTRS_PER_P4D; in sme_prepare_pgd()
266 if (PTRS_PER_P4D > 1) in sme_pgtable_calc()
267 entries += (DIV_ROUND_UP(len, PGDIR_SIZE) + 1) * sizeof(p4d_t) * PTRS_PER_P4D; in sme_pgtable_calc()
277 if (PTRS_PER_P4D > 1) in sme_pgtable_calc()
278 tables += DIV_ROUND_UP(entries, PGDIR_SIZE) * sizeof(p4d_t) * PTRS_PER_P4D; in sme_pgtable_calc()
H A Dmap_kernel.c163 p4d[(i + 0) % PTRS_PER_P4D] = (pgdval_t)pud + pgtable_flags; in __startup_64()
164 p4d[(i + 1) % PTRS_PER_P4D] = (pgdval_t)pud + pgtable_flags; in __startup_64()
/linux/arch/riscv/mm/
H A Dkasan_init.c26 static p4d_t tmp_p4d[PTRS_PER_P4D] __page_aligned_bss;
119 p = memblock_alloc_or_panic(PTRS_PER_P4D * sizeof(p4d_t), PAGE_SIZE); in kasan_populate_p4d()
348 for (i = 0; i < PTRS_PER_P4D; ++i) in kasan_early_init()
466 memcpy(tmp_p4d, ptr, sizeof(p4d_t) * PTRS_PER_P4D); in create_tmp_mapping()
H A Dinit.c472 static p4d_t trampoline_p4d[PTRS_PER_P4D] __page_aligned_bss;
473 static p4d_t fixmap_p4d[PTRS_PER_P4D] __page_aligned_bss;
474 static p4d_t early_p4d[PTRS_PER_P4D] __initdata __aligned(PAGE_SIZE);
/linux/include/asm-generic/
H A Dpgtable-nop4d.h12 #define PTRS_PER_P4D 1 macro
/linux/arch/riscv/include/asm/
H A Dpgtable-64.h51 #define PTRS_PER_P4D (PAGE_SIZE / sizeof(p4d_t)) macro
396 #define p4d_index(addr) (((addr) >> P4D_SHIFT) & (PTRS_PER_P4D - 1))
/linux/arch/x86/include/asm/
H A Dpgtable_64_types.h58 #define PTRS_PER_P4D ptrs_per_p4d macro
/linux/Documentation/translations/zh_CN/mm/
H A Dpage_tables.rst113 个指向下一层的指针,*p4d* 包含 `PTRS_PER_P4D` 个指向 *pud* 项的指针,依此类推。
/linux/arch/x86/kernel/
H A Dhead64.c111 memset(p4d_p, 0, sizeof(*p4d_p) * PTRS_PER_P4D); in __early_make_pgtable()
/linux/arch/mips/include/asm/
H A Dpgtable-64.h215 #define p4d_index(address) (((address) >> P4D_SHIFT) & (PTRS_PER_P4D - 1))
/linux/arch/x86/mm/
H A Dident_map.c55 for (i = 0; i < PTRS_PER_P4D; i++) { in free_p4d()
H A Ddump_pagetables.c156 #define PGD_LEVEL_MULT (PTRS_PER_P4D * P4D_LEVEL_MULT)
H A Dkasan_init_64.c311 for (i = 0; pgtable_l5_enabled() && i < PTRS_PER_P4D; i++) in kasan_early_init()
/linux/arch/arm64/include/asm/
H A Dpgtable-hwdef.h75 #define PTRS_PER_P4D (1 << PTDESC_TABLE_SHIFT) macro
H A Dpgtable.h994 VM_BUG_ON(((addr >> P4D_SHIFT) ^ ((u64)p4dp >> 3)) % PTRS_PER_P4D); in p4d_to_folded_pud()
1117 #define p4d_index(addr) (((addr) >> P4D_SHIFT) & (PTRS_PER_P4D - 1))
1182 #define p4d_index(addr) (((addr) >> P4D_SHIFT) & (PTRS_PER_P4D - 1))
/linux/arch/sh/mm/
H A Dfault.c70 if (PTRS_PER_P4D != 1) in show_pte()
/linux/mm/kasan/
H A Dinit.c334 for (i = 0; i < PTRS_PER_P4D; i++) { in kasan_free_p4d()
/linux/arch/arm/mm/
H A Ddump.c388 for (i = 0; i < PTRS_PER_P4D; i++, p4d++) { in walk_p4d()
/linux/arch/powerpc/mm/ptdump/
H A Dhashpagetable.c448 for (i = 0; i < PTRS_PER_P4D; i++, p4d++) { in walk_p4d()
/linux/arch/arm64/mm/
H A Dproc.S367 kpti_mk_tbl_ng p4d, PTRS_PER_P4D
/linux/arch/s390/mm/
H A Dvmem.c422 for (i = 0; i < PTRS_PER_P4D; i++, p4d++) { in try_free_p4d_table()
/linux/arch/s390/include/asm/
H A Dpgtable.h391 #define PTRS_PER_P4D _CRST_ENTRIES macro
1353 #define p4d_index(address) (((address) >> P4D_SHIFT) & (PTRS_PER_P4D-1))
/linux/mm/
H A Dpagewalk.c25 if (depth == 1 && PTRS_PER_P4D == 1) in real_depth()
/linux/include/linux/
H A Dpgtable.h2329 #define MAX_PTRS_PER_P4D PTRS_PER_P4D
/linux/Documentation/mm/
H A Dpage_tables.rst126 contains `PTRS_PER_P4D` pointers to **pud** items and so on. The number of

12