Lines Matching refs:termios
950 struct termios termios; in USERIAL_Open() local
1074 tcgetattr(linux_cb.sock, &termios); in USERIAL_Open()
1076 termios.c_cflag &= ~(CSIZE | PARENB); in USERIAL_Open()
1077 termios.c_cflag = CLOCAL|CREAD|data_bits|stop_bits|parity; in USERIAL_Open()
1079 termios.c_cflag |= IGNPAR; in USERIAL_Open()
1081 termios.c_oflag = 0; in USERIAL_Open()
1082 termios.c_lflag &= ~(ECHO | ECHONL | ICANON | IEXTEN | ISIG); in USERIAL_Open()
1083 termios.c_iflag &= ~(BRKINT | ICRNL | INLCR | ISTRIP | IXON | IGNBRK | PARMRK | INPCK); in USERIAL_Open()
1084 termios.c_lflag = 0; in USERIAL_Open()
1085 termios.c_iflag = 0; in USERIAL_Open()
1086 cfsetospeed(&termios, baud); in USERIAL_Open()
1087 cfsetispeed(&termios, baud); in USERIAL_Open()
1089 termios.c_cc[VTIME] = 0; in USERIAL_Open()
1090 termios.c_cc[VMIN] = 1; in USERIAL_Open()
1091 tcsetattr(linux_cb.sock, TCSANOW, &termios); in USERIAL_Open()
1294 struct termios termios; in userial_change_rate() local
1303 tcgetattr(linux_cb.sock, &termios); in userial_change_rate()
1305 cfmakeraw(&termios); in userial_change_rate()
1306 cfsetospeed(&termios, baud); in userial_change_rate()
1307 cfsetispeed(&termios, baud); in userial_change_rate()
1309 termios.c_cflag |= (CLOCAL | CREAD | CRTSCTS | stop_bits); in userial_change_rate()
1311 tcsetattr(linux_cb.sock, TCSANOW, &termios); in userial_change_rate()
1340 tcgetattr(linux_cb.sock, &termios); in userial_change_rate()
1343 cfsetospeed(&termios, tcio_baud); in userial_change_rate()
1344 cfsetispeed(&termios, tcio_baud); in userial_change_rate()
1345 tcsetattr(linux_cb.sock, TCSANOW, &termios); in userial_change_rate()