Searched refs:tmp_osr (Results 1 – 2 of 2) sorted by relevance
103 unsigned int sbr, osr, baud_diff, tmp_osr, tmp_sbr; in lpuart32_serial_setbrg() local114 for (tmp_osr = 4; tmp_osr <= 32; tmp_osr++) { in lpuart32_serial_setbrg()115 tmp_sbr = (rate / (baudrate * tmp_osr)); in lpuart32_serial_setbrg()120 diff1 = rate / (tmp_osr * tmp_sbr) - baudrate; in lpuart32_serial_setbrg()121 diff2 = rate / (tmp_osr * (tmp_sbr + 1)); in lpuart32_serial_setbrg()131 osr = tmp_osr; in lpuart32_serial_setbrg()
92 unsigned int sbr, osr, baud_diff, tmp_osr, tmp_sbr; in lpuart32_serial_setbrg() local103 for (tmp_osr = 4; tmp_osr <= 32; tmp_osr++) { in lpuart32_serial_setbrg()104 tmp_sbr = (rate / (baudrate * tmp_osr)); in lpuart32_serial_setbrg()109 diff1 = rate / (tmp_osr * tmp_sbr) - baudrate; in lpuart32_serial_setbrg()110 diff2 = rate / (tmp_osr * (tmp_sbr + 1)); in lpuart32_serial_setbrg()120 osr = tmp_osr; in lpuart32_serial_setbrg()