Lines Matching refs:spd
4784 static void tracing_spd_release_pipe(struct splice_pipe_desc *spd, in tracing_spd_release_pipe() argument
4787 __free_page(spd->pages[idx]); in tracing_spd_release_pipe()
4854 struct splice_pipe_desc spd = { in tracing_splice_read_pipe() local
4867 if (splice_grow_spd(pipe, &spd)) in tracing_splice_read_pipe()
4892 for (i = 0, rem = len; i < spd.nr_pages_max && rem; i++) { in tracing_splice_read_pipe()
4893 spd.pages[i] = alloc_page(GFP_KERNEL); in tracing_splice_read_pipe()
4894 if (!spd.pages[i]) in tracing_splice_read_pipe()
4901 page_address(spd.pages[i]), in tracing_splice_read_pipe()
4904 __free_page(spd.pages[i]); in tracing_splice_read_pipe()
4907 spd.partial[i].offset = 0; in tracing_splice_read_pipe()
4908 spd.partial[i].len = trace_seq_used(&iter->seq); in tracing_splice_read_pipe()
4917 spd.nr_pages = i; in tracing_splice_read_pipe()
4920 ret = splice_to_pipe(pipe, &spd); in tracing_splice_read_pipe()
4924 splice_shrink_spd(&spd); in tracing_splice_read_pipe()
5695 static void buffer_spd_release(struct splice_pipe_desc *spd, unsigned int i) in buffer_spd_release() argument
5698 (struct buffer_ref *)spd->partial[i].private; in buffer_spd_release()
5705 spd->partial[i].private = 0; in buffer_spd_release()
5717 struct splice_pipe_desc spd = { in tracing_buffers_splice_read() local
5734 if (splice_grow_spd(pipe, &spd)) in tracing_buffers_splice_read()
5750 for (i = 0; i < spd.nr_pages_max && len && entries; i++, len -= PAGE_SIZE) { in tracing_buffers_splice_read()
5787 spd.pages[i] = page; in tracing_buffers_splice_read()
5788 spd.partial[i].len = PAGE_SIZE; in tracing_buffers_splice_read()
5789 spd.partial[i].offset = 0; in tracing_buffers_splice_read()
5790 spd.partial[i].private = (unsigned long)ref; in tracing_buffers_splice_read()
5791 spd.nr_pages++; in tracing_buffers_splice_read()
5798 spd.nr_pages = i; in tracing_buffers_splice_read()
5801 if (!spd.nr_pages) { in tracing_buffers_splice_read()
5815 ret = splice_to_pipe(pipe, &spd); in tracing_buffers_splice_read()
5816 splice_shrink_spd(&spd); in tracing_buffers_splice_read()