Lines Matching refs:iov
516 static ssize_t vc_sendv_compat(VLANClientState *vc, const struct iovec *iov, in vc_sendv_compat() argument
526 len = MIN(sizeof(buffer) - offset, iov[i].iov_len); in vc_sendv_compat()
527 memcpy(buffer + offset, iov[i].iov_base, len); in vc_sendv_compat()
534 static ssize_t calc_iov_length(const struct iovec *iov, int iovcnt) in calc_iov_length() argument
540 offset += iov[i].iov_len; in calc_iov_length()
545 const struct iovec *iov, int iovcnt) in qemu_deliver_packet_iov() argument
560 ret = calc_iov_length(iov, iovcnt); in qemu_deliver_packet_iov()
565 len = vc->receive_iov(vc, iov, iovcnt); in qemu_deliver_packet_iov()
567 len = vc_sendv_compat(vc, iov, iovcnt); in qemu_deliver_packet_iov()
579 const struct iovec *iov, int iovcnt, in qemu_enqueue_packet_iov() argument
586 max_len = calc_iov_length(iov, iovcnt); in qemu_enqueue_packet_iov()
595 size_t len = iov[i].iov_len; in qemu_enqueue_packet_iov()
597 memcpy(packet->data + packet->size, iov[i].iov_base, len); in qemu_enqueue_packet_iov()
607 const struct iovec *iov, int iovcnt, in qemu_sendv_packet_async() argument
613 return calc_iov_length(iov, iovcnt); in qemu_sendv_packet_async()
617 return qemu_enqueue_packet_iov(sender, iov, iovcnt, NULL); in qemu_sendv_packet_async()
620 ret = qemu_deliver_packet_iov(sender, iov, iovcnt); in qemu_sendv_packet_async()
622 qemu_enqueue_packet_iov(sender, iov, iovcnt, sent_cb); in qemu_sendv_packet_async()
632 qemu_sendv_packet(VLANClientState *vc, const struct iovec *iov, int iovcnt) in qemu_sendv_packet() argument
634 return qemu_sendv_packet_async(vc, iov, iovcnt, NULL); in qemu_sendv_packet()
1034 static ssize_t tap_receive_iov(VLANClientState *vc, const struct iovec *iov, in tap_receive_iov() argument
1041 len = writev(s->fd, iov, iovcnt); in tap_receive_iov()