Lines Matching full:baud
316 unsigned int baud, quot, fraction; in mtk8250_set_termios() local
332 * Store the requested baud rate before calling the generic 8250 in mtk8250_set_termios()
334 * no higher than (uartclk / 16) so the baud will be clamped if it in mtk8250_set_termios()
336 * higher than that, therefore we'll get original baud rate back in mtk8250_set_termios()
340 baud = tty_termios_baud_rate(termios); in mtk8250_set_termios()
344 tty_termios_encode_baud_rate(termios, baud, baud); in mtk8250_set_termios()
359 baud = uart_get_baud_rate(port, termios, old, in mtk8250_set_termios()
363 if (baud < 115200) { in mtk8250_set_termios()
365 quot = uart_get_divisor(port, baud); in mtk8250_set_termios()
368 quot = DIV_ROUND_UP(port->uartclk, 256 * baud); in mtk8250_set_termios()
380 uart_update_timeout(port, termios->c_cflag, baud); in mtk8250_set_termios()
389 if (baud >= 115200) { in mtk8250_set_termios()
392 tmp = (port->uartclk / (baud * quot)) - 1; in mtk8250_set_termios()
398 fraction = ((port->uartclk * 100) / baud / quot) % 100; in mtk8250_set_termios()
426 tty_termios_encode_baud_rate(termios, baud, baud); in mtk8250_set_termios()
478 data->uart_clk = devm_clk_get(&pdev->dev, "baud"); in mtk8250_probe_of()
482 * clk when no baud clk can be found. in mtk8250_probe_of()