Home
last modified time | relevance | path

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

12345

/linux-6.3-rc2/drivers/firmware/efi/
A Dmemmap.c55 __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()
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()
101 memunmap(efi.memmap.map); in efi_memmap_unmap()
104 efi.memmap.map = NULL; in efi_memmap_unmap()
105 clear_bit(EFI_MEMMAP, &efi.flags); in efi_memmap_unmap()
[all …]
A 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 …]
A Druntime-wrappers.c43 efi_call_virt_pointer(efi.runtime, f, args)
45 __efi_call_virt_pointer(efi.runtime, f, args)
466 efi.get_time = virt_efi_get_time; in efi_native_runtime_setup()
467 efi.set_time = virt_efi_set_time; in efi_native_runtime_setup()
468 efi.get_wakeup_time = virt_efi_get_wakeup_time; in efi_native_runtime_setup()
469 efi.set_wakeup_time = virt_efi_set_wakeup_time; in efi_native_runtime_setup()
470 efi.get_variable = virt_efi_get_variable; in efi_native_runtime_setup()
471 efi.get_next_variable = virt_efi_get_next_variable; in efi_native_runtime_setup()
472 efi.set_variable = virt_efi_set_variable; in efi_native_runtime_setup()
475 efi.reset_system = virt_efi_reset_system; in efi_native_runtime_setup()
[all …]
A Defi.c38 struct efi __read_mostly efi = { variable
54 EXPORT_SYMBOL(efi);
102 set_bit(EFI_DBG, &efi.flags); in parse_efi_cmdline()
133 if (efi.acpi20 != EFI_INVALID_TABLE_ADDR) in systab_show()
135 if (efi.acpi != EFI_INVALID_TABLE_ADDR) in systab_show()
142 if (efi.smbios3 != EFI_INVALID_TABLE_ADDR) in systab_show()
144 if (efi.smbios != EFI_INVALID_TABLE_ADDR) in systab_show()
392 efi.runtime_supported_mask = 0; in efisubsys_init()
397 if (efi.runtime_supported_mask) { in efisubsys_init()
407 efi.runtime_supported_mask = 0; in efisubsys_init()
[all …]
A 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()
A 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
A Defi-init.c91 set_bit(EFI_BOOT, &efi.flags); in uefi_init()
93 set_bit(EFI_64BIT, &efi.flags); in uefi_init()
99 efi.runtime = systab->runtime; in uefi_init()
100 efi.runtime_version = systab->hdr.revision; in uefi_init()
218 WARN(efi.memmap.desc_version != 1, in efi_init()
220 efi.memmap.desc_version); in efi_init()
A 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()
A 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.3-rc2/arch/x86/platform/efi/
A Defi.c73 &efi.acpi,
74 &efi.acpi20,
75 &efi.smbios,
76 &efi.smbios3,
84 &efi.esrt,
90 &efi.tpm_log,
94 &efi.mokvar_table,
97 &efi.coco_secret,
232 memblock_reserve(pmap, efi.memmap.nr_map * efi.memmap.desc_size); in efi_memblock_x86_reserve_range()
591 return efi.memmap.map_end - efi.memmap.desc_size; in efi_map_next_entry_reverse()
[all …]
A Defi_64.c818 efi.get_time = efi_thunk_get_time; in efi_thunk_runtime_setup()
819 efi.set_time = efi_thunk_set_time; in efi_thunk_runtime_setup()
820 efi.get_wakeup_time = efi_thunk_get_wakeup_time; in efi_thunk_runtime_setup()
821 efi.set_wakeup_time = efi_thunk_set_wakeup_time; in efi_thunk_runtime_setup()
822 efi.get_variable = efi_thunk_get_variable; in efi_thunk_runtime_setup()
823 efi.get_next_variable = efi_thunk_get_next_variable; in efi_thunk_runtime_setup()
824 efi.set_variable = efi_thunk_set_variable; in efi_thunk_runtime_setup()
827 efi.reset_system = efi_thunk_reset_system; in efi_thunk_runtime_setup()
830 efi.update_capsule = efi_thunk_update_capsule; in efi_thunk_runtime_setup()
831 efi.query_capsule_caps = efi_thunk_query_capsule_caps; in efi_thunk_runtime_setup()
[all …]
A Dquirks.c110 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()
495 memcpy(new_md, md, efi.memmap.desc_size); in efi_free_boot_services()
496 new_md += efi.memmap.desc_size; in efi_free_boot_services()
762 clear_bit(EFI_RUNTIME_SERVICES, &efi.flags); in efi_crash_gracefully_on_page_fault()
/linux-6.3-rc2/drivers/firmware/efi/libstub/
A DMakefile.zboot34 $(obj)/zboot-header.o: $(srctree)/drivers/firmware/efi/libstub/zboot-header.S FORCE
37 ZBOOT_DEPS := $(obj)/zboot-header.o $(objtree)/drivers/firmware/efi/libstub/lib.a
39 LDFLAGS_vmlinuz.efi.elf := -T $(srctree)/drivers/firmware/efi/libstub/zboot.lds
40 $(obj)/vmlinuz.efi.elf: $(obj)/vmlinuz.o $(ZBOOT_DEPS) FORCE
43 OBJCOPYFLAGS_vmlinuz.efi := -O binary
44 $(obj)/vmlinuz.efi: $(obj)/vmlinuz.efi.elf FORCE
47 targets += zboot-header.o vmlinuz.o vmlinuz.efi.elf vmlinuz.efi
A Dx86-stub.c559 struct efi_info *efi = &params->efi_info; in setup_e820() local
566 nr_desc = efi->efi_memmap_size / efi->efi_memdesc_size; in setup_e820()
571 unsigned long m = efi->efi_memmap; in setup_e820()
574 m |= (u64)efi->efi_memmap_hi << 32; in setup_e820()
710 struct efi_info *efi; member
724 &p->efi->efi_systab, &p->efi->efi_systab_hi); in exit_boot_func()
725 p->efi->efi_memdesc_size = map->desc_size; in exit_boot_func()
726 p->efi->efi_memdesc_version = map->desc_ver; in exit_boot_func()
728 &p->efi->efi_memmap, &p->efi->efi_memmap_hi); in exit_boot_func()
729 p->efi->efi_memmap_size = map->map_size; in exit_boot_func()
[all …]
/linux-6.3-rc2/Documentation/ABI/testing/
A 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
A 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
62 What: /sys/firmware/efi/esrt/entries/entry<N>/capsule_flags
[all …]
A 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.3-rc2/drivers/nvdimm/
A Dnd.h44 return nd_label->efi.name; in nsl_ref_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()
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()
131 nd_label->efi.dpa = __cpu_to_le64(dpa); in nsl_set_dpa()
262 import_uuid(uuid, nd_label->efi.uuid); in nsl_get_uuid()
273 export_uuid(nd_label->efi.uuid, uuid); in nsl_set_uuid()
286 import_uuid(&tmp, nd_label->efi.uuid); in nsl_uuid_equal()
[all …]
/linux-6.3-rc2/drivers/xen/
A Defi.c281 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()
288 efi.set_variable_nonblocking = xen_efi_set_variable; in xen_efi_runtime_setup()
291 efi.update_capsule = xen_efi_update_capsule; in xen_efi_runtime_setup()
292 efi.query_capsule_caps = xen_efi_query_capsule_caps; in xen_efi_runtime_setup()
[all …]
/linux-6.3-rc2/Documentation/admin-guide/
A 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
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
45 Arguments to the kernel can be passed after bzImage.efi, e.g.::
47 fs0:> bzImage.efi console=ttyS0 root=/dev/sda4
65 bzImage.efi
75 fs0:\Kernels> bzImage.efi initrd=\Kernels\initrd-large.img
[all …]
/linux-6.3-rc2/arch/loongarch/boot/
A 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.3-rc2/arch/loongarch/kernel/
A Defi.c61 efi.runtime = (efi_runtime_services_t *)efi_systab->runtime; in efi_runtime_init()
62 efi.runtime_version = (unsigned int)efi.runtime->hdr.revision; in efi_runtime_init()
65 set_bit(EFI_RUNTIME_SERVICES, &efi.flags); in efi_runtime_init()
106 set_bit(EFI_64BIT, &efi.flags); in efi_init()
115 set_bit(EFI_CONFIG_TABLES, &efi.flags); in efi_init()
/linux-6.3-rc2/drivers/char/tpm/eventlog/
A 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.3-rc2/arch/x86/xen/
A Defi.c89 efi.runtime_version = info->version; in xen_efi_probe()
105 mode = efi_get_secureboot_mode(efi.get_variable); in xen_efi_get_secureboot()
115 status = efi.get_variable(L"MokSBStateRT", &shim_guid, in xen_efi_get_secureboot()
146 set_bit(EFI_BOOT, &efi.flags); in xen_efi_init()
147 set_bit(EFI_PARAVIRT, &efi.flags); in xen_efi_init()
148 set_bit(EFI_64BIT, &efi.flags); in xen_efi_init()
/linux-6.3-rc2/drivers/rtc/
A 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()

Completed in 37 milliseconds

12345