Lines Matching refs:best_rate
258 long *best_rate) in clk_sam9x5_peripheral_best_diff() argument
264 *best_rate = tmp_rate; in clk_sam9x5_peripheral_best_diff()
278 long best_rate = LONG_MIN; in clk_sam9x5_peripheral_determine_rate() local
293 shift, &best_diff, &best_rate); in clk_sam9x5_peripheral_determine_rate()
295 if (!best_diff || best_rate <= req->rate) in clk_sam9x5_peripheral_determine_rate()
315 shift, &best_diff, &best_rate); in clk_sam9x5_peripheral_determine_rate()
321 if (best_rate < 0 || in clk_sam9x5_peripheral_determine_rate()
322 (periph->range.max && best_rate > periph->range.max)) in clk_sam9x5_peripheral_determine_rate()
326 __func__, best_rate, in clk_sam9x5_peripheral_determine_rate()
330 req->rate = best_rate; in clk_sam9x5_peripheral_determine_rate()
340 unsigned long best_rate; in clk_sam9x5_peripheral_round_rate() local
361 best_rate = cur_rate; in clk_sam9x5_peripheral_round_rate()
371 best_rate = cur_rate; in clk_sam9x5_peripheral_round_rate()
378 return best_rate; in clk_sam9x5_peripheral_round_rate()