Lines Matching refs:len

317 xdrrec_getbytes(XDR *xdrs, caddr_t addr, int len)
323 while (len > 0) {
332 current = (len < current) ? len : current;
337 len -= current;
343 xdrrec_putbytes(XDR *xdrs, caddr_t addr, int len)
349 while (len > 0) {
353 current = (len < current) ? len : current;
357 len -= current;
378 int current, len;
380 len = l;
381 while (len > 0) {
385 return (l - len);
390 current = (len < current) ? len : current;
395 len -= current;
397 return (l - len);
462 xdrrec_inline(XDR *xdrs, int len)
471 if ((rstrm->out_finger + len) <= rstrm->out_boundry) {
474 rstrm->out_finger += len;
479 if ((len <= rstrm->fbtbc) &&
480 ((rstrm->in_finger + len) <= rstrm->in_boundry)) {
490 rstrm->fbtbc -= len;
491 rstrm->in_finger += len;
592 uint32_t len; /* fragment length */
600 len = (uintptr_t)(rstrm->out_finger) - (uintptr_t)(rstrm->frag_header) -
602 *(rstrm->frag_header) = htonl((uint32_t)len | LAST_FRAG);
617 uint32_t len = (uintptr_t)(rstrm->out_finger) -
621 *(rstrm->frag_header) = htonl(len | eormask);
622 len = (uintptr_t)(rstrm->out_finger) - (uintptr_t)(rstrm->out_base);
625 (rstrm->tcp_handle, rstrm->out_base, (int)len);
630 if ((written != (int)len) && (written != -2))
644 int len;
652 len = rstrm->recvsize;
657 len = rstrm->recvsize - i;
659 if ((len = (*(rstrm->readit))(rstrm->tcp_handle, where, len)) == -1)
662 where += len;
670 int len, bool_t do_align)
680 if (len > current)
682 (void) memcpy(addr, rstrm->in_finger, len);
683 rstrm->in_finger += len;
684 addr += len;
688 while (len > 0) {
696 current = (len < current) ? len : current;
700 len -= current;