Lines Matching refs:cnt
372 if (p->pipe_buffer.cnt > 0 && p->pipe_buffer.in <= p->pipe_buffer.out ){
513 pipe_count = cpipe->pipe_peer->pipe_buffer.cnt;
519 pipe_count = cpipe->pipe_buffer.cnt;
620 cpipe->pipe_buffer.cnt = 0;
738 if (rpipe->pipe_buffer.cnt > 0) {
745 if (size > rpipe->pipe_buffer.cnt)
746 size = rpipe->pipe_buffer.cnt;
763 rpipe->pipe_buffer.cnt -= size;
770 if (rpipe->pipe_buffer.cnt == 0) {
835 } else if (rpipe->pipe_buffer.cnt < rpipe->pipe_buffer.size) {
845 if ((rpipe->pipe_buffer.size - rpipe->pipe_buffer.cnt) > 0)
903 (unsigned)orig_resid > wpipe->pipe_buffer.size - wpipe->pipe_buffer.cnt &&
906 pipe_size = choose_pipespace(wpipe->pipe_buffer.size, wpipe->pipe_buffer.cnt + orig_resid);
914 if (wpipe->pipe_buffer.cnt == 0)
944 space = wpipe->pipe_buffer.size - wpipe->pipe_buffer.cnt;
967 wpipe->pipe_buffer.cnt)) {
1033 wpipe->pipe_buffer.cnt += size;
1034 if (wpipe->pipe_buffer.cnt >
1090 if (wpipe->pipe_buffer.cnt > 0) {
1153 *(int *)data = mpipe->pipe_buffer.cnt;
1205 (rpipe->pipe_buffer.cnt > 0) ||
1220 (MAX_PIPESIZE(wpipe) - wpipe->pipe_buffer.cnt) > 0)) {
1444 kn->kn_data = rpipe->pipe_buffer.cnt;
1492 kn->kn_data = MAX_PIPESIZE(wpipe) - wpipe->pipe_buffer.cnt;
1539 pipe_count = cpipe->pipe_peer->pipe_buffer.cnt;
1545 pipe_count = cpipe->pipe_buffer.cnt;