Lines Matching refs:cnt
296 pipe->pipe_buffer.cnt = 0;
322 pipe->pipe_buffer.cnt = 0;
429 if (atomic_load_relaxed(&bp->cnt) == 0 &&
436 ocnt = bp->cnt;
447 if (bp->cnt > 0) {
449 if (size > bp->cnt)
450 size = bp->cnt;
464 bp->cnt -= size;
471 if (bp->cnt == 0) {
542 if (bp->cnt < MINPIPESIZE) {
551 if ((bp->size - bp->cnt) >= PIPE_BUF
552 && (ocnt != bp->cnt || (rpipe->pipe_state & PIPE_SIGNALR))) {
606 (bp->size <= PIPE_SIZE) && (bp->cnt == 0)) {
615 space = bp->size - bp->cnt;
669 bp->cnt += size;
670 KASSERT(bp->cnt <= bp->size);
690 if (bp->cnt)
721 if (bp->cnt > 0) {
728 if (error == EPIPE && bp->cnt == 0 && uio->uio_resid == 0)
737 if (bp->cnt)
776 *(int *)data = pipe->pipe_buffer.cnt;
787 *(int *)data = pipe->pipe_buffer.cnt;
799 pipe->pipe_buffer.cnt;
827 if ((rpipe->pipe_buffer.cnt > 0) ||
838 (wpipe->pipe_buffer.size - wpipe->pipe_buffer.cnt) >= PIPE_BUF))
870 ub->st_size = pipe->pipe_buffer.cnt;
1074 kn->kn_data = rpipe->pipe_buffer.cnt;
1107 kn->kn_data = wpipe->pipe_buffer.size - wpipe->pipe_buffer.cnt;