Lines Matching defs:baud
70 * Converts POSIX speed_t to a baud rate. The values of the
168 * Converts a numeric baud rate to a POSIX speed_t.
171 baud_to_speed(int baud)
173 switch (baud) {
273 int baud;
297 /* Store input and output baud rates. */
298 baud = speed_to_baud(cfgetospeed(&tio));
299 debug3("tty_make_modes: ospeed %d", baud);
301 buffer_put_int(&buf, baud);
302 baud = speed_to_baud(cfgetispeed(&tio));
303 debug3("tty_make_modes: ispeed %d", baud);
305 buffer_put_int(&buf, baud);
341 int opcode, baud;
380 baud = packet_get_int();
381 debug3("tty_parse_modes: ispeed %d", baud);
382 if (failure != -1 && cfsetispeed(&tio, baud_to_speed(baud)) == -1)
383 error("cfsetispeed failed for %d", baud);
390 baud = packet_get_int();
391 debug3("tty_parse_modes: ospeed %d", baud);
392 if (failure != -1 && cfsetospeed(&tio, baud_to_speed(baud)) == -1)
393 error("cfsetospeed failed for %d", baud);