Home
last modified time | relevance | path

Searched refs:efi (Results 1 - 25 of 399) sorted by relevance

12345678910>>...16

/kernel/linux/linux-6.6/drivers/firmware/efi/
H A Dmemmap.c6 #define pr_fmt(fmt) "efi: " fmt
10 #include <linux/efi.h>
16 #include <asm/efi.h>
27 * map the EFI memory map in efi.memmap based on how far into the boot
54 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 in __efi_memmap_init()
[all...]
H A Dtpm.c11 #include <linux/efi.h>
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 in efi_tpm_eventlog_init()
[all...]
H A Defi.c3 * efi.c - EFI subsystem
9 * This code registers /sys/firmware/efi{,/efivars} when EFI is supported,
11 * The existance of /sys/firmware/efi may also be used by userspace to
22 #include <linux/efi.h>
38 struct efi __read_mostly efi = { variable
57 EXPORT_SYMBOL(efi); variable
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()
118 early_param("efi", parse_efi_cmdlin in parse_efi_cmdline()
[all...]
H A Druntime-wrappers.c16 * Split off from arch/x86/platform/efi/efi.c
25 #define pr_fmt(fmt) "efi: " fmt
28 #include <linux/efi.h>
36 #include <asm/efi.h>
43 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 in virt_efi_query_variable_info_nb()
[all...]
H A Dmokvar-table.c29 * /sys/firmware/efi/mok-variables/
35 #include <linux/efi.h>
65 * Each /sys/firmware/efi/mok-variables/ sysfs file is represented by
92 * efi.mokvar_table: Physical address of EFI MOK variable config table
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 in efi_mokvar_table_init()
[all...]
H A Defi-init.c10 #define pr_fmt(fmt) "efi: " fmt
12 #include <linux/efi.h>
23 #include <asm/efi.h>
94 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()
/kernel/linux/linux-6.6/arch/x86/platform/efi/
H A Defi.c36 #include <linux/efi.h>
37 #include <linux/efi-bgrt.h>
49 #include <asm/efi.h>
73 &efi.acpi,
74 &efi.acpi20,
75 &efi.smbios,
76 &efi.smbios3,
84 &efi.esrt,
90 &efi.tpm_log,
91 &efi
[all...]
H A Defi_64.c19 #define pr_fmt(fmt) "efi: " fmt
29 #include <linux/efi.h>
44 #include <asm/efi.h>
354 * kexec kernel will use efi_map_region_fixed to map efi runtime memory ranges.
524 ____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 in efi_thunk_runtime_setup()
[all...]
/kernel/linux/linux-5.10/arch/x86/platform/efi/
H A Defi.c36 #include <linux/efi.h>
37 #include <linux/efi-bgrt.h>
49 #include <asm/efi.h>
73 &efi.acpi,
74 &efi.acpi20,
75 &efi.smbios,
76 &efi.smbios3,
84 &efi.esrt,
90 &efi.tpm_log,
91 &efi
[all...]
H A Defi_64.c19 #define pr_fmt(fmt) "efi: " fmt
29 #include <linux/efi.h>
44 #include <asm/efi.h>
348 * kexec kernel will use efi_map_region_fixed to map efi runtime memory ranges.
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 in efi_thunk_runtime_setup()
[all...]
/kernel/linux/linux-5.10/drivers/firmware/efi/
H A Dtpm.c11 #include <linux/efi.h>
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 in efi_tpm_eventlog_init()
[all...]
H A Dmemmap.c6 #define pr_fmt(fmt) "efi: " fmt
10 #include <linux/efi.h>
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()
57 * @data: efi memmap installation parameters
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 in efi_memmap_alloc()
[all...]
H A Druntime-wrappers.c16 * Split off from arch/x86/platform/efi/efi.c
25 #define pr_fmt(fmt) "efi: " fmt
28 #include <linux/efi.h>
36 #include <asm/efi.h>
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 in virt_efi_update_capsule()
[all...]
H A Defi.c3 * efi.c - EFI subsystem
9 * This code registers /sys/firmware/efi{,/efivars} when EFI is supported,
11 * The existance of /sys/firmware/efi may also be used by userspace to
22 #include <linux/efi.h>
38 struct efi __read_mostly efi = { variable
51 EXPORT_SYMBOL(efi); variable
97 set_bit(EFI_DBG, &efi.flags); in parse_efi_cmdline()
103 set_bit(EFI_MEM_NO_SOFT_RESERVE, &efi.flags); in parse_efi_cmdline()
107 early_param("efi", parse_efi_cmdlin in parse_efi_cmdline()
[all...]
H A Dmokvar-table.c29 * /sys/firmware/efi/mok-variables/
35 #include <linux/efi.h>
65 * Each /sys/firmware/efi/mok-variables/ sysfs file is represented by
92 * efi.mokvar_table: Physical address of EFI MOK variable config table
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 in efi_mokvar_table_init()
[all...]
H A DMakefile7 # ARM64 maps efi runtime services in userspace addresses
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
/kernel/linux/linux-5.10/drivers/xen/
H A Defi.c23 #include <linux/efi.h>
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()
275 * Set XEN EFI runtime services function pointers. Other fields of struct efi,
276 * e.g. efi.systab, will be set like normal EFI.
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 in xen_efi_runtime_setup()
[all...]
/kernel/linux/linux-6.6/arch/loongarch/kernel/
H A Defi.c12 #include <linux/efi.h>
13 #include <linux/efi-bgrt.h>
25 #include <asm/efi.h>
62 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()
/kernel/linux/linux-6.6/drivers/nvdimm/
H A 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 in nsl_get_dpa()
[all...]
/kernel/linux/linux-5.10/arch/loongarch/kernel/
H A Defi.c14 #include <linux/efi.h>
15 #include <linux/efi-bgrt.h>
26 #include <asm/efi.h>
71 efi.runtime = (efi_runtime_services_t *)efi_systab->runtime; in efi_runtime_init()
72 efi.runtime_version = (unsigned int)efi.runtime->hdr.revision; in efi_runtime_init()
75 set_bit(EFI_RUNTIME_SERVICES, &efi.flags); in efi_runtime_init()
95 set_bit(EFI_64BIT, &efi.flags); in efi_init()
/kernel/linux/linux-6.6/arch/loongarch/boot/
H 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
/kernel/linux/linux-5.10/drivers/char/tpm/eventlog/
H A Defi.c9 #include <linux/efi.h>
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-6.6/drivers/char/tpm/eventlog/
H A Defi.c10 #include <linux/efi.h>
32 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()
/kernel/linux/linux-6.6/drivers/xen/
H A Defi.c23 #include <linux/efi.h>
192 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()
276 * Set XEN EFI runtime services function pointers. Other fields of struct efi,
277 * e.g. efi.systab, will be set like normal EFI.
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 in xen_efi_runtime_setup()
[all...]
/kernel/linux/linux-5.10/arch/x86/xen/
H A Defi.c7 #include <linux/efi.h>
89 efi.runtime_version = info->version; in xen_efi_probe()
98 * drivers/firmware/efi/libstub/secureboot.c:efi_get_secureboot().
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()

Completed in 13 milliseconds

12345678910>>...16