Lines Matching refs:rate

40  * @ref_clock:	reference clock rate
120 static long clk_pllv3_round_rate(struct clk_hw *hw, unsigned long rate,
125 return (rate >= parent_rate * 22) ? parent_rate * 22 :
129 static int clk_pllv3_set_rate(struct clk_hw *hw, unsigned long rate,
135 if (rate == parent_rate * 22)
137 else if (rate == parent_rate * 20)
168 static long clk_pllv3_sys_round_rate(struct clk_hw *hw, unsigned long rate,
176 if (rate > max_rate)
177 rate = max_rate;
178 else if (rate < min_rate)
179 rate = min_rate;
180 div = rate * 2 / parent_rate;
185 static int clk_pllv3_sys_set_rate(struct clk_hw *hw, unsigned long rate,
193 if (rate < min_rate || rate > max_rate)
196 div = rate * 2 / parent_rate;
229 static long clk_pllv3_av_round_rate(struct clk_hw *hw, unsigned long rate,
240 if (rate > max_rate)
241 rate = max_rate;
242 else if (rate < min_rate)
243 rate = min_rate;
248 div = rate / parent_rate;
249 temp64 = (u64) (rate - div * parent_rate);
261 static int clk_pllv3_av_set_rate(struct clk_hw *hw, unsigned long rate,
272 if (rate < min_rate || rate > max_rate)
278 div = rate / parent_rate;
279 temp64 = (u64) (rate - div * parent_rate);
322 unsigned long parent_rate, unsigned long rate)
327 mf.mfi = (rate >= 22 * parent_rate) ? 22 : 20;
330 if (rate <= parent_rate * mf.mfi)
332 else if (rate >= parent_rate * (mf.mfi + 1))
335 /* rate = parent_rate * (mfi + mfn/mfd) */
336 temp64 = rate - parent_rate * mf.mfi;
358 static long clk_pllv3_vf610_round_rate(struct clk_hw *hw, unsigned long rate,
361 struct clk_pllv3_vf610_mf mf = clk_pllv3_vf610_rate_to_mf(*prate, rate);
366 static int clk_pllv3_vf610_set_rate(struct clk_hw *hw, unsigned long rate,
371 clk_pllv3_vf610_rate_to_mf(parent_rate, rate);