Lines Matching full:baud
303 unsigned int baud, quot, fraction; in mtk8250_set_termios() local
319 * Store the requested baud rate before calling the generic 8250 in mtk8250_set_termios()
321 * no higher than (uartclk / 16) so the baud will be clamped if it in mtk8250_set_termios()
323 * higher than that, therefore we'll get original baud rate back in mtk8250_set_termios()
327 baud = tty_termios_baud_rate(termios); in mtk8250_set_termios()
331 tty_termios_encode_baud_rate(termios, baud, baud); in mtk8250_set_termios()
346 baud = uart_get_baud_rate(port, termios, old, in mtk8250_set_termios()
350 if (baud < 115200) { in mtk8250_set_termios()
352 quot = uart_get_divisor(port, baud); in mtk8250_set_termios()
355 quot = DIV_ROUND_UP(port->uartclk, 256 * baud); in mtk8250_set_termios()
367 uart_update_timeout(port, termios->c_cflag, baud); in mtk8250_set_termios()
376 if (baud >= 115200) { in mtk8250_set_termios()
379 tmp = (port->uartclk / (baud * quot)) - 1; in mtk8250_set_termios()
385 fraction = ((port->uartclk * 100) / baud / quot) % 100; in mtk8250_set_termios()
413 tty_termios_encode_baud_rate(termios, baud, baud); in mtk8250_set_termios()
483 data->uart_clk = devm_clk_get(&pdev->dev, "baud"); in mtk8250_probe_of()
487 * clk when no baud clk can be found. in mtk8250_probe_of()