Lines Matching refs:spd

5499 static void tracing_spd_release_pipe(struct splice_pipe_desc *spd,  in tracing_spd_release_pipe()  argument
5502 __free_page(spd->pages[idx]); in tracing_spd_release_pipe()
5561 struct splice_pipe_desc spd = { in tracing_splice_read_pipe() local
5573 if (splice_grow_spd(pipe, &spd)) in tracing_splice_read_pipe()
5598 for (i = 0, rem = len; i < spd.nr_pages_max && rem; i++) { in tracing_splice_read_pipe()
5599 spd.pages[i] = alloc_page(GFP_KERNEL); in tracing_splice_read_pipe()
5600 if (!spd.pages[i]) in tracing_splice_read_pipe()
5607 page_address(spd.pages[i]), in tracing_splice_read_pipe()
5611 __free_page(spd.pages[i]); in tracing_splice_read_pipe()
5614 spd.partial[i].offset = 0; in tracing_splice_read_pipe()
5615 spd.partial[i].len = ret; in tracing_splice_read_pipe()
5624 spd.nr_pages = i; in tracing_splice_read_pipe()
5627 ret = splice_to_pipe(pipe, &spd); in tracing_splice_read_pipe()
5631 splice_shrink_spd(&spd); in tracing_splice_read_pipe()
7249 static void buffer_spd_release(struct splice_pipe_desc *spd, unsigned int i) in buffer_spd_release() argument
7252 (struct buffer_ref *)spd->partial[i].private; in buffer_spd_release()
7255 spd->partial[i].private = 0; in buffer_spd_release()
7266 struct splice_pipe_desc spd = { in tracing_buffers_splice_read() local
7292 if (splice_grow_spd(pipe, &spd)) in tracing_buffers_splice_read()
7299 for (i = 0; i < spd.nr_pages_max && len && entries; i++, len -= page_size) { in tracing_buffers_splice_read()
7331 spd.pages[i] = page; in tracing_buffers_splice_read()
7332 spd.partial[i].len = page_size; in tracing_buffers_splice_read()
7333 spd.partial[i].offset = 0; in tracing_buffers_splice_read()
7334 spd.partial[i].private = (unsigned long)ref; in tracing_buffers_splice_read()
7335 spd.nr_pages++; in tracing_buffers_splice_read()
7342 spd.nr_pages = i; in tracing_buffers_splice_read()
7345 if (!spd.nr_pages) { in tracing_buffers_splice_read()
7371 ret = splice_to_pipe(pipe, &spd); in tracing_buffers_splice_read()
7373 splice_shrink_spd(&spd); in tracing_buffers_splice_read()