Lines Matching refs:rate
231 unsigned long rate, in clk_sam9x5_peripheral_round_rate() argument
252 if (rate >= cur_rate) in clk_sam9x5_peripheral_round_rate()
255 best_diff = cur_rate - rate; in clk_sam9x5_peripheral_round_rate()
259 if (cur_rate < rate) in clk_sam9x5_peripheral_round_rate()
260 cur_diff = rate - cur_rate; in clk_sam9x5_peripheral_round_rate()
262 cur_diff = cur_rate - rate; in clk_sam9x5_peripheral_round_rate()
269 if (!best_diff || cur_rate < rate) in clk_sam9x5_peripheral_round_rate()
277 unsigned long rate, in clk_sam9x5_peripheral_set_rate() argument
283 if (parent_rate == rate) in clk_sam9x5_peripheral_set_rate()
289 if (periph->range.max && rate > periph->range.max) in clk_sam9x5_peripheral_set_rate()
293 if (parent_rate >> shift == rate) { in clk_sam9x5_peripheral_set_rate()