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
424 * Reads the baud rate, data bits, parity, stop bits and flow control mode
566 dbg("%s - flow control = CRTSCTS", __func__);
569 dbg("%s - flow control = NONE", __func__);
685 dbg("%s - flow control = CRTSCTS", __func__);
690 dbg("%s - flow control = NONE", __func__);
711 unsigned int control = 0;
716 control |= CONTROL_RTS;
717 control |= CONTROL_WRITE_RTS;
720 control |= CONTROL_DTR;
721 control |= CONTROL_WRITE_DTR;
724 control &= ~CONTROL_RTS;
725 control |= CONTROL_WRITE_RTS;
728 control &= ~CONTROL_DTR;
729 control |= CONTROL_WRITE_DTR;
732 dbg("%s - control = 0x%.4x", __func__, control);
734 return cp210x_set_config(port, CP210X_SET_MHS, &control, 2);
748 unsigned int control;
753 cp210x_get_config(port, CP210X_GET_MDMSTS, &control, 1);
755 result = ((control & CONTROL_DTR) ? TIOCM_DTR : 0)
756 |((control & CONTROL_RTS) ? TIOCM_RTS : 0)
757 |((control & CONTROL_CTS) ? TIOCM_CTS : 0)
758 |((control & CONTROL_DSR) ? TIOCM_DSR : 0)
759 |((control & CONTROL_RING)? TIOCM_RI : 0)
760 |((control & CONTROL_DCD) ? TIOCM_CD : 0);
762 dbg("%s - control = 0x%.2x", __func__, control);