Home
last modified time | relevance | path

Searched refs:tmp_diff (Results 1 – 8 of 8) sorted by relevance

/drivers/clk/at91/
Dclk-audio-pll.c282 int tmp_diff; in clk_audio_pll_pad_round_rate() local
309 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() local
346 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()
Dclk-usb.c63 int tmp_diff; in at91sam9x5_clk_usb_determine_rate() local
84 tmp_diff = req->rate - tmp_rate; in at91sam9x5_clk_usb_determine_rate()
86 tmp_diff = tmp_rate - req->rate; in at91sam9x5_clk_usb_determine_rate()
88 if (best_diff < 0 || best_diff > tmp_diff) { in at91sam9x5_clk_usb_determine_rate()
90 best_diff = tmp_diff; in at91sam9x5_clk_usb_determine_rate()
Dclk-generated.c103 int tmp_diff; in clk_generated_best_diff() local
113 tmp_diff = abs(req->rate - tmp_rate); in clk_generated_best_diff()
115 if (*best_diff < 0 || *best_diff >= tmp_diff) { in clk_generated_best_diff()
117 *best_diff = tmp_diff; in clk_generated_best_diff()
Dclk-master.c181 unsigned long tmp_rate, tmp_diff; in clk_sama7g5_master_best_diff() local
188 tmp_diff = abs(req->rate - tmp_rate); in clk_sama7g5_master_best_diff()
190 if (*best_diff < 0 || *best_diff >= tmp_diff) { in clk_sama7g5_master_best_diff()
192 *best_diff = tmp_diff; in clk_sama7g5_master_best_diff()
Dclk-sam9x60-pll.c332 unsigned long tmp_rate, tmp_parent_rate, tmp_diff; in sam9x60_div_pll_compute_div() local
349 tmp_diff = abs(rate - tmp_rate); in sam9x60_div_pll_compute_div()
351 if (best_diff < 0 || best_diff > tmp_diff) { in sam9x60_div_pll_compute_div()
354 best_diff = tmp_diff; in sam9x60_div_pll_compute_div()
Dclk-peripheral.c249 unsigned long tmp_diff = abs(req->rate - tmp_rate); in clk_sam9x5_peripheral_best_diff() local
251 if (*best_diff < 0 || *best_diff >= tmp_diff) { in clk_sam9x5_peripheral_best_diff()
253 *best_diff = tmp_diff; in clk_sam9x5_peripheral_best_diff()
/drivers/mmc/host/
Dalcor.c665 unsigned int tmp_div, tmp_diff; in alcor_set_clock() local
673 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()
/drivers/tty/serial/
Dfsl_lpuart.c1970 u32 sbr, osr, baud_diff, tmp_osr, tmp_sbr, tmp_diff, tmp; in __lpuart32_serial_setbrg() local
1996 tmp_diff = clk / (tmp_osr * tmp_sbr) - baudrate; in __lpuart32_serial_setbrg()
2000 if (tmp_diff > (baudrate - tmp)) { in __lpuart32_serial_setbrg()
2001 tmp_diff = baudrate - tmp; in __lpuart32_serial_setbrg()
2008 if (tmp_diff <= baud_diff) { in __lpuart32_serial_setbrg()
2009 baud_diff = tmp_diff; in __lpuart32_serial_setbrg()