Home
last modified time | relevance | path

Searched refs:iov_copy (Results 1 – 16 of 16) sorted by relevance

/openbmc/qemu/net/
H A Dtap.c121 g_autofree struct iovec *iov_copy = NULL; in tap_receive_iov() local
125 iov_copy = g_new(struct iovec, iovcnt + 1); in tap_receive_iov()
126 iov_copy[0].iov_base = &hdr; in tap_receive_iov()
127 iov_copy[0].iov_len = s->host_vnet_hdr_len; in tap_receive_iov()
128 memcpy(&iov_copy[1], iov, iovcnt * sizeof(*iov)); in tap_receive_iov()
129 iovp = iov_copy; in tap_receive_iov()
H A Dnet.c810 g_autofree struct iovec *iov_copy = NULL; in qemu_deliver_packet_iov() local
830 iov_copy = g_new(struct iovec, iovcnt + 1); in qemu_deliver_packet_iov()
831 iov_copy[0].iov_base = &vnet_hdr; in qemu_deliver_packet_iov()
832 iov_copy[0].iov_len = nc->vnet_hdr_len; in qemu_deliver_packet_iov()
833 memcpy(&iov_copy[1], iov, iovcnt * sizeof(*iov)); in qemu_deliver_packet_iov()
834 iov = iov_copy; in qemu_deliver_packet_iov()
H A Ddump.c88 cnt = iov_copy(&dumpiov[1], cnt, iov, cnt, offset, caplen); in dump_receive_iov()
H A Dstream.c97 nlocal_iov = iov_copy(local_iov, 2, iov, 2, s->send_index, remaining); in net_stream_receive()
H A Dvhost-vdpa.c752 iov_copy(&out, 1, out_cursor, 1, 0, cmd_size); in vhost_vdpa_net_load_cmd()
754 iov_copy(&in, 1, in_cursor, 1, 0, sizeof(*s->status)); in vhost_vdpa_net_load_cmd()
/openbmc/qemu/include/qemu/
H A Diov.h116 unsigned iov_copy(struct iovec *dst_iov, unsigned int dst_iov_cnt,
/openbmc/qemu/hw/net/
H A De1000e_core.c1531 size_t iov_copy; in e1000e_write_packet_to_guest() local
1542 iov_copy = MIN(ps_hdr_len - ps_hdr_copied, in e1000e_write_packet_to_guest()
1548 iov_copy); in e1000e_write_packet_to_guest()
1550 copy_size -= iov_copy; in e1000e_write_packet_to_guest()
1551 ps_hdr_copied += iov_copy; in e1000e_write_packet_to_guest()
1553 iov_ofs += iov_copy; in e1000e_write_packet_to_guest()
1571 iov_copy = MIN(copy_size, iov->iov_len - iov_ofs); in e1000e_write_packet_to_guest()
1576 iov_copy); in e1000e_write_packet_to_guest()
1578 copy_size -= iov_copy; in e1000e_write_packet_to_guest()
1579 iov_ofs += iov_copy; in e1000e_write_packet_to_guest()
H A Dnet_rx_pkt.c100 pkt->vec_len = iov_copy(pkt->vec + 1, pkt->vec_len_total - 1, in net_rx_pkt_pull_data()
106 pkt->vec_len = iov_copy(pkt->vec, pkt->vec_len_total, in net_rx_pkt_pull_data()
H A De1000.c953 size_t iov_copy; in e1000_receive_iov() local
960 iov_copy = MIN(copy_size, iov->iov_len - iov_ofs); in e1000_receive_iov()
961 pci_dma_write(d, ba, iov->iov_base + iov_ofs, iov_copy); in e1000_receive_iov()
962 copy_size -= iov_copy; in e1000_receive_iov()
963 ba += iov_copy; in e1000_receive_iov()
964 iov_ofs += iov_copy; in e1000_receive_iov()
H A Digb_core.c1756 size_t iov_copy; in igb_write_header_to_rx_buffers() local
1767 iov_copy = MIN(pdma_st->ps_hdr_len - ps_hdr_copied, in igb_write_header_to_rx_buffers()
1772 iov_copy); in igb_write_header_to_rx_buffers()
1774 *copy_size -= iov_copy; in igb_write_header_to_rx_buffers()
1775 ps_hdr_copied += iov_copy; in igb_write_header_to_rx_buffers()
1777 pdma_st->iov_ofs += iov_copy; in igb_write_header_to_rx_buffers()
1833 size_t iov_copy; in igb_write_payload_to_rx_buffers() local
1837 iov_copy = MIN(*copy_size, pdma_st->iov->iov_len - pdma_st->iov_ofs); in igb_write_payload_to_rx_buffers()
1842 iov_copy); in igb_write_payload_to_rx_buffers()
1844 *copy_size -= iov_copy; in igb_write_payload_to_rx_buffers()
[all …]
H A Dnet_tx_pkt.c282 pkt->payload_frags = iov_copy(&pkt->vec[NET_TX_PKT_PL_START_FRAG], in net_tx_pkt_rebuild_payload()
H A Dvirtio-net.c1970 mhdr_cnt = iov_copy(mhdr_sg, ARRAY_SIZE(mhdr_sg), in virtio_net_receive_rcu()
2729 out_num = iov_copy(&sg2[1], ARRAY_SIZE(sg2) - 1, out_sg, out_num, in virtio_net_flush_tx()
2748 unsigned sg_num = iov_copy(sg, ARRAY_SIZE(sg), in virtio_net_flush_tx()
2751 sg_num += iov_copy(sg + sg_num, ARRAY_SIZE(sg) - sg_num, in virtio_net_flush_tx()
/openbmc/qemu/tests/
H A Dvhost-user-bridge.c203 unsigned sg_num = iov_copy(sg, ARRAY_SIZE(sg), in vubr_handle_tx()
316 mhdr_cnt = iov_copy(mhdr_sg, ARRAY_SIZE(mhdr_sg), in vubr_backend_recv_cb()
/openbmc/qemu/util/
H A Diov.c159 iov_copy(local_iov, iov_cnt, _iov, iov_cnt, offset, bytes); in iov_send_recv()
249 unsigned iov_copy(struct iovec *dst_iov, unsigned int dst_iov_cnt, in iov_copy() function
/openbmc/qemu/io/
H A Dchannel.c151 nlocal_iov = iov_copy(local_iov, nlocal_iov, in qio_channel_readv_full_all_eof()
257 nlocal_iov = iov_copy(local_iov, nlocal_iov, in qio_channel_writev_full_all()
/openbmc/qemu/hw/net/rocker/
H A Drocker_of_dpa.c1046 g_autofree struct iovec *iov_copy = g_new(struct iovec, iovcnt + 2); in of_dpa_ig() local
1050 .iov = iov_copy, in of_dpa_ig()