Lines Matching refs:efi_scratch
53 struct efi_scratch { struct
154 efi_scratch.efi_pgt = (pgd_t *)(unsigned long)real_mode_header->trampoline_pgd; in efi_setup_page_tables()
155 pgd = __va(efi_scratch.efi_pgt); in efi_setup_page_tables()
168 efi_scratch.use_pgd = true; in efi_setup_page_tables()
183 efi_scratch.phys_stack = virt_to_phys(page_address(page)); in efi_setup_page_tables()
184 efi_scratch.phys_stack += PAGE_SIZE; /* stack grows down */ in efi_setup_page_tables()
351 efi_scratch.prev_cr3 = read_cr3(); \
352 write_cr3((unsigned long)efi_scratch.efi_pgt); \
358 write_cr3(efi_scratch.prev_cr3); \
379 efi_scratch.prev_cr3 = read_cr3(); in efi_thunk_set_virtual_address_map()
380 write_cr3((unsigned long)efi_scratch.efi_pgt); in efi_thunk_set_virtual_address_map()
387 write_cr3(efi_scratch.prev_cr3); in efi_thunk_set_virtual_address_map()