Searched refs:tmp_diff (Results 1 – 5 of 5) sorted by relevance
285 int tmp_diff; in clk_audio_pll_pad_round_rate() local312 tmp_diff = abs(rate - tmp_rate); in clk_audio_pll_pad_round_rate()314 if (best_diff < 0 || best_diff > tmp_diff) { in clk_audio_pll_pad_round_rate()317 best_diff = tmp_diff; in clk_audio_pll_pad_round_rate()335 int tmp_diff; in clk_audio_pll_pmc_round_rate() local344 tmp_diff = abs(rate - tmp_rate); in clk_audio_pll_pmc_round_rate()346 if (best_diff < 0 || best_diff > tmp_diff) { in clk_audio_pll_pmc_round_rate()349 best_diff = tmp_diff; in clk_audio_pll_pmc_round_rate()
65 int tmp_diff; in at91sam9x5_clk_usb_determine_rate() local83 tmp_diff = req->rate - tmp_rate; in at91sam9x5_clk_usb_determine_rate()85 tmp_diff = tmp_rate - req->rate; in at91sam9x5_clk_usb_determine_rate()87 if (best_diff < 0 || best_diff > tmp_diff) { in at91sam9x5_clk_usb_determine_rate()89 best_diff = tmp_diff; in at91sam9x5_clk_usb_determine_rate()
116 int tmp_diff; in clk_generated_best_diff() local122 tmp_diff = abs(req->rate - tmp_rate); in clk_generated_best_diff()124 if (*best_diff < 0 || *best_diff > tmp_diff) { in clk_generated_best_diff()126 *best_diff = tmp_diff; in clk_generated_best_diff()
1295 int tmp_diff = dsp_time_diff + PCXHR_DSP_TIME_MASK + 1; in pcxhr_threaded_irq() local1299 if (tmp_diff > 0 && tmp_diff <= (2*mgr->granularity)) { in pcxhr_threaded_irq()1302 "diff=%d\n", tmp_diff); in pcxhr_threaded_irq()1303 dsp_time_diff = tmp_diff; in pcxhr_threaded_irq()
1559 u32 sbr, osr, baud_diff, tmp_osr, tmp_sbr, tmp_diff, tmp; in lpuart32_serial_setbrg() local1585 tmp_diff = clk / (tmp_osr * tmp_sbr) - baudrate; in lpuart32_serial_setbrg()1589 if (tmp_diff > (baudrate - tmp)) { in lpuart32_serial_setbrg()1590 tmp_diff = baudrate - tmp; in lpuart32_serial_setbrg()1594 if (tmp_diff <= baud_diff) { in lpuart32_serial_setbrg()1595 baud_diff = tmp_diff; in lpuart32_serial_setbrg()