Lines Matching refs:baudrate
537 static u32 f81534_calc_baud_divisor(u32 baudrate, u32 clockrate) in f81534_calc_baud_divisor() argument
540 return DIV_ROUND_CLOSEST(clockrate, baudrate); in f81534_calc_baud_divisor()
543 static int f81534_find_clk(u32 baudrate) in f81534_find_clk() argument
548 if (baudrate <= baudrate_table[idx] && in f81534_find_clk()
549 baudrate_table[idx] % baudrate == 0) in f81534_find_clk()
557 struct tty_struct *tty, u32 baudrate, u32 old_baudrate, u8 lcr) in f81534_set_port_config() argument
565 u32 baud_list[] = {baudrate, old_baudrate, F81534_DEFAULT_BAUD_RATE}; in f81534_set_port_config()
568 baudrate = baud_list[i]; in f81534_set_port_config()
569 if (baudrate == 0) { in f81534_set_port_config()
574 idx = f81534_find_clk(baudrate); in f81534_set_port_config()
576 tty_encode_baud_rate(tty, baudrate, baudrate); in f81534_set_port_config()
595 if (baudrate <= 1200) in f81534_set_port_config()
606 if (baudrate <= 1200) in f81534_set_port_config()
618 divisor = f81534_calc_baud_divisor(baudrate, port_priv->baud_base); in f81534_set_port_config()