Home
last modified time | relevance | path

Searched refs:efi (Results 1 – 25 of 120) sorted by relevance

12345

/linux-6.6.21/drivers/firmware/efi/
Dmemmap.c54 if (efi.memmap.flags & (EFI_MEMMAP_MEMBLOCK | EFI_MEMMAP_SLAB)) in __efi_memmap_init()
55 __efi_memmap_free(efi.memmap.phys_map, in __efi_memmap_init()
56 efi.memmap.desc_size * efi.memmap.nr_map, in __efi_memmap_init()
57 efi.memmap.flags); in __efi_memmap_init()
67 set_bit(EFI_MEMMAP, &efi.flags); in __efi_memmap_init()
69 efi.memmap = map; in __efi_memmap_init()
84 WARN_ON(efi.memmap.flags & EFI_MEMMAP_LATE); in efi_memmap_init_early()
95 if (!(efi.memmap.flags & EFI_MEMMAP_LATE)) { in efi_memmap_unmap()
98 size = efi.memmap.desc_size * efi.memmap.nr_map; in efi_memmap_unmap()
99 early_memunmap(efi.memmap.map, size); in efi_memmap_unmap()
[all …]
Dtpm.c46 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 …]
Defi.c38 struct efi __read_mostly efi = { variable
57 EXPORT_SYMBOL(efi);
105 set_bit(EFI_DBG, &efi.flags); in parse_efi_cmdline()
114 set_bit(EFI_MEM_NO_SOFT_RESERVE, &efi.flags); in parse_efi_cmdline()
136 if (efi.acpi20 != EFI_INVALID_TABLE_ADDR) in systab_show()
137 str += sprintf(str, "ACPI20=0x%lx\n", efi.acpi20); in systab_show()
138 if (efi.acpi != EFI_INVALID_TABLE_ADDR) in systab_show()
139 str += sprintf(str, "ACPI=0x%lx\n", efi.acpi); in systab_show()
145 if (efi.smbios3 != EFI_INVALID_TABLE_ADDR) in systab_show()
146 str += sprintf(str, "SMBIOS3=0x%lx\n", efi.smbios3); in systab_show()
[all …]
Druntime-wrappers.c43 arch_efi_call_virt(efi.runtime, f, args)
447 status = efi_call_virt_pointer(efi.runtime, set_variable, name, vendor, in virt_efi_set_variable_nb()
461 if (efi.runtime_version < EFI_2_00_SYSTEM_TABLE_REVISION) in virt_efi_query_variable_info()
478 if (efi.runtime_version < EFI_2_00_SYSTEM_TABLE_REVISION) in virt_efi_query_variable_info_nb()
484 status = efi_call_virt_pointer(efi.runtime, query_variable_info, attr, in virt_efi_query_variable_info_nb()
515 arch_efi_call_virt(efi.runtime, reset_system, reset_type, status, in virt_efi_reset_system()
528 if (efi.runtime_version < EFI_2_00_SYSTEM_TABLE_REVISION) in virt_efi_update_capsule()
545 if (efi.runtime_version < EFI_2_00_SYSTEM_TABLE_REVISION) in virt_efi_query_capsule_caps()
558 efi.get_time = virt_efi_get_time; in efi_native_runtime_setup()
559 efi.set_time = virt_efi_set_time; in efi_native_runtime_setup()
[all …]
Dmokvar-table.c115 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()
DMakefile13 obj-$(CONFIG_ACPI_BGRT) += efi-bgrt.o
14 obj-$(CONFIG_EFI) += efi.o vars.o reboot.o memattr.o tpm.o
21 obj-$(CONFIG_EFI_VARS_PSTORE) += efi-pstore.o
35 arm-obj-$(CONFIG_EFI) := efi-init.o arm-runtime.o
38 riscv-obj-$(CONFIG_EFI) := efi-init.o riscv-runtime.o
Defi-init.c94 set_bit(EFI_BOOT, &efi.flags); in uefi_init()
96 set_bit(EFI_64BIT, &efi.flags); in uefi_init()
102 efi.runtime = systab->runtime; in uefi_init()
103 efi.runtime_version = systab->hdr.revision; in uefi_init()
222 WARN(efi.memmap.desc_version != 1, in efi_init()
224 efi.memmap.desc_version); in efi_init()
Driscv-runtime.c77 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()
Darm-runtime.c99 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()
/linux-6.6.21/arch/x86/platform/efi/
Defi.c73 &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,
97 &efi.coco_secret,
100 &efi.unaccepted,
[all …]
Defi_64.c524 ____s = efi64_thunk(efi.runtime->mixed_mode.func, __VA_ARGS__); \
771 if (efi.runtime_version < EFI_2_00_SYSTEM_TABLE_REVISION) in efi_thunk_query_variable_info()
797 if (efi.runtime_version < EFI_2_00_SYSTEM_TABLE_REVISION) in efi_thunk_query_variable_info_nonblocking()
833 efi.get_time = efi_thunk_get_time; in efi_thunk_runtime_setup()
834 efi.set_time = efi_thunk_set_time; in efi_thunk_runtime_setup()
835 efi.get_wakeup_time = efi_thunk_get_wakeup_time; in efi_thunk_runtime_setup()
836 efi.set_wakeup_time = efi_thunk_set_wakeup_time; in efi_thunk_runtime_setup()
837 efi.get_variable = efi_thunk_get_variable; in efi_thunk_runtime_setup()
838 efi.get_next_variable = efi_thunk_get_next_variable; in efi_thunk_runtime_setup()
839 efi.set_variable = efi_thunk_set_variable; in efi_thunk_runtime_setup()
[all …]
Dquirks.c110 efi.set_variable_nonblocking((efi_char16_t *)efi_dummy_name, in efi_delete_dummy_variable()
140 status = efi.query_variable_info_nonblocking(attributes, &storage_size, in query_variable_store_nonblocking()
171 status = efi.query_variable_info(attributes, &storage_size, in efi_query_variable_store()
195 status = efi.set_variable((efi_char16_t *)efi_dummy_name, in efi_query_variable_store()
216 status = efi.query_variable_info(attributes, &storage_size, in efi_query_variable_store()
281 num_entries += efi.memmap.nr_map; in efi_arch_mem_reserve()
295 efi_memmap_insert(&efi.memmap, new, &mr); in efi_arch_mem_reserve()
503 memcpy(new_md, md, efi.memmap.desc_size); in efi_free_boot_services()
504 new_md += efi.memmap.desc_size; in efi_free_boot_services()
770 clear_bit(EFI_RUNTIME_SERVICES, &efi.flags); in efi_crash_gracefully_on_page_fault()
/linux-6.6.21/drivers/firmware/efi/libstub/
DMakefile.zboot50 $(obj)/zboot-header.o: $(srctree)/drivers/firmware/efi/libstub/zboot-header.S FORCE
53 ZBOOT_DEPS := $(obj)/zboot-header.o $(objtree)/drivers/firmware/efi/libstub/lib.a
55 LDFLAGS_vmlinuz.efi.elf := -T $(srctree)/drivers/firmware/efi/libstub/zboot.lds
56 $(obj)/vmlinuz.efi.elf: $(obj)/vmlinuz.o $(ZBOOT_DEPS) FORCE
59 OBJCOPYFLAGS_vmlinuz.efi := -O binary
60 $(obj)/vmlinuz.efi: $(obj)/vmlinuz.efi.elf FORCE
63 targets += zboot-header.o vmlinux.bin vmlinuz vmlinuz.o vmlinuz.efi.elf vmlinuz.efi
/linux-6.6.21/Documentation/ABI/testing/
Dsysfs-firmware-efi-runtime-map1 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
Dsysfs-firmware-efi-esrt1 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 …]
Dsysfs-firmware-efi1 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
/linux-6.6.21/drivers/nvdimm/
Dnd.h44 return nd_label->efi.name; in nsl_ref_name()
52 return memcpy(name, nd_label->efi.name, NSLABEL_NAME_LEN); in nsl_get_name()
62 return memcpy(nd_label->efi.name, name, NSLABEL_NAME_LEN); in nsl_set_name()
70 return __le32_to_cpu(nd_label->efi.slot); in nsl_get_slot()
79 nd_label->efi.slot = __cpu_to_le32(slot); in nsl_set_slot()
87 return __le64_to_cpu(nd_label->efi.checksum); in nsl_get_checksum()
97 nd_label->efi.checksum = __cpu_to_le64(checksum); in nsl_set_checksum()
105 return __le32_to_cpu(nd_label->efi.flags); in nsl_get_flags()
114 nd_label->efi.flags = __cpu_to_le32(flags); in nsl_set_flags()
122 return __le64_to_cpu(nd_label->efi.dpa); in nsl_get_dpa()
[all …]
/linux-6.6.21/drivers/xen/
Defi.c192 if (efi.runtime_version < EFI_2_00_SYSTEM_TABLE_REVISION) in xen_efi_query_variable_info()
224 if (efi.runtime_version < EFI_2_00_SYSTEM_TABLE_REVISION) in xen_efi_update_capsule()
243 if (efi.runtime_version < EFI_2_00_SYSTEM_TABLE_REVISION) in xen_efi_query_capsule_caps()
281 efi.get_time = xen_efi_get_time; in xen_efi_runtime_setup()
282 efi.set_time = xen_efi_set_time; in xen_efi_runtime_setup()
283 efi.get_wakeup_time = xen_efi_get_wakeup_time; in xen_efi_runtime_setup()
284 efi.set_wakeup_time = xen_efi_set_wakeup_time; in xen_efi_runtime_setup()
285 efi.get_variable = xen_efi_get_variable; in xen_efi_runtime_setup()
286 efi.get_next_variable = xen_efi_get_next_variable; in xen_efi_runtime_setup()
287 efi.set_variable = xen_efi_set_variable; in xen_efi_runtime_setup()
[all …]
/linux-6.6.21/Documentation/admin-guide/
Defi-stub.rst10 arch/x86/boot/header.S and drivers/firmware/efi/libstub/x86-stub.c,
12 arch/arm/boot/compressed/efi-header.S and
13 drivers/firmware/efi/libstub/arm32-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.::
[all …]
/linux-6.6.21/arch/loongarch/boot/
DMakefile9 OBJCOPYFLAGS_vmlinux.efi := -O binary $(strip-flags)
18 targets += vmlinux.efi
19 $(obj)/vmlinux.efi: vmlinux FORCE
22 EFI_ZBOOT_PAYLOAD := vmlinux.efi
26 include $(srctree)/drivers/firmware/efi/libstub/Makefile.zboot
/linux-6.6.21/arch/loongarch/kernel/
Defi.c62 efi.runtime = (efi_runtime_services_t *)efi_systab->runtime; in efi_runtime_init()
63 efi.runtime_version = (unsigned int)efi.runtime->hdr.revision; in efi_runtime_init()
66 set_bit(EFI_RUNTIME_SERVICES, &efi.flags); in efi_runtime_init()
107 set_bit(EFI_64BIT, &efi.flags); in efi_init()
116 set_bit(EFI_CONFIG_TABLES, &efi.flags); in efi_init()
/linux-6.6.21/drivers/char/tpm/eventlog/
Defi.c32 if (efi.tpm_log == EFI_INVALID_TABLE_ADDR) in tpm_read_log_efi()
37 log_tbl = memremap(efi.tpm_log, sizeof(*log_tbl), MEMREMAP_WB); in tpm_read_log_efi()
51 log_tbl = memremap(efi.tpm_log, sizeof(*log_tbl) + log_size, in tpm_read_log_efi()
70 if (efi.tpm_final_log == EFI_INVALID_TABLE_ADDR || in tpm_read_log_efi()
75 final_tbl = memremap(efi.tpm_final_log, in tpm_read_log_efi()
/linux-6.6.21/arch/x86/xen/
Defi.c91 efi.runtime_version = info->version; in xen_efi_probe()
107 mode = efi_get_secureboot_mode(efi.get_variable); in xen_efi_get_secureboot()
117 status = efi.get_variable(L"MokSBStateRT", &shim_guid, in xen_efi_get_secureboot()
148 set_bit(EFI_BOOT, &efi.flags); in xen_efi_init()
149 set_bit(EFI_PARAVIRT, &efi.flags); in xen_efi_init()
150 set_bit(EFI_64BIT, &efi.flags); in xen_efi_init()
/linux-6.6.21/drivers/rtc/
Drtc-efi.c123 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()
200 efi.get_time(&eft, &cap); in efi_procfs()
201 efi.get_wakeup_time(&enabled, &pending, &alm); in efi_procfs()
264 if (efi.get_time(&eft, &cap) != EFI_SUCCESS) in efi_rtc_probe()
/linux-6.6.21/drivers/firmware/efi/test/
Defi_test.c184 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 …]

12345