Lines Matching defs:spd
177 struct splice_pipe_desc *spd)
179 unsigned int spd_pages = spd->nr_pages;
201 buf->page = spd->pages[page_nr];
202 buf->offset = spd->partial[page_nr].offset;
203 buf->len = spd->partial[page_nr].len;
204 buf->ops = spd->ops;
205 if (spd->flags & SPLICE_F_GIFT)
215 if (!--spd->nr_pages)
223 if (spd->flags & SPLICE_F_NONBLOCK) {
260 page_cache_release(spd->pages[page_nr++]);
278 struct splice_pipe_desc spd = {
306 spd.nr_pages = find_get_pages_contig(mapping, index, nr_pages, pages);
312 index += spd.nr_pages;
313 while (spd.nr_pages < nr_pages) {
348 pages[spd.nr_pages++] = page;
357 nr_pages = spd.nr_pages;
358 spd.nr_pages = 0;
453 spd.nr_pages++;
464 if (spd.nr_pages)
465 return splice_to_pipe(pipe, &spd);
1277 struct splice_pipe_desc spd = {
1292 spd.nr_pages = get_iovec_page_array(iov, nr_segs, pages, partial,
1294 if (spd.nr_pages <= 0)
1295 return spd.nr_pages;
1297 return splice_to_pipe(pipe, &spd);