Lines Matching refs:control_state
42 unsigned long control_state; member
179 metro_priv->control_state = 0; in metrousb_open()
218 static int metrousb_set_modem_ctrl(struct usb_serial *serial, unsigned int control_state) in metrousb_set_modem_ctrl() argument
224 __func__, control_state); in metrousb_set_modem_ctrl()
227 if (control_state & TIOCM_DTR) in metrousb_set_modem_ctrl()
229 if (control_state & TIOCM_RTS) in metrousb_set_modem_ctrl()
235 control_state, 0, NULL, 0, WDR_TIMEOUT); in metrousb_set_modem_ctrl()
281 unsigned long control_state = 0; in metrousb_tiocmget() local
287 control_state = metro_priv->control_state; in metrousb_tiocmget()
290 return control_state; in metrousb_tiocmget()
300 unsigned long control_state = 0; in metrousb_tiocmset() local
305 control_state = metro_priv->control_state; in metrousb_tiocmset()
309 control_state |= TIOCM_RTS; in metrousb_tiocmset()
311 control_state |= TIOCM_DTR; in metrousb_tiocmset()
313 control_state &= ~TIOCM_RTS; in metrousb_tiocmset()
315 control_state &= ~TIOCM_DTR; in metrousb_tiocmset()
317 metro_priv->control_state = control_state; in metrousb_tiocmset()
319 return metrousb_set_modem_ctrl(serial, control_state); in metrousb_tiocmset()