Lines Matching refs:rate
57 * @cached_req: Cached requested freq for determine rate calls
58 * @cached_res: Cached result freq for determine rate calls
139 * sci_clk_recalc_rate - Get clock rate for a TI SCI clock
140 * @hw: clock to get rate for
141 * @parent_rate: parent rate provided by common clock framework, not used
143 * Gets the current clock rate of a TI SCI clock. Returns the current
144 * clock rate, or zero in failure.
157 "recalc-rate failed for dev=%d, clk=%d, ret=%d\n",
166 * sci_clk_determine_rate - Determines a clock rate a clock can be set to
167 * @hw: clock to change rate for
168 * @req: requested rate configuration for the clock
170 * Determines a suitable clock rate and parent for a TI SCI clock.
182 if (clk->cached_req && clk->cached_req == req->rate) {
183 req->rate = clk->cached_res;
191 req->rate,
196 "determine-rate failed for dev=%d, clk=%d, ret=%d\n",
201 clk->cached_req = req->rate;
204 req->rate = new_rate;
210 * sci_clk_set_rate - Set rate for a TI SCI clock
211 * @hw: clock to change rate for
212 * @rate: target rate for the clock
213 * @parent_rate: rate of the clock parent, not used for TI SCI clocks
218 static int sci_clk_set_rate(struct clk_hw *hw, unsigned long rate,
224 clk->clk_id, rate / 10 * 9, rate,
225 rate / 10 * 11);