Lines Matching refs:qiov

812                             QEMUIOVector *qiov, size_t qiov_offset,  in bdrv_check_qiov_request()  argument
848 if (!qiov) { in bdrv_check_qiov_request()
856 if (qiov_offset > qiov->size) { in bdrv_check_qiov_request()
858 qiov_offset, qiov->size); in bdrv_check_qiov_request()
862 if (bytes > qiov->size - qiov_offset) { in bdrv_check_qiov_request()
864 "vector size(%zu)", bytes, qiov_offset, qiov->size); in bdrv_check_qiov_request()
877 QEMUIOVector *qiov, size_t qiov_offset) in bdrv_check_request32() argument
879 int ret = bdrv_check_qiov_request(offset, bytes, qiov, qiov_offset, NULL); in bdrv_check_request32()
975 QEMUIOVector *qiov, size_t qiov_offset, int flags) in bdrv_driver_preadv() argument
984 bdrv_check_qiov_request(offset, bytes, qiov, qiov_offset, &error_abort); in bdrv_driver_preadv()
992 return drv->bdrv_co_preadv_part(bs, offset, bytes, qiov, qiov_offset, in bdrv_driver_preadv()
996 if (qiov_offset > 0 || bytes != qiov->size) { in bdrv_driver_preadv()
997 qemu_iovec_init_slice(&local_qiov, qiov, qiov_offset, bytes); in bdrv_driver_preadv()
998 qiov = &local_qiov; in bdrv_driver_preadv()
1002 ret = drv->bdrv_co_preadv(bs, offset, bytes, qiov, flags); in bdrv_driver_preadv()
1012 acb = drv->bdrv_aio_preadv(bs, offset, bytes, qiov, flags, in bdrv_driver_preadv()
1032 ret = drv->bdrv_co_readv(bs, sector_num, nb_sectors, qiov); in bdrv_driver_preadv()
1035 if (qiov == &local_qiov) { in bdrv_driver_preadv()
1044 QEMUIOVector *qiov, size_t qiov_offset, in bdrv_driver_pwritev() argument
1055 bdrv_check_qiov_request(offset, bytes, qiov, qiov_offset, &error_abort); in bdrv_driver_pwritev()
1070 ret = drv->bdrv_co_pwritev_part(bs, offset, bytes, qiov, qiov_offset, in bdrv_driver_pwritev()
1075 if (qiov_offset > 0 || bytes != qiov->size) { in bdrv_driver_pwritev()
1076 qemu_iovec_init_slice(&local_qiov, qiov, qiov_offset, bytes); in bdrv_driver_pwritev()
1077 qiov = &local_qiov; in bdrv_driver_pwritev()
1081 ret = drv->bdrv_co_pwritev(bs, offset, bytes, qiov, flags); in bdrv_driver_pwritev()
1091 acb = drv->bdrv_aio_pwritev(bs, offset, bytes, qiov, flags, in bdrv_driver_pwritev()
1110 ret = drv->bdrv_co_writev(bs, sector_num, nb_sectors, qiov, flags); in bdrv_driver_pwritev()
1117 if (qiov == &local_qiov) { in bdrv_driver_pwritev()
1126 int64_t bytes, QEMUIOVector *qiov, in bdrv_driver_pwritev_compressed() argument
1134 bdrv_check_qiov_request(offset, bytes, qiov, qiov_offset, &error_abort); in bdrv_driver_pwritev_compressed()
1146 qiov, qiov_offset); in bdrv_driver_pwritev_compressed()
1150 return drv->bdrv_co_pwritev_compressed(bs, offset, bytes, qiov); in bdrv_driver_pwritev_compressed()
1153 qemu_iovec_init_slice(&local_qiov, qiov, qiov_offset, bytes); in bdrv_driver_pwritev_compressed()
1162 QEMUIOVector *qiov, size_t qiov_offset, int flags) in bdrv_co_do_copy_on_readv() argument
1183 bdrv_check_qiov_request(offset, bytes, qiov, qiov_offset, &error_abort); in bdrv_co_do_copy_on_readv()
1293 qemu_iovec_from_buf(qiov, qiov_offset + progress, in bdrv_co_do_copy_on_readv()
1301 qiov, qiov_offset + progress, 0); in bdrv_co_do_copy_on_readv()
1327 QEMUIOVector *qiov, size_t qiov_offset, int flags) in bdrv_aligned_preadv() argument
1335 bdrv_check_qiov_request(offset, bytes, qiov, qiov_offset, &error_abort); in bdrv_aligned_preadv()
1377 qiov, qiov_offset, flags); in bdrv_aligned_preadv()
1395 ret = bdrv_driver_preadv(bs, offset, bytes, qiov, qiov_offset, flags); in bdrv_aligned_preadv()
1407 num, qiov, in bdrv_aligned_preadv()
1413 ret = qemu_iovec_memset(qiov, qiov_offset + bytes - bytes_remaining, in bdrv_aligned_preadv()
1705 QEMUIOVector **qiov, size_t *qiov_offset, in bdrv_pad_request() argument
1717 ret = bdrv_check_request32(*offset, *bytes, *qiov, *qiov_offset); in bdrv_pad_request()
1733 if (*qiov) { in bdrv_pad_request()
1734 sliced_iov = qemu_iovec_slice(*qiov, *qiov_offset, *bytes, in bdrv_pad_request()
1746 *qiov = &pad->local_qiov; in bdrv_pad_request()
1764 int64_t offset, int64_t bytes, QEMUIOVector *qiov, in bdrv_co_preadv() argument
1768 return bdrv_co_preadv_part(child, offset, bytes, qiov, 0, flags); in bdrv_co_preadv()
1773 QEMUIOVector *qiov, size_t qiov_offset, in bdrv_co_preadv_part() argument
1788 ret = bdrv_check_request32(offset, bytes, qiov, qiov_offset); in bdrv_co_preadv_part()
1812 ret = bdrv_pad_request(bs, &qiov, &qiov_offset, &offset, &bytes, false, in bdrv_co_preadv_part()
1821 qiov, qiov_offset, flags); in bdrv_co_preadv_part()
1836 QEMUIOVector qiov; in bdrv_co_do_pwrite_zeroes() local
1935 qemu_iovec_init_buf(&qiov, buf, num); in bdrv_co_do_pwrite_zeroes()
1937 ret = bdrv_driver_pwritev(bs, offset, num, &qiov, 0, write_flags); in bdrv_co_do_pwrite_zeroes()
2061 QEMUIOVector *qiov, size_t qiov_offset, in bdrv_aligned_pwritev() argument
2071 bdrv_check_qiov_request(offset, bytes, qiov, qiov_offset, &error_abort); in bdrv_aligned_pwritev()
2091 qemu_iovec_is_zero(qiov, qiov_offset, bytes)) { in bdrv_aligned_pwritev()
2108 qiov, qiov_offset); in bdrv_aligned_pwritev()
2111 ret = bdrv_driver_pwritev(bs, offset, bytes, qiov, qiov_offset, flags); in bdrv_aligned_pwritev()
2127 num, qiov, in bdrv_aligned_pwritev()
2217 int64_t offset, int64_t bytes, QEMUIOVector *qiov, in bdrv_co_pwritev() argument
2221 return bdrv_co_pwritev_part(child, offset, bytes, qiov, 0, flags); in bdrv_co_pwritev()
2225 int64_t offset, int64_t bytes, QEMUIOVector *qiov, size_t qiov_offset, in bdrv_co_pwritev_part() argument
2243 ret = bdrv_check_qiov_request(offset, bytes, qiov, qiov_offset, NULL); in bdrv_co_pwritev_part()
2245 ret = bdrv_check_request32(offset, bytes, qiov, qiov_offset); in bdrv_co_pwritev_part()
2276 ret = bdrv_pad_request(bs, &qiov, &qiov_offset, &offset, &bytes, true, in bdrv_co_pwritev_part()
2305 qiov, qiov_offset, flags); in bdrv_co_pwritev_part()
2830 bdrv_co_readv_vmstate(BlockDriverState *bs, QEMUIOVector *qiov, int64_t pos) in bdrv_co_readv_vmstate() argument
2838 ret = bdrv_check_qiov_request(pos, qiov->size, qiov, 0, NULL); in bdrv_co_readv_vmstate()
2850 ret = drv->bdrv_co_load_vmstate(bs, qiov, pos); in bdrv_co_readv_vmstate()
2852 ret = bdrv_co_readv_vmstate(child_bs, qiov, pos); in bdrv_co_readv_vmstate()
2863 bdrv_co_writev_vmstate(BlockDriverState *bs, QEMUIOVector *qiov, int64_t pos) in bdrv_co_writev_vmstate() argument
2871 ret = bdrv_check_qiov_request(pos, qiov->size, qiov, 0, NULL); in bdrv_co_writev_vmstate()
2883 ret = drv->bdrv_co_save_vmstate(bs, qiov, pos); in bdrv_co_writev_vmstate()
2885 ret = bdrv_co_writev_vmstate(child_bs, qiov, pos); in bdrv_co_writev_vmstate()
2898 QEMUIOVector qiov = QEMU_IOVEC_INIT_BUF(qiov, buf, size); in bdrv_save_vmstate() local
2899 int ret = bdrv_writev_vmstate(bs, &qiov, pos); in bdrv_save_vmstate()
2908 QEMUIOVector qiov = QEMU_IOVEC_INIT_BUF(qiov, buf, size); in bdrv_load_vmstate() local
2909 int ret = bdrv_readv_vmstate(bs, &qiov, pos); in bdrv_load_vmstate()
3266 QEMUIOVector *qiov, in bdrv_co_zone_append() argument
3276 ret = bdrv_check_qiov_request(*offset, qiov->size, qiov, 0, NULL); in bdrv_co_zone_append()
3286 co.ret = drv->bdrv_co_zone_append(bs, offset, qiov, flags); in bdrv_co_zone_append()
3684 QEMUIOVector *qiov, size_t qiov_offset) in bdrv_co_preadv_snapshot() argument
3701 ret = drv->bdrv_co_preadv_snapshot(bs, offset, bytes, qiov, qiov_offset); in bdrv_co_preadv_snapshot()