Lines Matching refs:best_rate
24 unsigned long best_rate = 0; in sun8i_phy_clk_determine_rate() local
42 best_rate = rounded; in sun8i_phy_clk_determine_rate()
48 if (!best_rate || in sun8i_phy_clk_determine_rate()
50 abs(rate - best_rate / best_div)) { in sun8i_phy_clk_determine_rate()
51 best_rate = rounded; in sun8i_phy_clk_determine_rate()
57 if (best_rate / best_div == rate) in sun8i_phy_clk_determine_rate()
61 req->rate = best_rate / best_div; in sun8i_phy_clk_determine_rate()
62 req->best_parent_rate = best_rate; in sun8i_phy_clk_determine_rate()
85 unsigned long best_rate = 0; in sun8i_phy_clk_set_rate() local
94 if (!best_rate || in sun8i_phy_clk_set_rate()
95 (rate - tmp_rate) < (rate - best_rate)) { in sun8i_phy_clk_set_rate()
96 best_rate = tmp_rate; in sun8i_phy_clk_set_rate()