Searched refs:tmp_diff (Results 1 – 6 of 6) sorted by relevance
282 int tmp_diff; in clk_audio_pll_pad_round_rate() local309 tmp_diff = abs(rate - tmp_rate); in clk_audio_pll_pad_round_rate()311 if (best_diff < 0 || best_diff > tmp_diff) { in clk_audio_pll_pad_round_rate()314 best_diff = tmp_diff; in clk_audio_pll_pad_round_rate()332 int tmp_diff; in clk_audio_pll_pmc_round_rate() local346 tmp_diff = abs(rate - tmp_rate); in clk_audio_pll_pmc_round_rate()348 if (best_diff < 0 || best_diff > tmp_diff) { in clk_audio_pll_pmc_round_rate()351 best_diff = tmp_diff; in clk_audio_pll_pmc_round_rate()
62 int tmp_diff; in at91sam9x5_clk_usb_determine_rate() local80 tmp_diff = req->rate - tmp_rate; in at91sam9x5_clk_usb_determine_rate()82 tmp_diff = tmp_rate - req->rate; in at91sam9x5_clk_usb_determine_rate()84 if (best_diff < 0 || best_diff > tmp_diff) { in at91sam9x5_clk_usb_determine_rate()86 best_diff = tmp_diff; in at91sam9x5_clk_usb_determine_rate()
104 int tmp_diff; in clk_generated_best_diff() local110 tmp_diff = abs(req->rate - tmp_rate); in clk_generated_best_diff()112 if (*best_diff < 0 || *best_diff > tmp_diff) { in clk_generated_best_diff()114 *best_diff = tmp_diff; in clk_generated_best_diff()
1282 int tmp_diff = dsp_time_diff + PCXHR_DSP_TIME_MASK + 1; in pcxhr_threaded_irq() local1286 if (tmp_diff > 0 && tmp_diff <= (2*mgr->granularity)) { in pcxhr_threaded_irq()1289 "diff=%d\n", tmp_diff); in pcxhr_threaded_irq()1290 dsp_time_diff = tmp_diff; in pcxhr_threaded_irq()
665 unsigned int tmp_div, tmp_diff; in alcor_set_clock() local673 tmp_diff = abs(clock - tmp_clock); in alcor_set_clock()675 if (tmp_diff < diff) { in alcor_set_clock()676 diff = tmp_diff; in alcor_set_clock()
1784 u32 sbr, osr, baud_diff, tmp_osr, tmp_sbr, tmp_diff, tmp; in lpuart32_serial_setbrg() local1810 tmp_diff = clk / (tmp_osr * tmp_sbr) - baudrate; in lpuart32_serial_setbrg()1814 if (tmp_diff > (baudrate - tmp)) { in lpuart32_serial_setbrg()1815 tmp_diff = baudrate - tmp; in lpuart32_serial_setbrg()1819 if (tmp_diff <= baud_diff) { in lpuart32_serial_setbrg()1820 baud_diff = tmp_diff; in lpuart32_serial_setbrg()