Lines Matching refs:rate
76 tmp_parent_rate = req->rate * div;
83 if (tmp_rate < req->rate)
84 tmp_diff = req->rate - tmp_rate;
86 tmp_diff = tmp_rate - req->rate;
95 if (!best_diff || tmp_rate < req->rate)
106 req->rate = best_rate;
132 static int at91sam9x5_clk_usb_set_rate(struct clk_hw *hw, unsigned long rate,
138 if (!rate)
141 div = DIV_ROUND_CLOSEST(parent_rate, rate);
295 static long at91rm9200_clk_usb_round_rate(struct clk_hw *hw, unsigned long rate,
312 tmp_parent_rate = rate * usb->divisors[i];
315 if (tmprate < rate)
316 tmpdiff = rate - tmprate;
318 tmpdiff = tmprate - rate;
333 static int at91rm9200_clk_usb_set_rate(struct clk_hw *hw, unsigned long rate,
340 if (!rate)
343 div = DIV_ROUND_CLOSEST(parent_rate, rate);