Lines Matching refs:mcr
335 static int ti_set_mcr(struct ti_port *tport, unsigned int mcr);
934 unsigned int mcr; in ti_set_termios() local
1042 mcr = tport->tp_shadow_mcr; in ti_set_termios()
1045 mcr &= ~(TI_MCR_DTR | TI_MCR_RTS); in ti_set_termios()
1046 status = ti_set_mcr(tport, mcr); in ti_set_termios()
1062 unsigned int mcr; in ti_tiocmget() local
1067 mcr = tport->tp_shadow_mcr; in ti_tiocmget()
1070 result = ((mcr & TI_MCR_DTR) ? TIOCM_DTR : 0) in ti_tiocmget()
1071 | ((mcr & TI_MCR_RTS) ? TIOCM_RTS : 0) in ti_tiocmget()
1072 | ((mcr & TI_MCR_LOOP) ? TIOCM_LOOP : 0) in ti_tiocmget()
1089 unsigned int mcr; in ti_tiocmset() local
1093 mcr = tport->tp_shadow_mcr; in ti_tiocmset()
1096 mcr |= TI_MCR_RTS; in ti_tiocmset()
1098 mcr |= TI_MCR_DTR; in ti_tiocmset()
1100 mcr |= TI_MCR_LOOP; in ti_tiocmset()
1103 mcr &= ~TI_MCR_RTS; in ti_tiocmset()
1105 mcr &= ~TI_MCR_DTR; in ti_tiocmset()
1107 mcr &= ~TI_MCR_LOOP; in ti_tiocmset()
1110 return ti_set_mcr(tport, mcr); in ti_tiocmset()
1379 static int ti_set_mcr(struct ti_port *tport, unsigned int mcr) in ti_set_mcr() argument
1386 TI_MCR_RTS | TI_MCR_DTR | TI_MCR_LOOP, mcr); in ti_set_mcr()
1390 tport->tp_shadow_mcr = mcr; in ti_set_mcr()