Lines Matching refs:spd

5799 static void tracing_spd_release_pipe(struct splice_pipe_desc *spd,  in tracing_spd_release_pipe()  argument
5802 __free_page(spd->pages[idx]); in tracing_spd_release_pipe()
5869 struct splice_pipe_desc spd = { in tracing_splice_read_pipe() local
5881 if (splice_grow_spd(pipe, &spd)) in tracing_splice_read_pipe()
5906 for (i = 0, rem = len; i < spd.nr_pages_max && rem; i++) { in tracing_splice_read_pipe()
5907 spd.pages[i] = alloc_page(GFP_KERNEL); in tracing_splice_read_pipe()
5908 if (!spd.pages[i]) in tracing_splice_read_pipe()
5915 page_address(spd.pages[i]), in tracing_splice_read_pipe()
5918 __free_page(spd.pages[i]); in tracing_splice_read_pipe()
5921 spd.partial[i].offset = 0; in tracing_splice_read_pipe()
5922 spd.partial[i].len = trace_seq_used(&iter->seq); in tracing_splice_read_pipe()
5931 spd.nr_pages = i; in tracing_splice_read_pipe()
5934 ret = splice_to_pipe(pipe, &spd); in tracing_splice_read_pipe()
5938 splice_shrink_spd(&spd); in tracing_splice_read_pipe()
6837 static void buffer_spd_release(struct splice_pipe_desc *spd, unsigned int i) in buffer_spd_release() argument
6840 (struct buffer_ref *)spd->partial[i].private; in buffer_spd_release()
6847 spd->partial[i].private = 0; in buffer_spd_release()
6859 struct splice_pipe_desc spd = { in tracing_buffers_splice_read() local
6884 if (splice_grow_spd(pipe, &spd)) in tracing_buffers_splice_read()
6891 for (i = 0; i < spd.nr_pages_max && len && entries; i++, len -= PAGE_SIZE) { in tracing_buffers_splice_read()
6923 spd.pages[i] = page; in tracing_buffers_splice_read()
6924 spd.partial[i].len = PAGE_SIZE; in tracing_buffers_splice_read()
6925 spd.partial[i].offset = 0; in tracing_buffers_splice_read()
6926 spd.partial[i].private = (unsigned long)ref; in tracing_buffers_splice_read()
6927 spd.nr_pages++; in tracing_buffers_splice_read()
6934 spd.nr_pages = i; in tracing_buffers_splice_read()
6937 if (!spd.nr_pages) { in tracing_buffers_splice_read()
6952 ret = splice_to_pipe(pipe, &spd); in tracing_buffers_splice_read()
6954 splice_shrink_spd(&spd); in tracing_buffers_splice_read()