Home
last modified time | relevance | path

Searched refs:iov_to_buf (Results 1 – 25 of 41) sorted by relevance

12

/openbmc/qemu/net/
H A Deth.c83 copied = iov_to_buf(l2hdr_iov, iovcnt, proto_offset, in eth_get_l3_proto()
101 copied = iov_to_buf(iov, iovcnt, offset, buffer, length); in _eth_copy_chunk()
157 copied = iov_to_buf(iov, iovcnt, *l3hdr_off, iphdr, sizeof(*iphdr)); in eth_get_protocols()
229 size_t copied = iov_to_buf(iov, iovcnt, iovoff, in eth_strip_vlan()
239 copied = iov_to_buf(iov, iovcnt, iovoff + sizeof(*new_ehdr), in eth_strip_vlan()
253 copied = iov_to_buf(iov, iovcnt, *payload_offset, in eth_strip_vlan()
305 copied = iov_to_buf(iov, iovcnt, iovoff + new_ehdr_size, in eth_strip_vlan_ex()
389 bytes_read = iov_to_buf(pkt, pkt_frags, ext_hdr_offset, in _eth_get_rss_ex_dst_addr()
420 bytes_read = iov_to_buf(pkt, pkt_frags, opt_offset, in _eth_get_rss_ex_src_addr()
439 bytes_read = iov_to_buf(pkt, pkt_frags, in _eth_get_rss_ex_src_addr()
[all …]
H A Dvhost-vdpa.c748 iov_to_buf(data_sg, data_num, 0, in vhost_vdpa_net_load_cmd()
1350 r = iov_to_buf(elem->out_sg, elem->out_num, cursor, in vhost_vdpa_net_excessive_mac_filter_cvq_add()
1363 r = iov_to_buf(elem->out_sg, elem->out_num, cursor, in vhost_vdpa_net_excessive_mac_filter_cvq_add()
1501 out.iov_len = iov_to_buf(elem->out_sg, elem->out_num, 0, in vhost_vdpa_net_handle_ctrl_avail()
H A Dfilter-rewriter.c267 iov_to_buf(iov, iovcnt, 0, buf, size); in colo_rewriter_receive_iov()
H A Dfilter-mirror.c118 iov_to_buf(iov, iovcnt, 0, buf, size); in filter_send()
/openbmc/qemu/hw/audio/
H A Dvirtio-snd.c166 size_t msg_sz = iov_to_buf(cmd->elem->out_sg, in virtio_snd_handle_pcm_info()
295 size_t msg_sz = iov_to_buf(cmd->elem->out_sg, in virtio_snd_handle_pcm_set_params()
515 size_t msg_sz = iov_to_buf(cmd->elem->out_sg, in virtio_snd_handle_pcm_prepare()
541 size_t msg_sz = iov_to_buf(cmd->elem->out_sg, in virtio_snd_handle_pcm_start_stop()
607 size_t msg_sz = iov_to_buf(cmd->elem->out_sg, in virtio_snd_handle_pcm_release()
666 size_t msg_sz = iov_to_buf(cmd->elem->out_sg, in process_cmd()
875 msg_sz = iov_to_buf(elem->out_sg, in virtio_snd_handle_tx_xfer()
956 msg_sz = iov_to_buf(elem->out_sg, in virtio_snd_handle_rx_xfer()
1163 iov_to_buf(buffer->elem->out_sg, in virtio_snd_pcm_out_cb()
/openbmc/qemu/hw/virtio/
H A Dvirtio-crypto.c98 s = iov_to_buf(*iov, num, 0, info->cipher_key, info->key_len); in virtio_crypto_cipher_session_helper()
166 s = iov_to_buf(iov, out_num, 0, sym_info->auth_key, in virtio_crypto_create_sym_session()
221 if (iov_to_buf(iov, out_num, 0, asym_info->key, keylen) != keylen) { in virtio_crypto_create_asym_session()
375 if (unlikely(iov_to_buf(out_iov, out_num, 0, &ctrl, sizeof(ctrl)) in virtio_crypto_handle_ctrl()
663 s = iov_to_buf(iov, out_num, 0, op_info->iv, op_info->iv_len); in virtio_crypto_sym_op_helper()
677 s = iov_to_buf(iov, out_num, 0, op_info->aad_data, op_info->aad_len); in virtio_crypto_sym_op_helper()
692 s = iov_to_buf(iov, out_num, 0, op_info->src, op_info->src_len); in virtio_crypto_sym_op_helper()
777 len = iov_to_buf(iov, out_num, 0, src, src_len); in virtio_crypto_handle_asym_req()
791 len = iov_to_buf(iov, out_num, 0, dst, dst_len); in virtio_crypto_handle_asym_req()
849 if (unlikely(iov_to_buf(out_iov, out_num, 0, &req, sizeof(req)) in virtio_crypto_handle_request()
H A Dvirtio-balloon.c403 while (iov_to_buf(elem->out_sg, elem->out_num, offset, &pfn, 4) == 4) { in virtio_balloon_handle_output()
473 while (iov_to_buf(elem->out_sg, elem->out_num, offset, &stat, sizeof(stat)) in virtio_balloon_receive_stats()
517 size_t size = iov_to_buf(elem->out_sg, elem->out_num, 0, in get_free_page_hints()
/openbmc/qemu/block/export/
H A Dvirtio-blk-handler.c70 size = iov_to_buf(iov, iovcnt, 0, &desc, sizeof(desc)); in virtio_blk_discard_write_zeroes()
149 if (unlikely(iov_to_buf(out_iov, out_num, 0, &out, in virtio_blk_process_req()
/openbmc/qemu/hw/net/
H A Dnet_tx_pkt.c178 bytes_read = iov_to_buf(pkt->raw, pkt->raw_frags, 0, l2_hdr->iov_base, in net_tx_pkt_parse_headers()
210 bytes_read = iov_to_buf(pkt->raw, pkt->raw_frags, l2_hdr->iov_len, in net_tx_pkt_parse_headers()
229 bytes_read = iov_to_buf(pkt->raw, pkt->raw_frags, in net_tx_pkt_parse_headers()
259 bytes_read = iov_to_buf(pkt->raw, pkt->raw_frags, l2_hdr->iov_len, in net_tx_pkt_parse_headers()
349 bytes_read = iov_to_buf(&pkt->vec[NET_TX_PKT_PL_START_FRAG], in net_tx_pkt_build_vheader()
H A Dvirtio-net.c1025 s = iov_to_buf(iov, iov_cnt, 0, &on, sizeof(on)); in virtio_net_handle_rx_mode()
1062 s = iov_to_buf(iov, iov_cnt, 0, &offloads, sizeof(offloads)); in virtio_net_handle_offloads()
1126 s = iov_to_buf(iov, iov_cnt, 0, &mac_data.entries, in virtio_net_handle_mac()
1139 s = iov_to_buf(iov, iov_cnt, 0, macs, in virtio_net_handle_mac()
1153 s = iov_to_buf(iov, iov_cnt, 0, &mac_data.entries, in virtio_net_handle_mac()
1200 s = iov_to_buf(iov, iov_cnt, 0, &vid, sizeof(vid)); in virtio_net_handle_vlan_table()
1395 s = iov_to_buf(iov, iov_cnt, offset, &cfg, size_get); in virtio_net_handle_rss()
1434 s = iov_to_buf(iov, iov_cnt, offset, in virtio_net_handle_rss()
1447 s = iov_to_buf(iov, iov_cnt, offset, &temp, size_get); in virtio_net_handle_rss()
1510 s = iov_to_buf(iov, iov_cnt, 0, &mq, sizeof(mq)); in virtio_net_handle_mq()
[all …]
H A Dnet_rx_pkt.c450 iov_to_buf(iov, iovcnt, 0, &pkt->virt_hdr, sizeof pkt->virt_hdr); in net_rx_pkt_set_vhdr_iovec()
573 if (!iov_to_buf(vec, vec_len, csum_off, &original, sizeof(original))) { in _net_rx_pkt_validate_sctp_sum()
/openbmc/qemu/replay/
H A Dreplay-net.c61 iov_to_buf(iov, iovcnt, 0, event->data, event->size); in replay_net_packet_event()
/openbmc/qemu/tests/unit/
H A Dtest-iov.c99 n = iov_to_buf(iov, niov, i, obuf + i, sz - i); in test_to_from_buf_1()
106 n = iov_to_buf(iov, niov, i, obuf + i, 1); in test_to_from_buf_1()
128 n = iov_to_buf(iov, niov, i, obuf + i, j - i); in test_to_from_buf_1()
/openbmc/qemu/contrib/vhost-user-gpu/
H A Dvugpu.h168 iov_to_buf(cmd->elem.out_sg, cmd->elem.out_num, 0, \
H A Dvhost-user-gpu.c496 s = iov_to_buf(cmd->elem.out_sg, cmd->elem.out_num, in vg_create_mapping_iov()
640 iov_to_buf(res->iov, res->iov_cnt, src_offset, in vg_transfer_to_host_2d()
645 iov_to_buf(res->iov, res->iov_cnt, 0, in vg_transfer_to_host_2d()
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()
/openbmc/qemu/block/
H A Dwin32-aio.c133 iov_to_buf(qiov->iov, qiov->niov, 0, waiocb->buf, qiov->size); in win32_aio_submit()
/openbmc/qemu/hw/usb/
H A Dpcap.c212 iov_to_buf(p->iov.iov, p->iov.niov, 0, buf, data_len); in do_usb_pcap_data()
/openbmc/qemu/hw/net/rocker/
H A Drocker_tlv.h163 iov_to_buf(iov, iovcnt, 0, rocker_tlv_data(tlv), len); in rocker_tlv_put_iov()
/openbmc/qemu/include/qemu/
H A Diov.h54 iov_to_buf(const struct iovec *iov, const unsigned int iov_cnt, in iov_to_buf() function
/openbmc/qemu/util/
H A Diov.c244 iov_to_buf(iov, iov_cnt, 0, buf, size); in iov_hexdump()
487 return iov_to_buf(qiov->iov, qiov->niov, offset, buf, bytes); in qemu_iovec_to_buf()
/openbmc/qemu/include/hw/virtio/
H A Dvirtio-gpu.h269 iov_to_buf(cmd->elem.out_sg, cmd->elem.out_num, 0, \
/openbmc/qemu/hw/9pfs/
H A Dvirtio-9p-device.c69 len = iov_to_buf(elem->out_sg, elem->out_num, 0, &out, 7); in handle_9p_output()
/openbmc/qemu/include/net/
H A Deth.h321 size_t copied = iov_to_buf(iov, iovcnt, iovoff, p, ARRAY_SIZE(p)); in eth_get_l2_hdr_length_iov()
/openbmc/qemu/hw/input/
H A Dvirtio-input.c92 len = iov_to_buf(elem->out_sg, elem->out_num, in virtio_input_handle_sts()
/openbmc/qemu/hw/display/
H A Dvirtio-gpu.c482 iov_to_buf(res->iov, res->iov_cnt, src_offset, in virtio_gpu_transfer_to_host_2d()
489 iov_to_buf(res->iov, res->iov_cnt, src_offset, in virtio_gpu_transfer_to_host_2d()
814 s = iov_to_buf(cmd->elem.out_sg, cmd->elem.out_num, in virtio_gpu_create_mapping_iov()
1136 s = iov_to_buf(elem->out_sg, elem->out_num, 0, in virtio_gpu_handle_cursor()

12