Home
last modified time | relevance | path

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

/openbmc/u-boot/drivers/serial/
H A Dserial_lpuart.c235 u32 sbr, osr, baud_diff, tmp_osr, tmp_sbr, tmp_diff, tmp; in _lpuart32_serial_setbrg_7ulp() local
251 for (tmp_osr = 4; tmp_osr <= 32; tmp_osr++) { in _lpuart32_serial_setbrg_7ulp()
252 tmp_sbr = (clk / (baudrate * tmp_osr)); in _lpuart32_serial_setbrg_7ulp()
258 tmp_diff = (clk / (tmp_osr * tmp_sbr)); in _lpuart32_serial_setbrg_7ulp()
262 if (tmp_diff > (baudrate - (clk / (tmp_osr * (tmp_sbr + 1))))) { in _lpuart32_serial_setbrg_7ulp()
263 tmp_diff = baudrate - (clk / (tmp_osr * (tmp_sbr + 1))); in _lpuart32_serial_setbrg_7ulp()
269 osr = tmp_osr; in _lpuart32_serial_setbrg_7ulp()
/openbmc/linux/drivers/tty/serial/
H A Dfsl_lpuart.c2134 u32 sbr, osr, baud_diff, tmp_osr, tmp_sbr, tmp_diff, tmp; in __lpuart32_serial_setbrg() local
2150 for (tmp_osr = 4; tmp_osr <= 32; tmp_osr++) { in __lpuart32_serial_setbrg()
2152 tmp_sbr = (clk / (baudrate * tmp_osr)); in __lpuart32_serial_setbrg()
2160 tmp_diff = clk / (tmp_osr * tmp_sbr) - baudrate; in __lpuart32_serial_setbrg()
2163 tmp = clk / (tmp_osr * (tmp_sbr + 1)); in __lpuart32_serial_setbrg()
2174 osr = tmp_osr; in __lpuart32_serial_setbrg()