Home
last modified time | relevance | path

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

/Linux-v6.6/drivers/accel/ivpu/
Divpu_mmu_context.c65 int pgd_idx, pud_idx, pmd_idx; in ivpu_mmu_pgtables_free() local
69 for (pgd_idx = 0; pgd_idx < IVPU_MMU_PGTABLE_ENTRIES; ++pgd_idx) { in ivpu_mmu_pgtables_free()
70 pud_dma_ptr = pgtable->pud_ptrs[pgd_idx]; in ivpu_mmu_pgtables_free()
71 pud_dma = pgtable->pgd_dma_ptr[pgd_idx]; in ivpu_mmu_pgtables_free()
77 pmd_dma_ptr = pgtable->pmd_ptrs[pgd_idx][pud_idx]; in ivpu_mmu_pgtables_free()
78 pmd_dma = pgtable->pud_ptrs[pgd_idx][pud_idx]; in ivpu_mmu_pgtables_free()
84 pte_dma_ptr = pgtable->pte_ptrs[pgd_idx][pud_idx][pmd_idx]; in ivpu_mmu_pgtables_free()
85 pte_dma = pgtable->pmd_ptrs[pgd_idx][pud_idx][pmd_idx]; in ivpu_mmu_pgtables_free()
90 kfree(pgtable->pte_ptrs[pgd_idx][pud_idx]); in ivpu_mmu_pgtables_free()
94 kfree(pgtable->pmd_ptrs[pgd_idx]); in ivpu_mmu_pgtables_free()
[all …]
/Linux-v6.6/arch/x86/mm/
Dinit_32.c109 int pgd_idx = pgd_index(vaddr); in populate_extra_pmd() local
112 return one_md_table_init(swapper_pg_dir + pgd_idx) + pmd_idx; in populate_extra_pmd()
131 int pgd_idx, pmd_idx; in page_table_range_init_count() local
138 pgd_idx = pgd_index(vaddr); in page_table_range_init_count()
141 for ( ; (pgd_idx < PTRS_PER_PGD) && (vaddr != end); pgd_idx++) { in page_table_range_init_count()
206 int pgd_idx, pmd_idx; in page_table_range_init() local
218 pgd_idx = pgd_index(vaddr); in page_table_range_init()
220 pgd = pgd_base + pgd_idx; in page_table_range_init()
222 for ( ; (pgd_idx < PTRS_PER_PGD) && (vaddr != end); pgd++, pgd_idx++) { in page_table_range_init()
258 int pgd_idx, pmd_idx, pte_ofs; in kernel_physical_mapping_init() local
[all …]
/Linux-v6.6/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()
/Linux-v6.6/arch/riscv/mm/
Dinit.c643 uintptr_t pgd_idx = pgd_index(va); in create_pgd_mapping() local
646 if (pgd_val(pgdp[pgd_idx]) == 0) in create_pgd_mapping()
647 pgdp[pgd_idx] = pfn_pgd(PFN_DOWN(pa), prot); in create_pgd_mapping()
651 if (pgd_val(pgdp[pgd_idx]) == 0) { in create_pgd_mapping()
653 pgdp[pgd_idx] = pfn_pgd(PFN_DOWN(next_phys), PAGE_TABLE); in create_pgd_mapping()
657 next_phys = PFN_PHYS(_pgd_pfn(pgdp[pgd_idx])); in create_pgd_mapping()