Lines Matching refs:best_rate
103 unsigned long best_rate = 0; in tcon_ch1_calc_divider() local
118 if (!best_rate || in tcon_ch1_calc_divider()
119 (rate - tmp_rate) < (rate - best_rate)) { in tcon_ch1_calc_divider()
120 best_rate = tmp_rate; in tcon_ch1_calc_divider()
132 return best_rate; in tcon_ch1_calc_divider()
138 long best_rate = -EINVAL; in tcon_ch1_determine_rate() local
155 if (best_rate < 0 || in tcon_ch1_determine_rate()
156 (req->rate - tmp_rate) < (req->rate - best_rate)) { in tcon_ch1_determine_rate()
157 best_rate = tmp_rate; in tcon_ch1_determine_rate()
163 if (best_rate < 0) in tcon_ch1_determine_rate()
164 return best_rate; in tcon_ch1_determine_rate()
166 req->rate = best_rate; in tcon_ch1_determine_rate()