Lines Matching refs:nrbufs
329 int next = pipe->curbuf + pipe->nrbufs; in sanity()
332 if (unlikely(!pipe->nrbufs)) in sanity()
348 pipe->curbuf, pipe->nrbufs, pipe->buffers); in sanity()
397 if (idx == pipe->curbuf && pipe->nrbufs) in copy_page_to_iter_pipe()
399 pipe->nrbufs++; in copy_page_to_iter_pipe()
521 while (idx != pipe->curbuf || !pipe->nrbufs) { in push_pipe()
525 pipe->nrbufs++; in push_pipe()
990 if (pipe->nrbufs) { in pipe_truncate()
993 int nrbufs = (idx - pipe->curbuf) & (pipe->buffers - 1); in pipe_truncate() local
997 nrbufs++; in pipe_truncate()
999 while (pipe->nrbufs > nrbufs) { in pipe_truncate()
1002 pipe->nrbufs--; in pipe_truncate()
1162 WARN_ON(pipe->nrbufs == pipe->buffers); in iov_iter_pipe()
1165 i->idx = (pipe->curbuf + pipe->nrbufs) & (pipe->buffers - 1); in iov_iter_pipe()