Lines Matching refs:uio
46 #include <sys/uio.h>
133 struct uio *uio, uint32_t to_write, struct sockbuf *sb);
612 struct uio *uio;
618 struct uio *uio, struct mbuf **mp0, struct mbuf **controlp, int *flagsp)
644 if (uio->uio_resid == 0 || uio->uio_rw != UIO_READ)
647 orig_resid = uio->uio_resid;
660 cbarg.uio = uio;
675 while (uio->uio_resid > 0 &&
677 to_read = MIN(canread, uio->uio_resid);
706 orig_resid > uio->uio_resid) {
726 if (uio->uio_resid == 0)
729 if (!(flags & MSG_WAITALL) && orig_resid > uio->uio_resid)
735 if (orig_resid == uio->uio_resid) {
782 hvs_trans_sosend(struct socket *so, struct sockaddr *addr, struct uio *uio,
793 __func__, uio->uio_resid);
801 if (uio->uio_resid == 0 || uio->uio_rw != UIO_WRITE)
804 orig_resid = uio->uio_resid;
823 while (uio->uio_resid > 0) {
827 if (orig_resid > uio->uio_resid)
859 to_write = MIN(canwrite, uio->uio_resid);
865 error = hvsock_send_data(pcb->chan, uio, to_write, sb);
1145 struct uio *uio = arg->uio;
1155 __func__, (uio->uio_rw == UIO_READ) ? "read from br":"write to br",
1156 uio->uio_resid, cplen, datap);
1161 error = uiomove(datap, cplen, uio);
1168 __func__, uio->uio_resid, error);
1174 hvsock_send_data(struct vmbus_channel *chan, struct uio *uio,
1205 cbarg.uio = uio;
1208 if (uio && to_write > 0) {