Home
last modified time | relevance | path

Searched refs:cpu_dev (Results 1 – 9 of 9) sorted by relevance

/drivers/cpufreq/
Dimx6q-cpufreq.c33 static struct device *cpu_dev; variable
52 opp = dev_pm_opp_find_freq_ceil(cpu_dev, &freq_hz); in imx6q_set_target()
55 dev_err(cpu_dev, "failed to find OPP for %ld\n", freq_hz); in imx6q_set_target()
63 dev_dbg(cpu_dev, "%u MHz, %ld mV --> %u MHz, %ld mV\n", in imx6q_set_target()
72 dev_err(cpu_dev, "failed to scale vddpu up: %d\n", ret); in imx6q_set_target()
78 dev_err(cpu_dev, "failed to scale vddsoc up: %d\n", ret); in imx6q_set_target()
83 dev_err(cpu_dev, in imx6q_set_target()
108 dev_err(cpu_dev, "failed to set clock rate: %d\n", ret); in imx6q_set_target()
117 dev_warn(cpu_dev, in imx6q_set_target()
123 dev_warn(cpu_dev, "failed to scale vddsoc down: %d\n", ret); in imx6q_set_target()
[all …]
Dcpufreq-dt.c33 struct device *cpu_dev; member
45 struct device *cpu_dev = priv->cpu_dev; in set_target() local
62 opp = dev_pm_opp_find_freq_ceil(cpu_dev, &freq_Hz); in set_target()
65 dev_err(cpu_dev, "failed to find OPP for %ld\n", in set_target()
75 dev_dbg(cpu_dev, "%u MHz, %ld mV --> %u MHz, %ld mV\n", in set_target()
83 dev_err(cpu_dev, "failed to scale voltage up: %d\n", in set_target()
91 dev_err(cpu_dev, "failed to set clock rate: %d\n", ret); in set_target()
101 dev_err(cpu_dev, "failed to scale voltage down: %d\n", in set_target()
113 struct device *cpu_dev; in allocate_resources() local
119 cpu_dev = get_cpu_device(cpu); in allocate_resources()
[all …]
Darm_big_little.c283 static void _put_cluster_clk_and_freq_table(struct device *cpu_dev) in _put_cluster_clk_and_freq_table() argument
285 u32 cluster = raw_cpu_to_cluster(cpu_dev->id); in _put_cluster_clk_and_freq_table()
291 dev_pm_opp_free_cpufreq_table(cpu_dev, &freq_table[cluster]); in _put_cluster_clk_and_freq_table()
292 dev_dbg(cpu_dev, "%s: cluster: %d\n", __func__, cluster); in _put_cluster_clk_and_freq_table()
295 static void put_cluster_clk_and_freq_table(struct device *cpu_dev) in put_cluster_clk_and_freq_table() argument
297 u32 cluster = cpu_to_cluster(cpu_dev->id); in put_cluster_clk_and_freq_table()
304 return _put_cluster_clk_and_freq_table(cpu_dev); in put_cluster_clk_and_freq_table()
320 static int _get_cluster_clk_and_freq_table(struct device *cpu_dev) in _get_cluster_clk_and_freq_table() argument
322 u32 cluster = raw_cpu_to_cluster(cpu_dev->id); in _get_cluster_clk_and_freq_table()
329 ret = arm_bL_ops->init_opp_table(cpu_dev); in _get_cluster_clk_and_freq_table()
[all …]
Darm_big_little_dt.c46 static int dt_init_opp_table(struct device *cpu_dev) in dt_init_opp_table() argument
51 np = of_node_get(cpu_dev->of_node); in dt_init_opp_table()
53 pr_err("failed to find cpu%d node\n", cpu_dev->id); in dt_init_opp_table()
57 ret = of_init_opp_table(cpu_dev); in dt_init_opp_table()
63 static int dt_get_transition_latency(struct device *cpu_dev) in dt_get_transition_latency() argument
68 np = of_node_get(cpu_dev->of_node); in dt_get_transition_latency()
Dhighbank-cpufreq.c64 struct device *cpu_dev; in hb_cpufreq_driver_init() local
73 cpu_dev = get_cpu_device(0); in hb_cpufreq_driver_init()
74 if (!cpu_dev) { in hb_cpufreq_driver_init()
79 np = of_node_get(cpu_dev->of_node); in hb_cpufreq_driver_init()
85 cpu_clk = clk_get(cpu_dev, NULL); in hb_cpufreq_driver_init()
Dvexpress-spc-cpufreq.c29 static int ve_spc_init_opp_table(struct device *cpu_dev) in ve_spc_init_opp_table() argument
35 return dev_pm_opp_get_opp_count(cpu_dev) <= 0; in ve_spc_init_opp_table()
38 static int ve_spc_get_transition_latency(struct device *cpu_dev) in ve_spc_get_transition_latency() argument
Darm_big_little.h28 int (*get_transition_latency)(struct device *cpu_dev);
34 int (*init_opp_table)(struct device *cpu_dev);
Dcpufreq.c942 struct device *cpu_dev; in cpufreq_add_dev_symlink() local
948 cpu_dev = get_cpu_device(j); in cpufreq_add_dev_symlink()
949 ret = sysfs_create_link(&cpu_dev->kobj, &policy->kobj, in cpufreq_add_dev_symlink()
1154 struct device *cpu_dev) in update_policy_cpu() argument
1162 ret = kobject_move(&policy->kobj, &cpu_dev->kobj); in update_policy_cpu()
1444 struct device *cpu_dev = get_cpu_device(new_cpu); in __cpufreq_remove_dev_prepare() local
1446 sysfs_remove_link(&cpu_dev->kobj, "cpufreq"); in __cpufreq_remove_dev_prepare()
1447 ret = update_policy_cpu(policy, new_cpu, cpu_dev); in __cpufreq_remove_dev_prepare()
1449 if (sysfs_create_link(&cpu_dev->kobj, &policy->kobj, in __cpufreq_remove_dev_prepare()
1452 __func__, cpu_dev->id); in __cpufreq_remove_dev_prepare()
/drivers/cpuidle/
Dsysfs.c613 struct device *cpu_dev = get_cpu_device((unsigned long)dev->cpu); in cpuidle_add_sysfs() local
625 if (!cpu_dev) in cpuidle_add_sysfs()
636 error = kobject_init_and_add(&kdev->kobj, &ktype_cpuidle, &cpu_dev->kobj, in cpuidle_add_sysfs()