| /openbmc/u-boot/cmd/mvebu/ |
| H A D | bubt.c | 77 u32 image_size; member 91 int (*write)(size_t image_size); 113 static int mmc_burn_image(size_t image_size) in mmc_burn_image() argument 152 blk_count = image_size / mmc->write_bl_len; in mmc_burn_image() 153 if (image_size % mmc->write_bl_len) in mmc_burn_image() 164 blk_count = image_size / mmc->block_dev.blksz; in mmc_burn_image() 165 if (image_size % mmc->block_dev.blksz) in mmc_burn_image() 224 static int mmc_burn_image(size_t image_size) in mmc_burn_image() argument 244 static int spi_burn_image(size_t image_size) in spi_burn_image() argument 263 erase_bytes = image_size + in spi_burn_image() [all …]
|
| /openbmc/u-boot/arch/arm/lib/ |
| H A D | image.c | 20 uint64_t image_size; /* Effective Image size, LE */ member 34 uint64_t image_size, text_offset; in booti_setup() local 50 if (ih->image_size == 0) { in booti_setup() 52 image_size = 16 << 20; in booti_setup() 55 image_size = le64_to_cpu(ih->image_size); in booti_setup() 59 *size = image_size; in booti_setup()
|
| /openbmc/phosphor-bmc-code-mgmt/bios/ |
| H A D | spi_device.cpp | 92 size_t image_size) in updateDevice() argument 110 success = co_await writeSPIFlash(image, image_size); in updateDevice() 208 size_t image_size) in writeSPIFlash() argument 244 image, image_size); in writeSPIFlash() 256 image, image_size); in writeSPIFlash() 261 co_await SPIDevice::writeSPIFlashDefault(image, image_size); in writeSPIFlash() 273 const uint8_t* image, size_t image_size) const in writeSPIFlashWithFlashrom() 286 const ssize_t bytesWritten = write(fd, image, image_size); in writeSPIFlashWithFlashrom() 292 if (bytesWritten < 0 || static_cast<size_t>(bytesWritten) != image_size) in writeSPIFlashWithFlashrom() 343 const uint8_t* image, size_t image_size) const in writeSPIFlashWithFlashcp() [all …]
|
| H A D | spi_device.hpp | 54 size_t image_size) final; 92 size_t image_size); 103 size_t image_size); 115 const uint8_t* image, size_t image_size) const; 125 const uint8_t* image, size_t image_size) const;
|
| /openbmc/u-boot/lib/libavb/ |
| H A D | avb_descriptor.c | 23 size_t image_size, in avb_descriptor_foreach() argument 43 if (image_size < sizeof(AvbVBMetaImageHeader)) { in avb_descriptor_foreach() 57 image_end = image_data + image_size; in avb_descriptor_foreach() 119 size_t image_size, in avb_descriptor_get_all() argument 125 image_data, image_size, count_descriptors, &num_descriptors); in avb_descriptor_get_all() 133 avb_descriptor_foreach(image_data, image_size, set_descriptors, &data); in avb_descriptor_get_all()
|
| H A D | avb_property_descriptor.c | 89 size_t image_size, in avb_property_lookup() argument 103 image_data, image_size, property_lookup_desc_foreach, &data) == 0) { in avb_property_lookup() 117 size_t image_size, in avb_property_lookup_uint64() argument 127 value = avb_property_lookup(image_data, image_size, key, key_size, NULL); in avb_property_lookup_uint64()
|
| H A D | avb_slot_verify.c | 52 uint64_t image_size, in load_full_partition() argument 64 if (image_size != (size_t)(image_size)) { in load_full_partition() 72 ops, part_name, image_size, out_image_buf, &part_num_read); in load_full_partition() 81 if (part_num_read != image_size) { in load_full_partition() 91 *out_image_buf = avb_malloc(image_size); in load_full_partition() 99 image_size, in load_full_partition() 108 if (part_num_read != image_size) { in load_full_partition() 177 uint64_t image_size; in load_and_verify_hash_partition() local 249 image_size = hash_desc.image_size; in load_and_verify_hash_partition() 258 io_ret = ops->get_size_of_partition(ops, part_name, &image_size); in load_and_verify_hash_partition() [all …]
|
| H A D | avb_property_descriptor.h | 65 size_t image_size, 78 size_t image_size,
|
| H A D | avb_descriptor.h | 85 size_t image_size, 104 size_t image_size,
|
| H A D | avb_hash_descriptor.c | 24 dest->image_size = avb_be64toh(dest->image_size); in avb_hash_descriptor_validate_and_byteswap()
|
| /openbmc/openpower-pnor-code-mgmt/ |
| H A D | generate-ubi | 21 image_size="128" 31 image_size="$2" 95 image_size=$((image_size * 1024)) 149 mk_nor_image "${outfile}" "${image_size}"
|
| /openbmc/qemu/tests/qemu-iotests/ |
| H A D | 028 | 56 image_size=$(( 4 * 1024 * 1024 * 1024 + 3 * 512 )) 59 base_size=$(( image_size - 1024 * 1024 * 1024 )) 80 _make_test_img -b "$TEST_IMG.base" -F $IMGFMT $image_size 120 TEST_IMG="$TEST_IMG.copy" _make_test_img $image_size 148 _make_test_img -b "$TEST_IMG.base" -F $IMGFMT $image_size
|
| H A D | 152 | 48 self.assertEqual(iotests.image_size(test_img), iotests.image_size(target_img), 58 self.assertEqual(iotests.image_size(test_img), iotests.image_size(target_img),
|
| /openbmc/u-boot/cmd/ |
| H A D | booti.c | 25 ulong image_size; in booti_start() local 40 ret = booti_setup(ld, &relocated_addr, &image_size, false); in booti_start() 47 memmove((void *)relocated_addr, (void *)ld, image_size); in booti_start() 51 lmb_reserve(&images->lmb, images->ep, le32_to_cpu(image_size)); in booti_start()
|
| /openbmc/qemu/tests/qemu-iotests/tests/ |
| H A D | mirror-change-copy-mode | 30 image_size = 1 * 1024 * 1024 variable 38 qemu_img('create', '-f', iotests.imgfmt, source_img, str(image_size)) 39 qemu_img('create', '-f', iotests.imgfmt, target_img, str(image_size)) 137 req_size = image_size // reqs 148 assert result[0]['len'] > image_size 174 req_size = image_size // 2 // reqs
|
| H A D | stream-unaligned-prefetch | 27 image_size = 1 * 1024 * 1024 variable 46 base, str(image_size)) 50 top, str(image_size))
|
| H A D | stream-error-on-reset | 27 image_size = 1 * 1024 * 1024 variable 57 qemu_img_create('-f', imgfmt, base, str(image_size)) 59 qemu_img_create('-f', imgfmt, top, str(image_size))
|
| H A D | stream-under-throttle | 29 image_size = 256 * 1024 * 1024 variable 57 qemu_img_create('-f', iotests.imgfmt, base_img, str(image_size)) 59 iotests.imgfmt, top_img, str(image_size))
|
| H A D | luks-detached-header | 36 image_size = 128 * 1024 * 1024 variable 89 "size": image_size, 128 "size": image_size, 154 "-f", "qcow2", detached_payload_qcow2_img, str(image_size) 188 self.assertGreaterEqual(size, image_size)
|
| H A D | mirror-ready-cancel-error | 27 image_size = 1 * 1024 * 1024 variable 34 iotests.qemu_img_create('-f', iotests.imgfmt, source, str(image_size)) 35 iotests.qemu_img_create('-f', iotests.imgfmt, target, str(image_size))
|
| H A D | backing-file-invalidation | 33 image_size = 1 * 1024 * 1024 variable 46 qemu_img_create('-f', iotests.imgfmt, imgs[0], str(image_size)) 57 imgs[i], str(image_size))
|
| /openbmc/u-boot/tools/ |
| H A D | zynqimage.c | 77 uint32_t image_size; /* 0x34 */ member 102 checksum += le32_to_cpu(ptr->image_size); in zynqimage_checksum() 141 static int zynqimage_verify_header(unsigned char *ptr, int image_size, in zynqimage_verify_header() argument 146 if (image_size < sizeof(struct zynq_header)) in zynqimage_verify_header() 174 (unsigned long)le32_to_cpu(zynqhdr->image_size), in zynqimage_print_header() 277 zynqhdr->image_size = cpu_to_le32((uint32_t)sbuf->st_size); in zynqimage_set_header() 278 zynqhdr->image_stored_size = zynqhdr->image_size; in zynqimage_set_header()
|
| H A D | zynqmpimage.c | 81 checksum += le32_to_cpu(ptr->image_size); in zynqmpimage_checksum() 119 static int zynqmpimage_verify_header(unsigned char *ptr, int image_size, in zynqmpimage_verify_header() argument 124 if (image_size < sizeof(struct zynqmp_header)) in zynqmpimage_verify_header() 220 (unsigned long)le32_to_cpu(zynqhdr->image_size), in zynqmpimage_print_header() 350 zynqhdr->image_size -= zynqhdr->pfw_image_length; in zynqmpimage_pmufw() 412 zynqhdr->image_size = cpu_to_le32(params->file_size - in zynqmpimage_set_header() 414 zynqhdr->image_stored_size = zynqhdr->image_size; in zynqmpimage_set_header()
|
| /openbmc/u-boot/drivers/fastboot/ |
| H A D | fb_command.c | 17 static u32 image_size; variable 251 image_size = fastboot_bytes_received; in fastboot_data_complete() 252 env_set_hex("filesize", image_size); in fastboot_data_complete() 270 fastboot_mmc_flash_write(cmd_parameter, fastboot_buf_addr, image_size, in flash() 274 fastboot_nand_flash_write(cmd_parameter, fastboot_buf_addr, image_size, in flash()
|
| /openbmc/qemu/scripts/simplebench/ |
| H A D | bench_write_req.py | 80 image_size = 1024 * 1024 * 1024 84 image_name, str(image_size)] 86 count = int(image_size / cluster_size) - 1
|