Lines Matching refs:t_state
272 if ((tp->t_state & TS_ISOPEN) == 0) { in ptsopen()
280 } else if ((tp->t_state & TS_XCLUDE) && kauth_cred_issuser(kauth_cred_get())) { in ptsopen()
287 while ((tp->t_state & TS_CARR_ON) == 0) { in ptsopen()
300 CLR(tp->t_state, TS_IOCTL_NOT_OK); in ptsopen()
429 if (tp->t_state & TS_TTSTOP) { in ptsstart()
489 if (tp->t_oproc || (tp->t_state & TS_ISOPEN)) { in ptcopen()
501 CLR(tp->t_state, TS_ZOMBIE); in ptcopen()
502 SET(tp->t_state, TS_IOCTL_NOT_OK); in ptcopen()
542 if (tp->t_state & TS_ISOPEN) { in ptcclose()
543 tp->t_state &= ~(TS_CARR_ON | TS_CONNECTED); in ptcclose()
544 tp->t_state |= TS_ZOMBIE; in ptcclose()
599 if (tp->t_state & TS_ISOPEN) {
637 if (tp->t_outq.c_cc && (tp->t_state & TS_TTSTOP) == 0) {
641 if ((tp->t_state & TS_CONNECTED) == 0) {
731 if (ISSET(tp->t_state, TS_ZOMBIE)) {
744 if (ISSET(tp->t_state, TS_ZOMBIE)) {
750 ISSET(tp->t_state, TS_CONNECTED)) {
777 if ((tp->t_state & TS_CONNECTED) == 0) {
786 if ((tp->t_state & TS_ISOPEN) &&
787 tp->t_outq.c_cc && (tp->t_state & TS_TTSTOP) == 0) {
794 if ((tp->t_state & TS_ISOPEN) &&
805 if (tp->t_state & TS_ISOPEN) {
856 if ((tp->t_state & TS_ISOPEN) == 0) {
868 if ((tp->t_state & TS_ISOPEN) == 0) {
897 if ((tp->t_state & TS_CONNECTED) == 0) {
951 ISSET(tp->t_state, TS_IOCTL_NOT_OK)) {