Searched refs:diff2 (Results 1 – 2 of 2) sorted by relevance
106 unsigned int diff1, diff2, tmp, rate; in lpuart32_serial_setbrg() local123 diff2 = rate / (tmp_osr * (tmp_sbr + 1)); in lpuart32_serial_setbrg()126 if (diff1 > (baudrate - diff2)) { in lpuart32_serial_setbrg()127 diff1 = baudrate - diff2; in lpuart32_serial_setbrg()
95 unsigned int diff1, diff2, tmp, rate; in lpuart32_serial_setbrg() local112 diff2 = rate / (tmp_osr * (tmp_sbr + 1)); in lpuart32_serial_setbrg()115 if (diff1 > (baudrate - diff2)) { in lpuart32_serial_setbrg()116 diff1 = baudrate - diff2; in lpuart32_serial_setbrg()