Lines Matching defs:speed
39 * sets the input baud rate stored in c_cflag to speed
43 cfsetispeed(struct termios *termios_p, speed_t speed)
46 * If the input speed is zero, set it to output speed
48 if (speed == 0) {
49 speed = termios_p->c_cflag & CBAUD;
51 speed += (CBAUD + 1);
54 if ((speed << 16) > CIBAUD) {
56 speed -= ((CIBAUD >> 16) + 1);
60 (termios_p->c_cflag & ~CIBAUD) | ((speed << 16) & CIBAUD);