Lines Matching defs:size

28  * @image_size:		image size
196 * @size: image size
199 static struct udevice *mount_image(u16 *lo_label, ulong addr, ulong size)
212 err = blkmap_create_ramdisk(label, addr, size, &bm_dev);
338 * @size: image size
343 static efi_status_t prepare_loaded_image(u16 *label, ulong addr, ulong size,
350 ramdisk_blk = mount_image(label, addr, size);
365 ret = efi_add_memory_map(addr, size, EFI_RESERVED_MEMORY_TYPE);
614 efi_uintn_t size;
622 load_option = efi_get_var(varname, &efi_global_variable_guid, &size);
626 ret = efi_deserialize_load_option(&lo, load_option, &size);
675 if (size >= sizeof(efi_guid_t) &&
677 size = 0;
680 if (size) {
681 *load_options = malloc(size);
686 memcpy(*load_options, lo.optional_data, size);
687 ret = efi_set_load_options(*handle, size, *load_options);
716 efi_uintn_t size;
724 size = sizeof(bootnext);
727 NULL, &size, &bootnext, NULL);
730 if (ret == EFI_BUFFER_TOO_SMALL || size != sizeof(u16))
740 if (size == sizeof(u16)) {
754 bootorder = efi_get_var(u"BootOrder", &efi_global_variable_guid, &size);
761 num = size / sizeof(uint16_t);
846 opt[num].size = efi_serialize_load_option(&lo, (u8 **)&opt[num].lo);
847 if (!opt[num].size) {
852 optional_data = (char *)opt[num].lo + (opt[num].size - u16_strsize(u"1234567"));
876 efi_uintn_t size;
914 load_option = efi_get_var(varname, &efi_global_variable_guid, &size);
918 tmp = size;
919 ret = efi_deserialize_load_option(&lo, load_option, &size);
923 if (size >= sizeof(efi_guid_bootmenu_auto_generated) &&
926 if (opt[i].size == tmp &&
971 * @buf_size: buffer size
980 efi_uintn_t size;
986 size = 0;
989 NULL, &size, NULL, NULL);
1015 efi_uintn_t last, size, new_size;
1018 bootorder = efi_get_var(u"BootOrder", &efi_global_variable_guid, &size);
1019 last = size / sizeof(u16);
1020 new_size = size + sizeof(u16);
1026 memcpy(new_bootorder, bootorder, size);
1056 efi_uintn_t num, size;
1068 bootorder = efi_get_var(u"BootOrder", &efi_global_variable_guid, &size);
1072 num = size / sizeof(u16);
1078 size -= sizeof(u16);
1083 size, bootorder, false);
1162 opt[i].size, opt[i].lo, false);