Lines Matching refs:rate

39  * @ref_clock:	reference clock rate
119 static long clk_pllv3_round_rate(struct clk_hw *hw, unsigned long rate,
124 return (rate >= parent_rate * 22) ? parent_rate * 22 :
128 static int clk_pllv3_set_rate(struct clk_hw *hw, unsigned long rate,
134 if (rate == parent_rate * 22)
136 else if (rate == parent_rate * 20)
167 static long clk_pllv3_sys_round_rate(struct clk_hw *hw, unsigned long rate,
175 if (rate > max_rate)
176 rate = max_rate;
177 else if (rate < min_rate)
178 rate = min_rate;
179 div = rate * 2 / parent_rate;
184 static int clk_pllv3_sys_set_rate(struct clk_hw *hw, unsigned long rate,
192 if (rate < min_rate || rate > max_rate)
195 div = rate * 2 / parent_rate;
228 static long clk_pllv3_av_round_rate(struct clk_hw *hw, unsigned long rate,
239 if (rate > max_rate)
240 rate = max_rate;
241 else if (rate < min_rate)
242 rate = min_rate;
247 div = rate / parent_rate;
248 temp64 = (u64) (rate - div * parent_rate);
260 static int clk_pllv3_av_set_rate(struct clk_hw *hw, unsigned long rate,
271 if (rate < min_rate || rate > max_rate)
277 div = rate / parent_rate;
278 temp64 = (u64) (rate - div * parent_rate);
321 unsigned long parent_rate, unsigned long rate)
326 mf.mfi = (rate >= 22 * parent_rate) ? 22 : 20;
329 if (rate <= parent_rate * mf.mfi)
331 else if (rate >= parent_rate * (mf.mfi + 1))
334 /* rate = parent_rate * (mfi + mfn/mfd) */
335 temp64 = rate - parent_rate * mf.mfi;
357 static long clk_pllv3_vf610_round_rate(struct clk_hw *hw, unsigned long rate,
360 struct clk_pllv3_vf610_mf mf = clk_pllv3_vf610_rate_to_mf(*prate, rate);
365 static int clk_pllv3_vf610_set_rate(struct clk_hw *hw, unsigned long rate,
370 clk_pllv3_vf610_rate_to_mf(parent_rate, rate);