Lines Matching refs:freq
69 cfg->freq.fclk = fclk = clk_get_rate(clk_fclk); in s3c_cpufreq_getcur()
70 cfg->freq.hclk = hclk = clk_get_rate(clk_hclk); in s3c_cpufreq_getcur()
71 cfg->freq.pclk = pclk = clk_get_rate(clk_pclk); in s3c_cpufreq_getcur()
72 cfg->freq.armclk = armclk = clk_get_rate(clk_arm); in s3c_cpufreq_getcur()
77 cfg->freq.hclk_tns = 1000000000 / (cfg->freq.hclk / 10); in s3c_cpufreq_getcur()
87 cfg->freq.fclk = pll; in s3c_cpufreq_calc()
88 cfg->freq.hclk = pll / cfg->divs.h_divisor; in s3c_cpufreq_calc()
89 cfg->freq.pclk = pll / cfg->divs.p_divisor; in s3c_cpufreq_calc()
92 cfg->freq.hclk_tns = 1000000000 / (cfg->freq.hclk / 10); in s3c_cpufreq_calc()
107 pfx, cfg->pll.frequency, cfg->freq.fclk, cfg->freq.armclk, in s3c_cpufreq_show()
108 cfg->freq.hclk, cfg->divs.h_divisor, in s3c_cpufreq_show()
109 cfg->freq.pclk, cfg->divs.p_divisor); in s3c_cpufreq_show()
150 unsigned int freq) in s3c_cpufreq_updateclk() argument
152 clk_set_rate(clk, freq); in s3c_cpufreq_updateclk()
176 cpu_new.freq.armclk = target_freq; in s3c_cpufreq_settarget()
177 cpu_new.freq.fclk = cpu_new.pll.frequency; in s3c_cpufreq_settarget()
190 if (cpu_new.freq.hclk != cpu_cur.freq.hclk) { in s3c_cpufreq_settarget()
201 freqs.old = cpu_cur.freq; in s3c_cpufreq_settarget()
202 freqs.new = cpu_new.freq; in s3c_cpufreq_settarget()
204 freqs.freqs.old = cpu_cur.freq.armclk / 1000; in s3c_cpufreq_settarget()
205 freqs.freqs.new = cpu_new.freq.armclk / 1000; in s3c_cpufreq_settarget()
212 s3c_cpufreq_updateclk(clk_fclk, cpu_new.freq.fclk); in s3c_cpufreq_settarget()
213 s3c_cpufreq_updateclk(clk_hclk, cpu_new.freq.hclk); in s3c_cpufreq_settarget()
214 s3c_cpufreq_updateclk(clk_pclk, cpu_new.freq.pclk); in s3c_cpufreq_settarget()
226 if (cpu_new.freq.hclk < cpu_cur.freq.hclk) { in s3c_cpufreq_settarget()
231 if (cpu_new.freq.fclk == cpu_cur.freq.fclk) { in s3c_cpufreq_settarget()
236 if (cpu_new.freq.fclk < cpu_cur.freq.fclk) { in s3c_cpufreq_settarget()
250 if (cpu_new.freq.hclk > cpu_cur.freq.hclk) { in s3c_cpufreq_settarget()
528 static inline u32 calc_locktime(u32 freq, u32 time_us) in calc_locktime() argument
532 result = freq * time_us; in calc_locktime()