Lines Matching defs:control
10 * Support to set flow control line levels using TIOCMGET and TIOCMSET
12 * control thanks to Munir Nassar nassarmu@real-time.com
476 * Reads the baud rate, data bits, parity, stop bits and flow control mode
604 dev_dbg(dev, "%s - flow control = CRTSCTS\n", __func__);
607 dev_dbg(dev, "%s - flow control = NONE\n", __func__);
766 dev_dbg(dev, "%s - flow control = CRTSCTS\n", __func__);
771 dev_dbg(dev, "%s - flow control = NONE\n", __func__);
792 unsigned int control = 0;
795 control |= CONTROL_RTS;
796 control |= CONTROL_WRITE_RTS;
799 control |= CONTROL_DTR;
800 control |= CONTROL_WRITE_DTR;
803 control &= ~CONTROL_RTS;
804 control |= CONTROL_WRITE_RTS;
807 control &= ~CONTROL_DTR;
808 control |= CONTROL_WRITE_DTR;
811 dev_dbg(&port->dev, "%s - control = 0x%.4x\n", __func__, control);
813 return cp210x_set_config(port, CP210X_SET_MHS, &control, 2);
827 unsigned int control;
830 cp210x_get_config(port, CP210X_GET_MDMSTS, &control, 1);
832 result = ((control & CONTROL_DTR) ? TIOCM_DTR : 0)
833 |((control & CONTROL_RTS) ? TIOCM_RTS : 0)
834 |((control & CONTROL_CTS) ? TIOCM_CTS : 0)
835 |((control & CONTROL_DSR) ? TIOCM_DSR : 0)
836 |((control & CONTROL_RING)? TIOCM_RI : 0)
837 |((control & CONTROL_DCD) ? TIOCM_CD : 0);
839 dev_dbg(&port->dev, "%s - control = 0x%.2x\n", __func__, control);