Lines Matching refs:size
207 static struct udevice *mount_image(u16 *lo_label, ulong addr, ulong size) in mount_image() argument
220 err = blkmap_create_ramdisk(label, addr, size, &bm_dev); in mount_image()
351 static efi_status_t prepare_loaded_image(u16 *label, ulong addr, ulong size, in prepare_loaded_image() argument
359 ramdisk_blk = mount_image(label, addr, size); in prepare_loaded_image()
377 pages = efi_size_in_pages(size + (addr & EFI_PAGE_MASK)); in prepare_loaded_image()
644 efi_uintn_t size; in try_load_entry() local
652 load_option = efi_get_var(varname, &efi_global_variable_guid, &size); in try_load_entry()
656 ret = efi_deserialize_load_option(&lo, load_option, &size); in try_load_entry()
705 if (size >= sizeof(efi_guid_t) && in try_load_entry()
707 size = 0; in try_load_entry()
710 if (size) { in try_load_entry()
711 *load_options = malloc(size); in try_load_entry()
716 memcpy(*load_options, lo.optional_data, size); in try_load_entry()
717 ret = efi_set_load_options(*handle, size, *load_options); in try_load_entry()
746 efi_uintn_t size; in efi_bootmgr_load() local
754 size = sizeof(bootnext); in efi_bootmgr_load()
757 NULL, &size, &bootnext, NULL); in efi_bootmgr_load()
760 if (ret == EFI_BUFFER_TOO_SMALL || size != sizeof(u16)) in efi_bootmgr_load()
770 if (size == sizeof(u16)) { in efi_bootmgr_load()
784 bootorder = efi_get_var(u"BootOrder", &efi_global_variable_guid, &size); in efi_bootmgr_load()
791 num = size / sizeof(uint16_t); in efi_bootmgr_load()
877 opt[num].size = efi_serialize_load_option(&lo, (u8 **)&opt[num].lo); in efi_bootmgr_enumerate_boot_options()
878 if (!opt[num].size) { in efi_bootmgr_enumerate_boot_options()
883 optional_data = (char *)opt[num].lo + (opt[num].size - u16_strsize(u"1234567")); in efi_bootmgr_enumerate_boot_options()
907 efi_uintn_t size; in efi_bootmgr_delete_invalid_boot_option() local
945 load_option = efi_get_var(varname, &efi_global_variable_guid, &size); in efi_bootmgr_delete_invalid_boot_option()
949 tmp = size; in efi_bootmgr_delete_invalid_boot_option()
950 ret = efi_deserialize_load_option(&lo, load_option, &size); in efi_bootmgr_delete_invalid_boot_option()
954 if (size >= sizeof(efi_guid_bootmenu_auto_generated) && in efi_bootmgr_delete_invalid_boot_option()
957 if (opt[i].size == tmp && in efi_bootmgr_delete_invalid_boot_option()
1011 efi_uintn_t size; in efi_bootmgr_get_unused_bootoption() local
1017 size = 0; in efi_bootmgr_get_unused_bootoption()
1020 NULL, &size, NULL, NULL); in efi_bootmgr_get_unused_bootoption()
1046 efi_uintn_t last, size, new_size; in efi_bootmgr_append_bootorder() local
1049 bootorder = efi_get_var(u"BootOrder", &efi_global_variable_guid, &size); in efi_bootmgr_append_bootorder()
1050 last = size / sizeof(u16); in efi_bootmgr_append_bootorder()
1051 new_size = size + sizeof(u16); in efi_bootmgr_append_bootorder()
1057 memcpy(new_bootorder, bootorder, size); in efi_bootmgr_append_bootorder()
1087 efi_uintn_t num, size; in efi_bootmgr_delete_boot_option() local
1099 bootorder = efi_get_var(u"BootOrder", &efi_global_variable_guid, &size); in efi_bootmgr_delete_boot_option()
1103 num = size / sizeof(u16); in efi_bootmgr_delete_boot_option()
1109 size -= sizeof(u16); in efi_bootmgr_delete_boot_option()
1114 size, bootorder, false); in efi_bootmgr_delete_boot_option()
1193 opt[i].size, opt[i].lo, false); in efi_bootmgr_update_media_device_boot_option()