Lines Matching refs:c_cc

255 	if (tp->t_outq.c_cc != 0) {  in tty_set_qsize()
520 if ((q)->c_cc) \
521 ndflush(q, (q)->c_cc); \
687 if (tp->t_rawq.c_cc + tp->t_canq.c_cc) in ttyinput_wlock()
754 if (tp->t_rawq.c_cc) in ttyinput_wlock()
763 tp->t_rawq.c_cc == tp->t_rocount && in ttyinput_wlock()
765 while (tp->t_rawq.c_cc) in ttyinput_wlock()
842 if (tp->t_rawq.c_cc + tp->t_canq.c_cc >= TTYHOG) { in ttyinput_wlock()
844 if (tp->t_outq.c_cc < tp->t_hiwat) in ttyinput_wlock()
1107 *(int *)data = tp->t_outq.c_cc; in ttioctl()
1112 *(int *)data = tp->t_outq.c_cn - tp->t_outq.c_cc; in ttioctl()
1236 *(int *)data = tp->t_outq.c_cc; in ttioctl()
1308 memcpy(tp->t_cc, t->c_cc, sizeof(t->c_cc)); in ttioctl()
1560 if (tp->t_outq.c_cc <= tp->t_lowat) in ttpoll()
1627 kn->kn_data = tp->t_outq.c_cn - tp->t_outq.c_cc; in filt_ttywrite()
1628 canwrite = (tp->t_outq.c_cc <= tp->t_lowat) && CONNECTED(tp); in filt_ttywrite()
1692 nread = tp->t_canq.c_cc; in ttnread()
1694 nread += tp->t_rawq.c_cc; in ttnread()
1712 while ((tp->t_outq.c_cc || ISSET(tp->t_state, TS_BUSY)) && in ttywait_timo()
1800 total = tp->t_rawq.c_cc + tp->t_canq.c_cc; in ttyblock()
1801 if (tp->t_rawq.c_cc > TTYHOG) { in ttyblock()
1811 (!ISSET(tp->t_lflag, ICANON) || tp->t_canq.c_cc > 0)) { in ttyblock()
1950 tp->t_rawq.c_cc = 0; in ttypend()
2029 if (qp->c_cc < m) in ttread()
2041 if (qp->c_cc <= 0) in ttread()
2043 if (qp->c_cc >= m) in ttread()
2050 } else if (qp->c_cc > last_cc) { in ttread()
2060 if (qp->c_cc > 0) in ttread()
2071 last_cc = qp->c_cc; in ttread()
2087 } else if ((qp = &tp->t_canq)->c_cc <= 0) { in ttread()
2166 if (ISSET(tp->t_state, TS_TBLOCK) && tp->t_rawq.c_cc < TTYHOG / 5) { in ttread()
2199 if (tp->t_outq.c_cc > hiwat + 200) in ttycheckoutq_wlock()
2200 if (tp->t_outq.c_cc > hiwat) { in ttycheckoutq_wlock()
2292 if (tp->t_outq.c_cc > hiwat) in ttwrite()
2338 tp->t_outq.c_cc > hiwat) { in ttwrite()
2365 tp->t_outq.c_cc > hiwat) in ttwrite()
2385 hiwat = tp->t_outq.c_cc - 1; in ttwrite()
2394 if (tp->t_outq.c_cc <= hiwat) { in ttwrite()
2420 if (tp->t_outq.c_cc <= tp->t_lowat) { in ttypull()
2424 return tp->t_outq.c_cc != 0; in ttypull()
2468 if (tp->t_rocount < tp->t_rawq.c_cc) { in ttyrub()
2550 tp->t_rocount = tp->t_rawq.c_cc; in ttyretype()