Lines Matching refs:t_state
275 if ((tp->t_state & TS_ISOPEN) == 0) { in ptsopen()
283 } else if ((tp->t_state & TS_XCLUDE) && kauth_cred_issuser(kauth_cred_get())) { in ptsopen()
290 while ((tp->t_state & TS_CARR_ON) == 0) { in ptsopen()
303 CLR(tp->t_state, TS_IOCTL_NOT_OK); in ptsopen()
438 if (tp->t_state & TS_TTSTOP) { in ptsstart()
498 if (tp->t_oproc || (tp->t_state & TS_ISOPEN)) { in ptcopen()
510 CLR(tp->t_state, TS_ZOMBIE); in ptcopen()
511 SET(tp->t_state, TS_IOCTL_NOT_OK); in ptcopen()
584 if (tp->t_state & TS_ISOPEN) { in ptcclose()
585 tp->t_state &= ~(TS_CARR_ON | TS_CONNECTED); in ptcclose()
586 tp->t_state |= TS_ZOMBIE; in ptcclose()
637 if (tp->t_state & TS_ISOPEN) {
675 if (tp->t_outq.c_cc && (tp->t_state & TS_TTSTOP) == 0) {
679 if ((tp->t_state & TS_CONNECTED) == 0) {
769 if (ISSET(tp->t_state, TS_ZOMBIE)) {
782 if (ISSET(tp->t_state, TS_ZOMBIE)) {
788 ISSET(tp->t_state, TS_CONNECTED)) {
815 if ((tp->t_state & TS_CONNECTED) == 0) {
824 if ((tp->t_state & TS_ISOPEN) &&
825 tp->t_outq.c_cc && (tp->t_state & TS_TTSTOP) == 0) {
832 if ((tp->t_state & TS_ISOPEN) &&
843 if (tp->t_state & TS_ISOPEN) {
894 if ((tp->t_state & TS_ISOPEN) == 0) {
906 if ((tp->t_state & TS_ISOPEN) == 0) {
935 if ((tp->t_state & TS_CONNECTED) == 0) {
989 ISSET(tp->t_state, TS_IOCTL_NOT_OK)) {