Lines Matching refs:iovcnt
185 unsigned int iovcnt; member
202 static ssize_t socket_writev_buffer(void *opaque, struct iovec *iov, int iovcnt, in socket_writev_buffer() argument
207 ssize_t size = iov_size(iov, iovcnt); in socket_writev_buffer()
209 len = iov_send(s->fd, iov, iovcnt, 0, size); in socket_writev_buffer()
394 static ssize_t unix_writev_buffer(void *opaque, struct iovec *iov, int iovcnt, in unix_writev_buffer() argument
399 ssize_t size = iov_size(iov, iovcnt); in unix_writev_buffer()
402 assert(iovcnt > 0); in unix_writev_buffer()
408 iov++, iovcnt--; in unix_writev_buffer()
412 assert(iovcnt > 0); in unix_writev_buffer()
417 len = writev(s->fd, iov, iovcnt); in unix_writev_buffer()
571 static ssize_t block_writev_buffer(void *opaque, struct iovec *iov, int iovcnt, in block_writev_buffer() argument
577 qemu_iovec_init_external(&qiov, iov, iovcnt); in block_writev_buffer()
674 if (f->iovcnt > 0) { in qemu_fflush()
675 ret = f->ops->writev_buffer(f->opaque, f->iov, f->iovcnt, f->pos); in qemu_fflush()
686 f->iovcnt = 0; in qemu_fflush()
825 if (f->iovcnt > 0 && buf == f->iov[f->iovcnt - 1].iov_base + in add_to_iovec()
826 f->iov[f->iovcnt - 1].iov_len) { in add_to_iovec()
827 f->iov[f->iovcnt - 1].iov_len += size; in add_to_iovec()
829 f->iov[f->iovcnt].iov_base = (uint8_t *)buf; in add_to_iovec()
830 f->iov[f->iovcnt++].iov_len = size; in add_to_iovec()
833 if (f->iovcnt >= MAX_IOV_SIZE) { in add_to_iovec()