Home
last modified time | relevance | path

Searched refs:real_size (Results 1 – 3 of 3) sorted by relevance

/qemu/block/
H A Draw-format.c102 int64_t real_size = 0; in raw_apply_options() local
104 real_size = bdrv_getlength(bs->file->bs); in raw_apply_options()
105 if (real_size < 0) { in raw_apply_options()
106 error_setg_errno(errp, -real_size, "Could not get image size"); in raw_apply_options()
107 return real_size; in raw_apply_options()
111 if (offset > real_size) { in raw_apply_options()
114 offset, real_size); in raw_apply_options()
118 if (has_size && (real_size - offset) < size) { in raw_apply_options()
122 offset, size, real_size); in raw_apply_options()
136 s->size = has_size ? size : real_size - offset; in raw_apply_options()
/qemu/pc-bios/s390-ccw/
H A Dbootmap.c920 long real_size = iso_get_file_size(bswap32(s.load_rba)); in load_iso_bc_entry() local
922 if (real_size > 0) { in load_iso_bc_entry()
924 blks_to_load = (real_size + ISO_SECTOR_SIZE - 1) / ISO_SECTOR_SIZE; in load_iso_bc_entry()
928 if (real_size < 0) { in load_iso_bc_entry()
/qemu/hw/loongarch/
H A Dvirt.c111 hwaddr real_size = size; in virt_flash_map1() local
115 real_size = blk_getlength(blk); in virt_flash_map1()
116 assert(real_size && real_size <= size); in virt_flash_map1()
119 assert(QEMU_IS_ALIGNED(real_size, VIRT_FLASH_SECTOR_SIZE)); in virt_flash_map1()
120 assert(real_size / VIRT_FLASH_SECTOR_SIZE <= UINT32_MAX); in virt_flash_map1()
122 qdev_prop_set_uint32(dev, "num-blocks", real_size / VIRT_FLASH_SECTOR_SIZE); in virt_flash_map1()