Lines Matching full:rate

33  * struct imx_sc_msg_req_set_clock_rate - clock set rate protocol
35 * @rate: rate to set
36 * @resource: clock resource to set rate
39 * This structure describes the SCU protocol of clock rate set
43 __le32 rate; member
54 __le32 rate; member
58 * struct imx_sc_msg_get_clock_rate - clock get rate protocol
60 * @req: get rate request protocol
61 * @resp: get rate response protocol
63 * This structure describes the SCU protocol of clock rate get
137 * clk_scu_recalc_rate - Get clock rate for a SCU clock
138 * @hw: clock to get rate for
139 * @parent_rate: parent rate provided by common clock framework, not used
141 * Gets the current clock rate of a SCU clock. Returns the current
142 * clock rate, or zero in failure.
162 pr_err("%s: failed to get clock rate %d\n", in clk_scu_recalc_rate()
167 return le32_to_cpu(msg.data.resp.rate); in clk_scu_recalc_rate()
171 * clk_scu_round_rate - Round clock rate for a SCU clock
172 * @hw: clock to round rate for
173 * @rate: rate to round
174 * @parent_rate: parent rate provided by common clock framework, not used
176 * Returns the current clock rate, or zero in failure.
178 static long clk_scu_round_rate(struct clk_hw *hw, unsigned long rate, in clk_scu_round_rate() argument
182 * Assume we support all the requested rate and let the SCU firmware in clk_scu_round_rate()
185 return rate; in clk_scu_round_rate()
188 static int clk_scu_atf_set_cpu_rate(struct clk_hw *hw, unsigned long rate, in clk_scu_atf_set_cpu_rate() argument
202 cluster_id, rate, 0, 0, 0, 0, &res); in clk_scu_atf_set_cpu_rate()
208 * clk_scu_set_rate - Set rate for a SCU clock
209 * @hw: clock to change rate for
210 * @rate: target rate for the clock
211 * @parent_rate: rate of the clock parent, not used for SCU clocks
216 static int clk_scu_set_rate(struct clk_hw *hw, unsigned long rate, in clk_scu_set_rate() argument
228 msg.rate = cpu_to_le32(rate); in clk_scu_set_rate()
376 * cached rate. in __imx_clk_scu()