Lines Matching full:baud
299 unsigned int baud, quot, fraction; in mtk8250_set_termios() local
315 * Store the requested baud rate before calling the generic 8250 in mtk8250_set_termios()
317 * no higher than (uartclk / 16) so the baud will be clamped if it in mtk8250_set_termios()
319 * higher than that, therefore we'll get original baud rate back in mtk8250_set_termios()
323 baud = tty_termios_baud_rate(termios); in mtk8250_set_termios()
327 tty_termios_encode_baud_rate(termios, baud, baud); in mtk8250_set_termios()
342 baud = uart_get_baud_rate(port, termios, old, in mtk8250_set_termios()
346 if (baud < 115200) { in mtk8250_set_termios()
348 quot = uart_get_divisor(port, baud); in mtk8250_set_termios()
351 quot = DIV_ROUND_UP(port->uartclk, 256 * baud); in mtk8250_set_termios()
363 uart_update_timeout(port, termios->c_cflag, baud); in mtk8250_set_termios()
372 if (baud >= 115200) { in mtk8250_set_termios()
375 tmp = (port->uartclk / (baud * quot)) - 1; in mtk8250_set_termios()
381 fraction = ((port->uartclk * 100) / baud / quot) % 100; in mtk8250_set_termios()
409 tty_termios_encode_baud_rate(termios, baud, baud); in mtk8250_set_termios()
479 data->uart_clk = devm_clk_get(&pdev->dev, "baud"); in mtk8250_probe_of()
483 * clk when no baud clk can be found. in mtk8250_probe_of()