| /openbmc/qemu/fsdev/ |
| H A D | 9p-iov-marshal.c | 60 static ssize_t v9fs_unpack(void *dst, struct iovec *out_sg, int out_num, in v9fs_unpack() argument 63 return v9fs_packunpack(dst, out_sg, out_num, offset, size, 0); in v9fs_unpack() 72 ssize_t v9fs_iov_vunmarshal(struct iovec *out_sg, int out_num, size_t offset, in v9fs_iov_vunmarshal() argument 83 copied = v9fs_unpack(valp, out_sg, out_num, offset, sizeof(*valp)); in v9fs_iov_vunmarshal() 89 copied = v9fs_unpack(&val, out_sg, out_num, offset, sizeof(val)); in v9fs_iov_vunmarshal() 103 copied = v9fs_unpack(&val, out_sg, out_num, offset, sizeof(val)); in v9fs_iov_vunmarshal() 117 copied = v9fs_unpack(&val, out_sg, out_num, offset, sizeof(val)); in v9fs_iov_vunmarshal() 130 copied = v9fs_iov_unmarshal(out_sg, out_num, offset, bswap, in v9fs_iov_vunmarshal() 135 copied = v9fs_unpack(str->data, out_sg, out_num, offset, in v9fs_iov_vunmarshal() 147 copied = v9fs_iov_unmarshal(out_sg, out_num, offset, bswap, in v9fs_iov_vunmarshal() [all …]
|
| H A D | 9p-iov-marshal.h | 9 ssize_t v9fs_iov_unmarshal(struct iovec *out_sg, int out_num, size_t offset, 14 ssize_t v9fs_iov_vunmarshal(struct iovec *out_sg, int out_num, size_t offset,
|
| /openbmc/qemu/hw/9pfs/ |
| H A D | virtio-9p-device.c | 69 len = iov_to_buf(elem->out_sg, elem->out_num, 0, &out, 7); in handle_9p_output() 146 ret = v9fs_iov_vunmarshal(elem->out_sg, elem->out_num, offset, 1, fmt, ap); in virtio_pdu_vunmarshal() 181 size_t buf_size = iov_size(elem->out_sg, elem->out_num); in virtio_init_out_iov_from_pdu() 191 *piov = elem->out_sg; in virtio_init_out_iov_from_pdu()
|
| /openbmc/qemu/tests/ |
| H A D | vhost-user-bridge.c | 185 struct iovec sg[VIRTQUEUE_MAX_SIZE], *out_sg; in vubr_handle_tx() local 193 out_sg = elem->out_sg; in vubr_handle_tx() 199 iov_hexdump(out_sg, out_num, stderr, "TX:", 1024); in vubr_handle_tx() 204 out_sg, out_num, in vubr_handle_tx() 207 out_sg = sg; in vubr_handle_tx() 213 .msg_iov = out_sg, in vubr_handle_tx()
|
| /openbmc/qemu/hw/virtio/ |
| H A D | vhost-shadow-virtqueue.c | 193 const struct iovec *out_sg, size_t out_num, in vhost_svq_add_split() argument 212 ok = vhost_svq_vring_write_descs(svq, sgs, out_sg, out_num, out_addr, in vhost_svq_add_split() 270 int vhost_svq_add(VhostShadowVirtqueue *svq, const struct iovec *out_sg, in vhost_svq_add() argument 283 ok = vhost_svq_add_split(svq, out_sg, out_num, out_addr, in_sg, in_num, in vhost_svq_add() 300 return vhost_svq_add(svq, elem->out_sg, elem->out_num, elem->out_addr, in vhost_svq_add_element()
|
| H A D | vhost-shadow-virtqueue.h | 120 int vhost_svq_add(VhostShadowVirtqueue *svq, const struct iovec *out_sg,
|
| H A D | virtio-nsm.c | 1554 sz = iov_size(out_elem->out_sg, out_elem->out_num); in handle_input() 1573 req.iov_len = iov_to_buf(out_elem->out_sg, out_elem->out_num, 0, in handle_input()
|
| H A D | virtio-crypto.c | 369 out_iov_copy = g_memdup2(elem->out_sg, sizeof(out_iov[0]) * out_num); in virtio_crypto_handle_ctrl() 842 out_iov_copy = g_memdup2(elem->out_sg, sizeof(out_iov[0]) * out_num); in virtio_crypto_handle_request()
|
| H A D | virtio-iommu.c | 1017 iov_size(elem->out_sg, elem->out_num) < sizeof(head)) { in virtio_iommu_handle_command() 1025 iov = elem->out_sg; in virtio_iommu_handle_command()
|
| /openbmc/qemu/contrib/vhost-user-scsi/ |
| H A D | vhost-user-scsi.c | 265 if (elem->out_sg[0].iov_len < sizeof(VirtIOSCSICmdReq)) { in vus_proc_req() 270 req = (VirtIOSCSICmdReq *)elem->out_sg[0].iov_base; in vus_proc_req() 280 req, &elem->out_sg[1], elem->out_num - 1, in vus_proc_req()
|
| /openbmc/qemu/subprojects/libvduse/ |
| H A D | libvduse.h | 46 struct iovec *out_sg; member
|
| H A D | libvduse.c | 632 size_t out_sg_end = out_sg_ofs + out_num * sizeof(elem->out_sg[0]); in vduse_queue_alloc_element() 642 elem->out_sg = (void *)elem + out_sg_ofs; in vduse_queue_alloc_element() 731 elem->out_sg[i] = iov[i]; in vduse_queue_map_desc()
|
| /openbmc/qemu/contrib/vhost-user-blk/ |
| H A D | vhost-user-blk.c | 257 if (elem->out_sg[0].iov_len < sizeof(struct virtio_blk_outhdr)) { in vub_virtio_process_req() 261 req->out = (struct virtio_blk_outhdr *)elem->out_sg[0].iov_base; in vub_virtio_process_req() 279 ret = vub_writev(req, &elem->out_sg[1], out_num); in vub_virtio_process_req() 308 rc = vub_discard_write_zeroes(req, &elem->out_sg[1], out_num, type); in vub_virtio_process_req()
|
| /openbmc/qemu/net/ |
| H A D | vhost-vdpa.c | 647 const struct iovec *out_sg, size_t out_num, in vhost_vdpa_net_cvq_add() argument 653 r = vhost_svq_add(svq, out_sg, out_num, NULL, in_sg, in_num, NULL, NULL); in vhost_vdpa_net_cvq_add() 1357 r = iov_to_buf(elem->out_sg, elem->out_num, cursor, in vhost_vdpa_net_excessive_mac_filter_cvq_add() 1370 r = iov_to_buf(elem->out_sg, elem->out_num, cursor, in vhost_vdpa_net_excessive_mac_filter_cvq_add() 1383 if (iov_size(elem->out_sg, elem->out_num) != cursor) { in vhost_vdpa_net_excessive_mac_filter_cvq_add() 1508 out.iov_len = iov_to_buf(elem->out_sg, elem->out_num, 0, in vhost_vdpa_net_handle_ctrl_avail() 1522 iov_size(elem->out_sg, elem->out_num) > out.iov_len)) { in vhost_vdpa_net_handle_ctrl_avail()
|
| /openbmc/qemu/contrib/vhost-user-gpu/ |
| H A D | vugpu.h | 168 iov_to_buf(cmd->elem.out_sg, cmd->elem.out_num, 0, \
|
| H A D | vhost-user-gpu.c | 496 s = iov_to_buf(cmd->elem.out_sg, cmd->elem.out_num, in vg_create_mapping_iov() 922 len = iov_to_buf(cmd->elem.out_sg, cmd->elem.out_num, in vg_handle_ctrl() 1029 len = iov_to_buf(elem->out_sg, elem->out_num, in vg_handle_cursor()
|
| H A D | virgl.c | 206 s = iov_to_buf(cmd->elem.out_sg, cmd->elem.out_num, in virgl_cmd_submit_3d()
|
| /openbmc/qemu/hw/char/ |
| H A D | virtio-serial-bus.c | 187 buf_size = port->elem->out_sg[i].iov_len - port->iov_offset; in do_flush_queued_data() 189 port->elem->out_sg[i].iov_base in do_flush_queued_data() 477 cur_len = iov_size(elem->out_sg, elem->out_num); in control_out() 488 iov_to_buf(elem->out_sg, elem->out_num, 0, buf, cur_len); in control_out()
|
| /openbmc/qemu/block/export/ |
| H A D | vhost-user-blk-server.c | 65 struct iovec *out_iov = elem->out_sg; in vu_blk_virtio_process_req()
|
| H A D | vduse-blk.c | 79 struct iovec *out_iov = elem->out_sg; in vduse_blk_virtio_process_req()
|
| /openbmc/qemu/hw/input/ |
| H A D | virtio-input.c | 92 len = iov_to_buf(elem->out_sg, elem->out_num, in virtio_input_handle_sts()
|
| /openbmc/qemu/subprojects/libvhost-user/ |
| H A D | libvhost-user.h | 457 struct iovec *out_sg; member
|
| H A D | libvhost-user.c | 2770 size_t out_sg_end = out_sg_ofs + out_num * sizeof(elem->out_sg[0]); in virtqueue_alloc_element() 2781 elem->out_sg = (void *)elem + out_sg_ofs; in virtqueue_alloc_element() 2869 elem->out_sg[i] = iov[i]; in vu_queue_map_desc()
|
| /openbmc/qemu/contrib/vhost-user-input/ |
| H A D | main.c | 154 len = iov_to_buf(elem->out_sg, elem->out_num, in vi_handle_sts()
|
| /openbmc/qemu/hw/display/ |
| H A D | virtio-gpu-rutabaga.c | 355 s = iov_to_buf(cmd->elem.out_sg, cmd->elem.out_num, in rutabaga_cmd_submit_3d()
|