Lines Matching defs:bytes
33 p[quadlen] = 0; /* zero trailing bytes */
61 * with zero bytes (see RFC1832).
123 * @len: length of string, in bytes
173 * @offset: expected offset where data payload will start, in bytes
175 * @base: offset in first page where receive should start, in bytes
176 * @len: expected size of the upper layer data payload, in bytes
212 * @len: number of bytes to copy
294 * @len: number of bytes to copy
513 * @len: bytes to remove from buf->head[0]
516 * 'len' bytes. The extra data is not lost, but is instead
596 * xdr_shrink_pagelen - shrinks buf->pages by up to @len bytes
598 * @len: bytes to remove from buf->pages
601 * Returns the actual number of bytes moved.
771 * @nbytes: number of bytes to reserve
774 * bytes of data. If so, update the total xdr_buf length, and
804 * @nbytes: number of bytes to reserve
808 * determined based on the number of bytes remaining in the current page to
916 * @newbuflen: new maximum number of bytes available
947 * @len: length of data in bytes
1081 * @len: length in bytes of buffer in pages
1155 * @nbytes: number of bytes of data to decode
1158 * 'nbytes' more bytes of data starting at the current position.
1226 * @len: number of bytes of page data
1230 * bytes is moved into the XDR tail[].
1232 * Returns the number of XDR encoded bytes now contained in the pages
1268 unsigned int from, bytes;
1277 bytes = xdr->nwords << 2;
1278 if (length < bytes)
1279 bytes = length;
1283 shift = min_t(unsigned int, bytes, buf->page_len - from);
1288 bytes -= shift;
1291 if (bytes > 0)
1292 _shift_data_left_tail(buf, offset + shift, bytes);
1304 unsigned int bytes;
1314 bytes = xdr->nwords << 2;
1316 if (offset + length + bytes > buf->page_len) {
1317 unsigned int shift = (offset + length + bytes) - buf->page_len;
1318 unsigned int res = _shift_data_right_tail(buf, from + bytes - shift, shift);
1321 bytes -= shift;
1325 if (bytes > 0)
1329 bytes);
1341 * @len: number of bytes of page data
1345 * bytes is moved into the XDR tail[]. The current pointer is then
1376 * @base: beginning of range in bytes
1377 * @len: length of range in bytes
1436 * xdr_buf_trim - lop at most "len" bytes off the end of "buf"
1438 * @len: number of bytes to reduce "buf" by
1440 * Trim an xdr_buf by the given number of bytes by fixing up the lengths. Note