Lines Matching defs:thislen
1051 unsigned page_len, thislen, page_offset;
1059 thislen = buf->head[0].iov_len - offset;
1060 if (thislen > len)
1061 thislen = len;
1062 sg_set_buf(sg, buf->head[0].iov_base + offset, thislen);
1067 len -= thislen;
1081 thislen = PAGE_CACHE_SIZE - page_offset;
1083 if (thislen > page_len)
1084 thislen = page_len;
1085 sg_set_page(sg, buf->pages[i], thislen, page_offset);
1089 page_len -= thislen;
1092 thislen = PAGE_CACHE_SIZE;
1099 thislen = buf->tail[0].iov_len - offset;
1100 if (thislen > len)
1101 thislen = len;
1102 sg_set_buf(sg, buf->tail[0].iov_base + offset, thislen);
1104 len -= thislen;