Lines Matching refs:cur_rate
245 unsigned long cur_rate = *parent_rate; in clk_sam9x5_peripheral_round_rate() local
254 cur_rate = *parent_rate >> shift; in clk_sam9x5_peripheral_round_rate()
255 if (cur_rate <= periph->range.max) in clk_sam9x5_peripheral_round_rate()
260 if (rate >= cur_rate) in clk_sam9x5_peripheral_round_rate()
261 return cur_rate; in clk_sam9x5_peripheral_round_rate()
263 best_diff = cur_rate - rate; in clk_sam9x5_peripheral_round_rate()
264 best_rate = cur_rate; in clk_sam9x5_peripheral_round_rate()
266 cur_rate = *parent_rate >> shift; in clk_sam9x5_peripheral_round_rate()
267 if (cur_rate < rate) in clk_sam9x5_peripheral_round_rate()
268 cur_diff = rate - cur_rate; in clk_sam9x5_peripheral_round_rate()
270 cur_diff = cur_rate - rate; in clk_sam9x5_peripheral_round_rate()
274 best_rate = cur_rate; in clk_sam9x5_peripheral_round_rate()
277 if (!best_diff || cur_rate < rate) in clk_sam9x5_peripheral_round_rate()