Lines Matching full:baud
294 unsigned int baud, quot, fraction; in mtk8250_set_termios() local
310 * Store the requested baud rate before calling the generic 8250 in mtk8250_set_termios()
312 * no higher than (uartclk / 16) so the baud will be clamped if it in mtk8250_set_termios()
314 * higher than that, therefore we'll get original baud rate back in mtk8250_set_termios()
318 baud = tty_termios_baud_rate(termios); in mtk8250_set_termios()
322 tty_termios_encode_baud_rate(termios, baud, baud); in mtk8250_set_termios()
337 baud = uart_get_baud_rate(port, termios, old, in mtk8250_set_termios()
341 if (baud < 115200) { in mtk8250_set_termios()
343 quot = uart_get_divisor(port, baud); in mtk8250_set_termios()
346 quot = DIV_ROUND_UP(port->uartclk, 256 * baud); in mtk8250_set_termios()
358 uart_update_timeout(port, termios->c_cflag, baud); in mtk8250_set_termios()
367 if (baud >= 115200) { in mtk8250_set_termios()
370 tmp = (port->uartclk / (baud * quot)) - 1; in mtk8250_set_termios()
376 fraction = ((port->uartclk * 100) / baud / quot) % 100; in mtk8250_set_termios()
404 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()