/qemu/include/qemu/ |
H A D | iov.h | 22 size_t iov_size(const struct iovec *iov, const unsigned int iov_cnt); 36 size_t iov_from_buf_full(const struct iovec *iov, unsigned int iov_cnt, 38 size_t iov_to_buf_full(const struct iovec *iov, const unsigned int iov_cnt, 42 iov_from_buf(const struct iovec *iov, unsigned int iov_cnt, in iov_from_buf() 55 iov_to_buf(const struct iovec *iov, const unsigned int iov_cnt, in iov_to_buf() 77 size_t iov_memset(const struct iovec *iov, const unsigned int iov_cnt, 101 const struct iovec *iov, 124 ssize_t iov_send_recv(int sockfd, const struct iovec *iov, unsigned iov_cnt, 136 void iov_hexdump(const struct iovec *iov, const unsigned int iov_cnt, 144 unsigned iov_copy(struct iovec *dst_iov, unsigned int dst_iov_cnt, [all …]
|
/qemu/include/io/ |
H A D | channel.h | 113 const struct iovec *iov, 120 const struct iovec *iov, 136 const struct iovec *iov, 141 const struct iovec *iov, 246 const struct iovec *iov, 290 const struct iovec *iov, 323 const struct iovec *iov, 350 const struct iovec *iov, 375 const struct iovec *iov, 390 const struct iovec *iov, [all …]
|
/qemu/util/ |
H A D | iov.c | 25 size_t iov_from_buf_full(const struct iovec *iov, unsigned int iov_cnt, in iov_from_buf_full() 43 size_t iov_to_buf_full(const struct iovec *iov, const unsigned int iov_cnt, in iov_to_buf_full() 61 size_t iov_memset(const struct iovec *iov, const unsigned int iov_cnt, in iov_memset() 79 size_t iov_size(const struct iovec *iov, const unsigned int iov_cnt) in iov_size() 93 do_send_recv(int sockfd, int flags, struct iovec *iov, unsigned iov_cnt, in do_send_recv() 143 ssize_t iov_send_recv(int sockfd, const struct iovec *_iov, unsigned iov_cnt, in iov_send_recv() 152 const struct iovec *_iov, in iov_send_recv_with_flags() 160 struct iovec *local_iov, *iov; in iov_send_recv_with_flags() 166 local_iov = g_new0(struct iovec, iov_cnt); in iov_send_recv_with_flags() 240 void iov_hexdump(const struct iovec *iov, const unsigned int iov_cnt, in iov_hexdump() [all …]
|
/qemu/io/ |
H A D | channel.c | 52 const struct iovec *iov, in qio_channel_readv_full() 80 const struct iovec *iov, in qio_channel_writev_full() 114 const struct iovec *iov, in qio_channel_readv_all_eof() 123 const struct iovec *iov, in qio_channel_readv_all() 131 const struct iovec *iov, in qio_channel_readv_full_all_eof() 138 struct iovec *local_iov = g_new(struct iovec, niov); in qio_channel_readv_full_all_eof() 139 struct iovec *local_iov_head = local_iov; in qio_channel_readv_full_all_eof() 222 const struct iovec *iov, in qio_channel_readv_full_all() 242 const struct iovec *iov, in qio_channel_writev_all() 250 const struct iovec *iov, in qio_channel_writev_full_all() [all …]
|
/qemu/fsdev/ |
H A D | 9p-iov-marshal.h | 7 ssize_t v9fs_pack(struct iovec *in_sg, int in_num, size_t offset, 9 ssize_t v9fs_iov_unmarshal(struct iovec *out_sg, int out_num, size_t offset, 11 ssize_t v9fs_iov_marshal(struct iovec *in_sg, int in_num, size_t offset, 14 ssize_t v9fs_iov_vunmarshal(struct iovec *out_sg, int out_num, size_t offset, 16 ssize_t v9fs_iov_vmarshal(struct iovec *in_sg, int in_num, size_t offset,
|
H A D | 9p-iov-marshal.c | 21 static ssize_t v9fs_packunpack(void *addr, struct iovec *sg, int sg_count, in v9fs_packunpack() 60 static ssize_t v9fs_unpack(void *dst, struct iovec *out_sg, int out_num, in v9fs_unpack() 66 ssize_t v9fs_pack(struct iovec *in_sg, int in_num, size_t offset, in v9fs_pack() 72 ssize_t v9fs_iov_vunmarshal(struct iovec *out_sg, int out_num, size_t offset, in v9fs_iov_vunmarshal() 191 ssize_t v9fs_iov_unmarshal(struct iovec *out_sg, int out_num, size_t offset, in v9fs_iov_unmarshal() 204 ssize_t v9fs_iov_vmarshal(struct iovec *in_sg, int in_num, size_t offset, in v9fs_iov_vmarshal() 304 ssize_t v9fs_iov_marshal(struct iovec *in_sg, int in_num, size_t offset, in v9fs_iov_marshal()
|
/qemu/hw/net/ |
H A D | net_rx_pkt.h | 64 const struct iovec *iov, size_t iovcnt, 211 const struct iovec *iov, 228 const struct iovec *iov, int iovcnt, 245 const struct iovec iov = { in net_rx_pkt_attach_data() 260 struct iovec *net_rx_pkt_get_iovec(struct NetRxPkt *pkt); 289 const struct iovec *iov, int iovcnt);
|
H A D | net_tx_pkt.c | 38 struct iovec *raw; 42 struct iovec *vec; 68 p->vec = g_new(struct iovec, max_frags + NET_TX_PKT_PL_START_FRAG); in net_tx_pkt_init() 70 p->raw = g_new(struct iovec, max_frags); in net_tx_pkt_init() 142 struct iovec *pl_start_frag = pkt->vec + NET_TX_PKT_PL_START_FRAG; in net_tx_pkt_update_sctp_checksum() 164 struct iovec *l2_hdr, *l3_hdr; in net_tx_pkt_parse_headers() 400 struct iovec *ventry; in net_tx_pkt_add_raw_fragment() 499 struct iovec *iov, uint32_t iov_len, in net_tx_pkt_do_sw_csum() 539 struct iovec *dst, int *dst_idx) in net_tx_pkt_fetch_fragment() 542 struct iovec *src = pkt->vec; in net_tx_pkt_fetch_fragment() [all …]
|
/qemu/crypto/ |
H A D | hash.c | 48 const struct iovec *iov, in qcrypto_hash_bytesv() 76 struct iovec iov = { .iov_base = (char *)buf, in qcrypto_hash_bytes() 82 const struct iovec *iov, in qcrypto_hash_updatev() 96 struct iovec iov = { .iov_base = (char *)buf, .iov_len = len }; in qcrypto_hash_update() 189 const struct iovec *iov, in qcrypto_hash_digestv() 214 struct iovec iov = { .iov_base = (char *)buf, .iov_len = len }; in qcrypto_hash_digest() 220 const struct iovec *iov, in qcrypto_hash_base64v() 245 struct iovec iov = { .iov_base = (char *)buf, .iov_len = len }; in qcrypto_hash_base64()
|
H A D | hmac.c | 19 const struct iovec *iov, in qcrypto_hmac_bytesv() 37 struct iovec iov = { in qcrypto_hmac_bytes() 46 const struct iovec *iov, in qcrypto_hmac_digestv() 78 struct iovec iov = { in qcrypto_hmac_digest()
|
H A D | hash-afalg.c | 163 const struct iovec *iov, in qcrypto_afalg_send_to_kernel() 192 struct iovec outv; in qcrypto_afalg_recv_from_kernel() 221 const struct iovec *iov, in qcrypto_afalg_hash_update() 242 const struct iovec *iov, in qcrypto_afalg_hash_hmac_bytesv() 260 const struct iovec *iov, in qcrypto_afalg_hmac_bytesv()
|
/qemu/net/ |
H A D | vhost-vdpa.c | 621 const struct iovec *out_sg, size_t out_num, in vhost_vdpa_net_cvq_add() 622 const struct iovec *in_sg, size_t in_num) in vhost_vdpa_net_cvq_add() 651 struct iovec *out_cursor, in vhost_vdpa_net_load_cursor_reset() 652 struct iovec *in_cursor) in vhost_vdpa_net_load_cursor_reset() 689 struct iovec *out_cursor, in vhost_vdpa_net_load_cmd() 690 struct iovec *in_cursor, uint8_t class, in vhost_vdpa_net_load_cmd() 691 uint8_t cmd, const struct iovec *data_sg, in vhost_vdpa_net_load_cmd() 699 struct iovec out, in; in vhost_vdpa_net_load_cmd() 752 struct iovec *out_cursor, in vhost_vdpa_net_load_mac() 753 struct iovec *in_cursor) in vhost_vdpa_net_load_mac() [all …]
|
H A D | eth.c | 72 eth_get_l3_proto(const struct iovec *l2hdr_iov, int iovcnt, size_t l2hdr_len) in eth_get_l3_proto() 91 const struct iovec *iov, int iovcnt, in _eth_copy_chunk() 129 void eth_get_protocols(const struct iovec *iov, size_t iovcnt, size_t iovoff, in eth_get_protocols() 222 eth_strip_vlan(const struct iovec *iov, int iovcnt, size_t iovoff, in eth_strip_vlan() 272 eth_strip_vlan_ex(const struct iovec *iov, int iovcnt, size_t iovoff, int index, in eth_strip_vlan_ex() 376 _eth_get_rss_ex_dst_addr(const struct iovec *pkt, int pkt_frags, in _eth_get_rss_ex_dst_addr() 403 _eth_get_rss_ex_src_addr(const struct iovec *pkt, int pkt_frags, in _eth_get_rss_ex_src_addr() 453 bool eth_parse_ipv6_hdr(const struct iovec *pkt, int pkt_frags, in eth_parse_ipv6_hdr()
|
H A D | l2tpv3.c | 70 struct iovec *vec; 217 const struct iovec *iov, in net_l2tpv3_receive_dgram_iov() 233 memcpy(s->vec + 1, iov, iovcnt * sizeof(struct iovec)); in net_l2tpv3_receive_dgram_iov() 268 struct iovec *vec; in net_l2tpv3_receive_dgram() 346 struct iovec *vec; in net_l2tpv3_process_queue() 451 struct iovec *iov; in destroy_vector() 472 struct iovec *iov; in build_l2tpv3_vector() 480 iov = g_new(struct iovec, IOVSIZE); in build_l2tpv3_vector() 709 s->vec = g_new(struct iovec, MAX_L2TPV3_IOVCNT); in net_init_l2tpv3()
|
/qemu/tests/unit/ |
H A D | test-iov.c | 6 static void iov_random(struct iovec **iovp, unsigned *iov_cntp) in iov_random() 9 struct iovec *iov = g_malloc(niov * sizeof(*iov)); in iov_random() 19 static void iov_free(struct iovec *iov, unsigned niov) in iov_free() 28 static bool iov_equals(const struct iovec *a, const struct iovec *b, in iov_equals() 34 static void test_iov_bytes(struct iovec *iov, unsigned niov, in test_iov_bytes() 63 struct iovec *iov; in test_to_from_buf_1() 163 struct iovec *iov, *siov; in test_io() 265 struct iovec *iov; in test_discard_front() 266 struct iovec *iov_tmp; in test_discard_front() 345 struct iovec *iov; in test_discard_front_undo() [all …]
|
H A D | io-channel-helpers.c | 31 struct iovec *inputv; 33 struct iovec *outputv; 89 data->inputv = g_new0(struct iovec, data->niov); in qio_channel_test_new() 90 data->outputv = g_new0(struct iovec, data->niov); in qio_channel_test_new()
|
/qemu/hw/virtio/ |
H A D | vhost-shadow-virtqueue.c | 84 hwaddr *addrs, const struct iovec *iovec, in vhost_svq_translate_addr() argument 102 .size = iovec[i].iov_len, in vhost_svq_translate_addr() 108 .translated_addr = (hwaddr)(uintptr_t)iovec[i].iov_base, in vhost_svq_translate_addr() 109 .size = iovec[i].iov_len, in vhost_svq_translate_addr() 129 int128_makes64(iovec[i].iov_len - 1)); in vhost_svq_translate_addr() 155 const struct iovec *iovec, size_t num, in vhost_svq_vring_write_descs() argument 169 ok = vhost_svq_translate_addr(svq, sg, iovec, num, addr); in vhost_svq_vring_write_descs() 182 descs[i].len = cpu_to_le32(iovec[n].iov_len); in vhost_svq_vring_write_descs() 193 const struct iovec *out_sg, size_t out_num, in vhost_svq_add_split() 195 const struct iovec *in_sg, size_t in_num, in vhost_svq_add_split() [all …]
|
H A D | virtio-nsm.c | 88 static bool error_response(struct iovec *response, enum NSMResponseTypes error, in error_response() 137 static bool handle_get_random(VirtIONSM *vnsm, struct iovec *request, in handle_get_random() 138 struct iovec *response, Error **errp) in handle_get_random() 208 static bool handle_describe_nsm(VirtIONSM *vnsm, struct iovec *request, in handle_describe_nsm() 209 struct iovec *response, Error **errp) in handle_describe_nsm() 370 static bool handle_describe_pcr(VirtIONSM *vnsm, struct iovec *request, in handle_describe_pcr() 371 struct iovec *response, Error **errp) in handle_describe_pcr() 557 static bool handle_extend_pcr(VirtIONSM *vnsm, struct iovec *request, in handle_extend_pcr() 558 struct iovec *response, Error **errp) in handle_extend_pcr() 709 static bool handle_lock_pcr(VirtIONSM *vnsm, struct iovec *request, in handle_lock_pcr() [all …]
|
/qemu/include/crypto/ |
H A D | hash.h | 93 const struct iovec *iov, 149 const struct iovec *iov, 167 const struct iovec *iov, 315 const struct iovec *iov,
|
/qemu/include/net/ |
H A D | queue.h | 43 const struct iovec *iov, 52 const struct iovec *iov, 72 const struct iovec *iov,
|
H A D | filter.h | 30 const struct iovec *iov, 69 const struct iovec *iov, 76 const struct iovec *iov,
|
H A D | eth.h | 318 eth_get_l2_hdr_length_iov(const struct iovec *iov, size_t iovcnt, size_t iovoff) in eth_get_l2_hdr_length_iov() 345 eth_strip_vlan(const struct iovec *iov, int iovcnt, size_t iovoff, 350 eth_strip_vlan_ex(const struct iovec *iov, int iovcnt, size_t iovoff, int index, 355 eth_get_l3_proto(const struct iovec *l2hdr_iov, int iovcnt, size_t l2hdr_len); 397 void eth_get_protocols(const struct iovec *iov, size_t iovcnt, size_t iovoff, 421 eth_parse_ipv6_hdr(const struct iovec *pkt, int pkt_frags,
|
/qemu/migration/ |
H A D | channel-block.c | 52 const struct iovec *iov, in qio_channel_block_readv() 63 qemu_iovec_init_external(&qiov, (struct iovec *)iov, niov); in qio_channel_block_readv() 77 const struct iovec *iov, in qio_channel_block_writev() 88 qemu_iovec_init_external(&qiov, (struct iovec *)iov, niov); in qio_channel_block_writev()
|
/qemu/block/export/ |
H A D | virtio-blk-handler.h | 32 struct iovec *in_iov, 33 struct iovec *out_iov,
|
/qemu/hw/9pfs/ |
H A D | xen-9p-backend.c | 46 struct iovec *sg; 72 struct iovec *in_sg, in xen_9pfs_in_sg() 99 struct iovec *out_sg, in xen_9pfs_out_sg() 140 struct iovec in_sg[2]; in xen_9pfs_pdu_vmarshal() 164 struct iovec out_sg[2]; in xen_9pfs_pdu_vunmarshal() 182 struct iovec **piov, in xen_9pfs_init_out_iov_from_pdu() 192 ring->sg = g_new0(struct iovec, 2); in xen_9pfs_init_out_iov_from_pdu() 199 struct iovec **piov, in xen_9pfs_init_in_iov_from_pdu() 210 ring->sg = g_new0(struct iovec, 2); in xen_9pfs_init_in_iov_from_pdu()
|