Lines Matching refs:thislen
1030 unsigned page_len, thislen, page_offset;
1036 thislen = buf->head[0].iov_len - offset;
1037 if (thislen > len)
1038 thislen = len;
1039 sg_set_buf(sg, buf->head[0].iov_base + offset, thislen);
1044 len -= thislen;
1058 thislen = PAGE_CACHE_SIZE - page_offset;
1060 if (thislen > page_len)
1061 thislen = page_len;
1064 sg->length = thislen;
1068 page_len -= thislen;
1071 thislen = PAGE_CACHE_SIZE;
1078 thislen = buf->tail[0].iov_len - offset;
1079 if (thislen > len)
1080 thislen = len;
1081 sg_set_buf(sg, buf->tail[0].iov_base + offset, thislen);
1083 len -= thislen;