Lines Matching refs:thislen
1095 int thislen; in xdr_reserve_space_vec() local
1109 thislen = xdr->buf->page_len % PAGE_SIZE; in xdr_reserve_space_vec()
1110 thislen = min_t(size_t, nbytes, PAGE_SIZE - thislen); in xdr_reserve_space_vec()
1112 p = xdr_reserve_space(xdr, thislen); in xdr_reserve_space_vec()
1117 vec[v].iov_len = thislen; in xdr_reserve_space_vec()
1119 nbytes -= thislen; in xdr_reserve_space_vec()
2097 unsigned int page_len, thislen, page_offset; in xdr_process_buf() local
2105 thislen = buf->head[0].iov_len - offset; in xdr_process_buf()
2106 if (thislen > len) in xdr_process_buf()
2107 thislen = len; in xdr_process_buf()
2108 sg_set_buf(sg, buf->head[0].iov_base + offset, thislen); in xdr_process_buf()
2113 len -= thislen; in xdr_process_buf()
2127 thislen = PAGE_SIZE - page_offset; in xdr_process_buf()
2129 if (thislen > page_len) in xdr_process_buf()
2130 thislen = page_len; in xdr_process_buf()
2131 sg_set_page(sg, buf->pages[i], thislen, page_offset); in xdr_process_buf()
2135 page_len -= thislen; in xdr_process_buf()
2138 thislen = PAGE_SIZE; in xdr_process_buf()
2145 thislen = buf->tail[0].iov_len - offset; in xdr_process_buf()
2146 if (thislen > len) in xdr_process_buf()
2147 thislen = len; in xdr_process_buf()
2148 sg_set_buf(sg, buf->tail[0].iov_base + offset, thislen); in xdr_process_buf()
2150 len -= thislen; in xdr_process_buf()