• Home
  • Raw
  • Download

Lines Matching refs:buflen

184 	unsigned int buflen = head->iov_len;  in xdr_inline_pages()  local
193 tail->iov_len = buflen - offset; in xdr_inline_pages()
194 xdr->buflen += len; in xdr_inline_pages()
482 unsigned int buflen, gfp_t gfp) in xdr_buf_pages_fill_sparse() argument
487 return buflen; in xdr_buf_pages_fill_sparse()
488 if (buflen <= buf->head->iov_len) in xdr_buf_pages_fill_sparse()
489 return buflen; in xdr_buf_pages_fill_sparse()
490 pagelen = buflen - buf->head->iov_len; in xdr_buf_pages_fill_sparse()
500 buflen -= pagelen; in xdr_buf_pages_fill_sparse()
503 buflen += pagelen - buf->page_base; in xdr_buf_pages_fill_sparse()
506 return buflen; in xdr_buf_pages_fill_sparse()
527 if (buf->buflen > sum) { in xdr_buf_try_expand()
529 free_space = min_t(unsigned int, buf->buflen - sum, len); in xdr_buf_try_expand()
790 unsigned int shift, buflen = max(buf->len, len); in xdr_shrink_bufhead() local
793 if (head->iov_len > buflen) { in xdr_shrink_bufhead()
794 buf->buflen -= head->iov_len - buflen; in xdr_shrink_bufhead()
795 head->iov_len = buflen; in xdr_shrink_bufhead()
801 xdr_buf_head_shift_right(buf, len, buflen - len, shift); in xdr_shrink_bufhead()
803 buf->buflen -= shift; in xdr_shrink_bufhead()
818 unsigned int shift, buflen = buf->len - buf->head->iov_len; in xdr_shrink_pagelen() local
821 if (buf->head->iov_len >= buf->len || len > buflen) in xdr_shrink_pagelen()
822 buflen = len; in xdr_shrink_pagelen()
823 if (buf->page_len > buflen) { in xdr_shrink_pagelen()
824 buf->buflen -= buf->page_len - buflen; in xdr_shrink_pagelen()
825 buf->page_len = buflen; in xdr_shrink_pagelen()
831 xdr_buf_pages_shift_right(buf, len, buflen - len, shift); in xdr_shrink_pagelen()
834 buf->buflen -= shift; in xdr_shrink_pagelen()
898 int scratch_len = buf->buflen - buf->page_len - buf->tail[0].iov_len; in xdr_init_encode()
957 if (xdr->buf->len + nbytes > xdr->buf->buflen) in xdr_get_next_encode_buffer()
981 space_left = xdr->buf->buflen - xdr->buf->len; in xdr_get_next_encode_buffer()
1160 if (newbuflen > buf->buflen) in xdr_restrict_buflen()
1164 buf->buflen = newbuflen; in xdr_restrict_buflen()
1199 buf->buflen += len; in xdr_write_pages()
1329 buf->buflen = len; in xdr_init_decode_pages()
1523 unsigned int buflen = buf->len - buf->head->iov_len; in xdr_expand_hole() local
1526 xdr_buf_pages_shift_right(buf, from, buflen, shift); in xdr_expand_hole()
1565 buf->buflen = buf->len = iov->iov_len; in xdr_buf_from_iov()
1586 subbuf->buflen = subbuf->len = len; in xdr_buf_subsegment()