Lines Matching refs:best_rate
404 unsigned long best_rate; in hsdk_pll_round_rate() local
411 best_rate = pll_cfg[0].rate; in hsdk_pll_round_rate()
414 if (abs(rate - pll_cfg[i].rate) < abs(rate - best_rate)) in hsdk_pll_round_rate()
415 best_rate = pll_cfg[i].rate; in hsdk_pll_round_rate()
418 pr_debug("chosen best rate: %lu\n", best_rate); in hsdk_pll_round_rate()
420 return best_rate; in hsdk_pll_round_rate()
480 unsigned long best_rate; in pll_set() local
484 best_rate = hsdk_pll_round_rate(sclk, rate); in pll_set()
487 if (pll_cfg[i].rate == best_rate) { in pll_set()
488 return clk->pll_devdata->update_rate(clk, best_rate, in pll_set()
493 pr_err("invalid rate=%ld Hz, parent_rate=%d Hz\n", best_rate, PARENT_RATE); in pll_set()