Home
last modified time | relevance | path

Searched refs:bestbaud (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/drivers/tty/serial/
H A Dsccnxp.c306 int div_std, tmp_baud, bestbaud = INT_MAX, besterr = INT_MAX; in sccnxp_set_baud() local
313 bestbaud = DIV_ROUND_CLOSEST(port->uartclk, 2 * 16 * div_std); in sccnxp_set_baud()
314 sccnxp_update_best_err(baud, bestbaud, &besterr); in sccnxp_set_baud()
332 bestbaud = tmp_baud; in sccnxp_set_baud()
347 if (baud != bestbaud) in sccnxp_set_baud()
349 baud, bestbaud); in sccnxp_set_baud()
351 return bestbaud; in sccnxp_set_baud()
H A Dxilinx_uartps.c401 unsigned int bestbaud = 0; in cdns_uart_calc_baud_divs() local
427 bestbaud = calc_baud; in cdns_uart_calc_baud_divs()
433 bestbaud = baud; in cdns_uart_calc_baud_divs()
435 return bestbaud; in cdns_uart_calc_baud_divs()