/kernel/linux/linux-5.10/arch/x86/platform/efi/ |
D | efi.c | 73 &efi.acpi, 74 &efi.acpi20, 75 &efi.smbios, 76 &efi.smbios3, 84 &efi.esrt, 90 &efi.tpm_log, 91 &efi.tpm_final_log, 94 &efi.mokvar_table, 246 WARN(efi.memmap.desc_version != 1, in efi_memblock_x86_reserve_range() 248 efi.memmap.desc_version); in efi_memblock_x86_reserve_range() [all …]
|
D | efi_64.c | 491 ____s = efi64_thunk(efi.runtime->mixed_mode.func, __VA_ARGS__); \ 738 if (efi.runtime_version < EFI_2_00_SYSTEM_TABLE_REVISION) in efi_thunk_query_variable_info() 764 if (efi.runtime_version < EFI_2_00_SYSTEM_TABLE_REVISION) in efi_thunk_query_variable_info_nonblocking() 800 efi.get_time = efi_thunk_get_time; in efi_thunk_runtime_setup() 801 efi.set_time = efi_thunk_set_time; in efi_thunk_runtime_setup() 802 efi.get_wakeup_time = efi_thunk_get_wakeup_time; in efi_thunk_runtime_setup() 803 efi.set_wakeup_time = efi_thunk_set_wakeup_time; in efi_thunk_runtime_setup() 804 efi.get_variable = efi_thunk_get_variable; in efi_thunk_runtime_setup() 805 efi.get_next_variable = efi_thunk_get_next_variable; in efi_thunk_runtime_setup() 806 efi.set_variable = efi_thunk_set_variable; in efi_thunk_runtime_setup() [all …]
|
D | quirks.c | 110 efi.set_variable_nonblocking((efi_char16_t *)efi_dummy_name, in efi_delete_dummy_variable() 132 status = efi.query_variable_info_nonblocking(attributes, &storage_size, in query_variable_store_nonblocking() 163 status = efi.query_variable_info(attributes, &storage_size, in efi_query_variable_store() 187 status = efi.set_variable((efi_char16_t *)efi_dummy_name, in efi_query_variable_store() 208 status = efi.query_variable_info(attributes, &storage_size, in efi_query_variable_store() 273 num_entries += efi.memmap.nr_map; in efi_arch_mem_reserve() 287 efi_memmap_insert(&efi.memmap, new, &mr); in efi_arch_mem_reserve() 483 memcpy(new_md, md, efi.memmap.desc_size); in efi_free_boot_services() 484 new_md += efi.memmap.desc_size; in efi_free_boot_services() 740 clear_bit(EFI_RUNTIME_SERVICES, &efi.flags); in efi_recover_from_page_fault()
|
/kernel/linux/linux-5.10/drivers/firmware/efi/ |
D | tpm.c | 46 if (efi.tpm_log == EFI_INVALID_TABLE_ADDR) { in efi_tpm_eventlog_init() 54 log_tbl = early_memremap(efi.tpm_log, sizeof(*log_tbl)); in efi_tpm_eventlog_init() 57 efi.tpm_log); in efi_tpm_eventlog_init() 58 efi.tpm_log = EFI_INVALID_TABLE_ADDR; in efi_tpm_eventlog_init() 63 memblock_reserve(efi.tpm_log, tbl_size); in efi_tpm_eventlog_init() 65 if (efi.tpm_final_log == EFI_INVALID_TABLE_ADDR) { in efi_tpm_eventlog_init() 73 final_tbl = early_memremap(efi.tpm_final_log, sizeof(*final_tbl)); in efi_tpm_eventlog_init() 77 efi.tpm_final_log); in efi_tpm_eventlog_init() 78 efi.tpm_final_log = EFI_INVALID_TABLE_ADDR; in efi_tpm_eventlog_init() 85 void *events = (void *)efi.tpm_final_log in efi_tpm_eventlog_init() [all …]
|
D | memmap.c | 49 __efi_memmap_free(efi.memmap.phys_map, in efi_memmap_free() 50 efi.memmap.desc_size * efi.memmap.nr_map, in efi_memmap_free() 51 efi.memmap.flags); in efi_memmap_free() 71 data->size = num_entries * efi.memmap.desc_size; in efi_memmap_alloc() 72 data->desc_version = efi.memmap.desc_version; in efi_memmap_alloc() 73 data->desc_size = efi.memmap.desc_size; in efi_memmap_alloc() 75 data->flags |= efi.memmap.flags & EFI_MEMMAP_LATE; in efi_memmap_alloc() 136 set_bit(EFI_MEMMAP, &efi.flags); in __efi_memmap_init() 138 efi.memmap = map; in __efi_memmap_init() 153 WARN_ON(efi.memmap.flags & EFI_MEMMAP_LATE); in efi_memmap_init_early() [all …]
|
D | runtime-wrappers.c | 43 efi_call_virt_pointer(efi.runtime, f, args) 45 __efi_call_virt_pointer(efi.runtime, f, args) 370 if (efi.runtime_version < EFI_2_00_SYSTEM_TABLE_REVISION) in virt_efi_query_variable_info() 389 if (efi.runtime_version < EFI_2_00_SYSTEM_TABLE_REVISION) in virt_efi_query_variable_info_nonblocking() 434 if (efi.runtime_version < EFI_2_00_SYSTEM_TABLE_REVISION) in virt_efi_update_capsule() 452 if (efi.runtime_version < EFI_2_00_SYSTEM_TABLE_REVISION) in virt_efi_query_capsule_caps() 465 efi.get_time = virt_efi_get_time; in efi_native_runtime_setup() 466 efi.set_time = virt_efi_set_time; in efi_native_runtime_setup() 467 efi.get_wakeup_time = virt_efi_get_wakeup_time; in efi_native_runtime_setup() 468 efi.set_wakeup_time = virt_efi_set_wakeup_time; in efi_native_runtime_setup() [all …]
|
D | efi.c | 37 struct efi __read_mostly efi = { variable 50 EXPORT_SYMBOL(efi); 95 set_bit(EFI_DBG, &efi.flags); in parse_efi_cmdline() 101 set_bit(EFI_MEM_NO_SOFT_RESERVE, &efi.flags); in parse_efi_cmdline() 123 if (efi.acpi20 != EFI_INVALID_TABLE_ADDR) in systab_show() 124 str += sprintf(str, "ACPI20=0x%lx\n", efi.acpi20); in systab_show() 125 if (efi.acpi != EFI_INVALID_TABLE_ADDR) in systab_show() 126 str += sprintf(str, "ACPI=0x%lx\n", efi.acpi); in systab_show() 132 if (efi.smbios3 != EFI_INVALID_TABLE_ADDR) in systab_show() 133 str += sprintf(str, "SMBIOS3=0x%lx\n", efi.smbios3); in systab_show() [all …]
|
D | mokvar-table.c | 115 if (efi.mokvar_table == EFI_INVALID_TABLE_ADDR) in efi_mokvar_table_init() 121 err = efi_mem_desc_lookup(efi.mokvar_table, &md); in efi_mokvar_table_init() 127 offset_limit = efi_mem_desc_end(&md) - efi.mokvar_table; in efi_mokvar_table_init() 150 va = early_memremap(efi.mokvar_table, map_size); in efi_mokvar_table_init() 153 efi.mokvar_table, map_size); in efi_mokvar_table_init() 185 efi_mem_reserve(efi.mokvar_table, map_size_needed); in efi_mokvar_table_init() 320 config_va = memremap(efi.mokvar_table, efi_mokvar_table_size, in efi_mokvar_sysfs_init()
|
D | Makefile | 13 obj-$(CONFIG_ACPI_BGRT) += efi-bgrt.o 14 obj-$(CONFIG_EFI) += efi.o vars.o reboot.o memattr.o tpm.o 19 obj-$(CONFIG_EFI_VARS_PSTORE) += efi-pstore.o 36 arm-obj-$(CONFIG_EFI) := efi-init.o arm-runtime.o 39 riscv-obj-$(CONFIG_EFI) := efi-init.o riscv-runtime.o
|
D | riscv-runtime.c | 77 mapsize = efi.memmap.desc_size * efi.memmap.nr_map; in riscv_enable_runtime_services() 79 if (efi_memmap_init_late(efi.memmap.phys_map, mapsize)) { in riscv_enable_runtime_services() 127 set_bit(EFI_RUNTIME_SERVICES, &efi.flags); in riscv_enable_runtime_services()
|
D | arm-runtime.c | 99 mapsize = efi.memmap.desc_size * efi.memmap.nr_map; in arm_enable_runtime_services() 101 if (efi_memmap_init_late(efi.memmap.phys_map, mapsize)) { in arm_enable_runtime_services() 149 set_bit(EFI_RUNTIME_SERVICES, &efi.flags); in arm_enable_runtime_services()
|
D | esrt.c | 218 if (efi.esrt == EFI_INVALID_TABLE_ADDR) in esrt_table_exists() 255 rc = efi_mem_desc_lookup(efi.esrt, &md); in efi_esrt_init() 265 if (max < efi.esrt) { in efi_esrt_init() 267 (void *)efi.esrt, (void *)max); in efi_esrt_init() 272 max -= efi.esrt; in efi_esrt_init() 280 va = early_memremap(efi.esrt, size); in efi_esrt_init() 282 pr_err("early_memremap(%p, %zu) failed.\n", (void *)efi.esrt, in efi_esrt_init() 329 esrt_data = (phys_addr_t)efi.esrt; in efi_esrt_init()
|
D | runtime-map.c | 140 return efi.memmap.nr_map * efi.memmap.desc_size; in efi_get_runtime_map_size() 145 return efi.memmap.desc_size; in efi_get_runtime_map_desc_size() 155 memcpy(buf, efi.memmap.map, sz); in efi_runtime_map_copy() 168 map_entries = kcalloc(efi.memmap.nr_map, sizeof(entry), GFP_KERNEL); in efi_runtime_map_init()
|
D | efi-init.c | 100 set_bit(EFI_BOOT, &efi.flags); in uefi_init() 102 set_bit(EFI_64BIT, &efi.flags); in uefi_init() 108 efi.runtime = systab->runtime; in uefi_init() 109 efi.runtime_version = systab->hdr.revision; in uefi_init() 228 WARN(efi.memmap.desc_version != 1, in efi_init() 230 efi.memmap.desc_version); in efi_init()
|
/kernel/linux/linux-5.10/Documentation/ABI/testing/ |
D | sysfs-firmware-efi-runtime-map | 1 What: /sys/firmware/efi/runtime-map/ 4 Description: Switching efi runtime services to virtual mode requires 5 that all efi memory ranges which have the runtime attribute 8 The efi runtime services can only be switched to virtual 14 /sys/firmware/efi/runtime-map/ is the directory the kernel 19 /sys/firmware/efi/runtime-map/0 20 /sys/firmware/efi/runtime-map/1 21 /sys/firmware/efi/runtime-map/2 22 /sys/firmware/efi/runtime-map/3
|
D | sysfs-firmware-efi-esrt | 1 What: /sys/firmware/efi/esrt/ 10 What: /sys/firmware/efi/esrt/fw_resource_count 15 What: /sys/firmware/efi/esrt/fw_resource_count_max 22 What: /sys/firmware/efi/esrt/fw_resource_version 27 What: /sys/firmware/efi/esrt/entries/entry$N/ 32 example: /sys/firmware/efi/esrt/entries/entry0/ 34 What: /sys/firmware/efi/esrt/entries/entry$N/fw_type 46 What: /sys/firmware/efi/esrt/entries/entry$N/fw_class 51 What: /sys/firmware/efi/esrt/entries/entry$N/fw_version 57 What: /sys/firmware/efi/esrt/entries/entry$N/lowest_supported_fw_version [all …]
|
D | sysfs-firmware-efi | 1 What: /sys/firmware/efi/fw_vendor 8 What: /sys/firmware/efi/runtime 15 What: /sys/firmware/efi/config_table 22 What: /sys/firmware/efi/systab 24 Contact: linux-efi@vger.kernel.org 32 What: /sys/firmware/efi/tables/rci2
|
/kernel/linux/linux-5.10/drivers/xen/ |
D | efi.c | 191 if (efi.runtime_version < EFI_2_00_SYSTEM_TABLE_REVISION) in xen_efi_query_variable_info() 223 if (efi.runtime_version < EFI_2_00_SYSTEM_TABLE_REVISION) in xen_efi_update_capsule() 242 if (efi.runtime_version < EFI_2_00_SYSTEM_TABLE_REVISION) in xen_efi_query_capsule_caps() 280 efi.get_time = xen_efi_get_time; in xen_efi_runtime_setup() 281 efi.set_time = xen_efi_set_time; in xen_efi_runtime_setup() 282 efi.get_wakeup_time = xen_efi_get_wakeup_time; in xen_efi_runtime_setup() 283 efi.set_wakeup_time = xen_efi_set_wakeup_time; in xen_efi_runtime_setup() 284 efi.get_variable = xen_efi_get_variable; in xen_efi_runtime_setup() 285 efi.get_next_variable = xen_efi_get_next_variable; in xen_efi_runtime_setup() 286 efi.set_variable = xen_efi_set_variable; in xen_efi_runtime_setup() [all …]
|
/kernel/linux/linux-5.10/Documentation/admin-guide/ |
D | efi-stub.rst | 12 arch/arm/boot/compressed/efi-header.S and 13 arch/arm/boot/compressed/efi-stub.c. EFI stub code that is shared 14 between architectures is in drivers/firmware/efi/libstub. 18 kernel. The arm64 EFI stub lives in arch/arm64/kernel/efi-entry.S 19 and drivers/firmware/efi/libstub/arm64-stub.c. 29 How to install bzImage.efi 33 System Partition (ESP) and renamed with the extension ".efi". Without 35 not possible to execute bzImage.efi from the usual Linux file systems 45 Arguments to the kernel can be passed after bzImage.efi, e.g.:: 47 fs0:> bzImage.efi console=ttyS0 root=/dev/sda4 [all …]
|
/kernel/linux/linux-5.10/arch/x86/xen/ |
D | efi.c | 89 efi.runtime_version = info->version; in xen_efi_probe() 109 status = efi.get_variable(L"SecureBoot", &efi_variable_guid, in xen_efi_get_secureboot() 119 status = efi.get_variable(L"SetupMode", &efi_variable_guid, in xen_efi_get_secureboot() 130 status = efi.get_variable(L"MokSBStateRT", &shim_guid, in xen_efi_get_secureboot() 165 set_bit(EFI_BOOT, &efi.flags); in xen_efi_init() 166 set_bit(EFI_PARAVIRT, &efi.flags); in xen_efi_init() 167 set_bit(EFI_64BIT, &efi.flags); in xen_efi_init()
|
/kernel/linux/linux-5.10/drivers/char/tpm/eventlog/ |
D | efi.c | 31 if (efi.tpm_log == EFI_INVALID_TABLE_ADDR) in tpm_read_log_efi() 36 log_tbl = memremap(efi.tpm_log, sizeof(*log_tbl), MEMREMAP_WB); in tpm_read_log_efi() 50 log_tbl = memremap(efi.tpm_log, sizeof(*log_tbl) + log_size, in tpm_read_log_efi() 69 if (efi.tpm_final_log == EFI_INVALID_TABLE_ADDR || in tpm_read_log_efi() 74 final_tbl = memremap(efi.tpm_final_log, in tpm_read_log_efi()
|
/kernel/linux/linux-5.10/drivers/rtc/ |
D | rtc-efi.c | 123 status = efi.get_wakeup_time((efi_bool_t *)&wkalrm->enabled, in efi_read_alarm() 150 status = efi.set_wakeup_time((efi_bool_t)wkalrm->enabled, &eft); in efi_set_alarm() 163 status = efi.get_time(&eft, &cap); in efi_read_time() 184 status = efi.set_time(&eft); in efi_set_time() 199 efi.get_time(&eft, &cap); in efi_procfs() 200 efi.get_wakeup_time(&enabled, &pending, &alm); in efi_procfs() 261 if (efi.get_time(&eft, &cap) != EFI_SUCCESS) in efi_rtc_probe()
|
/kernel/linux/linux-5.10/drivers/firmware/efi/libstub/ |
D | x86-stub.c | 457 struct efi_info *efi = ¶ms->efi_info; in setup_e820() local 464 nr_desc = efi->efi_memmap_size / efi->efi_memdesc_size; in setup_e820() 469 unsigned long m = efi->efi_memmap; in setup_e820() 472 m |= (u64)efi->efi_memmap_hi << 32; in setup_e820() 475 d = efi_early_memdesc_ptr(m, efi->efi_memdesc_size, i); in setup_e820() 608 struct efi_info *efi; member 619 memcpy(&p->efi->efi_loader_signature, signature, sizeof(__u32)); in exit_boot_func() 622 &p->efi->efi_systab, &p->efi->efi_systab_hi); in exit_boot_func() 623 p->efi->efi_memdesc_size = *map->desc_size; in exit_boot_func() 624 p->efi->efi_memdesc_version = *map->desc_ver; in exit_boot_func() [all …]
|
/kernel/linux/linux-5.10/arch/ia64/kernel/ |
D | efi.c | 256 if ((*efi.get_time)(&tm, NULL) != EFI_SUCCESS) { in STUB_GET_TIME() 491 set_bit(EFI_BOOT, &efi.flags); in efi_init() 492 set_bit(EFI_64BIT, &efi.flags); in efi_init() 542 efi.get_time = phys_get_time; in efi_init() 543 efi.set_time = phys_set_time; in efi_init() 544 efi.get_wakeup_time = phys_get_wakeup_time; in efi_init() 545 efi.set_wakeup_time = phys_set_wakeup_time; in efi_init() 546 efi.get_variable = phys_get_variable; in efi_init() 547 efi.get_next_variable = phys_get_next_variable; in efi_init() 548 efi.set_variable = phys_set_variable; in efi_init() [all …]
|
/kernel/linux/linux-5.10/drivers/firmware/efi/test/ |
D | efi_test.c | 184 status = efi.get_variable(name, vd, at, dz, data); in efi_runtime_get_variable() 259 status = efi.set_variable(name, &vendor_guid, in efi_runtime_set_variable() 289 status = efi.get_time(gettime.time ? &efi_time : NULL, in efi_runtime_get_time() 328 status = efi.set_time(&efi_time); in efi_runtime_set_time() 349 status = efi.get_wakeup_time( in efi_runtime_get_waketime() 393 status = efi.set_wakeup_time(enabled, &efi_time); in efi_runtime_set_waketime() 395 status = efi.set_wakeup_time(enabled, NULL); in efi_runtime_set_waketime() 459 status = efi.get_next_variable(ns, name, vd); in efi_runtime_get_nextvariablename() 519 status = efi.get_next_high_mono_count( in efi_runtime_get_nexthighmonocount() 552 efi.reset_system(resetsystem.reset_type, resetsystem.status, in efi_runtime_reset_system() [all …]
|