Home
last modified time | relevance | path

Searched refs:best_delta (Results 1 – 5 of 5) sorted by relevance

/drivers/gpu/drm/nouveau/nvkm/subdev/clk/
Dgk20a.c110 u32 best_delta = ~0; in gk20a_pllg_calc_mnp() local
175 if (delta < best_delta) { in gk20a_pllg_calc_mnp()
176 best_delta = delta; in gk20a_pllg_calc_mnp()
181 if (best_delta == 0) in gk20a_pllg_calc_mnp()
190 WARN_ON(best_delta == ~0); in gk20a_pllg_calc_mnp()
192 if (best_delta != 0) in gk20a_pllg_calc_mnp()
/drivers/clk/microchip/
Dclk-core.c396 unsigned int i, delta, best_delta = -1; in roclk_determine_rate() local
414 if ((nearest_rate >= req->rate) && (delta < best_delta)) { in roclk_determine_rate()
418 best_delta = delta; in roclk_determine_rate()
435 best, best_delta); in roclk_determine_rate()
610 unsigned int best_delta = -1, delta, match_found = 0; in spll_calc_mult_div() local
622 if ((new_rate >= rate) && (delta < best_delta)) { in spll_calc_mult_div()
623 best_delta = delta; in spll_calc_mult_div()
/drivers/i2c/busses/
Di2c-mv64xxx.c772 int freq, delta, best_delta = INT_MAX; in mv64xxx_find_baud_factors() local
779 if (delta >= 0 && delta < best_delta) { in mv64xxx_find_baud_factors()
782 best_delta = delta; in mv64xxx_find_baud_factors()
784 if (best_delta == 0) in mv64xxx_find_baud_factors()
787 if (best_delta == INT_MAX) in mv64xxx_find_baud_factors()
/drivers/gpu/drm/bridge/
Dtc358767.c412 int delta, best_delta; in tc_pxl_pll_en() local
419 best_delta = pixelclock; in tc_pxl_pll_en()
453 if (abs(delta) < abs(best_delta)) { in tc_pxl_pll_en()
458 best_delta = delta; in tc_pxl_pll_en()
471 best_delta); in tc_pxl_pll_en()
/drivers/clk/bcm/
Dclk-kona.c1027 unsigned long best_delta; in kona_peri_clk_determine_rate() local
1053 best_delta = abs(best_rate - req->rate); in kona_peri_clk_determine_rate()
1070 if (delta < best_delta) { in kona_peri_clk_determine_rate()
1071 best_delta = delta; in kona_peri_clk_determine_rate()