Lines Matching refs:buflen
138 unsigned int buflen = head->iov_len; in xdr_inline_pages() local
147 tail->iov_len = buflen - offset; in xdr_inline_pages()
149 xdr->buflen += len; in xdr_inline_pages()
376 buf->buflen -= len; in xdr_shrink_bufhead()
378 if (buf->len > buf->buflen) in xdr_shrink_bufhead()
379 buf->len = buf->buflen; in xdr_shrink_bufhead()
402 tailbuf_len = buf->buflen - buf->head->iov_len - buf->page_len; in xdr_shrink_pagelen()
424 buf->buflen -= len; in xdr_shrink_pagelen()
426 if (buf->len > buf->buflen) in xdr_shrink_pagelen()
427 buf->len = buf->buflen; in xdr_shrink_pagelen()
463 int scratch_len = buf->buflen - buf->page_len - buf->tail[0].iov_len; in xdr_init_encode()
521 if (xdr->buf->len + nbytes > xdr->buf->buflen) in xdr_get_next_encode_buffer()
546 space_left = xdr->buf->buflen - xdr->buf->len; in xdr_get_next_encode_buffer()
673 if (newbuflen > buf->buflen) in xdr_restrict_buflen()
677 buf->buflen = newbuflen; in xdr_restrict_buflen()
712 buf->buflen += len; in xdr_write_pages()
819 buf->buflen = len; in xdr_init_decode_pages()
849 void xdr_set_scratch_buffer(struct xdr_stream *xdr, void *buf, size_t buflen) in xdr_set_scratch_buffer() argument
852 xdr->scratch.iov_len = buflen; in xdr_set_scratch_buffer()
1003 buf->buflen = buf->len = iov->iov_len; in xdr_buf_from_iov()
1025 subbuf->buflen = subbuf->len = len; in xdr_buf_subsegment()
1219 if (obj->len > buf->buflen - buf->len) in xdr_buf_read_netobj()