Lines Matching refs:nb_sectors
223 int nb_sectors, int enc, in encrypt_sectors() argument
232 for(i = 0; i < nb_sectors; i++) { in encrypt_sectors()
383 int nb_sectors, int *pnum) in qcow_is_allocated() argument
392 if (n > nb_sectors) in qcow_is_allocated()
393 n = nb_sectors; in qcow_is_allocated()
449 uint8_t *buf, int nb_sectors)
455 while (nb_sectors > 0) {
459 if (n > nb_sectors)
460 n = nb_sectors;
483 nb_sectors -= n;
497 int nb_sectors; member
520 int64_t sector_num, QEMUIOVector *qiov, int nb_sectors, in qcow_aio_setup() argument
538 acb->nb_sectors = nb_sectors; in qcow_aio_setup()
569 acb->nb_sectors -= acb->n; in qcow_aio_read_cb()
573 if (acb->nb_sectors == 0) { in qcow_aio_read_cb()
584 if (acb->n > acb->nb_sectors) in qcow_aio_read_cb()
585 acb->n = acb->nb_sectors; in qcow_aio_read_cb()
636 int64_t sector_num, QEMUIOVector *qiov, int nb_sectors, in qcow_aio_readv() argument
641 acb = qcow_aio_setup(bs, sector_num, qiov, nb_sectors, cb, opaque, 0); in qcow_aio_readv()
663 acb->nb_sectors -= acb->n; in qcow_aio_write_cb()
667 if (acb->nb_sectors == 0) { in qcow_aio_write_cb()
675 if (acb->n > acb->nb_sectors) in qcow_aio_write_cb()
676 acb->n = acb->nb_sectors; in qcow_aio_write_cb()
718 int64_t sector_num, QEMUIOVector *qiov, int nb_sectors, in qcow_aio_writev() argument
726 acb = qcow_aio_setup(bs, sector_num, qiov, nb_sectors, cb, opaque, 0); in qcow_aio_writev()
840 const uint8_t *buf, int nb_sectors) in qcow_write_compressed() argument
848 if (nb_sectors != s->cluster_sectors) in qcow_write_compressed()