Lines Matching refs:newctrl
291 int newctrl; in acm_process_notification() local
310 newctrl = get_unaligned_le16(data); in acm_process_notification()
312 "%s - serial state: 0x%x\n", __func__, newctrl); in acm_process_notification()
314 if (!acm->clocal && (acm->ctrlin & ~newctrl & USB_CDC_SERIAL_STATE_DCD)) { in acm_process_notification()
320 difference = acm->ctrlin ^ newctrl; in acm_process_notification()
322 acm->ctrlin = newctrl; in acm_process_notification()
329 if (newctrl & USB_CDC_SERIAL_STATE_BREAK) { in acm_process_notification()
333 if (newctrl & USB_CDC_SERIAL_STATE_RING_SIGNAL) in acm_process_notification()
335 if (newctrl & USB_CDC_SERIAL_STATE_FRAMING) in acm_process_notification()
337 if (newctrl & USB_CDC_SERIAL_STATE_PARITY) in acm_process_notification()
339 if (newctrl & USB_CDC_SERIAL_STATE_OVERRUN) in acm_process_notification()
343 if (newctrl & USB_CDC_SERIAL_STATE_BREAK) in acm_process_notification()
918 unsigned int newctrl; in acm_tty_tiocmset() local
920 newctrl = acm->ctrlout; in acm_tty_tiocmset()
926 newctrl = (newctrl & ~clear) | set; in acm_tty_tiocmset()
928 if (acm->ctrlout == newctrl) in acm_tty_tiocmset()
930 return acm_set_control(acm, acm->ctrlout = newctrl); in acm_tty_tiocmset()
1057 int newctrl = acm->ctrlout; in acm_tty_set_termios() local
1071 newctrl &= ~USB_CDC_CTRL_DTR; in acm_tty_set_termios()
1073 newctrl |= USB_CDC_CTRL_DTR; in acm_tty_set_termios()
1076 if (newctrl != acm->ctrlout) in acm_tty_set_termios()
1077 acm_set_control(acm, acm->ctrlout = newctrl); in acm_tty_set_termios()