/external/qemu/ |
cutils.c | 137 void qemu_iovec_init(QEMUIOVector *qiov, int alloc_hint) 139 qiov->iov = qemu_malloc(alloc_hint * sizeof(struct iovec)); 140 qiov->niov = 0; 141 qiov->nalloc = alloc_hint; 142 qiov->size = 0; 145 void qemu_iovec_init_external(QEMUIOVector *qiov, struct iovec *iov, int niov) 149 qiov->iov = iov; 150 qiov->niov = niov; 151 qiov->nalloc = -1; 152 qiov->size = 0 [all...] |
qemu-io.c | 128 create_iovec(QEMUIOVector *qiov, char **argv, int nr_iov, int pattern) 162 qemu_iovec_init(qiov, nr_iov); 167 qemu_iovec_add(qiov, p, sizes[i]); 236 static int do_aio_readv(QEMUIOVector *qiov, int64_t offset, int *total) 241 acb = bdrv_aio_readv(bs, offset >> 9, qiov, qiov->size >> 9, 249 *total = qiov->size; 253 static int do_aio_writev(QEMUIOVector *qiov, int64_t offset, int *total) 258 acb = bdrv_aio_writev(bs, offset >> 9, qiov, qiov->size >> 9 539 QEMUIOVector qiov; local 796 QEMUIOVector qiov; local 1006 QEMUIOVector qiov; member in struct:aio_ctx [all...] |
qemu-common.h | 332 void qemu_iovec_init(QEMUIOVector *qiov, int alloc_hint); 333 void qemu_iovec_init_external(QEMUIOVector *qiov, struct iovec *iov, int niov); 334 void qemu_iovec_add(QEMUIOVector *qiov, void *base, size_t len); 338 void qemu_iovec_destroy(QEMUIOVector *qiov); 339 void qemu_iovec_reset(QEMUIOVector *qiov); 340 void qemu_iovec_to_buffer(QEMUIOVector *qiov, void *buf); 341 void qemu_iovec_from_buffer(QEMUIOVector *qiov, const void *buf, size_t count); 342 void qemu_iovec_memset(QEMUIOVector *qiov, int c, size_t count); 343 void qemu_iovec_memset_skip(QEMUIOVector *qiov, int c, size_t count,
|
block.c | 46 int64_t sector_num, QEMUIOVector *qiov, int nb_sectors, 49 int64_t sector_num, QEMUIOVector *qiov, int nb_sectors, 2132 QEMUIOVector *qiov = qemu_mallocz(sizeof(*qiov)); local 2285 QEMUIOVector *qiov; member in struct:BlockDriverAIOCBSync 2416 QEMUIOVector qiov; local 2447 QEMUIOVector qiov; local [all...] |
block_int.h | 69 int64_t sector_num, QEMUIOVector *qiov, int nb_sectors, 72 int64_t sector_num, QEMUIOVector *qiov, int nb_sectors,
|
posix-aio-compat.c | 569 int64_t sector_num, QEMUIOVector *qiov, int nb_sectors, 582 if (qiov) { 583 acb->aio_iov = qiov->iov; 584 acb->aio_niov = qiov->niov;
|
block.h | 127 QEMUIOVector *qiov; member in struct:BlockRequest
|
/external/qemu/block/ |
raw.c | 92 int64_t sector_num, QEMUIOVector *qiov, int nb_sectors, 95 return bdrv_aio_readv(bs->file, sector_num, qiov, nb_sectors, cb, opaque); 102 QEMUIOVector qiov; member in struct:RawScrubberBounce 115 qemu_iovec_destroy(&b->qiov); 120 int64_t sector_num, QEMUIOVector *qiov, int nb_sectors, 128 for (i = 0; i < qiov->niov; i++) { 129 if (qiov->iov[i].iov_len) { 130 assert(qiov->iov[i].iov_len >= 512); 136 first_buf = qiov->iov[first_buf_index].iov_base; 154 qemu_iovec_init(&b->qiov, qiov->nalloc) [all...] |
raw-posix-aio.h | 31 int64_t sector_num, QEMUIOVector *qiov, int nb_sectors, 40 int64_t sector_num, QEMUIOVector *qiov, int nb_sectors,
|
qcow.c | 492 QEMUIOVector *qiov; member in struct:QCowAIOCB 518 int64_t sector_num, QEMUIOVector *qiov, int nb_sectors, 528 acb->qiov = qiov; 529 if (qiov->niov > 1) { 530 acb->buf = acb->orig_buf = qemu_blockalign(bs, qiov->size); 532 qemu_iovec_to_buffer(qiov, acb->buf); 534 acb->buf = (uint8_t *)qiov->iov->iov_base; 625 if (acb->qiov->niov > 1) { 626 qemu_iovec_from_buffer(acb->qiov, acb->orig_buf, acb->qiov->size) [all...] |
qcow2.c | 331 QEMUIOVector *qiov; member in struct:QCowAIOCB 484 if (acb->qiov->niov > 1) { 485 qemu_iovec_from_buffer(acb->qiov, acb->orig_buf, acb->qiov->size); 493 int64_t sector_num, QEMUIOVector *qiov, int nb_sectors, 503 acb->qiov = qiov; 504 if (qiov->niov > 1) { 505 acb->buf = acb->orig_buf = qemu_blockalign(bs, qiov->size); 507 qemu_iovec_to_buffer(qiov, acb->buf) [all...] |
raw-posix.c | 489 static int qiov_is_aligned(QEMUIOVector *qiov) 493 for (i = 0; i < qiov->niov; i++) { 494 if ((uintptr_t) qiov->iov[i].iov_base % BDRV_SECTOR_SIZE) { 503 int64_t sector_num, QEMUIOVector *qiov, int nb_sectors, 517 if (!qiov_is_aligned(qiov)) { 521 return laio_submit(bs, s->aio_ctx, s->fd, sector_num, qiov, 527 return paio_submit(bs, s->fd, sector_num, qiov, nb_sectors, 532 int64_t sector_num, QEMUIOVector *qiov, int nb_sectors, 535 return raw_aio_submit(bs, sector_num, qiov, nb_sectors, 540 int64_t sector_num, QEMUIOVector *qiov, int nb_sectors [all...] |
/external/qemu/hw/ |
scsi-disk.c | 57 QEMUIOVector qiov; member in struct:SCSIRequest 212 qemu_iovec_init_external(&r->qiov, &r->iov, 1); 213 r->aiocb = bdrv_aio_readv(s->bdrv, r->sector, &r->qiov, n, 277 qemu_iovec_init_external(&r->qiov, &r->iov, 1); 278 r->aiocb = bdrv_aio_writev(s->bdrv, r->sector, &r->qiov, n,
|