Lines Matching refs:nb_sectors
297 int nb_sectors, int *pnum) in qcow_is_allocated() argument
302 *pnum = nb_sectors; in qcow_is_allocated()
315 int64_t sector_num, uint8_t *buf, int nb_sectors) in qcow2_backing_read1() argument
318 if ((sector_num + nb_sectors) <= bs->total_sectors) in qcow2_backing_read1()
319 return nb_sectors; in qcow2_backing_read1()
324 memset(buf + n1 * 512, 0, 512 * (nb_sectors - n1)); in qcow2_backing_read1()
493 int64_t sector_num, QEMUIOVector *qiov, int nb_sectors, in qcow_aio_setup() argument
511 acb->remaining_sectors = nb_sectors; in qcow_aio_setup()
520 int64_t sector_num, QEMUIOVector *qiov, int nb_sectors, in qcow_aio_readv() argument
525 acb = qcow_aio_setup(bs, sector_num, qiov, nb_sectors, cb, opaque, 0); in qcow_aio_readv()
645 int64_t sector_num, QEMUIOVector *qiov, int nb_sectors, in qcow_aio_writev() argument
653 acb = qcow_aio_setup(bs, sector_num, qiov, nb_sectors, cb, opaque, 1); in qcow_aio_writev()
794 uint64_t nb_sectors; in preallocate() local
800 nb_sectors = bdrv_getlength(bs) >> 9; in preallocate()
805 while (nb_sectors) { in preallocate()
806 num = MIN(nb_sectors, INT_MAX >> 9); in preallocate()
824 nb_sectors -= num; in preallocate()
1150 const uint8_t *buf, int nb_sectors) in qcow_write_compressed() argument
1158 if (nb_sectors == 0) { in qcow_write_compressed()
1167 if (nb_sectors != s->cluster_sectors) in qcow_write_compressed()