Lines Matching refs:parent_rate
111 unsigned long parent_rate) in clk_pllv3_recalc_rate() argument
116 return (div == 1) ? parent_rate * 22 : parent_rate * 20; in clk_pllv3_recalc_rate()
122 unsigned long parent_rate = *prate; in clk_pllv3_round_rate() local
124 return (rate >= parent_rate * 22) ? parent_rate * 22 : in clk_pllv3_round_rate()
125 parent_rate * 20; in clk_pllv3_round_rate()
129 unsigned long parent_rate) in clk_pllv3_set_rate() argument
134 if (rate == parent_rate * 22) in clk_pllv3_set_rate()
136 else if (rate == parent_rate * 20) in clk_pllv3_set_rate()
159 unsigned long parent_rate) in clk_pllv3_sys_recalc_rate() argument
164 return parent_rate * div / 2; in clk_pllv3_sys_recalc_rate()
170 unsigned long parent_rate = *prate; in clk_pllv3_sys_round_rate() local
171 unsigned long min_rate = parent_rate * 54 / 2; in clk_pllv3_sys_round_rate()
172 unsigned long max_rate = parent_rate * 108 / 2; in clk_pllv3_sys_round_rate()
179 div = rate * 2 / parent_rate; in clk_pllv3_sys_round_rate()
181 return parent_rate * div / 2; in clk_pllv3_sys_round_rate()
185 unsigned long parent_rate) in clk_pllv3_sys_set_rate() argument
188 unsigned long min_rate = parent_rate * 54 / 2; in clk_pllv3_sys_set_rate()
189 unsigned long max_rate = parent_rate * 108 / 2; in clk_pllv3_sys_set_rate()
195 div = rate * 2 / parent_rate; in clk_pllv3_sys_set_rate()
214 unsigned long parent_rate) in clk_pllv3_av_recalc_rate() argument
220 u64 temp64 = (u64)parent_rate; in clk_pllv3_av_recalc_rate()
225 return parent_rate * div + (unsigned long)temp64; in clk_pllv3_av_recalc_rate()
231 unsigned long parent_rate = *prate; in clk_pllv3_av_round_rate() local
232 unsigned long min_rate = parent_rate * 27; in clk_pllv3_av_round_rate()
233 unsigned long max_rate = parent_rate * 54; in clk_pllv3_av_round_rate()
244 if (parent_rate <= max_mfd) in clk_pllv3_av_round_rate()
245 mfd = parent_rate; in clk_pllv3_av_round_rate()
247 div = rate / parent_rate; in clk_pllv3_av_round_rate()
248 temp64 = (u64) (rate - div * parent_rate); in clk_pllv3_av_round_rate()
250 temp64 = div64_ul(temp64, parent_rate); in clk_pllv3_av_round_rate()
253 temp64 = (u64)parent_rate; in clk_pllv3_av_round_rate()
257 return parent_rate * div + (unsigned long)temp64; in clk_pllv3_av_round_rate()
261 unsigned long parent_rate) in clk_pllv3_av_set_rate() argument
264 unsigned long min_rate = parent_rate * 27; in clk_pllv3_av_set_rate()
265 unsigned long max_rate = parent_rate * 54; in clk_pllv3_av_set_rate()
274 if (parent_rate <= max_mfd) in clk_pllv3_av_set_rate()
275 mfd = parent_rate; in clk_pllv3_av_set_rate()
277 div = rate / parent_rate; in clk_pllv3_av_set_rate()
278 temp64 = (u64) (rate - div * parent_rate); in clk_pllv3_av_set_rate()
280 temp64 = div64_ul(temp64, parent_rate); in clk_pllv3_av_set_rate()
308 static unsigned long clk_pllv3_vf610_mf_to_rate(unsigned long parent_rate, in clk_pllv3_vf610_mf_to_rate() argument
313 temp64 = parent_rate; in clk_pllv3_vf610_mf_to_rate()
317 return (parent_rate * mf.mfi) + temp64; in clk_pllv3_vf610_mf_to_rate()
321 unsigned long parent_rate, unsigned long rate) in clk_pllv3_vf610_rate_to_mf() argument
326 mf.mfi = (rate >= 22 * parent_rate) ? 22 : 20; in clk_pllv3_vf610_rate_to_mf()
329 if (rate <= parent_rate * mf.mfi) in clk_pllv3_vf610_rate_to_mf()
331 else if (rate >= parent_rate * (mf.mfi + 1)) in clk_pllv3_vf610_rate_to_mf()
335 temp64 = rate - parent_rate * mf.mfi; in clk_pllv3_vf610_rate_to_mf()
337 temp64 = div64_ul(temp64, parent_rate); in clk_pllv3_vf610_rate_to_mf()
345 unsigned long parent_rate) in clk_pllv3_vf610_recalc_rate() argument
354 return clk_pllv3_vf610_mf_to_rate(parent_rate, mf); in clk_pllv3_vf610_recalc_rate()
366 unsigned long parent_rate) in clk_pllv3_vf610_set_rate() argument
370 clk_pllv3_vf610_rate_to_mf(parent_rate, rate); in clk_pllv3_vf610_set_rate()
396 unsigned long parent_rate) in clk_pllv3_enet_recalc_rate() argument