t_cflag
tp->t_cflag = TTYDEF_CFLAG|CLOCAL;
if (tp->t_ospeed == t->c_ospeed && tp->t_cflag == t->c_cflag)
tp->t_cflag = t->c_cflag;
switch (tp->t_cflag & CSIZE) {
if (tp->t_cflag & PARENB) {
if ((tp->t_cflag & PARODD) == 0)
wr4 |= (tp->t_cflag & CSTOPB) ? WR4_STOP2 : WR4_STOP1;
|| (tp->t_cflag & MDMBUF)
if ((tp->t_cflag & HUPCL)
tp->t_cflag = TTYDEF_CFLAG;
tp->t_cflag = t->c_cflag;
tp->t_cflag = t->c_cflag;
tp->t_cflag = TTYDEF_CFLAG;
tp->t_cflag == t->c_cflag)
tp->t_cflag = t->c_cflag;
tp->t_cflag = TTYDEF_CFLAG;
tp->t_cflag = t->c_cflag;
tp->t_cflag = cflag;
tp->t_cflag = TTYDEF_CFLAG;
tp->t_cflag |= CLOCAL;
tp->t_cflag |= CRTSCTS;
tp->t_cflag |= MDMBUF;
while ((tp->t_cflag & CLOCAL) == 0 &&
if (tp->t_cflag & HUPCL) {
if (tp->t_cflag & HUPCL) {
tp->t_cflag = TTYDEF_CFLAG;
tp->t_cflag = t->c_cflag;
tp->t_cflag = TTYDEF_CFLAG | CRTSCTS;
tp->t_cflag = t->c_cflag;
tp->t_cflag = TTYDEF_CFLAG;
tp->t_cflag = t->c_cflag;
tp->t_cflag = t->c_cflag;
tp->t_cflag = TTYDEF_CFLAG;
tp->t_cflag = TTYDEF_CFLAG;
ISSET(tp->t_cflag, CRTSCTS)) {
if (p == sc->sc_ibufhigh && ISSET(tp->t_cflag, CRTSCTS))
oldcflag = tp->t_cflag;
tp->t_cflag = t->c_cflag;
if (ISSET(tp->t_cflag, CRTSCTS) && !ISSET(sc->sc_msr, EXUART_CTS))
if (ISSET(tp->t_cflag, CRTSCTS) &&
tp->t_cflag = exuartconscflag;
tp->t_cflag = TTYDEF_CFLAG;
SET(tp->t_cflag, CLOCAL);
SET(tp->t_cflag, CRTSCTS);
SET(tp->t_cflag, MDMBUF);
(!ISSET(tp->t_cflag, CLOCAL) &&
ISSET(tp->t_cflag, CRTSCTS)) {
oldcflag = tp->t_cflag;
tp->t_cflag = t->c_cflag;
if (ISSET(tp->t_cflag, CRTSCTS) && !ISSET(sc->sc_msr, IMXUART_CTS))
if (ISSET(tp->t_cflag, CRTSCTS) &&
tp->t_cflag = imxuartconscflag;
tp->t_cflag = TTYDEF_CFLAG;
SET(tp->t_cflag, CLOCAL);
SET(tp->t_cflag, CRTSCTS);
SET(tp->t_cflag, MDMBUF);
(!ISSET(tp->t_cflag, CLOCAL) &&
oldcflag = tp->t_cflag;
tp->t_cflag = t->c_cflag;
tp->t_cflag = TTYDEF_CFLAG;
(!ISSET(tp->t_cflag, CLOCAL) &&
if (ISSET(tp->t_cflag, CRTSCTS) &&
ISSET(tp->t_cflag, CRTSCTS)) {
ISSET(tp->t_cflag, CRTSCTS)) {
tp->t_cflag = comconscflag;
tp->t_cflag = TTYDEF_CFLAG;
SET(tp->t_cflag, CLOCAL);
SET(tp->t_cflag, CRTSCTS);
SET(tp->t_cflag, MDMBUF);
ISSET(sc->sc_msr, MSR_DCD) || ISSET(tp->t_cflag, MDMBUF))
(!ISSET(tp->t_cflag, CLOCAL) &&
if (ISSET(tp->t_cflag, HUPCL) &&
oldcflag = tp->t_cflag;
tp->t_cflag = t->c_cflag;
ISSET(oldcflag, MDMBUF) != ISSET(tp->t_cflag, MDMBUF) &&
if (ISSET(tp->t_cflag, CRTSCTS) && !ISSET(sc->sc_msr, MSR_CTS))
if (ISSET(cy->cy_tty->t_cflag, CRTSCTS)) {
tp->t_cflag = TTYDEF_CFLAG;
SET(tp->t_cflag, CLOCAL);
SET(tp->t_cflag, CRTSCTS);
SET(tp->t_cflag, MDMBUF);
ISSET(tp->t_cflag, MDMBUF) ||
while (!ISSET(tp->t_cflag, CLOCAL) &&
if (ISSET(tp->t_cflag, HUPCL) &&
if (!ISSET(cy->cy_tty->t_cflag, CRTSCTS))
if (!ISSET(cy->cy_tty->t_cflag, CRTSCTS))
if (!ISSET(cy->cy_tty->t_cflag, CRTSCTS) &&
if (!ISSET(cy->cy_tty->t_cflag, CRTSCTS) &&
if (!ISSET(cy->cy_tty->t_cflag, CRTSCTS) &&
if (!ISSET(cy->cy_tty->t_cflag, CRTSCTS) &&
if (ISSET(tp->t_cflag, CRTSCTS)) {
if (p == sc->sc_ibufhigh && ISSET(tp->t_cflag, CRTSCTS)) {
oldcflag = tp->t_cflag;
tp->t_cflag = t->c_cflag;
if (ISSET(tp->t_cflag, CRTSCTS) &&
tp->t_cflag = pluartconscflag;
tp->t_cflag = TTYDEF_CFLAG;
SET(tp->t_cflag, CLOCAL);
SET(tp->t_cflag, CRTSCTS);
SET(tp->t_cflag, MDMBUF);
(!ISSET(tp->t_cflag, CLOCAL) &&
tp->t_cflag = t->c_cflag;
tp->t_cflag = TTYDEF_CFLAG;
tp->t_cflag = cflag;
if (ISSET(tp->t_cflag, HUPCL) || ISSET(tp->t_state, TS_WOPEN)) {
(!ISSET(tp->t_cflag, CLOCAL) && !ISSET(tp->t_state, TS_CARR_ON))) {
if ((ISSET(tp->t_cflag, CLOCAL) ||
tp->t_cflag == cflag)
tp->t_cflag == cflag)
tp->t_cflag = t->c_cflag;
if (ISSET(tp->t_cflag, HUPCL)) {
tp->t_cflag = t->c_cflag;
tp->t_cflag = TTYDEF_CFLAG|CLOCAL|CRTSCTS;
if (!ISSET(tp->t_cflag, CRTSCTS))
if ((bits & TIOCM_RTS) && !ISSET(tp->t_cflag, CRTSCTS))
if ((bits & TIOCM_RTS) && !ISSET(tp->t_cflag, CRTSCTS))
tp->t_cflag = TTYDEF_CFLAG;
SET(tp->t_cflag, CLOCAL);
SET(tp->t_cflag, CRTSCTS);
SET(tp->t_cflag, MDMBUF);
while (!ISSET(tp->t_cflag, CLOCAL) && !ISSET(tp->t_state, TS_CARR_ON)) {
if (ISSET(tp->t_cflag, HUPCL) || !ISSET(tp->t_state, TS_ISOPEN)) {
tp->t_cflag = TTYDEF_CFLAG;
SET(tp->t_cflag, CLOCAL);
SET(tp->t_cflag, CRTSCTS);
SET(tp->t_cflag, MDMBUF);
while (!ISSET(tp->t_cflag, CLOCAL) &&
if (ISSET(tp->t_cflag, HUPCL) || !ISSET(tp->t_state, TS_ISOPEN)) {
if (ISSET(bits, TIOCM_RTS) && !ISSET(tp->t_cflag, CRTSCTS))
CLR(tp->t_cflag, CLOCAL | MDMBUF);
if (ISSET(tp->t_cflag, HUPCL)) {
ISSET(sc->sc_msr, UMSR_DCD) || ISSET(tp->t_cflag, MDMBUF))
while (sc->sc_cua || (!ISSET(tp->t_cflag, CLOCAL) &&
tp->t_cflag == t->c_cflag)
tp->t_cflag = t->c_cflag;
tp->t_cflag = t->c_cflag;
tp->t_cflag = TTYDEF_CFLAG;
if (!ISSET(tp->t_cflag, CLOCAL) && !ISSET(tp->t_state, TS_CARR_ON)) {
if (!ISSET(tp->t_cflag, CLOCAL) &&
if (!ISSET(tp->t_cflag, CLOCAL) &&
(ISSET(tp->t_state, TS_CARR_ON) || ISSET(tp->t_cflag, CLOCAL)) &&
(ISSET(tp->t_state, TS_CARR_ON) || ISSET(tp->t_cflag, CLOCAL))
if (ISSET(tp->t_cflag, CHWFLOW) && tp->t_hwiflow &&
if (!ISSET(tp->t_state, TS_WOPEN) && ISSET(tp->t_cflag, MDMBUF)) {
!ISSET(tp->t_cflag, CLOCAL)) {
!ISSET(tp->t_cflag, CLOCAL)) {
ISSET(tp->t_cflag, CLOCAL);
if (ISSET(tp->t_cflag, CHWFLOW) && tp->t_hwiflow &&
!ISSET(tp->t_cflag, CLOCAL)) {
!(ISSET(tp->t_state, TS_CARR_ON) || ISSET(tp->t_cflag, CLOCAL))) {
if (!ISSET(tp->t_cflag, CREAD))
if (ISSET(iflag, IXOFF) || ISSET(tp->t_cflag, CHWFLOW))
ISSET(tp->t_cflag, CLOCAL) &&
tp->t_cflag = t->c_cflag;
tp->t_cflag = TTYDEF_CFLAG;
if ((tp->t_state & TS_CARR_ON) == 0 && (tp->t_cflag & CLOCAL) == 0
if ((tp->t_state & TS_CARR_ON) == 0 && (tp->t_cflag & CLOCAL) == 0)
&& !((tp->t_state & TS_CARR_ON) == 0 && (tp->t_cflag & CLOCAL) == 0)