Searched refs:best_delta (Results 1 – 5 of 5) sorted by relevance
110 u32 best_delta = ~0; in gk20a_pllg_calc_mnp() local175 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()
396 unsigned int i, delta, best_delta = -1; in roclk_determine_rate() local414 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() local622 if ((new_rate >= rate) && (delta < best_delta)) { in spll_calc_mult_div()623 best_delta = delta; in spll_calc_mult_div()
772 int freq, delta, best_delta = INT_MAX; in mv64xxx_find_baud_factors() local779 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()
412 int delta, best_delta; in tc_pxl_pll_en() local419 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()
1027 unsigned long best_delta; in kona_peri_clk_determine_rate() local1053 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()