Lines Matching refs:newctrl

292 	int newctrl;  in acm_process_notification()  local
311 newctrl = get_unaligned_le16(data); in acm_process_notification()
313 "%s - serial state: 0x%x\n", __func__, newctrl); in acm_process_notification()
315 if (!acm->clocal && (acm->ctrlin & ~newctrl & USB_CDC_SERIAL_STATE_DCD)) { in acm_process_notification()
321 difference = acm->ctrlin ^ newctrl; in acm_process_notification()
327 ld->ops->dcd_change(acm->port.tty, newctrl & USB_CDC_SERIAL_STATE_DCD); in acm_process_notification()
333 acm->ctrlin = newctrl; in acm_process_notification()
340 if (newctrl & USB_CDC_SERIAL_STATE_BREAK) { in acm_process_notification()
344 if (newctrl & USB_CDC_SERIAL_STATE_RING_SIGNAL) in acm_process_notification()
346 if (newctrl & USB_CDC_SERIAL_STATE_FRAMING) in acm_process_notification()
348 if (newctrl & USB_CDC_SERIAL_STATE_PARITY) in acm_process_notification()
350 if (newctrl & USB_CDC_SERIAL_STATE_OVERRUN) in acm_process_notification()
354 if (newctrl & USB_CDC_SERIAL_STATE_BREAK) in acm_process_notification()
945 unsigned int newctrl; in acm_tty_tiocmset() local
947 newctrl = acm->ctrlout; in acm_tty_tiocmset()
953 newctrl = (newctrl & ~clear) | set; in acm_tty_tiocmset()
955 if (acm->ctrlout == newctrl) in acm_tty_tiocmset()
957 return acm_set_control(acm, acm->ctrlout = newctrl); in acm_tty_tiocmset()
1086 int newctrl = acm->ctrlout; in acm_tty_set_termios() local
1100 newctrl &= ~USB_CDC_CTRL_DTR; in acm_tty_set_termios()
1102 newctrl |= USB_CDC_CTRL_DTR; in acm_tty_set_termios()
1105 if (newctrl != acm->ctrlout) in acm_tty_set_termios()
1106 acm_set_control(acm, acm->ctrlout = newctrl); in acm_tty_set_termios()