Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/tty/serial/
Dsccnxp.c310 int div_std, tmp_baud, bestbaud = INT_MAX, besterr = INT_MAX; in sccnxp_set_baud() local
315 div_std = DIV_ROUND_CLOSEST(port->uartclk, 2 * 16 * baud); in sccnxp_set_baud()
316 if ((div_std >= 2) && (div_std <= 0xffff)) { in sccnxp_set_baud()
317 bestbaud = DIV_ROUND_CLOSEST(port->uartclk, 2 * 16 * div_std); in sccnxp_set_baud()
320 sccnxp_port_write(port, SCCNXP_CTPU_REG, div_std >> 8); in sccnxp_set_baud()
321 sccnxp_port_write(port, SCCNXP_CTPL_REG, div_std); in sccnxp_set_baud()
330 div_std = DIV_ROUND_CLOSEST(chip->freq_std, baud_std[i].baud); in sccnxp_set_baud()
331 tmp_baud = DIV_ROUND_CLOSEST(port->uartclk, div_std); in sccnxp_set_baud()