• Home
  • Raw
  • Download

Lines Matching refs:iov_len

105         iov[1].iov_len = 0;  in sopreprbuf()
107 iov[0].iov_len = sb->sb_rptr - sb->sb_wptr; in sopreprbuf()
109 if (iov[0].iov_len > len) in sopreprbuf()
110 iov[0].iov_len = len; in sopreprbuf()
111 if (iov[0].iov_len > mss) in sopreprbuf()
112 iov[0].iov_len -= iov[0].iov_len%mss; in sopreprbuf()
115 iov[0].iov_len = (sb->sb_data + sb->sb_datalen) - sb->sb_wptr; in sopreprbuf()
117 if (iov[0].iov_len > len) iov[0].iov_len = len; in sopreprbuf()
118 len -= iov[0].iov_len; in sopreprbuf()
121 iov[1].iov_len = sb->sb_rptr - sb->sb_data; in sopreprbuf()
122 if(iov[1].iov_len > len) in sopreprbuf()
123 iov[1].iov_len = len; in sopreprbuf()
124 total = iov[0].iov_len + iov[1].iov_len; in sopreprbuf()
127 if (iov[1].iov_len > lss) { in sopreprbuf()
128 iov[1].iov_len -= lss; in sopreprbuf()
131 lss -= iov[1].iov_len; in sopreprbuf()
132 iov[0].iov_len -= lss; in sopreprbuf()
138 if (iov[0].iov_len > mss) in sopreprbuf()
139 iov[0].iov_len -= iov[0].iov_len%mss; in sopreprbuf()
146 return iov[0].iov_len + (n - 1) * iov[1].iov_len; in sopreprbuf()
174 nn = recv(so->s, iov[0].iov_base, iov[0].iov_len,0); in soread()
197 if (n == 2 && nn == iov[0].iov_len) { in soread()
199 ret = recv(so->s, iov[1].iov_base, iov[1].iov_len,0); in soread()
231 nn = MIN(iov[0].iov_len, copy); in soreadbuf()
375 iov[1].iov_len = 0; in sowrite()
377 iov[0].iov_len = sb->sb_wptr - sb->sb_rptr; in sowrite()
379 if (iov[0].iov_len > len) iov[0].iov_len = len; in sowrite()
382 iov[0].iov_len = (sb->sb_data + sb->sb_datalen) - sb->sb_rptr; in sowrite()
383 if (iov[0].iov_len > len) iov[0].iov_len = len; in sowrite()
384 len -= iov[0].iov_len; in sowrite()
387 iov[1].iov_len = sb->sb_wptr - sb->sb_data; in sowrite()
388 if (iov[1].iov_len > len) iov[1].iov_len = len; in sowrite()
400 nn = slirp_send(so, iov[0].iov_base, iov[0].iov_len,0); in sowrite()
415 if (n == 2 && nn == iov[0].iov_len) { in sowrite()
417 ret = slirp_send(so, iov[1].iov_base, iov[1].iov_len,0); in sowrite()