Lines Matching refs:rate
28 .rate = INT_MAX, \
45 .rate = (ao_rate), \
72 .rate = (r), \
90 .rate = (r), \
170 unsigned long rate;
213 unsigned long rate)
218 .value = cpu_to_le32(DIV_ROUND_UP(rate, 1000)), /* to kHz */
227 unsigned long rate)
232 .value = cpu_to_le32(DIV_ROUND_UP(rate, 1000)), /* to kHz */
240 static void to_active_sleep(struct clk_smd_rpm *r, unsigned long rate,
243 *active = rate;
246 * Active-only clocks don't care what the rate is during sleep. So,
266 /* Don't send requests to the RPM if the rate has not been set. */
267 if (!r->rate)
270 to_active_sleep(r, r->rate, &this_rate, &this_sleep_rate);
272 /* Take peer clock's rate into account only if it's enabled. */
274 to_active_sleep(peer, peer->rate,
314 if (!r->rate)
317 /* Take peer clock's rate into account only if it's enabled. */
319 to_active_sleep(peer, peer->rate, &peer_rate,
338 static int clk_smd_rpm_set_rate(struct clk_hw *hw, unsigned long rate,
353 to_active_sleep(r, rate, &this_rate, &this_sleep_rate);
355 /* Take peer clock's rate into account only if it's enabled. */
357 to_active_sleep(peer, peer->rate,
370 r->rate = rate;
378 static long clk_smd_rpm_round_rate(struct clk_hw *hw, unsigned long rate,
382 * RPM handles rate rounding and we don't have a way to
383 * know what the rate will be, so just return whatever
384 * rate is requested.
386 return rate;
395 * RPM handles rate rounding and we don't have a way to
396 * know what the rate will be, so just return whatever
397 * rate was set.
399 return r->rate;