Home
last modified time | relevance | path

Searched refs:best_diff (Results 1 – 15 of 15) sorted by relevance

/drivers/clk/at91/
Dclk-generated.c109 int best_diff = -1; in clk_generated_determine_rate() local
131 if (best_diff < 0 || best_diff > tmp_diff) { in clk_generated_determine_rate()
133 best_diff = tmp_diff; in clk_generated_determine_rate()
138 if (!best_diff || tmp_rate < req->rate) in clk_generated_determine_rate()
142 if (!best_diff) in clk_generated_determine_rate()
Dclk-usb.c64 int best_diff = -1; in at91sam9x5_clk_usb_determine_rate() local
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()
94 if (!best_diff || tmp_rate < req->rate) in at91sam9x5_clk_usb_determine_rate()
98 if (!best_diff) in at91sam9x5_clk_usb_determine_rate()
Dclk-peripheral.c258 unsigned long best_diff; in clk_sam9x5_peripheral_round_rate() local
277 best_diff = cur_rate - rate; in clk_sam9x5_peripheral_round_rate()
286 if (cur_diff < best_diff) { in clk_sam9x5_peripheral_round_rate()
287 best_diff = cur_diff; in clk_sam9x5_peripheral_round_rate()
291 if (!best_diff || cur_rate < rate) in clk_sam9x5_peripheral_round_rate()
/drivers/clk/
Dclk-cdce706.c311 unsigned long best_diff = rate; in cdce706_divider_round_rate() local
316 for (div = CDCE706_PLL_FREQ_MIN / rate; best_diff && in cdce706_divider_round_rate()
336 if (diff < best_diff) { in cdce706_divider_round_rate()
337 best_diff = diff; in cdce706_divider_round_rate()
/drivers/mfd/
Dsm501.c409 long *best_diff) in sm501_calc_clock() argument
428 if (diff < *best_diff) { in sm501_calc_clock()
429 *best_diff = diff; in sm501_calc_clock()
455 long best_diff = 999999999; in sm501_calc_pll() local
467 mclk, &best_diff)) { in sm501_calc_pll()
492 long best_diff = 999999999; in sm501_select_clock() local
496 sm501_calc_clock(freq, clock, max_div, mclk, &best_diff); in sm501_select_clock()
/drivers/iio/imu/
Dadis16480.c465 unsigned int diff, best_diff; in adis16480_set_filter_freq() local
482 best_diff = 310; in adis16480_set_filter_freq()
486 if (diff < best_diff) { in adis16480_set_filter_freq()
487 best_diff = diff; in adis16480_set_filter_freq()
/drivers/media/platform/atmel/
Datmel-isc.c238 int best_diff = -1; in isc_clk_determine_rate() local
260 if (best_diff < 0 || best_diff > diff) { in isc_clk_determine_rate()
262 best_diff = diff; in isc_clk_determine_rate()
267 if (!best_diff || rate < req->rate) in isc_clk_determine_rate()
271 if (!best_diff) in isc_clk_determine_rate()
/drivers/video/fbdev/savage/
Dsavagefb_driver.c420 long diff, best_diff; in SavageCalcClock() local
434 best_diff = freq; in SavageCalcClock()
447 if (diff < best_diff) { in SavageCalcClock()
448 best_diff = diff; in SavageCalcClock()
467 long diff, best_diff; in common_calc_clock() local
472 best_diff = freq; in common_calc_clock()
485 if (diff < best_diff) { in common_calc_clock()
486 best_diff = diff; in common_calc_clock()
/drivers/video/fbdev/
Dps3fb.c336 int diff, best_diff; in ps3fb_find_mode() local
341 best_diff = INT_MAX; in ps3fb_find_mode()
354 if (diff < best_diff) { in ps3fb_find_mode()
358 best_diff = diff; in ps3fb_find_mode()
Dcyber2000fb.c671 int best_diff; in cyber2000fb_decode_clock() local
699 best_diff = 0x7fffffff; in cyber2000fb_decode_clock()
727 if (diff < best_diff) { in cyber2000fb_decode_clock()
728 best_diff = diff; in cyber2000fb_decode_clock()
/drivers/media/i2c/soc_camera/
Dov772x.c665 u32 best_diff = UINT_MAX; in ov772x_select_win() local
671 if (diff < best_diff) { in ov772x_select_win()
672 best_diff = diff; in ov772x_select_win()
/drivers/gpu/drm/nouveau/nvkm/engine/disp/
Dnv50.c626 u32 best_diff = 64 * symbol; in nv50_disp_intr_unk20_2_dp() local
698 if (diff < best_diff) { in nv50_disp_intr_unk20_2_dp()
699 best_diff = diff; in nv50_disp_intr_unk20_2_dp()
/drivers/net/wan/
Dixp4xx_hss.c1189 u32 *best, u32 *best_diff, u32 *reg) in check_clock() argument
1199 if (new_diff < *best_diff) { in check_clock()
1201 *best_diff = new_diff; in check_clock()
/drivers/usb/musb/
Dmusb_host.c2061 int best_diff; in musb_schedule() local
2085 best_diff = 4096; in musb_schedule()
2105 if (diff >= 0 && best_diff > diff) { in musb_schedule()
2127 best_diff = diff; in musb_schedule()
/drivers/tty/serial/
Dmsm_serial.c1034 unsigned long target, old, best_rate = 0, diff, best_diff = ULONG_MAX; in msm_find_best_baud() local
1067 if (diff < best_diff) { in msm_find_best_baud()
1068 best_diff = diff; in msm_find_best_baud()