• Home
  • Raw
  • Download

Lines Matching refs:sector_num

296 static int qcow_is_allocated(BlockDriverState *bs, int64_t sector_num,  in qcow_is_allocated()  argument
305 ret = qcow2_get_cluster_offset(bs, sector_num << 9, pnum, &cluster_offset); 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()
320 if (sector_num >= bs->total_sectors) in qcow2_backing_read1()
323 n1 = bs->total_sectors - sector_num; in qcow2_backing_read1()
330 int64_t sector_num; member
400 qcow2_encrypt_sectors(s, acb->sector_num, acb->buf, acb->buf, in qcow_aio_read_cb()
407 acb->sector_num += acb->cur_nr_sectors; in qcow_aio_read_cb()
418 ret = qcow2_get_cluster_offset(bs, acb->sector_num << 9, in qcow_aio_read_cb()
424 index_in_cluster = acb->sector_num & (s->cluster_sectors - 1); in qcow_aio_read_cb()
429 n1 = qcow2_backing_read1(bs->backing_hd, acb->sector_num, in qcow_aio_read_cb()
436 acb->hd_aiocb = bdrv_aio_readv(bs->backing_hd, acb->sector_num, in qcow_aio_read_cb()
493 int64_t sector_num, QEMUIOVector *qiov, int nb_sectors, in qcow_aio_setup() argument
502 acb->sector_num = sector_num; 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()
575 acb->sector_num += acb->cur_nr_sectors; in qcow_aio_write_cb()
584 index_in_cluster = acb->sector_num & (s->cluster_sectors - 1); in qcow_aio_write_cb()
590 ret = qcow2_alloc_cluster_offset(bs, acb->sector_num << 9, in qcow_aio_write_cb()
612 qcow2_encrypt_sectors(s, acb->sector_num, acb->cluster_data, acb->buf, in qcow_aio_write_cb()
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()
1149 static int qcow_write_compressed(BlockDriverState *bs, int64_t sector_num, in qcow_write_compressed() argument
1199 bdrv_write(bs, sector_num, buf, s->cluster_sectors); in qcow_write_compressed()
1202 sector_num << 9, out_len); in qcow_write_compressed()