Lines Matching refs:efi_reloc
103 unsigned long rel_size, void *efi_reloc, in efi_loader_relocate() argument
106 unsigned long delta = (unsigned long)efi_reloc - pref_address; in efi_loader_relocate()
121 uint64_t *x64 = efi_reloc + offset; in efi_loader_relocate()
122 uint32_t *x32 = efi_reloc + offset; in efi_loader_relocate()
123 uint16_t *x16 = efi_reloc + offset; in efi_loader_relocate()
224 void *efi_reloc; in efi_load_pe() local
276 efi_reloc = efi_alloc(virt_size, in efi_load_pe()
278 if (!efi_reloc) { in efi_load_pe()
283 handle->entry = efi_reloc + opt->AddressOfEntryPoint; in efi_load_pe()
285 rel = efi_reloc + opt->DataDirectory[rel_idx].VirtualAddress; in efi_load_pe()
292 efi_reloc = efi_alloc(virt_size, in efi_load_pe()
294 if (!efi_reloc) { in efi_load_pe()
299 handle->entry = efi_reloc + opt->AddressOfEntryPoint; in efi_load_pe()
301 rel = efi_reloc + opt->DataDirectory[rel_idx].VirtualAddress; in efi_load_pe()
312 memset(efi_reloc + sec->VirtualAddress, 0, in efi_load_pe()
314 memcpy(efi_reloc + sec->VirtualAddress, in efi_load_pe()
320 if (efi_loader_relocate(rel, rel_size, efi_reloc, in efi_load_pe()
322 efi_free_pages((uintptr_t) efi_reloc, in efi_load_pe()
328 flush_cache((ulong)efi_reloc, in efi_load_pe()
335 handle->reloc_base = efi_reloc; in efi_load_pe()