Lines Matching refs:t_state
395 if ((tp->t_state & TS_ISOPEN) == 0 && tp->t_wopen == 0) {
420 tp->t_state |= TS_CARR_ON;
422 tp->t_state &= ~TS_CARR_ON;
444 while ((tp->t_state & TS_CARR_ON) == 0 && (tp->t_cflag & CLOCAL) == 0) {
465 if ((flag & O_TRUNC) && (tp->t_state & TS_TTSTOP)) {
466 tp->t_state &= ~TS_TTSTOP;
615 (tp->t_state & TS_ISOPEN) && tp->t_wopen == 0) {
638 (tp->t_state & TS_ISOPEN) && tp->t_wopen == 0) {
664 if (tp && (tp->t_state & TS_ISOPEN) && tp->t_wopen == 0) {
696 if (tp->t_state & TS_TBLOCK) {
714 if (tp->t_state & (TS_BUSY|TS_FLUSH)) {
719 if (tp->t_state & TS_BUSY) {
721 tp->t_state &= ~TS_BUSY; /* not busy any more */
730 if (tp->t_state & TS_FLUSH) {
732 tp->t_state &= ~TS_FLUSH; /* finished flushing */
996 if (! (tp->t_state & TS_ISOPEN))
1008 if (tp->t_state & (TS_TIMEOUT|TS_TTSTOP))
1013 if (!ttypull(tp) || (tp->t_state & TS_BUSY))
1037 tp->t_state |= TS_BUSY;
1066 tp->t_state &= ~TS_BUSY;
1090 if (tp->t_state & TS_BUSY) {
1091 if ((tp->t_state & TS_TTSTOP) == 0) {
1092 tp->t_state |= TS_FLUSH;