Home
last modified time | relevance | path

Searched refs:curbuf (Results 1 – 5 of 5) sorted by relevance

/linux-4.19.296/fs/
Dpipe.c293 int curbuf = pipe->curbuf; in pipe_read() local
294 struct pipe_buffer *buf = pipe->bufs + curbuf; in pipe_read()
327 curbuf = (curbuf + 1) & (pipe->buffers - 1); in pipe_read()
328 pipe->curbuf = curbuf; in pipe_read()
406 int lastbuf = (pipe->curbuf + pipe->nrbufs - 1) & in pipe_write()
439 int newbuf = (pipe->curbuf + bufs) & (pipe->buffers-1); in pipe_write()
527 buf = pipe->curbuf; in pipe_ioctl()
1117 tail = pipe->curbuf + pipe->nrbufs; in pipe_set_size()
1125 memcpy(bufs, pipe->bufs + pipe->curbuf, head * sizeof(struct pipe_buffer)); in pipe_set_size()
1130 pipe->curbuf = 0; in pipe_set_size()
Dsplice.c201 int newbuf = (pipe->curbuf + pipe->nrbufs) & (pipe->buffers - 1); in splice_to_pipe()
240 int newbuf = (pipe->curbuf + pipe->nrbufs) & (pipe->buffers - 1); in add_to_pipe()
490 struct pipe_buffer *buf = pipe->bufs + pipe->curbuf; in splice_from_pipe_feed()
517 pipe->curbuf = (pipe->curbuf + 1) & (pipe->buffers - 1); in splice_from_pipe_feed()
725 for (n = 0, idx = pipe->curbuf; left && n < pipe->nrbufs; n++, idx++) { in iter_file_splice_write()
760 struct pipe_buffer *buf = pipe->bufs + pipe->curbuf; in iter_file_splice_write()
765 pipe->curbuf = (pipe->curbuf + 1) & (pipe->buffers - 1); in iter_file_splice_write()
997 pipe->nrbufs = pipe->curbuf = 0; in splice_direct_to_actor()
1581 ibuf = ipipe->bufs + ipipe->curbuf; in splice_pipe_to_pipe()
1582 nbuf = (opipe->curbuf + opipe->nrbufs) & (opipe->buffers - 1); in splice_pipe_to_pipe()
[all …]
/linux-4.19.296/include/linux/
Dpipe_fs_i.h51 unsigned int nrbufs, curbuf, buffers; member
/linux-4.19.296/lib/
Diov_iter.c324 int next = pipe->curbuf + pipe->nrbufs; in sanity()
343 pipe->curbuf, pipe->nrbufs, pipe->buffers); in sanity()
392 if (idx == pipe->curbuf && pipe->nrbufs) in copy_page_to_iter_pipe()
515 while (idx != pipe->curbuf || !pipe->nrbufs) { in push_pipe()
948 int nrbufs = (idx - pipe->curbuf) & (pipe->buffers - 1); in pipe_truncate()
1112 i->idx = (pipe->curbuf + pipe->nrbufs) & (pipe->buffers - 1); in iov_iter_pipe()
1198 npages = ((i->pipe->curbuf - idx - 1) & (i->pipe->buffers - 1)) + 1; in pipe_get_pages()
1262 npages = ((i->pipe->curbuf - idx - 1) & (i->pipe->buffers - 1)) + 1; in pipe_get_pages_alloc()
1471 npages = ((pipe->curbuf - idx - 1) & (pipe->buffers - 1)) + 1; in iov_iter_npages()
/linux-4.19.296/fs/fuse/
Ddev.c2025 rem += pipe->bufs[(pipe->curbuf + idx) & (pipe->buffers - 1)].len; in fuse_dev_splice_write()
2038 ibuf = &pipe->bufs[pipe->curbuf]; in fuse_dev_splice_write()
2044 pipe->curbuf = (pipe->curbuf + 1) & (pipe->buffers - 1); in fuse_dev_splice_write()