Lines Matching full:rate

54 	u32 reg, val, rate;  in scg_sircdiv_get_rate()  local
84 rate = scg_src_get_rate(SCG_SIRC_CLK); in scg_sircdiv_get_rate()
85 rate = rate / (1 << (val - 1)); in scg_sircdiv_get_rate()
87 return rate; in scg_sircdiv_get_rate()
92 u32 reg, val, rate; in scg_fircdiv_get_rate() local
122 rate = scg_src_get_rate(SCG_FIRC_CLK); in scg_fircdiv_get_rate()
123 rate = rate / (1 << (val - 1)); in scg_fircdiv_get_rate()
125 return rate; in scg_fircdiv_get_rate()
130 u32 reg, val, rate; in scg_soscdiv_get_rate() local
160 rate = scg_src_get_rate(SCG_SOSC_CLK); in scg_soscdiv_get_rate()
161 rate = rate / (1 << (val - 1)); in scg_soscdiv_get_rate()
163 return rate; in scg_soscdiv_get_rate()
168 u32 reg, val, rate; in scg_apll_pfd_get_rate() local
207 rate = decode_pll(PLL_A7_APLL); in scg_apll_pfd_get_rate()
209 rate = rate / val * 18; in scg_apll_pfd_get_rate()
211 clk_debug("scg_apll_pfd_get_rate rate %u\n", rate); in scg_apll_pfd_get_rate()
213 return rate; in scg_apll_pfd_get_rate()
218 u32 reg, val, rate; in scg_spll_pfd_get_rate() local
257 rate = decode_pll(PLL_A7_SPLL); in scg_spll_pfd_get_rate()
259 rate = rate / val * 18; in scg_spll_pfd_get_rate()
261 clk_debug("scg_spll_pfd_get_rate rate %u\n", rate); in scg_spll_pfd_get_rate()
263 return rate; in scg_spll_pfd_get_rate()
268 u32 reg, val, rate; in scg_apll_get_rate() local
275 rate = decode_pll(PLL_A7_APLL); in scg_apll_get_rate()
279 rate = rate / (val + 1); in scg_apll_get_rate()
283 rate = rate / (val + 1); in scg_apll_get_rate()
288 rate = scg_apll_pfd_get_rate(SCG_APLL_PFD0_CLK + val); in scg_apll_get_rate()
291 return rate; in scg_apll_get_rate()
296 u32 reg, val, rate; in scg_spll_get_rate() local
305 rate = decode_pll(PLL_A7_SPLL); in scg_spll_get_rate()
309 rate = rate / (val + 1); in scg_spll_get_rate()
313 rate = rate / (val + 1); in scg_spll_get_rate()
315 clk_debug("scg_spll_get_rate SPLL %u\n", rate); in scg_spll_get_rate()
321 rate = scg_spll_pfd_get_rate(SCG_SPLL_PFD0_CLK + val); in scg_spll_get_rate()
323 clk_debug("scg_spll_get_rate PFD %u\n", rate); in scg_spll_get_rate()
326 return rate; in scg_spll_get_rate()
331 u32 reg, val, rate, div; in scg_ddr_get_rate() local
344 rate = scg_apll_pfd_get_rate(SCG_APLL_PFD0_CLK + val); in scg_ddr_get_rate()
346 rate = decode_pll(PLL_USB); in scg_ddr_get_rate()
349 rate = rate / (1 << (div - 1)); in scg_ddr_get_rate()
350 return rate; in scg_ddr_get_rate()
355 u32 reg, val, rate; in scg_nic_get_rate() local
364 rate = scg_src_get_rate(SCG_FIRC_CLK); in scg_nic_get_rate()
366 rate = scg_ddr_get_rate(); in scg_nic_get_rate()
368 clk_debug("scg_nic_get_rate parent rate %u\n", rate); in scg_nic_get_rate()
372 rate = rate / (val + 1); in scg_nic_get_rate()
374 clk_debug("scg_nic_get_rate NIC0 rate %u\n", rate); in scg_nic_get_rate()
378 return rate; in scg_nic_get_rate()
394 rate = rate / (val + 1); in scg_nic_get_rate()
396 clk_debug("scg_nic_get_rate NIC1 rate %u\n", rate); in scg_nic_get_rate()
401 return rate; in scg_nic_get_rate()
415 rate = rate / (val + 1); in scg_nic_get_rate()
417 clk_debug("scg_nic_get_rate NIC1 bus rate %u\n", rate); in scg_nic_get_rate()
418 return rate; in scg_nic_get_rate()
428 u32 reg, val, rate; in scg_sys_get_rate() local
443 rate = scg_src_get_rate(scg_scs_array[val]); in scg_sys_get_rate()
446 rate = scg_apll_get_rate(); in scg_sys_get_rate()
449 rate = scg_spll_get_rate(); in scg_sys_get_rate()
455 clk_debug("scg_sys_get_rate parent rate %u\n", rate); in scg_sys_get_rate()
459 rate = rate / (val + 1); in scg_sys_get_rate()
463 rate = rate / (val + 1); in scg_sys_get_rate()
466 return rate; in scg_sys_get_rate()