/linux-6.1.9/drivers/firmware/efi/ |
D | efibc.c | 17 static int efibc_set_variable(efi_char16_t *name, efi_char16_t *value, in efibc_set_variable() 26 len * sizeof(efi_char16_t), value); in efibc_set_variable() 38 efi_char16_t *reason = event == SYS_RESTART ? L"reboot" in efibc_reboot_notifier_call() 41 efi_char16_t *wdata; in efibc_reboot_notifier_call() 50 wdata = kmalloc(MAX_DATA_LEN * sizeof(efi_char16_t), GFP_KERNEL); in efibc_reboot_notifier_call()
|
D | runtime-wrappers.c | 208 status = efi_call_virt(get_variable, (efi_char16_t *)arg1, in efi_call_rts() 214 (efi_char16_t *)arg2, in efi_call_rts() 218 status = efi_call_virt(set_variable, (efi_char16_t *)arg1, in efi_call_rts() 301 static efi_status_t virt_efi_get_variable(efi_char16_t *name, in virt_efi_get_variable() 318 efi_char16_t *name, in virt_efi_get_next_variable() 331 static efi_status_t virt_efi_set_variable(efi_char16_t *name, in virt_efi_set_variable() 348 virt_efi_set_variable_nonblocking(efi_char16_t *name, efi_guid_t *vendor, in virt_efi_set_variable_nonblocking() 417 efi_char16_t *data) in virt_efi_reset_system()
|
D | vars.c | 172 efi_status_t efivar_get_variable(efi_char16_t *name, efi_guid_t *vendor, in efivar_get_variable() 185 efi_char16_t *name, efi_guid_t *vendor) in efivar_get_next_variable() 197 efi_status_t efivar_set_variable_locked(efi_char16_t *name, efi_guid_t *vendor, in efivar_set_variable_locked() 230 efi_status_t efivar_set_variable(efi_char16_t *name, efi_guid_t *vendor, in efivar_set_variable()
|
D | efi-pstore.c | 53 efi_char16_t *varname) in efi_pstore_read_func() 118 wlen = (ucs2_strnlen(varname, DUMP_NAME_LEN) + 1) * sizeof(efi_char16_t); in efi_pstore_read_func() 130 efi_char16_t *varname = record->psi->data; in efi_pstore_read() 168 efi_char16_t efi_name[DUMP_NAME_LEN]; in efi_pstore_write()
|
D | efi.c | 227 efi_char16_t *name = NULL; in efivar_ssdt_load() 718 static const efi_char16_t *__init map_fw_vendor(unsigned long fw_vendor, in map_fw_vendor() 721 const efi_char16_t *ret; in map_fw_vendor() 742 const efi_char16_t *c16; in efi_systab_report_header() 745 c16 = map_fw_vendor(fw_vendor, sizeof(vendor) * sizeof(efi_char16_t)); in efi_systab_report_header() 751 unmap_fw_vendor(c16, sizeof(vendor) * sizeof(efi_char16_t)); in efi_systab_report_header()
|
D | apple-properties.c | 66 key_len < sizeof(key_len) + sizeof(efi_char16_t) || in unmarshal_key_value_pairs() 67 *(efi_char16_t *)(ptr + sizeof(key_len)) == 0) { in unmarshal_key_value_pairs()
|
/linux-6.1.9/fs/efivarfs/ |
D | vars.c | 28 validate_device_path(efi_char16_t *var_name, int match, u8 *buffer, in validate_device_path() 61 validate_boot_order(efi_char16_t *var_name, int match, u8 *buffer, in validate_boot_order() 72 validate_load_option(efi_char16_t *var_name, int match, u8 *buffer, in validate_load_option() 101 desclength = ucs2_strsize((efi_char16_t *)(buffer + 6), len - 6) + 2; in validate_load_option() 123 validate_uint16(efi_char16_t *var_name, int match, u8 *buffer, in validate_uint16() 134 validate_ascii_string(efi_char16_t *var_name, int match, u8 *buffer, in validate_ascii_string() 153 bool (*validate)(efi_char16_t *var_name, int match, u8 *data, 229 efivar_validate(efi_guid_t vendor, efi_char16_t *var_name, u8 *data, in efivar_validate() 291 static bool variable_is_present(efi_char16_t *variable_name, efi_guid_t *vendor, in variable_is_present() 318 static unsigned long var_name_strnsize(efi_char16_t *variable_name, in var_name_strnsize() [all …]
|
D | internal.h | 13 efi_char16_t VariableName[EFI_VAR_NAME_LEN/sizeof(efi_char16_t)]; 27 int efivar_init(int (*func)(efi_char16_t *, efi_guid_t, unsigned long, void *), 46 bool efivar_validate(efi_guid_t vendor, efi_char16_t *var_name, u8 *data,
|
/linux-6.1.9/drivers/firmware/efi/test/ |
D | efi_test.c | 33 static inline size_t user_ucs2_strsize(efi_char16_t __user *str) in user_ucs2_strsize() 35 efi_char16_t *s = str, c; in user_ucs2_strsize() 42 len = sizeof(efi_char16_t); in user_ucs2_strsize() 54 len += sizeof(efi_char16_t); in user_ucs2_strsize() 63 copy_ucs2_from_user_len(efi_char16_t **dst, efi_char16_t __user *src, in copy_ucs2_from_user_len() 66 efi_char16_t *buf; in copy_ucs2_from_user_len() 89 get_ucs2_strsize_from_user(efi_char16_t __user *src, size_t *len) in get_ucs2_strsize_from_user() 111 copy_ucs2_from_user(efi_char16_t **dst, efi_char16_t __user *src) in copy_ucs2_from_user() 131 copy_ucs2_to_user_len(efi_char16_t __user *dst, efi_char16_t *src, size_t len) in copy_ucs2_to_user_len() 146 efi_char16_t *name = NULL; in efi_runtime_get_variable() [all …]
|
D | efi_test.h | 15 efi_char16_t *variable_name; 24 efi_char16_t *variable_name; 34 efi_char16_t *variable_name; 88 efi_char16_t *data;
|
/linux-6.1.9/drivers/firmware/efi/libstub/ |
D | file.c | 34 efi_char16_t filename[MAX_FILENAME_SIZE]; 105 static int find_file_option(const efi_char16_t *cmdline, int cmdline_len, in find_file_option() 106 const efi_char16_t *prefix, int prefix_size, in find_file_option() 107 efi_char16_t *result, int result_len) in find_file_option() 128 efi_char16_t c = cmdline[i++]; in find_file_option() 149 const efi_char16_t *optstr, in handle_cmdline_files() 156 const efi_char16_t *cmdline = image->load_options; in handle_cmdline_files()
|
D | efistub.h | 98 efi_rt_call(get_variable, (efi_char16_t *)(name), \ 102 efi_rt_call(set_variable, (efi_char16_t *)(name), \ 167 efi_char16_t *(__efiapi *convert_device_node_to_text)( 170 efi_char16_t *(__efiapi *convert_device_path_to_text)( 270 efi_char16_t **); 274 efi_char16_t *); 436 efi_char16_t unicode_char; 459 efi_char16_t *); 572 efi_char16_t filename[]; 581 efi_char16_t *, u64, u64); [all …]
|
D | secureboot.c | 17 static const efi_char16_t shim_MokSBState_name[] = L"MokSBStateRT"; 19 static efi_status_t get_var(efi_char16_t *name, efi_guid_t *vendor, u32 *attr, in get_var()
|
D | efi-stub-helper.c | 39 void efi_char16_puts(efi_char16_t *str) in efi_char16_puts() 96 efi_char16_t buf[128]; in efi_puts() 258 const efi_char16_t *description; in efi_load_option_unpack() 423 const efi_char16_t *options = efi_table_attr(image, load_options); in efi_convert_cmdline() 427 const efi_char16_t *s2; in efi_convert_cmdline() 437 options_chars = options_size / sizeof(efi_char16_t); in efi_convert_cmdline() 442 efi_char16_t c = *s2++; in efi_convert_cmdline()
|
D | zboot.c | 35 static void log(efi_char16_t str[]) in log() 176 efi_char16_t *exit_data; in efi_zboot_entry()
|
D | tpm.c | 17 static const efi_char16_t efi_MemoryOverWriteRequest_name[] =
|
D | x86-stub.c | 313 static const efi_char16_t apple[] = L"Apple"; 319 efi_char16_t *fw_vendor = (efi_char16_t *)(unsigned long) in setup_quirks()
|
/linux-6.1.9/drivers/infiniband/hw/hfi1/ |
D | efivar.c | 29 efi_char16_t *uni_name; in read_efi_var() 44 uni_name = kcalloc(strlen(name) + 1, sizeof(efi_char16_t), GFP_KERNEL); in read_efi_var()
|
/linux-6.1.9/drivers/xen/ |
D | efi.c | 119 static efi_status_t xen_efi_get_variable(efi_char16_t *name, efi_guid_t *vendor, in xen_efi_get_variable() 143 efi_char16_t *name, in xen_efi_get_next_variable() 165 static efi_status_t xen_efi_set_variable(efi_char16_t *name, efi_guid_t *vendor, in xen_efi_set_variable() 259 unsigned long data_size, efi_char16_t *data) in xen_efi_reset_system()
|
/linux-6.1.9/include/linux/ |
D | efi.h | 48 typedef u16 efi_char16_t; /* UNICODE character */ typedef 285 typedef efi_status_t efi_get_variable_t (efi_char16_t *name, efi_guid_t *vendor, u32 *attr, 287 typedef efi_status_t efi_get_next_variable_t (unsigned long *name_size, efi_char16_t *name, 289 typedef efi_status_t efi_set_variable_t (efi_char16_t *name, efi_guid_t *vendor, 294 unsigned long data_size, efi_char16_t *data); 1076 efi_status_t efivar_get_variable(efi_char16_t *name, efi_guid_t *vendor, 1080 efi_char16_t *name, efi_guid_t *vendor); 1082 efi_status_t efivar_set_variable_locked(efi_char16_t *name, efi_guid_t *vendor, 1086 efi_status_t efivar_set_variable(efi_char16_t *name, efi_guid_t *vendor,
|
/linux-6.1.9/arch/x86/platform/efi/ |
D | efi_64.c | 579 static unsigned long efi_name_size(efi_char16_t *name) in efi_name_size() 585 efi_thunk_get_variable(efi_char16_t *name, efi_guid_t *vendor, in efi_thunk_get_variable() 617 efi_thunk_set_variable(efi_char16_t *name, efi_guid_t *vendor, in efi_thunk_set_variable() 646 efi_thunk_set_variable_nonblocking(efi_char16_t *name, efi_guid_t *vendor, in efi_thunk_set_variable_nonblocking() 678 efi_char16_t *name, in efi_thunk_get_next_variable() 715 unsigned long data_size, efi_char16_t *data) in efi_thunk_reset_system()
|
D | quirks.c | 80 static const efi_char16_t efi_dummy_name[] = L"DUMMY"; 110 efi.set_variable_nonblocking((efi_char16_t *)efi_dummy_name, in efi_delete_dummy_variable() 187 status = efi.set_variable((efi_char16_t *)efi_dummy_name, in efi_query_variable_store()
|
/linux-6.1.9/arch/ia64/kernel/ |
D | efi.c | 143 prefix##_get_variable (efi_char16_t *name, efi_guid_t *vendor, u32 *attr, \ 163 prefix##_get_next_variable (unsigned long *name_size, efi_char16_t *name, \ 179 prefix##_set_variable (efi_char16_t *name, efi_guid_t *vendor, \ 213 unsigned long data_size, efi_char16_t *data) \ 216 efi_char16_t *adata = NULL; \ 926 efi_char16_t *utf16, name_utf16[32]; in efi_uart_console_only()
|
/linux-6.1.9/arch/x86/xen/ |
D | efi.c | 19 static efi_char16_t vendor[100] __initdata;
|
/linux-6.1.9/security/integrity/platform_certs/ |
D | load_uefi.c | 65 static __init void *get_cert_list(efi_char16_t *name, efi_guid_t *guid, in get_cert_list()
|