Lines Matching refs:t_state
280 if ((tp->t_state & TS_ISOPEN) == 0) { in ptsopen()
288 } else if ((tp->t_state & TS_XCLUDE) && kauth_cred_issuser(kauth_cred_get())) { in ptsopen()
295 while ((tp->t_state & TS_CARR_ON) == 0) { in ptsopen()
308 CLR(tp->t_state, TS_IOCTL_NOT_OK); in ptsopen()
443 if (tp->t_state & TS_TTSTOP) { in ptsstart()
503 if (tp->t_oproc || (tp->t_state & TS_ISOPEN)) { in ptcopen()
515 CLR(tp->t_state, TS_ZOMBIE); in ptcopen()
516 SET(tp->t_state, TS_IOCTL_NOT_OK); in ptcopen()
589 if (tp->t_state & TS_ISOPEN) { in ptcclose()
590 tp->t_state &= ~(TS_CARR_ON | TS_CONNECTED); in ptcclose()
591 tp->t_state |= TS_ZOMBIE; in ptcclose()
642 if (tp->t_state & TS_ISOPEN) {
680 if (tp->t_outq.c_cc && (tp->t_state & TS_TTSTOP) == 0) {
684 if ((tp->t_state & TS_CONNECTED) == 0) {
774 if (ISSET(tp->t_state, TS_ZOMBIE)) {
787 if (ISSET(tp->t_state, TS_ZOMBIE)) {
793 ISSET(tp->t_state, TS_CONNECTED)) {
820 if ((tp->t_state & TS_CONNECTED) == 0) {
829 if ((tp->t_state & TS_ISOPEN) &&
830 tp->t_outq.c_cc && (tp->t_state & TS_TTSTOP) == 0) {
837 if ((tp->t_state & TS_ISOPEN) &&
848 if (tp->t_state & TS_ISOPEN) {
899 if ((tp->t_state & TS_ISOPEN) == 0) {
911 if ((tp->t_state & TS_ISOPEN) == 0) {
940 if ((tp->t_state & TS_CONNECTED) == 0) {
994 ISSET(tp->t_state, TS_IOCTL_NOT_OK)) {