Lines Matching refs:best_rate
254 long *best_rate) in clk_sam9x5_peripheral_best_diff() argument
260 *best_rate = tmp_rate; in clk_sam9x5_peripheral_best_diff()
274 long best_rate = LONG_MIN; in clk_sam9x5_peripheral_determine_rate() local
289 shift, &best_diff, &best_rate); in clk_sam9x5_peripheral_determine_rate()
291 if (!best_diff || best_rate <= req->rate) in clk_sam9x5_peripheral_determine_rate()
311 shift, &best_diff, &best_rate); in clk_sam9x5_peripheral_determine_rate()
317 if (best_rate < 0 || in clk_sam9x5_peripheral_determine_rate()
318 (periph->range.max && best_rate > periph->range.max)) in clk_sam9x5_peripheral_determine_rate()
322 __func__, best_rate, in clk_sam9x5_peripheral_determine_rate()
326 req->rate = best_rate; in clk_sam9x5_peripheral_determine_rate()
336 unsigned long best_rate; in clk_sam9x5_peripheral_round_rate() local
357 best_rate = cur_rate; in clk_sam9x5_peripheral_round_rate()
367 best_rate = cur_rate; in clk_sam9x5_peripheral_round_rate()
374 return best_rate; in clk_sam9x5_peripheral_round_rate()