• Home
  • Raw
  • Download

Lines Matching refs:spd

6899 static void tracing_spd_release_pipe(struct splice_pipe_desc *spd,  in tracing_spd_release_pipe()  argument
6902 __free_page(spd->pages[idx]); in tracing_spd_release_pipe()
6961 struct splice_pipe_desc spd = { in tracing_splice_read_pipe() local
6973 if (splice_grow_spd(pipe, &spd)) in tracing_splice_read_pipe()
6998 for (i = 0, rem = len; i < spd.nr_pages_max && rem; i++) { in tracing_splice_read_pipe()
6999 spd.pages[i] = alloc_page(GFP_KERNEL); in tracing_splice_read_pipe()
7000 if (!spd.pages[i]) in tracing_splice_read_pipe()
7007 page_address(spd.pages[i]), in tracing_splice_read_pipe()
7010 __free_page(spd.pages[i]); in tracing_splice_read_pipe()
7013 spd.partial[i].offset = 0; in tracing_splice_read_pipe()
7014 spd.partial[i].len = trace_seq_used(&iter->seq); in tracing_splice_read_pipe()
7023 spd.nr_pages = i; in tracing_splice_read_pipe()
7026 ret = splice_to_pipe(pipe, &spd); in tracing_splice_read_pipe()
7030 splice_shrink_spd(&spd); in tracing_splice_read_pipe()
8308 static void buffer_spd_release(struct splice_pipe_desc *spd, unsigned int i) in buffer_spd_release() argument
8311 (struct buffer_ref *)spd->partial[i].private; in buffer_spd_release()
8314 spd->partial[i].private = 0; in buffer_spd_release()
8326 struct splice_pipe_desc spd = { in tracing_buffers_splice_read() local
8351 if (splice_grow_spd(pipe, &spd)) in tracing_buffers_splice_read()
8358 for (i = 0; i < spd.nr_pages_max && len && entries; i++, len -= PAGE_SIZE) { in tracing_buffers_splice_read()
8390 spd.pages[i] = page; in tracing_buffers_splice_read()
8391 spd.partial[i].len = PAGE_SIZE; in tracing_buffers_splice_read()
8392 spd.partial[i].offset = 0; in tracing_buffers_splice_read()
8393 spd.partial[i].private = (unsigned long)ref; in tracing_buffers_splice_read()
8394 spd.nr_pages++; in tracing_buffers_splice_read()
8401 spd.nr_pages = i; in tracing_buffers_splice_read()
8404 if (!spd.nr_pages) { in tracing_buffers_splice_read()
8432 ret = splice_to_pipe(pipe, &spd); in tracing_buffers_splice_read()
8434 splice_shrink_spd(&spd); in tracing_buffers_splice_read()