Lines Matching refs:size
44 efi_uintn_t *size) in get_var() argument
49 *size = 0; in get_var()
50 ret = efi_get_variable_int(name, vendor, NULL, size, buf, NULL); in get_var()
52 buf = malloc(*size); in get_var()
53 ret = efi_get_variable_int(name, vendor, NULL, size, buf, NULL); in get_var()
58 *size = 0; in get_var()
84 efi_uintn_t size; in try_load_entry() local
92 load_option = get_var(varname, &efi_global_variable_guid, &size); in try_load_entry()
96 ret = efi_deserialize_load_option(&lo, load_option, &size); in try_load_entry()
134 if (size) { in try_load_entry()
135 *load_options = malloc(size); in try_load_entry()
140 memcpy(*load_options, lo.optional_data, size); in try_load_entry()
141 ret = efi_set_load_options(*handle, size, *load_options); in try_load_entry()
166 efi_uintn_t size; in efi_bootmgr_load() local
174 size = sizeof(bootnext); in efi_bootmgr_load()
177 NULL, &size, &bootnext, NULL); in efi_bootmgr_load()
180 if (ret == EFI_BUFFER_TOO_SMALL || size != sizeof(u16)) in efi_bootmgr_load()
190 if (size == sizeof(u16)) { in efi_bootmgr_load()
204 bootorder = get_var(L"BootOrder", &efi_global_variable_guid, &size); in efi_bootmgr_load()
211 num = size / sizeof(uint16_t); in efi_bootmgr_load()