Lines Matching refs:mcr_state
156 u8 mcr_state; /* Last MCR state */
158 struct mutex mutex; /* Protects mcr_state */
598 static int mxuport_set_mcr(struct usb_serial_port *port, u8 mcr_state)
603 dev_dbg(&port->dev, "%s - %02x\n", __func__, mcr_state);
606 mcr_state, port->port_number);
625 mxport->mcr_state |= UART_MCR_DTR;
627 mxport->mcr_state &= ~UART_MCR_DTR;
640 u8 mcr_state;
643 mcr_state = mxport->mcr_state;
647 mcr_state &= ~UART_MCR_RTS;
650 mcr_state |= UART_MCR_RTS;
654 * Do not update mxport->mcr_state when doing hardware
669 mxport->mcr_state = mcr_state;
680 u8 mcr_state;
684 mcr_state = mxport->mcr_state;
687 mcr_state |= (UART_MCR_RTS | UART_MCR_DTR);
689 mcr_state &= ~(UART_MCR_RTS | UART_MCR_DTR);
691 err = mxuport_set_mcr(port, mcr_state);
693 mxport->mcr_state = mcr_state;
704 u8 mcr_state;
707 mcr_state = mxport->mcr_state;
710 mcr_state |= UART_MCR_RTS;
713 mcr_state |= UART_MCR_DTR;
716 mcr_state &= ~UART_MCR_RTS;
719 mcr_state &= ~UART_MCR_DTR;
721 err = mxuport_set_mcr(port, mcr_state);
723 mxport->mcr_state = mcr_state;
745 mcr = mxport->mcr_state;