• Home
  • Raw
  • Download

Lines Matching refs:spd

6463 static void tracing_spd_release_pipe(struct splice_pipe_desc *spd,  in tracing_spd_release_pipe()  argument
6466 __free_page(spd->pages[idx]); in tracing_spd_release_pipe()
6525 struct splice_pipe_desc spd = { in tracing_splice_read_pipe() local
6537 if (splice_grow_spd(pipe, &spd)) in tracing_splice_read_pipe()
6562 for (i = 0, rem = len; i < spd.nr_pages_max && rem; i++) { in tracing_splice_read_pipe()
6563 spd.pages[i] = alloc_page(GFP_KERNEL); in tracing_splice_read_pipe()
6564 if (!spd.pages[i]) in tracing_splice_read_pipe()
6571 page_address(spd.pages[i]), in tracing_splice_read_pipe()
6574 __free_page(spd.pages[i]); in tracing_splice_read_pipe()
6577 spd.partial[i].offset = 0; in tracing_splice_read_pipe()
6578 spd.partial[i].len = trace_seq_used(&iter->seq); in tracing_splice_read_pipe()
6587 spd.nr_pages = i; in tracing_splice_read_pipe()
6590 ret = splice_to_pipe(pipe, &spd); in tracing_splice_read_pipe()
6594 splice_shrink_spd(&spd); in tracing_splice_read_pipe()
7759 static void buffer_spd_release(struct splice_pipe_desc *spd, unsigned int i) in buffer_spd_release() argument
7762 (struct buffer_ref *)spd->partial[i].private; in buffer_spd_release()
7765 spd->partial[i].private = 0; in buffer_spd_release()
7777 struct splice_pipe_desc spd = { in tracing_buffers_splice_read() local
7802 if (splice_grow_spd(pipe, &spd)) in tracing_buffers_splice_read()
7809 for (i = 0; i < spd.nr_pages_max && len && entries; i++, len -= PAGE_SIZE) { in tracing_buffers_splice_read()
7841 spd.pages[i] = page; in tracing_buffers_splice_read()
7842 spd.partial[i].len = PAGE_SIZE; in tracing_buffers_splice_read()
7843 spd.partial[i].offset = 0; in tracing_buffers_splice_read()
7844 spd.partial[i].private = (unsigned long)ref; in tracing_buffers_splice_read()
7845 spd.nr_pages++; in tracing_buffers_splice_read()
7852 spd.nr_pages = i; in tracing_buffers_splice_read()
7855 if (!spd.nr_pages) { in tracing_buffers_splice_read()
7870 ret = splice_to_pipe(pipe, &spd); in tracing_buffers_splice_read()
7872 splice_shrink_spd(&spd); in tracing_buffers_splice_read()