Home
last modified time | relevance | path

Searched refs:newbuflen (Results 1 - 4 of 4) sorted by relevance

/kernel/linux/linux-5.10/net/sunrpc/
H A Dxdr.c916 * @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) in xdr_restrict_buflen() argument
931 if (newbuflen < 0 || newbuflen < buf->len) in xdr_restrict_buflen()
933 if (newbuflen > buf->buflen) in xdr_restrict_buflen()
935 if (newbuflen < end_offset) in xdr_restrict_buflen()
936 xdr->end = (void *)xdr->end + newbuflen in xdr_restrict_buflen()
[all...]
/kernel/linux/linux-6.6/net/sunrpc/
H A Dxdr.c1253 * @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) in xdr_restrict_buflen() argument
1268 if (newbuflen < 0 || newbuflen < buf->len) in xdr_restrict_buflen()
1270 if (newbuflen > buf->buflen) in xdr_restrict_buflen()
1272 if (newbuflen < end_offset) in xdr_restrict_buflen()
1273 xdr->end = (void *)xdr->end + newbuflen in xdr_restrict_buflen()
[all...]
/kernel/linux/linux-5.10/include/linux/sunrpc/
H A Dxdr.h240 extern int xdr_restrict_buflen(struct xdr_stream *xdr, int newbuflen);
/kernel/linux/linux-6.6/include/linux/sunrpc/
H A Dxdr.h252 extern int xdr_restrict_buflen(struct xdr_stream *xdr, int newbuflen);

Completed in 9 milliseconds