Lines Matching refs:newbuflen
1253 * @newbuflen: new maximum number of bytes available
1257 * If the available space is already smaller than newbuflen, returns 0
1258 * and does nothing. Otherwise, adjusts xdr->buf->buflen to newbuflen
1259 * and ensures xdr->end is set at most offset newbuflen from the start
1262 int xdr_restrict_buflen(struct xdr_stream *xdr, int newbuflen)
1268 if (newbuflen < 0 || newbuflen < buf->len)
1270 if (newbuflen > buf->buflen)
1272 if (newbuflen < end_offset)
1273 xdr->end = (void *)xdr->end + newbuflen - end_offset;
1274 buf->buflen = newbuflen;