Lines Matching refs:efi

3  * 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 = {
51 EXPORT_SYMBOL(efi);
97 set_bit(EFI_DBG, &efi.flags);
103 set_bit(EFI_MEM_NO_SOFT_RESERVE, &efi.flags);
107 early_param("efi", parse_efi_cmdline);
125 if (efi.acpi20 != EFI_INVALID_TABLE_ADDR)
126 str += sprintf(str, "ACPI20=0x%lx\n", efi.acpi20);
127 if (efi.acpi != EFI_INVALID_TABLE_ADDR)
128 str += sprintf(str, "ACPI=0x%lx\n", efi.acpi);
134 if (efi.smbios3 != EFI_INVALID_TABLE_ADDR)
135 str += sprintf(str, "SMBIOS3=0x%lx\n", efi.smbios3);
136 if (efi.smbios != EFI_INVALID_TABLE_ADDR)
137 str += sprintf(str, "SMBIOS=0x%lx\n", efi.smbios);
184 generic_ops.get_variable = efi.get_variable;
185 generic_ops.get_next_variable = efi.get_next_variable;
189 generic_ops.set_variable = efi.set_variable;
190 generic_ops.set_variable_nonblocking = efi.set_variable_nonblocking;
314 efi_debugfs = debugfs_create_dir("efi", NULL);
354 * We register the efi subsystem with the firmware subsystem and the
355 * efivars subsystem with the efi subsystem, if the system was booted with
363 efi.runtime_supported_mask = 0;
368 if (efi.runtime_supported_mask) {
377 clear_bit(EFI_RUNTIME_SERVICES, &efi.flags);
378 efi.runtime_supported_mask = 0;
384 platform_device_register_simple("rtc-efi", 0, NULL, 0);
386 /* We register the efi directory at /sys/firmware/efi */
387 efi_kobj = kobject_create_and_add("efi", firmware_kobj);
389 pr_err("efi: Firmware registration failed.\n");
405 pr_err("efi: Sysfs attribute export failed with error %d.\n",
444 * Find the efi memory descriptor for a given physical address. Given a
478 * Calculate the highest address of an efi memory descriptor.
517 {ACPI_20_TABLE_GUID, &efi.acpi20, "ACPI 2.0" },
518 {ACPI_TABLE_GUID, &efi.acpi, "ACPI" },
519 {SMBIOS_TABLE_GUID, &efi.smbios, "SMBIOS" },
520 {SMBIOS3_TABLE_GUID, &efi.smbios3, "SMBIOS 3.0" },
521 {EFI_SYSTEM_RESOURCE_TABLE_GUID, &efi.esrt, "ESRT" },
524 {LINUX_EFI_TPM_EVENT_LOG_GUID, &efi.tpm_log, "TPMEventLog" },
525 {LINUX_EFI_TPM_FINAL_LOG_GUID, &efi.tpm_final_log, "TPMFinalLog" },
533 {LINUX_EFI_MOK_VARIABLE_TABLE_GUID, &efi.mokvar_table, "MOKvar" },
591 set_bit(EFI_CONFIG_TABLES, &efi.flags);
662 efi.runtime_supported_mask &= tbl->runtime_services_supported;
745 efi.runtime_version = EFI_1_10_SYSTEM_TABLE_REVISION;