Lines Matching refs:control_state

155 	unsigned int	     control_state; /* Modem Line Setting (TIOCM) */  member
275 unsigned int control_state) in mct_u232_set_modem_ctrl() argument
280 if (control_state & TIOCM_DTR) in mct_u232_set_modem_ctrl()
282 if (control_state & TIOCM_RTS) in mct_u232_set_modem_ctrl()
292 dbg("set_modem_ctrl: state=0x%x ==> mcr=0x%x", control_state, mcr); in mct_u232_set_modem_ctrl()
313 static void mct_u232_msr_to_state(unsigned int *control_state, unsigned char msr) in mct_u232_msr_to_state() argument
317 *control_state |= TIOCM_DSR; in mct_u232_msr_to_state()
319 *control_state &= ~TIOCM_DSR; in mct_u232_msr_to_state()
321 *control_state |= TIOCM_CTS; in mct_u232_msr_to_state()
323 *control_state &= ~TIOCM_CTS; in mct_u232_msr_to_state()
325 *control_state |= TIOCM_RI; in mct_u232_msr_to_state()
327 *control_state &= ~TIOCM_RI; in mct_u232_msr_to_state()
329 *control_state |= TIOCM_CD; in mct_u232_msr_to_state()
331 *control_state &= ~TIOCM_CD; in mct_u232_msr_to_state()
332 dbg("msr_to_state: msr=0x%x ==> state=0x%x", msr, *control_state); in mct_u232_msr_to_state()
393 unsigned int control_state; in mct_u232_open() local
415 priv->control_state = TIOCM_DTR | TIOCM_RTS; in mct_u232_open()
417 priv->control_state = 0; in mct_u232_open()
422 control_state = priv->control_state; in mct_u232_open()
425 mct_u232_set_modem_ctrl(serial, control_state); in mct_u232_open()
432 mct_u232_msr_to_state(&priv->control_state, priv->last_msr); in mct_u232_open()
549 mct_u232_msr_to_state(&priv->control_state, priv->last_msr); in mct_u232_read_int_callback()
590 unsigned int control_state, new_state; in mct_u232_set_termios() local
595 control_state = priv->control_state; in mct_u232_set_termios()
609 control_state |= TIOCM_DTR; in mct_u232_set_termios()
612 control_state |= TIOCM_RTS; in mct_u232_set_termios()
614 mct_u232_set_modem_ctrl(serial, control_state); in mct_u232_set_termios()
622 control_state &= ~(TIOCM_DTR | TIOCM_RTS); in mct_u232_set_termios()
623 mct_u232_set_modem_ctrl(serial, control_state); in mct_u232_set_termios()
664 new_state = control_state; in mct_u232_set_termios()
669 if (new_state != control_state) { in mct_u232_set_termios()
671 control_state = new_state; in mct_u232_set_termios()
676 priv->control_state = control_state; in mct_u232_set_termios()
704 unsigned int control_state; in mct_u232_tiocmget() local
710 control_state = priv->control_state; in mct_u232_tiocmget()
713 return control_state; in mct_u232_tiocmget()
743 priv->control_state |= TIOCM_RTS; in mct_u232_ioctl()
745 priv->control_state &= ~TIOCM_RTS; in mct_u232_ioctl()
752 priv->control_state |= TIOCM_DTR; in mct_u232_ioctl()
754 priv->control_state &= ~TIOCM_DTR; in mct_u232_ioctl()
757 mct_u232_set_modem_ctrl(serial, priv->control_state); in mct_u232_ioctl()