Home
last modified time | relevance | path

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

/external/qemu/util/
Diov.c261 void qemu_iovec_init(QEMUIOVector *qiov, int alloc_hint) in qemu_iovec_init() argument
263 qiov->iov = g_malloc(alloc_hint * sizeof(struct iovec)); in qemu_iovec_init()
264 qiov->niov = 0; in qemu_iovec_init()
265 qiov->nalloc = alloc_hint; in qemu_iovec_init()
266 qiov->size = 0; in qemu_iovec_init()
269 void qemu_iovec_init_external(QEMUIOVector *qiov, struct iovec *iov, int niov) in qemu_iovec_init_external() argument
273 qiov->iov = iov; in qemu_iovec_init_external()
274 qiov->niov = niov; in qemu_iovec_init_external()
275 qiov->nalloc = -1; in qemu_iovec_init_external()
276 qiov->size = 0; in qemu_iovec_init_external()
[all …]
/external/qemu/block/
Draw.c92 int64_t sector_num, QEMUIOVector *qiov, int nb_sectors, in raw_aio_readv() argument
95 return bdrv_aio_readv(bs->file, sector_num, qiov, nb_sectors, cb, opaque); in raw_aio_readv()
102 QEMUIOVector qiov; member
115 qemu_iovec_destroy(&b->qiov); in raw_aio_writev_scrubbed()
120 int64_t sector_num, QEMUIOVector *qiov, int nb_sectors, in raw_aio_writev() argument
128 for (i = 0; i < qiov->niov; i++) { in raw_aio_writev()
129 if (qiov->iov[i].iov_len) { in raw_aio_writev()
130 assert(qiov->iov[i].iov_len >= 512); in raw_aio_writev()
136 first_buf = qiov->iov[first_buf_index].iov_base; in raw_aio_writev()
154 qemu_iovec_init(&b->qiov, qiov->nalloc); in raw_aio_writev()
[all …]
Draw-posix-aio.h31 int64_t sector_num, QEMUIOVector *qiov, int nb_sectors,
40 int64_t sector_num, QEMUIOVector *qiov, int nb_sectors,
Dqcow2.c331 QEMUIOVector *qiov; member
484 if (acb->qiov->niov > 1) { in qcow_aio_read_cb()
485 qemu_iovec_from_buf(acb->qiov, 0, acb->orig_buf, acb->qiov->size); in qcow_aio_read_cb()
493 int64_t sector_num, QEMUIOVector *qiov, int nb_sectors, in qcow_aio_setup() argument
503 acb->qiov = qiov; in qcow_aio_setup()
504 if (qiov->niov > 1) { in qcow_aio_setup()
505 acb->buf = acb->orig_buf = qemu_blockalign(bs, qiov->size); in qcow_aio_setup()
507 qemu_iovec_to_buf(qiov, 0, acb->buf, qiov->size); in qcow_aio_setup()
509 acb->buf = (uint8_t *)qiov->iov->iov_base; in qcow_aio_setup()
520 int64_t sector_num, QEMUIOVector *qiov, int nb_sectors, in qcow_aio_readv() argument
[all …]
Draw-posix.c489 static int qiov_is_aligned(QEMUIOVector *qiov) in qiov_is_aligned() argument
493 for (i = 0; i < qiov->niov; i++) { in qiov_is_aligned()
494 if ((uintptr_t) qiov->iov[i].iov_base % BDRV_SECTOR_SIZE) { in qiov_is_aligned()
503 int64_t sector_num, QEMUIOVector *qiov, int nb_sectors, in raw_aio_submit() argument
517 if (!qiov_is_aligned(qiov)) { in raw_aio_submit()
521 return laio_submit(bs, s->aio_ctx, s->fd, sector_num, qiov, in raw_aio_submit()
527 return paio_submit(bs, s->fd, sector_num, qiov, nb_sectors, in raw_aio_submit()
532 int64_t sector_num, QEMUIOVector *qiov, int nb_sectors, in raw_aio_readv() argument
535 return raw_aio_submit(bs, sector_num, qiov, nb_sectors, in raw_aio_readv()
540 int64_t sector_num, QEMUIOVector *qiov, int nb_sectors, in raw_aio_writev() argument
[all …]
/external/qemu/
Dblock.c48 int64_t sector_num, QEMUIOVector *qiov, int nb_sectors,
51 int64_t sector_num, QEMUIOVector *qiov, int nb_sectors,
1980 QEMUIOVector *qiov, int nb_sectors, in bdrv_aio_readv() argument
1991 ret = drv->bdrv_aio_readv(bs, sector_num, qiov, nb_sectors, in bdrv_aio_readv()
2004 QEMUIOVector *qiov, int nb_sectors, in bdrv_aio_writev() argument
2021 ret = drv->bdrv_aio_writev(bs, sector_num, qiov, nb_sectors, in bdrv_aio_writev()
2128 if (reqs[outidx].qiov->niov + reqs[i].qiov->niov + 1 > IOV_MAX) { in multiwrite_merge()
2134 QEMUIOVector *qiov = g_malloc0(sizeof(*qiov)); in multiwrite_merge() local
2135 qemu_iovec_init(qiov, in multiwrite_merge()
2136 reqs[outidx].qiov->niov + reqs[i].qiov->niov + 1); in multiwrite_merge()
[all …]
Dposix-aio-compat.c569 int64_t sector_num, QEMUIOVector *qiov, int nb_sectors, in paio_submit() argument
582 if (qiov) { in paio_submit()
583 acb->aio_iov = qiov->iov; in paio_submit()
584 acb->aio_niov = qiov->niov; in paio_submit()
Dsavevm.c575 QEMUIOVector qiov; in block_writev_buffer() local
577 qemu_iovec_init_external(&qiov, iov, iovcnt); in block_writev_buffer()
578 ret = bdrv_writev_vmstate(opaque, &qiov, pos); in block_writev_buffer()
583 return qiov.size; in block_writev_buffer()
/external/qemu/include/
Dqemu-common.h333 void qemu_iovec_init(QEMUIOVector *qiov, int alloc_hint);
334 void qemu_iovec_init_external(QEMUIOVector *qiov, struct iovec *iov, int niov);
335 void qemu_iovec_add(QEMUIOVector *qiov, void *base, size_t len);
341 void qemu_iovec_destroy(QEMUIOVector *qiov);
342 void qemu_iovec_reset(QEMUIOVector *qiov);
343 size_t qemu_iovec_to_buf(QEMUIOVector *qiov, size_t offset,
345 size_t qemu_iovec_from_buf(QEMUIOVector *qiov, size_t offset,
347 size_t qemu_iovec_memset(QEMUIOVector *qiov, size_t offset,
/external/qemu/include/block/
Dblock_int.h69 int64_t sector_num, QEMUIOVector *qiov, int nb_sectors,
72 int64_t sector_num, QEMUIOVector *qiov, int nb_sectors,
Dblock.h127 QEMUIOVector *qiov; member