Lines Matching refs:nrbufs
396 int bufs = pipe->nrbufs; in pipe_read()
451 pipe->nrbufs = --bufs; in pipe_read()
532 if (pipe->nrbufs && chars != 0) { in pipe_write()
533 int lastbuf = (pipe->curbuf + pipe->nrbufs - 1) & in pipe_write()
580 bufs = pipe->nrbufs; in pipe_write()
644 pipe->nrbufs = ++bufs; in pipe_write()
689 int count, buf, nrbufs; in pipe_ioctl() local
696 nrbufs = pipe->nrbufs; in pipe_ioctl()
697 while (--nrbufs >= 0) { in pipe_ioctl()
715 int nrbufs; in pipe_poll() local
720 nrbufs = pipe->nrbufs; in pipe_poll()
723 mask = (nrbufs > 0) ? POLLIN | POLLRDNORM : 0; in pipe_poll()
729 mask |= (nrbufs < pipe->buffers) ? POLLOUT | POLLWRNORM : 0; in pipe_poll()
1184 if (nr_pages < pipe->nrbufs) in pipe_set_size()
1195 if (pipe->nrbufs) { in pipe_set_size()
1199 tail = pipe->curbuf + pipe->nrbufs; in pipe_set_size()
1205 head = pipe->nrbufs - tail; in pipe_set_size()