Lines Matching refs:cpu_dev
64 struct device *cpu_dev; member
129 dev_err(priv->cpu_dev, "could not find frequency for pstate %d\n", in apple_soc_cpufreq_get_rate()
209 struct device *cpu_dev; in apple_soc_cpufreq_init() local
214 cpu_dev = get_cpu_device(policy->cpu); in apple_soc_cpufreq_init()
215 if (!cpu_dev) { in apple_soc_cpufreq_init()
220 ret = dev_pm_opp_of_add_table(cpu_dev); in apple_soc_cpufreq_init()
222 dev_err(cpu_dev, "%s: failed to add OPP table: %d\n", __func__, ret); in apple_soc_cpufreq_init()
228 dev_err(cpu_dev, "%s: failed to get cluster info: %d\n", __func__, ret); in apple_soc_cpufreq_init()
232 ret = dev_pm_opp_set_sharing_cpus(cpu_dev, policy->cpus); in apple_soc_cpufreq_init()
234 dev_err(cpu_dev, "%s: failed to mark OPPs as shared: %d\n", __func__, ret); in apple_soc_cpufreq_init()
238 ret = dev_pm_opp_get_opp_count(cpu_dev); in apple_soc_cpufreq_init()
240 dev_dbg(cpu_dev, "OPP table is not ready, deferring probe\n"); in apple_soc_cpufreq_init()
251 ret = dev_pm_opp_init_cpufreq_table(cpu_dev, &freq_table); in apple_soc_cpufreq_init()
253 dev_err(cpu_dev, "failed to init cpufreq table: %d\n", ret); in apple_soc_cpufreq_init()
260 struct dev_pm_opp *opp = dev_pm_opp_find_freq_floor(cpu_dev, &rate); in apple_soc_cpufreq_init()
270 priv->cpu_dev = cpu_dev; in apple_soc_cpufreq_init()
276 transition_latency = dev_pm_opp_get_max_transition_latency(cpu_dev); in apple_soc_cpufreq_init()
288 dev_warn(cpu_dev, "failed to enable boost: %d\n", ret); in apple_soc_cpufreq_init()
298 dev_pm_opp_free_cpufreq_table(cpu_dev, &freq_table); in apple_soc_cpufreq_init()
302 dev_pm_opp_remove_all_dynamic(cpu_dev); in apple_soc_cpufreq_init()
312 dev_pm_opp_free_cpufreq_table(priv->cpu_dev, &policy->freq_table); in apple_soc_cpufreq_exit()
313 dev_pm_opp_remove_all_dynamic(priv->cpu_dev); in apple_soc_cpufreq_exit()