Lines Matching refs:newbuflen
916 * @newbuflen: new maximum number of bytes available
920 * If the available space is already smaller than newbuflen, returns 0
921 * and does nothing. Otherwise, adjusts xdr->buf->buflen to newbuflen
922 * and ensures xdr->end is set at most offset newbuflen from the start
925 int xdr_restrict_buflen(struct xdr_stream *xdr, int newbuflen)
931 if (newbuflen < 0 || newbuflen < buf->len)
933 if (newbuflen > buf->buflen)
935 if (newbuflen < end_offset)
936 xdr->end = (void *)xdr->end + newbuflen - end_offset;
937 buf->buflen = newbuflen;