Lines Matching refs:baudrate
131 static int calc_baud_divisor(speed_t baudrate, speed_t clockrate) in calc_baud_divisor() argument
133 return DIV_ROUND_CLOSEST(clockrate, baudrate); in calc_baud_divisor()
472 static int f81232_find_clk(speed_t baudrate) in f81232_find_clk() argument
477 if (baudrate <= baudrate_table[idx] && in f81232_find_clk()
478 baudrate_table[idx] % baudrate == 0) in f81232_find_clk()
486 struct usb_serial_port *port, speed_t baudrate, in f81232_set_baudrate() argument
495 speed_t baud_list[] = { baudrate, old_baudrate, F81232_DEF_BAUDRATE }; in f81232_set_baudrate()
498 baudrate = baud_list[i]; in f81232_set_baudrate()
499 if (baudrate == 0) { in f81232_set_baudrate()
504 idx = f81232_find_clk(baudrate); in f81232_set_baudrate()
506 tty_encode_baud_rate(tty, baudrate, baudrate); in f81232_set_baudrate()
515 divisor = calc_baud_divisor(baudrate, priv->baud_base); in f81232_set_baudrate()
614 speed_t baudrate; in f81232_set_termios() local
626 baudrate = tty_get_baud_rate(tty); in f81232_set_termios()
627 if (baudrate > 0) { in f81232_set_termios()
633 f81232_set_baudrate(tty, port, baudrate, old_baud); in f81232_set_termios()