Lines Matching refs:rate
48 * @cached_req: Cached requested freq for determine rate calls
49 * @cached_res: Cached result freq for determine rate calls
130 * sci_clk_recalc_rate - Get clock rate for a TI SCI clock
131 * @hw: clock to get rate for
132 * @parent_rate: parent rate provided by common clock framework, not used
134 * Gets the current clock rate of a TI SCI clock. Returns the current
135 * clock rate, or zero in failure.
148 "recalc-rate failed for dev=%d, clk=%d, ret=%d\n",
157 * sci_clk_determine_rate - Determines a clock rate a clock can be set to
158 * @hw: clock to change rate for
159 * @req: requested rate configuration for the clock
161 * Determines a suitable clock rate and parent for a TI SCI clock.
173 if (clk->cached_req && clk->cached_req == req->rate) {
174 req->rate = clk->cached_res;
182 req->rate,
187 "determine-rate failed for dev=%d, clk=%d, ret=%d\n",
192 clk->cached_req = req->rate;
195 req->rate = new_rate;
201 * sci_clk_set_rate - Set rate for a TI SCI clock
202 * @hw: clock to change rate for
203 * @rate: target rate for the clock
204 * @parent_rate: rate of the clock parent, not used for TI SCI clocks
209 static int sci_clk_set_rate(struct clk_hw *hw, unsigned long rate,
215 clk->clk_id, rate / 10 * 9, rate,
216 rate / 10 * 11);