Lines Matching full:baud
312 unsigned int baud, quot, fraction; in mtk8250_set_termios() local
328 * Store the requested baud rate before calling the generic 8250 in mtk8250_set_termios()
330 * no higher than (uartclk / 16) so the baud will be clamped if it in mtk8250_set_termios()
332 * higher than that, therefore we'll get original baud rate back in mtk8250_set_termios()
336 baud = tty_termios_baud_rate(termios); in mtk8250_set_termios()
340 tty_termios_encode_baud_rate(termios, baud, baud); in mtk8250_set_termios()
355 baud = uart_get_baud_rate(port, termios, old, in mtk8250_set_termios()
359 if (baud < 115200) { in mtk8250_set_termios()
361 quot = uart_get_divisor(port, baud); in mtk8250_set_termios()
364 quot = DIV_ROUND_UP(port->uartclk, 256 * baud); in mtk8250_set_termios()
376 uart_update_timeout(port, termios->c_cflag, baud); in mtk8250_set_termios()
385 if (baud >= 115200) { in mtk8250_set_termios()
388 tmp = (port->uartclk / (baud * quot)) - 1; in mtk8250_set_termios()
394 fraction = ((port->uartclk * 100) / baud / quot) % 100; in mtk8250_set_termios()
422 tty_termios_encode_baud_rate(termios, baud, baud); in mtk8250_set_termios()
474 data->uart_clk = devm_clk_get(&pdev->dev, "baud"); in mtk8250_probe_of()
478 * clk when no baud clk can be found. in mtk8250_probe_of()