Lines Matching refs:c_cflag
560 const tcflag_t csize_bits = p->c_cflag & CSIZE; in uart_tcsetattr()
586 …if (uart_set_stop_bits(fd, (p->c_cflag & CSTOPB) ? UART_STOP_BITS_2 : UART_STOP_BITS_1) != ESP_OK)… in uart_tcsetattr()
591 if (uart_set_parity(fd, (p->c_cflag & PARENB) ? in uart_tcsetattr()
592 ((p->c_cflag & PARODD) ? UART_PARITY_ODD : UART_PARITY_EVEN) in uart_tcsetattr()
599 if (p->c_cflag & (CBAUD | CBAUDEX)) { in uart_tcsetattr()
605 if (p->c_cflag & BOTHER) { in uart_tcsetattr()
746 p->c_cflag &= (~CSIZE); in uart_tcgetattr()
750 p->c_cflag |= CS5; in uart_tcgetattr()
753 p->c_cflag |= CS6; in uart_tcgetattr()
756 p->c_cflag |= CS7; in uart_tcgetattr()
759 p->c_cflag |= CS8; in uart_tcgetattr()
779 p->c_cflag |= CSTOPB; in uart_tcgetattr()
797 p->c_cflag |= PARENB; in uart_tcgetattr()
800 p->c_cflag |= (PARENB | PARODD); in uart_tcgetattr()
818 p->c_cflag |= (CBAUD | CBAUDEX); in uart_tcgetattr()
916 p->c_cflag |= BOTHER; in uart_tcgetattr()