Lines Matching refs:pgd
70 pgd_t *pgd, *efi_pgd; in efi_alloc_page_tables() local
80 pgd = efi_pgd + pgd_index(EFI_VA_END); in efi_alloc_page_tables()
81 p4d = p4d_alloc(&init_mm, pgd, EFI_VA_END); in efi_alloc_page_tables()
89 efi_mm.pgd = efi_pgd; in efi_alloc_page_tables()
97 free_page((unsigned long)pgd_page_vaddr(*pgd)); in efi_alloc_page_tables()
113 pgd_t *efi_pgd = efi_mm.pgd; in efi_sync_low_kernel_mappings()
183 pgd_t *pgd = efi_mm.pgd; in efi_setup_page_tables() local
193 if (kernel_map_pages_in_pgd(pgd, pfn, pa_memmap, num_pages, pf)) { in efi_setup_page_tables()
209 if (kernel_map_pages_in_pgd(pgd, 0x0, 0x0, 1, pf)) { in efi_setup_page_tables()
218 if (sev_es_efi_map_ghcbs(pgd)) { in efi_setup_page_tables()
243 if (kernel_unmap_pages_in_pgd(pgd, text, npages)) { in efi_setup_page_tables()
253 if (kernel_map_pages_in_pgd(pgd, pfn, rodata, npages, pf)) { in efi_setup_page_tables()
262 if (kernel_map_pages_in_pgd(pgd, pfn, tramp, 1, pf)) { in efi_setup_page_tables()
274 pgd_t *pgd = efi_mm.pgd; in __map_region() local
300 if (kernel_map_pages_in_pgd(pgd, pfn, va, md->num_pages, flags)) in __map_region()
372 pgd_t *pgd = efi_mm.pgd; in efi_update_mappings() local
377 err1 = kernel_map_pages_in_pgd(pgd, pfn, md->phys_addr, md->num_pages, pf); in efi_update_mappings()
383 err2 = kernel_map_pages_in_pgd(pgd, pfn, md->virt_addr, md->num_pages, pf); in efi_update_mappings()