Lines Matching refs:BDRV_SECTOR_SIZE
891 uint64_t virtual_disk_size = bs->total_sectors * BDRV_SECTOR_SIZE; in read_cache_sizes()
1530 bs->total_sectors = header.size / BDRV_SECTOR_SIZE; in qcow2_do_open()
2944 total_size = bs->total_sectors * BDRV_SECTOR_SIZE; in qcow2_update_header()
3536 if (!QEMU_IS_ALIGNED(qcow2_opts->size, BDRV_SECTOR_SIZE)) { in qcow2_co_create()
3538 (unsigned) BDRV_SECTOR_SIZE); in qcow2_co_create()
4009 BDRV_SECTOR_SIZE); in qcow2_co_create_opts()
4038 if (offset + bytes > bs->total_sectors * BDRV_SECTOR_SIZE) { in is_zero()
4039 bytes = bs->total_sectors * BDRV_SECTOR_SIZE - offset; in is_zero()
4073 if (offset + bytes == bs->total_sectors * BDRV_SECTOR_SIZE) { in qcow2_co_pwrite_zeroes()
4134 offset + bytes != bs->total_sectors * BDRV_SECTOR_SIZE) { in qcow2_co_pdiscard()
4316 if (!QEMU_IS_ALIGNED(offset, BDRV_SECTOR_SIZE)) { in qcow2_co_truncate()
4318 (unsigned) BDRV_SECTOR_SIZE); in qcow2_co_truncate()
4340 old_length = bs->total_sectors * BDRV_SECTOR_SIZE; in qcow2_co_truncate()
4648 bs->total_sectors = offset / BDRV_SECTOR_SIZE; in qcow2_co_truncate()
5042 end_offset = bs->total_sectors * BDRV_SECTOR_SIZE; in qcow2_make_empty()
5480 s->snapshots[i].disk_size != bs->total_sectors * BDRV_SECTOR_SIZE) { in qcow2_downgrade()