Lines Matching refs:t_state
352 if (!ISSET(tp->t_state, TS_ISOPEN)) { in ttyopen()
353 SET(tp->t_state, TS_ISOPEN); in ttyopen()
355 SET(tp->t_state, TS_CONNECTED); in ttyopen()
448 tp->t_state = 0; in ttyclose()
524 !ISSET(tp->t_state, TS_TBLOCK)) { in ttyinput()
566 if (!ISSET(tp->t_state, TS_TYPEN) && ISSET(iflag, ISTRIP)) { in ttyinput()
573 if (ISSET(tp->t_state, TS_LNCH)) { in ttyinput()
575 CLR(tp->t_state, TS_LNCH); in ttyinput()
599 SET(tp->t_state, TS_LNCH); in ttyinput()
653 if (!ISSET(tp->t_state, TS_TTSTOP)) { in ttyinput()
654 SET(tp->t_state, TS_TTSTOP); in ttyinput()
722 CLR(tp->t_state, TS_LOCAL); in ttyinput()
824 if (ISSET(tp->t_state, TS_ERASE)) { in ttyinput()
828 CLR(tp->t_state, TS_ERASE); in ttyinput()
849 if (ISSET(tp->t_state, TS_TTSTOP) && in ttyinput()
856 CLR(tp->t_state, TS_TTSTOP); in ttyinput()
1142 SET(tp->t_state, TS_ASYNC); in ttioctl_locked()
1144 CLR(tp->t_state, TS_ASYNC); in ttioctl_locked()
1153 SET(tp->t_state, TS_XCLUDE); in ttioctl_locked()
1176 ISSET(constty->t_state, TS_CONNECTED)) { in ttioctl_locked()
1279 CLR(tp->t_state, TS_XCLUDE); in ttioctl_locked()
1340 CLR(tp->t_state, TS_ZOMBIE); in ttioctl_locked()
1346 if ((ISSET(tp->t_state, TS_CARR_ON) || in ttioctl_locked()
1348 !ISSET(tp->t_state, TS_ZOMBIE)) { in ttioctl_locked()
1349 SET(tp->t_state, TS_CONNECTED); in ttioctl_locked()
1351 CLR(tp->t_state, TS_CONNECTED); in ttioctl_locked()
1424 if (ISSET(tp->t_state, TS_TTSTOP) || in ttioctl_locked()
1427 CLR(tp->t_state, TS_TTSTOP); in ttioctl_locked()
1443 if (!ISSET(tp->t_state, TS_TTSTOP)) { in ttioctl_locked()
1444 SET(tp->t_state, TS_TTSTOP); in ttioctl_locked()
1615 SET(tp->t_state, TS_REVOKE); in ttioctl_locked()
1625 CLR(tp->t_state, TS_REVOKE); in ttioctl_locked()
1659 if (tp->t_state & TS_ZOMBIE) { in ttyselect()
1675 (tp->t_state & TS_CONNECTED)) { in ttyselect()
1770 while ((tp->t_outq.c_cc || ISSET(tp->t_state, TS_BUSY)) && in ttywait()
1771 ISSET(tp->t_state, TS_CONNECTED) && tp->t_oproc) { in ttywait()
1773 if ((tp->t_outq.c_cc || ISSET(tp->t_state, TS_BUSY)) && in ttywait()
1774 ISSET(tp->t_state, TS_CONNECTED)) { in ttywait()
1775 SET(tp->t_state, TS_SO_OCOMPLETE); in ttywait()
1789 if (!error && (tp->t_outq.c_cc || ISSET(tp->t_state, TS_BUSY))) { in ttywait()
1841 CLR(tp->t_state, TS_TTSTOP); in ttyflush()
1850 CLR(tp->t_state, TS_LOCAL); in ttyflush()
1852 if (ISSET(tp->t_state, TS_TBLOCK)) { in ttyflush()
1865 CLR(tp->t_state, TS_TBLOCK); in ttyflush()
1878 SET(tp->t_state, TS_SO_OCOMPLETE); in ttyflush()
1884 CLR(tp->t_state, TS_TBLOCK); in ttyflush()
1922 SET(tp->t_state, TS_TBLOCK); in ttyblock()
1925 CLR(tp->t_state, TS_TBLOCK); /* try again later */ in ttyblock()
1943 CLR(tp->t_state, TS_TBLOCK); in ttyunblock()
1946 SET(tp->t_state, TS_TBLOCK); /* try again later */ in ttyunblock()
2017 if (ISSET(tp->t_state, TS_CARR_ON) && ISSET(tp->t_cflag, MDMBUF)) { in ttymodem()
2024 CLR(tp->t_state, TS_CAR_OFLOW); in ttymodem()
2025 CLR(tp->t_state, TS_TTSTOP); in ttymodem()
2027 } else if (!ISSET(tp->t_state, TS_CAR_OFLOW)) { in ttymodem()
2028 SET(tp->t_state, TS_CAR_OFLOW); in ttymodem()
2029 SET(tp->t_state, TS_TTSTOP); in ttymodem()
2036 CLR(tp->t_state, TS_CARR_ON); in ttymodem()
2037 if (ISSET(tp->t_state, TS_ISOPEN) && in ttymodem()
2039 SET(tp->t_state, TS_ZOMBIE); in ttymodem()
2040 CLR(tp->t_state, TS_CONNECTED); in ttymodem()
2052 SET(tp->t_state, TS_CARR_ON); in ttymodem()
2053 if (!ISSET(tp->t_state, TS_ZOMBIE)) { in ttymodem()
2054 SET(tp->t_state, TS_CONNECTED); in ttymodem()
2081 SET(tp->t_state, TS_TYPEN); in ttypend()
2088 CLR(tp->t_state, TS_TYPEN); in ttypend()
2131 if (isbackground(p, tp) || ISSET(tp->t_state, TS_REVOKE)) { in ttread()
2167 if (ISSET(tp->t_state, TS_ZOMBIE)) { in ttread()
2286 ISSET(tp->t_state, TS_CONNECTED) ? in ttread()
2404 if (ISSET(tp->t_state, TS_TBLOCK) && in ttread()
2447 SET(tp->t_state, TS_SO_OLOWAT); in ttycheckoutq()
2482 if (ISSET(tp->t_state, TS_ZOMBIE)) { in ttwrite()
2488 if (!ISSET(tp->t_state, TS_CONNECTED)) { in ttwrite()
2659 SET(tp->t_state, TS_SO_OLOWAT); in ttwrite()
2724 SET(tp->t_state, TS_CNTTB); in ttyrub()
2732 CLR(tp->t_state, TS_CNTTB); in ttyrub()
2753 if (!ISSET(tp->t_state, TS_ERASE)) { in ttyrub()
2754 SET(tp->t_state, TS_ERASE); in ttyrub()
2816 CLR(tp->t_state, TS_ERASE); in ttyretype()
2833 if (!ISSET(tp->t_state, TS_CNTTB)) { in ttyecho()
2878 if (ISSET(tp->t_state, TS_ASYNC)) { in ttwakeup()
2909 if (ISSET(tp->t_state, TS_BUSY | TS_SO_OCOMPLETE) == in ttwwakeup()
2911 CLR(tp->t_state, TS_SO_OCOMPLETE); in ttwwakeup()
2914 if (ISSET(tp->t_state, TS_SO_OLOWAT) && in ttwwakeup()
2916 CLR(tp->t_state, TS_SO_OLOWAT); in ttwwakeup()
3190 if (!ISSET(tp->t_state, TS_CONNECTED)) { in tputchar()
3239 if (tp->t_state & TS_REVOKE) { in ttysleep()
3427 (tp->t_state & TS_CONNECTED)) { in filt_tty_common()
3446 if (tp->t_state & TS_ZOMBIE) { in filt_tty_common()