Lines Matching full:variable

54  * efi_to_native() - convert the UEFI variable name and vendor GUID to U-Boot
55 * variable name
57 * The U-Boot variable name is a concatenation of prefix 'efi', the hexstring
58 * encoded vendor GUID, and the UTF-8 encoded UEFI variable name separated by
61 * @native: pointer to pointer to U-Boot variable name
62 * @variable_name: UEFI variable name
102 * parse_attr() - decode attributes part of variable value
104 * Convert the string encoded attributes of a UEFI variable to a bit mask.
107 * @str: value of U-Boot variable
109 * Return: pointer to remainder of U-Boot variable value
149 * efi_efi_get_variable() - retrieve value of a UEFI variable
156 * @variable_name: name of the variable
158 * @attributes: attributes of the variable
159 * @data_size: size of the buffer to which the variable value is copied
160 * @data: buffer to which the variable value is copied
245 * parse_uboot_variable() - parse a u-boot variable and get uefi-related
247 * @variable: whole data of u-boot variable (ie. name=value)
249 * @variable_name: name of uefi variable in u16, null-terminated
253 * A uefi variable is encoded into a u-boot variable as described above.
254 * This function parses such a u-boot variable and retrieve uefi-related
256 * is the size of variable name including NULL.
259 the entire variable list has been returned,
262 static efi_status_t parse_uboot_variable(char *variable, in parse_uboot_variable() argument
272 guid = strchr(variable, '_'); in parse_uboot_variable()
291 /* variable name */ in parse_uboot_variable()
310 * efi_get_next_variable_name() - enumerate the current variable names
312 * @variable_name: name of uefi variable's name in u16
327 char *native_name, *variable; in efi_get_next_variable_name() local
348 /* search for the last-returned variable */ in efi_get_next_variable_name()
354 for (variable = efi_variables_list; variable && *variable;) { in efi_get_next_variable_name()
355 if (!strncmp(variable, native_name, name_len) && in efi_get_next_variable_name()
356 variable[name_len] == '=') in efi_get_next_variable_name()
359 variable = strchr(variable, '\n'); in efi_get_next_variable_name()
360 if (variable) in efi_get_next_variable_name()
361 variable++; in efi_get_next_variable_name()
365 if (!(variable && *variable)) in efi_get_next_variable_name()
368 /* next variable */ in efi_get_next_variable_name()
369 variable = strchr(variable, '\n'); in efi_get_next_variable_name()
370 if (variable) in efi_get_next_variable_name()
371 variable++; in efi_get_next_variable_name()
372 if (!(variable && *variable)) in efi_get_next_variable_name()
390 variable = efi_variables_list; in efi_get_next_variable_name()
393 ret = parse_uboot_variable(variable, variable_name_size, variable_name, in efi_get_next_variable_name()
400 * efi_efi_set_variable() - set value of a UEFI variable
407 * @variable_name: name of the variable
409 * @attributes: attributes of the variable
410 * @data_size: size of the buffer with the variable value
411 * @data: buffer with the variable value
437 /* delete the variable: */ in efi_set_variable()