Lines Matching refs:best_rate
111 unsigned long best_rate = 0; in tcon_ch1_calc_divider() local
126 if (!best_rate || in tcon_ch1_calc_divider()
127 (rate - tmp_rate) < (rate - best_rate)) { in tcon_ch1_calc_divider()
128 best_rate = tmp_rate; in tcon_ch1_calc_divider()
140 return best_rate; in tcon_ch1_calc_divider()
146 long best_rate = -EINVAL; in tcon_ch1_determine_rate() local
163 if (best_rate < 0 || in tcon_ch1_determine_rate()
164 (req->rate - tmp_rate) < (req->rate - best_rate)) { in tcon_ch1_determine_rate()
165 best_rate = tmp_rate; in tcon_ch1_determine_rate()
171 if (best_rate < 0) in tcon_ch1_determine_rate()
172 return best_rate; in tcon_ch1_determine_rate()
174 req->rate = best_rate; in tcon_ch1_determine_rate()