Home
last modified time | relevance | path

Searched refs:pgd_idx (Results 1 – 3 of 3) sorted by relevance

/kernel/linux/linux-5.10/arch/x86/mm/
Dinit_32.c112 int pgd_idx = pgd_index(vaddr); in populate_extra_pmd() local
115 return one_md_table_init(swapper_pg_dir + pgd_idx) + pmd_idx; in populate_extra_pmd()
134 int pgd_idx, pmd_idx; in page_table_range_init_count() local
141 pgd_idx = pgd_index(vaddr); in page_table_range_init_count()
144 for ( ; (pgd_idx < PTRS_PER_PGD) && (vaddr != end); pgd_idx++) { in page_table_range_init_count()
211 int pgd_idx, pmd_idx; in page_table_range_init() local
223 pgd_idx = pgd_index(vaddr); in page_table_range_init()
225 pgd = pgd_base + pgd_idx; in page_table_range_init()
227 for ( ; (pgd_idx < PTRS_PER_PGD) && (vaddr != end); pgd++, pgd_idx++) { in page_table_range_init()
267 int pgd_idx, pmd_idx, pte_ofs; in kernel_physical_mapping_init() local
[all …]
/kernel/linux/linux-5.10/arch/x86/power/
Dhibernate_32.c87 int pgd_idx, pmd_idx; in resume_physical_mapping_init() local
89 pgd_idx = pgd_index(PAGE_OFFSET); in resume_physical_mapping_init()
90 pgd = pgd_base + pgd_idx; in resume_physical_mapping_init()
93 for (; pgd_idx < PTRS_PER_PGD; pgd++, pgd_idx++) { in resume_physical_mapping_init()
/kernel/linux/linux-5.10/arch/riscv/mm/
Dinit.c388 uintptr_t pgd_idx = pgd_index(va); in create_pgd_mapping() local
391 if (pgd_val(pgdp[pgd_idx]) == 0) in create_pgd_mapping()
392 pgdp[pgd_idx] = pfn_pgd(PFN_DOWN(pa), prot); in create_pgd_mapping()
396 if (pgd_val(pgdp[pgd_idx]) == 0) { in create_pgd_mapping()
398 pgdp[pgd_idx] = pfn_pgd(PFN_DOWN(next_phys), PAGE_TABLE); in create_pgd_mapping()
402 next_phys = PFN_PHYS(_pgd_pfn(pgdp[pgd_idx])); in create_pgd_mapping()