Home
last modified time | relevance | path

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

/Linux-v5.10/arch/x86/mm/
Dinit_32.c113 int pmd_idx = pmd_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
142 pmd_idx = pmd_index(vaddr); in page_table_range_init_count()
145 for (; (pmd_idx < PTRS_PER_PMD) && (vaddr != end); in page_table_range_init_count()
146 pmd_idx++) { in page_table_range_init_count()
152 pmd_idx = 0; in page_table_range_init_count()
211 int pgd_idx, pmd_idx; in page_table_range_init() local
224 pmd_idx = pmd_index(vaddr); in page_table_range_init()
230 for (; (pmd_idx < PTRS_PER_PMD) && (vaddr != end); in page_table_range_init()
[all …]
/Linux-v5.10/arch/x86/power/
Dhibernate_32.c87 int pgd_idx, pmd_idx; in resume_physical_mapping_init() local
101 for (pmd_idx = 0; pmd_idx < PTRS_PER_PMD; pmd++, pmd_idx++) { in resume_physical_mapping_init()
/Linux-v5.10/arch/riscv/mm/
Dinit.c344 uintptr_t pmd_idx = pmd_index(va); in create_pmd_mapping() local
347 if (pmd_none(pmdp[pmd_idx])) in create_pmd_mapping()
348 pmdp[pmd_idx] = pfn_pmd(PFN_DOWN(pa), prot); in create_pmd_mapping()
352 if (pmd_none(pmdp[pmd_idx])) { in create_pmd_mapping()
354 pmdp[pmd_idx] = pfn_pmd(PFN_DOWN(pte_phys), PAGE_TABLE); in create_pmd_mapping()
358 pte_phys = PFN_PHYS(_pmd_pfn(pmdp[pmd_idx])); in create_pmd_mapping()