• Home
  • Raw
  • Download

Lines Matching refs:iov_len

113         iov[1].iov_len = 0;  in sopreprbuf()
115 iov[0].iov_len = sb->sb_rptr - sb->sb_wptr; in sopreprbuf()
117 if (iov[0].iov_len > len) in sopreprbuf()
118 iov[0].iov_len = len; in sopreprbuf()
119 if (iov[0].iov_len > mss) in sopreprbuf()
120 iov[0].iov_len -= iov[0].iov_len%mss; in sopreprbuf()
123 iov[0].iov_len = (sb->sb_data + sb->sb_datalen) - sb->sb_wptr; in sopreprbuf()
125 if (iov[0].iov_len > len) iov[0].iov_len = len; in sopreprbuf()
126 len -= iov[0].iov_len; in sopreprbuf()
129 iov[1].iov_len = sb->sb_rptr - sb->sb_data; in sopreprbuf()
130 if(iov[1].iov_len > len) in sopreprbuf()
131 iov[1].iov_len = len; in sopreprbuf()
132 total = iov[0].iov_len + iov[1].iov_len; in sopreprbuf()
135 if (iov[1].iov_len > lss) { in sopreprbuf()
136 iov[1].iov_len -= lss; in sopreprbuf()
139 lss -= iov[1].iov_len; in sopreprbuf()
140 iov[0].iov_len -= lss; in sopreprbuf()
146 if (iov[0].iov_len > mss) in sopreprbuf()
147 iov[0].iov_len -= iov[0].iov_len%mss; in sopreprbuf()
154 return iov[0].iov_len + (n - 1) * iov[1].iov_len; in sopreprbuf()
182 nn = socket_recv(so->s, iov[0].iov_base, iov[0].iov_len); in soread()
205 if (n == 2 && nn == iov[0].iov_len) { in soread()
207 ret = socket_recv(so->s, iov[1].iov_base, iov[1].iov_len); in soread()
239 nn = MIN(iov[0].iov_len, copy); in soreadbuf()
383 iov[1].iov_len = 0; in sowrite()
385 iov[0].iov_len = sb->sb_wptr - sb->sb_rptr; in sowrite()
387 if (iov[0].iov_len > len) iov[0].iov_len = len; in sowrite()
390 iov[0].iov_len = (sb->sb_data + sb->sb_datalen) - sb->sb_rptr; in sowrite()
391 if (iov[0].iov_len > len) iov[0].iov_len = len; in sowrite()
392 len -= iov[0].iov_len; in sowrite()
395 iov[1].iov_len = sb->sb_wptr - sb->sb_data; in sowrite()
396 if (iov[1].iov_len > len) iov[1].iov_len = len; in sowrite()
408 nn = socket_send(so->s, iov[0].iov_base, iov[0].iov_len); in sowrite()
423 if (n == 2 && nn == iov[0].iov_len) { in sowrite()
425 ret = socket_send(so->s, iov[1].iov_base, iov[1].iov_len); in sowrite()