Lines Matching refs:cpuclk
46 struct clk *cpuclk = &per_cpu(sh_cpuclk, cpu); in sh_cpufreq_target() local
60 freq = clk_round_rate(cpuclk, target_freq * 1000); in sh_cpufreq_target()
73 clk_set_rate(cpuclk, freq); in sh_cpufreq_target()
83 struct clk *cpuclk = &per_cpu(sh_cpuclk, policy->cpu); in sh_cpufreq_verify() local
86 freq_table = cpuclk->nr_freqs ? cpuclk->freq_table : NULL; in sh_cpufreq_verify()
92 policy->min = (clk_round_rate(cpuclk, 1) + 500) / 1000; in sh_cpufreq_verify()
93 policy->max = (clk_round_rate(cpuclk, ~0UL) + 500) / 1000; in sh_cpufreq_verify()
102 struct clk *cpuclk = &per_cpu(sh_cpuclk, cpu); in sh_cpufreq_cpu_init() local
108 cpuclk = clk_get(dev, "cpu_clk"); in sh_cpufreq_cpu_init()
109 if (IS_ERR(cpuclk)) { in sh_cpufreq_cpu_init()
111 return PTR_ERR(cpuclk); in sh_cpufreq_cpu_init()
114 freq_table = cpuclk->nr_freqs ? cpuclk->freq_table : NULL; in sh_cpufreq_cpu_init()
126 (clk_round_rate(cpuclk, 1) + 500) / 1000; in sh_cpufreq_cpu_init()
128 (clk_round_rate(cpuclk, ~0UL) + 500) / 1000; in sh_cpufreq_cpu_init()
144 struct clk *cpuclk = &per_cpu(sh_cpuclk, cpu); in sh_cpufreq_cpu_exit() local
146 clk_put(cpuclk); in sh_cpufreq_cpu_exit()