Lines Matching refs:nb_sectors
219 int nb_sectors, int enc, in encrypt_sectors() argument
228 for(i = 0; i < nb_sectors; i++) { in encrypt_sectors()
380 int nb_sectors, int *pnum) in qcow_is_allocated() argument
389 if (n > nb_sectors) in qcow_is_allocated()
390 n = nb_sectors; in qcow_is_allocated()
447 uint8_t *buf, int nb_sectors)
453 while (nb_sectors > 0) {
457 if (n > nb_sectors)
458 n = nb_sectors;
481 nb_sectors -= n;
495 int nb_sectors; member
518 int64_t sector_num, QEMUIOVector *qiov, int nb_sectors, in qcow_aio_setup() argument
536 acb->nb_sectors = nb_sectors; in qcow_aio_setup()
567 acb->nb_sectors -= acb->n; in qcow_aio_read_cb()
571 if (acb->nb_sectors == 0) { in qcow_aio_read_cb()
582 if (acb->n > acb->nb_sectors) in qcow_aio_read_cb()
583 acb->n = acb->nb_sectors; in qcow_aio_read_cb()
634 int64_t sector_num, QEMUIOVector *qiov, int nb_sectors, in qcow_aio_readv() argument
639 acb = qcow_aio_setup(bs, sector_num, qiov, nb_sectors, cb, opaque, 0); in qcow_aio_readv()
661 acb->nb_sectors -= acb->n; in qcow_aio_write_cb()
665 if (acb->nb_sectors == 0) { in qcow_aio_write_cb()
673 if (acb->n > acb->nb_sectors) in qcow_aio_write_cb()
674 acb->n = acb->nb_sectors; in qcow_aio_write_cb()
716 int64_t sector_num, QEMUIOVector *qiov, int nb_sectors, in qcow_aio_writev() argument
724 acb = qcow_aio_setup(bs, sector_num, qiov, nb_sectors, cb, opaque, 1); in qcow_aio_writev()
856 const uint8_t *buf, int nb_sectors) in qcow_write_compressed() argument
864 if (nb_sectors != s->cluster_sectors) in qcow_write_compressed()