Home
last modified time | relevance | path

Searched refs:qiov (Results 1 – 9 of 9) sorted by relevance

/external/qemu/
Dcutils.c136 void qemu_iovec_init(QEMUIOVector *qiov, int alloc_hint) in qemu_iovec_init() argument
138 qiov->iov = qemu_malloc(alloc_hint * sizeof(struct iovec)); in qemu_iovec_init()
139 qiov->niov = 0; in qemu_iovec_init()
140 qiov->nalloc = alloc_hint; in qemu_iovec_init()
141 qiov->size = 0; in qemu_iovec_init()
144 void qemu_iovec_init_external(QEMUIOVector *qiov, struct iovec *iov, int niov) in qemu_iovec_init_external() argument
148 qiov->iov = iov; in qemu_iovec_init_external()
149 qiov->niov = niov; in qemu_iovec_init_external()
150 qiov->nalloc = -1; in qemu_iovec_init_external()
151 qiov->size = 0; in qemu_iovec_init_external()
[all …]
Dqemu-io.c145 static int do_aio_readv(QEMUIOVector *qiov, int64_t offset, int *total) in do_aio_readv() argument
150 acb = bdrv_aio_readv(bs, offset >> 9, qiov, qiov->size >> 9, in do_aio_readv()
158 *total = qiov->size; in do_aio_readv()
162 static int do_aio_writev(QEMUIOVector *qiov, int64_t offset, int *total) in do_aio_writev() argument
167 acb = bdrv_aio_writev(bs, offset >> 9, qiov, qiov->size >> 9, in do_aio_writev()
175 *total = qiov->size; in do_aio_writev()
382 QEMUIOVector qiov; in readv_f() local
441 qemu_iovec_init(&qiov, nr_iov); in readv_f()
453 qemu_iovec_add(&qiov, p, len); in readv_f()
459 cnt = do_aio_readv(&qiov, offset, &total); in readv_f()
[all …]
Dqemu-common.h219 void qemu_iovec_init(QEMUIOVector *qiov, int alloc_hint);
220 void qemu_iovec_init_external(QEMUIOVector *qiov, struct iovec *iov, int niov);
221 void qemu_iovec_add(QEMUIOVector *qiov, void *base, size_t len);
222 void qemu_iovec_destroy(QEMUIOVector *qiov);
223 void qemu_iovec_reset(QEMUIOVector *qiov);
224 void qemu_iovec_to_buffer(QEMUIOVector *qiov, void *buf);
225 void qemu_iovec_from_buffer(QEMUIOVector *qiov, const void *buf, size_t count);
Dblock.c52 int64_t sector_num, QEMUIOVector *qiov, int nb_sectors,
55 int64_t sector_num, QEMUIOVector *qiov, int nb_sectors,
1305 QEMUIOVector *qiov, int nb_sectors, in bdrv_aio_readv() argument
1316 ret = drv->bdrv_aio_readv(bs, sector_num, qiov, nb_sectors, in bdrv_aio_readv()
1329 QEMUIOVector *qiov, int nb_sectors, in bdrv_aio_writev() argument
1342 ret = drv->bdrv_aio_writev(bs, sector_num, qiov, nb_sectors, in bdrv_aio_writev()
1368 QEMUIOVector *qiov; member
1390 qemu_iovec_from_buffer(acb->qiov, acb->bounce, acb->qiov->size); in bdrv_aio_bh_cb()
1399 QEMUIOVector *qiov, in bdrv_aio_rw_vector() argument
1410 acb->qiov = qiov; in bdrv_aio_rw_vector()
[all …]
Dblock_int.h67 int64_t sector_num, QEMUIOVector *qiov, int nb_sectors,
70 int64_t sector_num, QEMUIOVector *qiov, int nb_sectors,
/external/qemu/block/
Dqcow2.c340 QEMUIOVector *qiov; member
483 if (acb->qiov->niov > 1) { in qcow_aio_read_cb()
484 qemu_iovec_from_buffer(acb->qiov, acb->orig_buf, acb->qiov->size); in qcow_aio_read_cb()
492 int64_t sector_num, QEMUIOVector *qiov, int nb_sectors, in qcow_aio_setup() argument
502 acb->qiov = qiov; in qcow_aio_setup()
503 if (qiov->niov > 1) { in qcow_aio_setup()
504 acb->buf = acb->orig_buf = qemu_blockalign(bs, qiov->size); in qcow_aio_setup()
506 qemu_iovec_to_buffer(qiov, acb->buf); in qcow_aio_setup()
508 acb->buf = (uint8_t *)qiov->iov->iov_base; in qcow_aio_setup()
518 int64_t sector_num, QEMUIOVector *qiov, int nb_sectors, in qcow_aio_readv() argument
[all …]
Dqcow.c494 QEMUIOVector *qiov; member
520 int64_t sector_num, QEMUIOVector *qiov, int nb_sectors, in qcow_aio_setup() argument
530 acb->qiov = qiov; in qcow_aio_setup()
531 if (qiov->niov > 1) { in qcow_aio_setup()
532 acb->buf = acb->orig_buf = qemu_blockalign(bs, qiov->size); in qcow_aio_setup()
534 qemu_iovec_to_buffer(qiov, acb->buf); in qcow_aio_setup()
536 acb->buf = (uint8_t *)qiov->iov->iov_base; in qcow_aio_setup()
627 if (acb->qiov->niov > 1) { in qcow_aio_read_cb()
628 qemu_iovec_from_buffer(acb->qiov, acb->orig_buf, acb->qiov->size); in qcow_aio_read_cb()
636 int64_t sector_num, QEMUIOVector *qiov, int nb_sectors, in qcow_aio_readv() argument
[all …]
Draw-posix.c648 QEMUIOVector *qiov, int nb_sectors, in raw_aio_setup() argument
662 acb->aiocb.aio_iov = qiov->iov; in raw_aio_setup()
663 acb->aiocb.aio_niov = qiov->niov; in raw_aio_setup()
682 int64_t sector_num, QEMUIOVector *qiov, int nb_sectors, in raw_aio_readv() argument
687 acb = raw_aio_setup(bs, sector_num, qiov, nb_sectors, cb, opaque); in raw_aio_readv()
698 int64_t sector_num, QEMUIOVector *qiov, int nb_sectors, in raw_aio_writev() argument
703 acb = raw_aio_setup(bs, sector_num, qiov, nb_sectors, cb, opaque); in raw_aio_writev()
/external/qemu/hw/
Dscsi-disk.c56 QEMUIOVector qiov; member
211 qemu_iovec_init_external(&r->qiov, &r->iov, 1); in scsi_read_data()
212 r->aiocb = bdrv_aio_readv(s->bdrv, r->sector, &r->qiov, n, in scsi_read_data()
276 qemu_iovec_init_external(&r->qiov, &r->iov, 1); in scsi_write_request()
277 r->aiocb = bdrv_aio_writev(s->bdrv, r->sector, &r->qiov, n, in scsi_write_request()