Lines Matching refs:bufs
1392 struct pipe_buffer *bufs; in fuse_dev_splice_read() local
1399 bufs = kvmalloc_array(pipe->max_usage, sizeof(struct pipe_buffer), in fuse_dev_splice_read()
1401 if (!bufs) in fuse_dev_splice_read()
1405 cs.pipebufs = bufs; in fuse_dev_splice_read()
1421 bufs[page_nr].ops = &nosteal_pipe_buf_ops; in fuse_dev_splice_read()
1422 bufs[page_nr].flags = 0; in fuse_dev_splice_read()
1423 ret = add_to_pipe(pipe, &bufs[page_nr++]); in fuse_dev_splice_read()
1431 put_page(bufs[page_nr].page); in fuse_dev_splice_read()
1433 kvfree(bufs); in fuse_dev_splice_read()
2007 struct pipe_buffer *bufs; in fuse_dev_splice_write() local
2024 bufs = kvmalloc_array(count, sizeof(struct pipe_buffer), GFP_KERNEL); in fuse_dev_splice_write()
2025 if (!bufs) { in fuse_dev_splice_write()
2033 rem += pipe->bufs[idx & mask].len; in fuse_dev_splice_write()
2047 ibuf = &pipe->bufs[tail & mask]; in fuse_dev_splice_write()
2048 obuf = &bufs[nbuf]; in fuse_dev_splice_write()
2071 cs.pipebufs = bufs; in fuse_dev_splice_write()
2083 struct pipe_buffer *buf = &bufs[idx]; in fuse_dev_splice_write()
2090 kvfree(bufs); in fuse_dev_splice_write()