Lines Matching refs:thislen
1454 unsigned int page_len, thislen, page_offset; in xdr_process_buf() local
1462 thislen = buf->head[0].iov_len - offset; in xdr_process_buf()
1463 if (thislen > len) in xdr_process_buf()
1464 thislen = len; in xdr_process_buf()
1465 sg_set_buf(sg, buf->head[0].iov_base + offset, thislen); in xdr_process_buf()
1470 len -= thislen; in xdr_process_buf()
1484 thislen = PAGE_CACHE_SIZE - page_offset; in xdr_process_buf()
1486 if (thislen > page_len) in xdr_process_buf()
1487 thislen = page_len; in xdr_process_buf()
1488 sg_set_page(sg, buf->pages[i], thislen, page_offset); in xdr_process_buf()
1492 page_len -= thislen; in xdr_process_buf()
1495 thislen = PAGE_CACHE_SIZE; in xdr_process_buf()
1502 thislen = buf->tail[0].iov_len - offset; in xdr_process_buf()
1503 if (thislen > len) in xdr_process_buf()
1504 thislen = len; in xdr_process_buf()
1505 sg_set_buf(sg, buf->tail[0].iov_base + offset, thislen); in xdr_process_buf()
1507 len -= thislen; in xdr_process_buf()