Lines Matching refs:cur
906 unsigned int cur = xdr_stream_pos(xdr); in xdr_align_pages() local
912 if (iov->iov_len > cur) { in xdr_align_pages()
913 xdr_shrink_bufhead(buf, iov->iov_len - cur); in xdr_align_pages()
914 xdr->nwords = XDR_QUADLEN(buf->len - cur); in xdr_align_pages()
926 xdr->nwords = XDR_QUADLEN(buf->len - cur); in xdr_align_pages()
1078 size_t cur; in xdr_buf_trim() local
1082 cur = min_t(size_t, buf->tail[0].iov_len, trim); in xdr_buf_trim()
1083 buf->tail[0].iov_len -= cur; in xdr_buf_trim()
1084 trim -= cur; in xdr_buf_trim()
1090 cur = min_t(unsigned int, buf->page_len, trim); in xdr_buf_trim()
1091 buf->page_len -= cur; in xdr_buf_trim()
1092 trim -= cur; in xdr_buf_trim()
1098 cur = min_t(size_t, buf->head[0].iov_len, trim); in xdr_buf_trim()
1099 buf->head[0].iov_len -= cur; in xdr_buf_trim()
1100 trim -= cur; in xdr_buf_trim()