/drivers/clk/at91/ |
D | clk-peripheral.c | 253 u32 shift, long *best_diff, in clk_sam9x5_peripheral_best_diff() argument 259 if (*best_diff < 0 || *best_diff >= tmp_diff) { in clk_sam9x5_peripheral_best_diff() 261 *best_diff = tmp_diff; in clk_sam9x5_peripheral_best_diff() 275 long best_diff = LONG_MIN; in clk_sam9x5_peripheral_determine_rate() local 289 shift, &best_diff, &best_rate); in clk_sam9x5_peripheral_determine_rate() 291 if (!best_diff || best_rate <= req->rate) in clk_sam9x5_peripheral_determine_rate() 311 shift, &best_diff, &best_rate); in clk_sam9x5_peripheral_determine_rate() 313 if (!best_diff) in clk_sam9x5_peripheral_determine_rate() 337 unsigned long best_diff; in clk_sam9x5_peripheral_round_rate() local 356 best_diff = cur_rate - rate; in clk_sam9x5_peripheral_round_rate() [all …]
|
D | clk-generated.c | 111 int *best_diff, long *best_rate) in clk_generated_best_diff() argument 126 if (*best_diff < 0 || *best_diff >= tmp_diff) { in clk_generated_best_diff() 128 *best_diff = tmp_diff; in clk_generated_best_diff() 141 int best_diff = -1; in clk_generated_determine_rate() local 170 &best_diff, &best_rate); in clk_generated_determine_rate() 172 if (!best_diff) in clk_generated_determine_rate() 200 &best_diff, &best_rate); in clk_generated_determine_rate() 202 if (!best_diff) in clk_generated_determine_rate()
|
D | clk-audio-pll.c | 283 int best_diff = -1; in clk_audio_pll_pad_round_rate() local 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() 333 int best_diff = -1; in clk_audio_pll_pmc_round_rate() local 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() 353 if (!best_diff) in clk_audio_pll_pmc_round_rate()
|
D | clk-master.c | 258 long best_diff = -1; in clk_master_div_notifier_fn() local 317 if (best_diff < 0 || best_diff > tmp_diff) { in clk_master_div_notifier_fn() 319 best_diff = tmp_diff; in clk_master_div_notifier_fn() 357 long *best_diff, in clk_sama7g5_master_best_diff() argument 369 if (*best_diff < 0 || *best_diff >= tmp_diff) { in clk_sama7g5_master_best_diff() 371 *best_diff = tmp_diff; in clk_sama7g5_master_best_diff() 585 long best_rate = LONG_MIN, best_diff = LONG_MIN; in clk_sama7g5_master_determine_rate() local 601 &best_rate, &best_diff, in clk_sama7g5_master_determine_rate() 603 if (!best_diff) in clk_sama7g5_master_determine_rate() 607 if (!best_diff) in clk_sama7g5_master_determine_rate() [all …]
|
D | clk-usb.c | 63 int best_diff = -1; in at91sam9x5_clk_usb_determine_rate() local 89 if (best_diff < 0 || best_diff > tmp_diff) { in at91sam9x5_clk_usb_determine_rate() 91 best_diff = tmp_diff; in at91sam9x5_clk_usb_determine_rate() 96 if (!best_diff || tmp_rate < req->rate) in at91sam9x5_clk_usb_determine_rate() 100 if (!best_diff) in at91sam9x5_clk_usb_determine_rate()
|
D | clk-sam9x60-pll.c | 444 long best_diff = -1, best_rate = -EINVAL; in sam9x60_div_pll_compute_div() local 462 if (best_diff < 0 || best_diff > tmp_diff) { in sam9x60_div_pll_compute_div() 465 best_diff = tmp_diff; in sam9x60_div_pll_compute_div() 468 if (!best_diff) in sam9x60_div_pll_compute_div()
|
/drivers/media/platform/atmel/ |
D | atmel-isc-clk.c | 127 int best_diff = -1; in isc_clk_determine_rate() local 149 if (best_diff < 0 || best_diff > diff) { in isc_clk_determine_rate() 151 best_diff = diff; in isc_clk_determine_rate() 156 if (!best_diff || rate < req->rate) in isc_clk_determine_rate() 160 if (!best_diff) in isc_clk_determine_rate()
|
/drivers/gpu/drm/mcde/ |
D | mcde_clk_div.c | 50 unsigned long best_diff = ~0ul; in mcde_clk_div_choose_div() local 63 if (diff < best_diff) { in mcde_clk_div_choose_div() 65 best_diff = diff; in mcde_clk_div_choose_div()
|
/drivers/clk/ |
D | clk-tps68470.c | 131 long diff, best_diff = LONG_MAX; in tps68470_clk_cfg_lookup() local 140 if (diff < best_diff) { in tps68470_clk_cfg_lookup() 141 best_diff = diff; in tps68470_clk_cfg_lookup()
|
D | clk-cdce706.c | 308 unsigned long best_diff = rate; in cdce706_divider_round_rate() local 313 for (div = CDCE706_PLL_FREQ_MIN / rate; best_diff && in cdce706_divider_round_rate() 333 if (diff < best_diff) { in cdce706_divider_round_rate() 334 best_diff = diff; in cdce706_divider_round_rate()
|
/drivers/media/i2c/ |
D | ov772x.c | 623 unsigned int best_diff; in ov772x_select_fps() local 629 best_diff = ~0L; in ov772x_select_fps() 632 if (diff < best_diff) { in ov772x_select_fps() 634 best_diff = diff; in ov772x_select_fps() 647 unsigned int best_diff; in ov772x_set_frame_rate() local 691 best_diff = ~0L; in ov772x_set_frame_rate() 704 if (diff < best_diff) { in ov772x_set_frame_rate() 705 best_diff = diff; in ov772x_set_frame_rate() 959 u32 best_diff = UINT_MAX; in ov772x_select_win() local 965 if (diff < best_diff) { in ov772x_select_win() [all …]
|
D | mt9v111.c | 454 unsigned int best_diff; in mt9v111_calc_frame_rate() local 467 best_diff = ~0L; in mt9v111_calc_frame_rate() 470 if (diff < best_diff) { in mt9v111_calc_frame_rate() 472 best_diff = diff; in mt9v111_calc_frame_rate() 497 best_diff = ~0L; in mt9v111_calc_frame_rate() 507 if (diff < best_diff) { in mt9v111_calc_frame_rate() 508 best_diff = diff; in mt9v111_calc_frame_rate()
|
/drivers/clocksource/ |
D | timer-microchip-pit64b.c | 286 unsigned long pclk_rate, diff = 0, best_diff = ULONG_MAX; in mchp_pit64b_init_mode() local 305 best_diff = abs(gclk_round / (pres + 1) - max_rate); in mchp_pit64b_init_mode() 308 if (!best_diff) { in mchp_pit64b_init_mode() 319 if (best_diff > diff) { in mchp_pit64b_init_mode()
|
/drivers/gpu/drm/bridge/ |
D | tc358768.c | 317 u32 frs, best_diff, best_pll, best_prd, best_fbd; in tc358768_calc_pll() local 336 best_diff = UINT_MAX; in tc358768_calc_pll() 359 if (diff < best_diff) { in tc358768_calc_pll() 360 best_diff = diff; in tc358768_calc_pll() 365 if (best_diff == 0) in tc358768_calc_pll() 371 if (best_diff == UINT_MAX) { in tc358768_calc_pll()
|
/drivers/mfd/ |
D | sm501.c | 408 long *best_diff) in sm501_calc_clock() argument 427 if (diff < *best_diff) { in sm501_calc_clock() 428 *best_diff = diff; in sm501_calc_clock() 454 long best_diff = 999999999; in sm501_calc_pll() local 466 mclk, &best_diff)) { in sm501_calc_pll() 491 long best_diff = 999999999; in sm501_select_clock() local 495 sm501_calc_clock(freq, clock, max_div, mclk, &best_diff); in sm501_select_clock()
|
/drivers/gpu/drm/pl111/ |
D | pl111_display.c | 452 unsigned long best_diff = ~0ul; in pl111_clk_div_choose_div() local 465 if (diff < best_diff) { in pl111_clk_div_choose_div() 467 best_diff = diff; in pl111_clk_div_choose_div()
|
/drivers/peci/controller/ |
D | peci-aspeed.c | 315 unsigned long best_diff = ~0ul, diff; in clk_aspeed_peci_find_div_values() local 321 if (diff < best_diff) { in clk_aspeed_peci_find_div_values() 324 best_diff = diff; in clk_aspeed_peci_find_div_values()
|
/drivers/clk/bcm/ |
D | clk-iproc-pll.c | 503 unsigned long diff, best_diff; in iproc_pll_determine_rate() local 525 best_diff = ULONG_MAX; in iproc_pll_determine_rate() 528 if (diff <= best_diff) { in iproc_pll_determine_rate() 529 best_diff = diff; in iproc_pll_determine_rate()
|
/drivers/video/fbdev/savage/ |
D | savagefb_driver.c | 420 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/ |
D | ps3fb.c | 337 int diff, best_diff; in ps3fb_find_mode() local 342 best_diff = INT_MAX; in ps3fb_find_mode() 355 if (diff < best_diff) { in ps3fb_find_mode() 359 best_diff = diff; in ps3fb_find_mode()
|
D | cyber2000fb.c | 667 int best_diff; in cyber2000fb_decode_clock() local 695 best_diff = 0x7fffffff; in cyber2000fb_decode_clock() 723 if (diff < best_diff) { in cyber2000fb_decode_clock() 724 best_diff = diff; in cyber2000fb_decode_clock()
|
/drivers/gpu/drm/rcar-du/ |
D | rcar_du_crtc.c | 87 unsigned long best_diff = (unsigned long)-1; in rcar_du_dpll_divider() local 145 if (best_diff > diff) { in rcar_du_dpll_divider() 146 best_diff = diff; in rcar_du_dpll_divider() 162 dpll->output, dpll->fdpll, dpll->n, dpll->m, best_diff); in rcar_du_dpll_divider()
|
/drivers/pinctrl/sunxi/ |
D | pinctrl-sunxi.c | 1392 unsigned int best_diff, best_div; in sunxi_pinctrl_get_debounce_div() local 1395 best_diff = abs(freq - clock); in sunxi_pinctrl_get_debounce_div() 1401 if (cur_diff < best_diff) { in sunxi_pinctrl_get_debounce_div() 1402 best_diff = cur_diff; in sunxi_pinctrl_get_debounce_div() 1407 *diff = best_diff; in sunxi_pinctrl_get_debounce_div()
|
/drivers/iio/imu/ |
D | adis16480.c | 611 unsigned int diff, best_diff; in adis16480_set_filter_freq() local 630 best_diff = st->chip_info->filter_freqs[0]; in adis16480_set_filter_freq() 634 if (diff < best_diff) { in adis16480_set_filter_freq() 635 best_diff = diff; in adis16480_set_filter_freq()
|
/drivers/net/wan/ |
D | ixp4xx_hss.c | 1232 u32 *best, u32 *best_diff, u32 *reg) in check_clock() argument 1242 if (new_diff < *best_diff) { in check_clock() 1244 *best_diff = new_diff; in check_clock()
|