Lines Matching refs:nrbufs
324 int next = pipe->curbuf + pipe->nrbufs; in sanity()
327 if (unlikely(!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()
394 pipe->nrbufs++; in copy_page_to_iter_pipe()
514 while (idx != pipe->curbuf || !pipe->nrbufs) { in push_pipe()
518 pipe->nrbufs++; in push_pipe()
930 if (pipe->nrbufs) { in pipe_truncate()
933 int nrbufs = (idx - pipe->curbuf) & (pipe->buffers - 1); in pipe_truncate() local
937 nrbufs++; in pipe_truncate()
939 while (pipe->nrbufs > nrbufs) { in pipe_truncate()
942 pipe->nrbufs--; in pipe_truncate()
1094 WARN_ON(pipe->nrbufs == pipe->buffers); in iov_iter_pipe()
1097 i->idx = (pipe->curbuf + pipe->nrbufs) & (pipe->buffers - 1); in iov_iter_pipe()