Lines Matching refs:rate
38 .rate = INT_MAX, \
53 .rate = INT_MAX, \
72 .rate = (r), \
88 .rate = (r), \
131 unsigned long rate;
178 unsigned long rate)
183 .value = cpu_to_le32(DIV_ROUND_UP(rate, 1000)), /* to kHz */
192 unsigned long rate)
197 .value = cpu_to_le32(DIV_ROUND_UP(rate, 1000)), /* to kHz */
205 static void to_active_sleep(struct clk_smd_rpm *r, unsigned long rate,
208 *active = rate;
211 * Active-only clocks don't care what the rate is during sleep. So,
231 /* Don't send requests to the RPM if the rate has not been set. */
232 if (!r->rate)
235 to_active_sleep(r, r->rate, &this_rate, &this_sleep_rate);
237 /* Take peer clock's rate into account only if it's enabled. */
239 to_active_sleep(peer, peer->rate,
279 if (!r->rate)
282 /* Take peer clock's rate into account only if it's enabled. */
284 to_active_sleep(peer, peer->rate, &peer_rate,
303 static int clk_smd_rpm_set_rate(struct clk_hw *hw, unsigned long rate,
318 to_active_sleep(r, rate, &this_rate, &this_sleep_rate);
320 /* Take peer clock's rate into account only if it's enabled. */
322 to_active_sleep(peer, peer->rate,
335 r->rate = rate;
343 static long clk_smd_rpm_round_rate(struct clk_hw *hw, unsigned long rate,
347 * RPM handles rate rounding and we don't have a way to
348 * know what the rate will be, so just return whatever
349 * rate is requested.
351 return rate;
360 * RPM handles rate rounding and we don't have a way to
361 * know what the rate will be, so just return whatever
362 * rate was set.
364 return r->rate;