Lines Matching refs:tio
1565 struct termios *tio = (struct termios *)args; in rt_serial_control() local
1566 if (tio == RT_NULL) return -RT_EINVAL; in rt_serial_control()
1568 tio->c_iflag = 0; in rt_serial_control()
1569 tio->c_oflag = 0; in rt_serial_control()
1570 tio->c_lflag = 0; in rt_serial_control()
1574 tio->c_oflag = OPOST | ONLCR; in rt_serial_control()
1577 tio->c_cflag = 0; in rt_serial_control()
1579 tio->c_cflag = CS5; in rt_serial_control()
1581 tio->c_cflag = CS6; in rt_serial_control()
1583 tio->c_cflag = CS7; in rt_serial_control()
1585 tio->c_cflag = CS8; in rt_serial_control()
1588 tio->c_cflag |= CSTOPB; in rt_serial_control()
1591 tio->c_cflag |= PARENB; in rt_serial_control()
1593 tio->c_cflag |= (PARODD | PARENB); in rt_serial_control()
1596 tio->c_cflag |= CRTSCTS; in rt_serial_control()
1598 cfsetospeed(tio, _get_speed(serial->config.baud_rate)); in rt_serial_control()
1608 struct termios *tio = (struct termios *)args; in rt_serial_control() local
1609 if (tio == RT_NULL) return -RT_EINVAL; in rt_serial_control()
1613 baudrate = _get_baudrate(cfgetospeed(tio)); in rt_serial_control()
1616 switch (tio->c_cflag & CSIZE) in rt_serial_control()
1632 if (tio->c_cflag & CSTOPB) in rt_serial_control()
1637 if (tio->c_cflag & PARENB) in rt_serial_control()
1639 if (tio->c_cflag & PARODD) in rt_serial_control()
1647 if (tio->c_cflag & CRTSCTS) in rt_serial_control()