Home
last modified time | relevance | path

Searched refs:efi_char16_t (Results 1 – 25 of 34) sorted by relevance

12

/linux-6.6.21/drivers/firmware/efi/
Defibc.c17 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()
Druntime-wrappers.c67 efi_char16_t *name;
76 efi_char16_t *name;
81 efi_char16_t *name;
393 static efi_status_t virt_efi_get_variable(efi_char16_t *name, in virt_efi_get_variable()
410 efi_char16_t *name, in virt_efi_get_next_variable()
422 static efi_status_t virt_efi_set_variable(efi_char16_t *name, in virt_efi_set_variable()
439 virt_efi_set_variable_nb(efi_char16_t *name, efi_guid_t *vendor, u32 attr, in virt_efi_set_variable_nb()
505 efi_char16_t *data) in virt_efi_reset_system()
Dvars.c176 efi_status_t efivar_get_variable(efi_char16_t *name, efi_guid_t *vendor, in efivar_get_variable()
189 efi_char16_t *name, efi_guid_t *vendor) in efivar_get_next_variable()
201 efi_status_t efivar_set_variable_locked(efi_char16_t *name, efi_guid_t *vendor, in efivar_set_variable_locked()
234 efi_status_t efivar_set_variable(efi_char16_t *name, efi_guid_t *vendor, in efivar_set_variable()
Defi-pstore.c55 efi_char16_t *varname) in efi_pstore_read_func()
120 wlen = (ucs2_strnlen(varname, DUMP_NAME_LEN) + 1) * sizeof(efi_char16_t); in efi_pstore_read_func()
132 efi_char16_t *varname = record->psi->data; in efi_pstore_read()
170 efi_char16_t efi_name[DUMP_NAME_LEN]; in efi_pstore_write()
Defi.c197 efi_char16_t name; in generic_ops_supported()
255 efi_char16_t *name = NULL; in efivar_ssdt_load()
276 efi_char16_t *name_tmp = in efivar_ssdt_load()
811 static const efi_char16_t *__init map_fw_vendor(unsigned long fw_vendor, in map_fw_vendor()
814 const efi_char16_t *ret; in map_fw_vendor()
835 const efi_char16_t *c16; in efi_systab_report_header()
839 c16 = map_fw_vendor(fw_vendor, sizeof(vendor) * sizeof(efi_char16_t)); in efi_systab_report_header()
845 unmap_fw_vendor(c16, sizeof(vendor) * sizeof(efi_char16_t)); in efi_systab_report_header()
Dapple-properties.c66 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.6.21/fs/efivarfs/
Dvars.c28 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 …]
Dinternal.h13 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.6.21/drivers/firmware/efi/test/
Defi_test.c33 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 …]
Defi_test.h15 efi_char16_t *variable_name;
24 efi_char16_t *variable_name;
34 efi_char16_t *variable_name;
88 efi_char16_t *data;
/linux-6.6.21/drivers/firmware/efi/libstub/
Dfile.c34 efi_char16_t filename[MAX_FILENAME_SIZE];
46 efi_char16_t *c; in efi_open_file()
95 static int find_file_option(const efi_char16_t *cmdline, int cmdline_len, in find_file_option()
96 const efi_char16_t *prefix, int prefix_size, in find_file_option()
97 efi_char16_t *result, int result_len) in find_file_option()
118 efi_char16_t c = cmdline[i++]; in find_file_option()
185 const efi_char16_t *optstr, in handle_cmdline_files()
192 const efi_char16_t *cmdline = efi_table_attr(image, load_options); in handle_cmdline_files()
Defistub.h111 efi_rt_call(get_variable, (efi_char16_t *)(name), \
115 efi_rt_call(set_variable, (efi_char16_t *)(name), \
180 efi_char16_t *(__efiapi *convert_device_node_to_text)(
183 efi_char16_t *(__efiapi *convert_device_path_to_text)(
198 (__efiapi *convert_text_to_device_node)(const efi_char16_t *);
200 (__efiapi *convert_text_to_device_path)(const efi_char16_t *);
298 efi_char16_t **);
302 efi_char16_t *);
484 efi_char16_t unicode_char;
507 efi_char16_t *);
[all …]
Dsecureboot.c17 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()
Dprintk.c20 void efi_char16_puts(efi_char16_t *str) in efi_char16_puts()
77 efi_char16_t buf[128]; in efi_puts()
Defi-stub-helper.c117 const efi_char16_t *description; in efi_load_option_unpack()
282 const efi_char16_t *options = efi_table_attr(image, load_options); in efi_convert_cmdline()
286 const efi_char16_t *s2; in efi_convert_cmdline()
296 options_chars = options_size / sizeof(efi_char16_t); in efi_convert_cmdline()
301 efi_char16_t c = *s2++; in efi_convert_cmdline()
Dx86-stub.c316 static efi_char16_t *efistub_fw_vendor(void) in efistub_fw_vendor()
320 return (efi_char16_t *)vendor; in efistub_fw_vendor()
323 static const efi_char16_t apple[] = L"Apple";
777 static const efi_char16_t ami[] = L"American Megatrends"; in efi_decompress_kernel()
Dtpm.c17 static const efi_char16_t efi_MemoryOverWriteRequest_name[] =
/linux-6.6.21/include/linux/
Defi.h49 typedef u16 efi_char16_t; /* UNICODE character */ typedef
287 typedef efi_status_t efi_get_variable_t (efi_char16_t *name, efi_guid_t *vendor, u32 *attr,
289 typedef efi_status_t efi_get_next_variable_t (unsigned long *name_size, efi_char16_t *name,
291 typedef efi_status_t efi_set_variable_t (efi_char16_t *name, efi_guid_t *vendor,
296 unsigned long data_size, efi_char16_t *data);
1024 efi_char16_t filename[];
1098 efi_status_t efivar_get_variable(efi_char16_t *name, efi_guid_t *vendor,
1102 efi_char16_t *name, efi_guid_t *vendor);
1104 efi_status_t efivar_set_variable_locked(efi_char16_t *name, efi_guid_t *vendor,
1108 efi_status_t efivar_set_variable(efi_char16_t *name, efi_guid_t *vendor,
/linux-6.6.21/drivers/infiniband/hw/hfi1/
Defivar.c29 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.6.21/arch/x86/platform/efi/
Defi_64.c600 static unsigned long efi_name_size(efi_char16_t *name) in efi_name_size()
606 efi_thunk_get_variable(efi_char16_t *name, efi_guid_t *vendor, in efi_thunk_get_variable()
638 efi_thunk_set_variable(efi_char16_t *name, efi_guid_t *vendor, in efi_thunk_set_variable()
667 efi_thunk_set_variable_nonblocking(efi_char16_t *name, efi_guid_t *vendor, in efi_thunk_set_variable_nonblocking()
699 efi_char16_t *name, in efi_thunk_get_next_variable()
736 unsigned long data_size, efi_char16_t *data) in efi_thunk_reset_system()
Dquirks.c80 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()
195 status = efi.set_variable((efi_char16_t *)efi_dummy_name, in efi_query_variable_store()
/linux-6.6.21/drivers/xen/
Defi.c120 static efi_status_t xen_efi_get_variable(efi_char16_t *name, efi_guid_t *vendor, in xen_efi_get_variable()
144 efi_char16_t *name, in xen_efi_get_next_variable()
166 static efi_status_t xen_efi_set_variable(efi_char16_t *name, efi_guid_t *vendor, in xen_efi_set_variable()
260 unsigned long data_size, efi_char16_t *data) in xen_efi_reset_system()
/linux-6.6.21/arch/ia64/kernel/
Defi.c143 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.6.21/arch/x86/xen/
Defi.c21 static efi_char16_t vendor[100] __initdata;
/linux-6.6.21/security/integrity/platform_certs/
Dload_uefi.c65 static __init void *get_cert_list(efi_char16_t *name, efi_guid_t *guid, in get_cert_list()

12