Lines Matching refs:parent_rate
147 unsigned long parent_rate; in round_rate_cpu() local
149 parent_rate = clk_get_rate(clk->parent); in round_rate_cpu()
151 div = parent_rate / rate; in round_rate_cpu()
152 if (parent_rate % rate) in round_rate_cpu()
158 return parent_rate / div; in round_rate_cpu()
165 unsigned long parent_rate; in set_rate_cpu() local
167 parent_rate = clk_get_rate(clk->parent); in set_rate_cpu()
169 div = parent_rate / rate; in set_rate_cpu()
171 if (div > 4 || div < 1 || ((parent_rate / div) != rate)) in set_rate_cpu()
192 unsigned long parent_rate; in round_rate_per() local
194 parent_rate = clk_get_rate(clk->parent); in round_rate_per()
196 div = parent_rate / rate; in round_rate_per()
197 if (parent_rate % rate) in round_rate_per()
203 return parent_rate / div; in round_rate_per()
210 unsigned long parent_rate; in set_rate_per() local
212 parent_rate = clk_get_rate(clk->parent); in set_rate_per()
217 div = parent_rate / rate; in set_rate_per()
218 if (div > 64 || div < 1 || ((parent_rate / div) != rate)) in set_rate_per()
232 unsigned long parent_rate; in get_rate_usb() local
234 parent_rate = clk_get_rate(clk->parent); in get_rate_usb()
238 return parent_rate / (usb_pdf + 1U); in get_rate_usb()
243 unsigned long parent_rate; in get_rate_ssix() local
245 parent_rate = clk_get_rate(clk->parent); in get_rate_ssix()
252 return 2UL * parent_rate / pdf; in get_rate_ssix()
268 unsigned long parent_rate; in get_rate_nfc() local
270 parent_rate = clk_get_rate(clk->parent); in get_rate_nfc()
277 return parent_rate / (nfc_pdf + 1); in get_rate_nfc()
283 unsigned long parent_rate; in get_rate_vpu() local
285 parent_rate = clk_get_rate(clk->parent); in get_rate_vpu()
295 return 2UL * parent_rate / vpu_pdf; in get_rate_vpu()
342 unsigned long parent_rate; in get_rate_mpll_main() local
344 parent_rate = clk_get_rate(clk->parent); in get_rate_mpll_main()
351 return 2UL * parent_rate / 3UL; in get_rate_mpll_main()
353 return parent_rate; in get_rate_mpll_main()
416 unsigned long perclk_pdf, parent_rate; in get_rate_per() local
418 parent_rate = clk_get_rate(clk->parent); in get_rate_per()
425 return parent_rate / (perclk_pdf + 1); in get_rate_per()