Lines Matching refs:best_rate
246 long *best_rate) in clk_sam9x5_peripheral_best_diff() argument
252 *best_rate = tmp_rate; in clk_sam9x5_peripheral_best_diff()
267 long best_rate = LONG_MIN; in clk_sam9x5_peripheral_determine_rate() local
282 shift, &best_diff, &best_rate); in clk_sam9x5_peripheral_determine_rate()
284 if (!best_diff || best_rate <= req->rate) in clk_sam9x5_peripheral_determine_rate()
303 shift, &best_diff, &best_rate); in clk_sam9x5_peripheral_determine_rate()
309 if (best_rate < 0 || in clk_sam9x5_peripheral_determine_rate()
310 (periph->range.max && best_rate > periph->range.max)) in clk_sam9x5_peripheral_determine_rate()
314 __func__, best_rate, in clk_sam9x5_peripheral_determine_rate()
318 req->rate = best_rate; in clk_sam9x5_peripheral_determine_rate()
328 unsigned long best_rate; in clk_sam9x5_peripheral_round_rate() local
349 best_rate = cur_rate; in clk_sam9x5_peripheral_round_rate()
359 best_rate = cur_rate; in clk_sam9x5_peripheral_round_rate()
366 return best_rate; in clk_sam9x5_peripheral_round_rate()