Lines Matching refs:nwords
443 return (unsigned int)(XDR_QUADLEN(xdr->buf->len) - xdr->nwords) << 2; in xdr_stream_pos()
794 xdr->nwords = XDR_QUADLEN(buf->len); in xdr_init_decode()
800 xdr->nwords -= p - xdr->p; in xdr_init_decode()
827 unsigned int nwords = XDR_QUADLEN(nbytes); in __xdr_inline_decode() local
829 __be32 *q = p + nwords; in __xdr_inline_decode()
831 if (unlikely(nwords > xdr->nwords || q > xdr->end || q < p)) in __xdr_inline_decode()
834 xdr->nwords -= nwords; in __xdr_inline_decode()
905 unsigned int nwords = XDR_QUADLEN(len); in xdr_align_pages() local
908 if (xdr->nwords == 0) in xdr_align_pages()
914 xdr->nwords = XDR_QUADLEN(buf->len - cur); in xdr_align_pages()
917 if (nwords > xdr->nwords) { in xdr_align_pages()
918 nwords = xdr->nwords; in xdr_align_pages()
919 len = nwords << 2; in xdr_align_pages()
923 else if (nwords < xdr->nwords) { in xdr_align_pages()
926 xdr->nwords = XDR_QUADLEN(buf->len - cur); in xdr_align_pages()
946 unsigned int nwords; in xdr_read_pages() local
953 nwords = XDR_QUADLEN(len); in xdr_read_pages()
954 padding = (nwords << 2) - len; in xdr_read_pages()
957 end = ((xdr->nwords - nwords) << 2) + padding; in xdr_read_pages()
968 xdr->nwords = XDR_QUADLEN(end - padding); in xdr_read_pages()