Home
last modified time | relevance | path

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

/drivers/cpufreq/
Dimx6q-cpufreq.c37 static struct device *cpu_dev; variable
57 opp = dev_pm_opp_find_freq_ceil(cpu_dev, &freq_hz); in imx6q_set_target()
60 dev_err(cpu_dev, "failed to find OPP for %ld\n", freq_hz); in imx6q_set_target()
68 dev_dbg(cpu_dev, "%u MHz, %ld mV --> %u MHz, %ld mV\n", in imx6q_set_target()
77 dev_err(cpu_dev, "failed to scale vddpu up: %d\n", ret); in imx6q_set_target()
83 dev_err(cpu_dev, "failed to scale vddsoc up: %d\n", ret); in imx6q_set_target()
88 dev_err(cpu_dev, in imx6q_set_target()
135 dev_err(cpu_dev, "failed to set clock rate: %d\n", ret); in imx6q_set_target()
138 dev_warn(cpu_dev, in imx6q_set_target()
147 dev_warn(cpu_dev, in imx6q_set_target()
[all …]
Dcpufreq-dt.c33 struct device *cpu_dev; member
51 struct device *cpu_dev = priv->cpu_dev; in set_target() local
70 opp = dev_pm_opp_find_freq_ceil(cpu_dev, &freq_Hz); in set_target()
73 dev_err(cpu_dev, "failed to find OPP for %ld\n", in set_target()
82 dev_dbg(cpu_dev, "Found OPP: %ld kHz, %ld uV\n", in set_target()
86 dev_dbg(cpu_dev, "%u MHz, %ld mV --> %u MHz, %ld mV\n", in set_target()
94 dev_err(cpu_dev, "failed to scale voltage up: %d\n", in set_target()
102 dev_err(cpu_dev, "failed to set clock rate: %d\n", ret); in set_target()
112 dev_err(cpu_dev, "failed to scale voltage down: %d\n", in set_target()
124 struct device *cpu_dev; in allocate_resources() local
[all …]
Darm_big_little.c299 static void _put_cluster_clk_and_freq_table(struct device *cpu_dev) in _put_cluster_clk_and_freq_table() argument
301 u32 cluster = raw_cpu_to_cluster(cpu_dev->id); in _put_cluster_clk_and_freq_table()
307 dev_pm_opp_free_cpufreq_table(cpu_dev, &freq_table[cluster]); in _put_cluster_clk_and_freq_table()
309 arm_bL_ops->free_opp_table(cpu_dev); in _put_cluster_clk_and_freq_table()
310 dev_dbg(cpu_dev, "%s: cluster: %d\n", __func__, cluster); in _put_cluster_clk_and_freq_table()
313 static void put_cluster_clk_and_freq_table(struct device *cpu_dev) in put_cluster_clk_and_freq_table() argument
315 u32 cluster = cpu_to_cluster(cpu_dev->id); in put_cluster_clk_and_freq_table()
322 return _put_cluster_clk_and_freq_table(cpu_dev); in put_cluster_clk_and_freq_table()
338 static int _get_cluster_clk_and_freq_table(struct device *cpu_dev) in _get_cluster_clk_and_freq_table() argument
340 u32 cluster = raw_cpu_to_cluster(cpu_dev->id); in _get_cluster_clk_and_freq_table()
[all …]
Dscpi-cpufreq.c32 static struct scpi_dvfs_info *scpi_get_dvfs_info(struct device *cpu_dev) in scpi_get_dvfs_info() argument
34 int domain = topology_physical_package_id(cpu_dev->id); in scpi_get_dvfs_info()
41 static int scpi_opp_table_ops(struct device *cpu_dev, bool remove) in scpi_opp_table_ops() argument
45 struct scpi_dvfs_info *info = scpi_get_dvfs_info(cpu_dev); in scpi_opp_table_ops()
55 dev_pm_opp_remove(cpu_dev, opp->freq); in scpi_opp_table_ops()
57 ret = dev_pm_opp_add(cpu_dev, opp->freq, in scpi_opp_table_ops()
60 dev_warn(cpu_dev, "failed to add opp %uHz %umV\n", in scpi_opp_table_ops()
63 dev_pm_opp_remove(cpu_dev, (--opp)->freq); in scpi_opp_table_ops()
70 static int scpi_get_transition_latency(struct device *cpu_dev) in scpi_get_transition_latency() argument
72 struct scpi_dvfs_info *info = scpi_get_dvfs_info(cpu_dev); in scpi_get_transition_latency()
[all …]
Dmt8173-cpufreq.c44 struct device *cpu_dev; member
179 struct device *cpu_dev = info->cpu_dev; in mtk_cpufreq_set_target() local
192 opp = dev_pm_opp_find_freq_ceil(cpu_dev, &freq_hz); in mtk_cpufreq_set_target()
269 struct device_node *np = of_node_get(info->cpu_dev->of_node); in mtk_cpufreq_ready()
279 dev_err(info->cpu_dev, in mtk_cpufreq_ready()
292 struct device *cpu_dev; in mtk_cpu_dvfs_info_init() local
301 cpu_dev = get_cpu_device(cpu); in mtk_cpu_dvfs_info_init()
302 if (!cpu_dev) { in mtk_cpu_dvfs_info_init()
307 cpu_clk = clk_get(cpu_dev, "cpu"); in mtk_cpu_dvfs_info_init()
318 inter_clk = clk_get(cpu_dev, "intermediate"); in mtk_cpu_dvfs_info_init()
[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 = dev_pm_opp_of_add_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()
Darm_big_little.h33 int (*init_opp_table)(struct device *cpu_dev);
36 int (*get_transition_latency)(struct device *cpu_dev);
37 void (*free_opp_table)(struct device *cpu_dev);
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
Dtegra124-cpufreq.c80 struct device *cpu_dev; in tegra124_cpufreq_probe() local
88 cpu_dev = get_cpu_device(0); in tegra124_cpufreq_probe()
89 if (!cpu_dev) in tegra124_cpufreq_probe()
96 priv->vdd_cpu_reg = regulator_get(cpu_dev, "vdd-cpu"); in tegra124_cpufreq_probe()
Dcpufreq.c984 struct device *cpu_dev; in add_cpu_dev_symlink() local
991 cpu_dev = get_cpu_device(cpu); in add_cpu_dev_symlink()
992 if (WARN_ON(!cpu_dev)) in add_cpu_dev_symlink()
995 return sysfs_create_link(&cpu_dev->kobj, &policy->kobj, "cpufreq"); in add_cpu_dev_symlink()
1000 struct device *cpu_dev; in remove_cpu_dev_symlink() local
1004 cpu_dev = get_cpu_device(cpu); in remove_cpu_dev_symlink()
1005 if (WARN_ON(!cpu_dev)) in remove_cpu_dev_symlink()
1008 sysfs_remove_link(&cpu_dev->kobj, "cpufreq"); in remove_cpu_dev_symlink()
/drivers/base/power/opp/
Dcpu.c123 int dev_pm_opp_set_sharing_cpus(struct device *cpu_dev, cpumask_var_t cpumask) in dev_pm_opp_set_sharing_cpus() argument
132 dev_opp = _find_device_opp(cpu_dev); in dev_pm_opp_set_sharing_cpus()
139 if (cpu == cpu_dev->id) in dev_pm_opp_set_sharing_cpus()
144 dev_err(cpu_dev, "%s: failed to get cpu%d device\n", in dev_pm_opp_set_sharing_cpus()
166 struct device *cpu_dev; in dev_pm_opp_of_cpumask_remove_table() local
172 cpu_dev = get_cpu_device(cpu); in dev_pm_opp_of_cpumask_remove_table()
173 if (!cpu_dev) { in dev_pm_opp_of_cpumask_remove_table()
179 dev_pm_opp_of_remove_table(cpu_dev); in dev_pm_opp_of_cpumask_remove_table()
186 struct device *cpu_dev; in dev_pm_opp_of_cpumask_add_table() local
192 cpu_dev = get_cpu_device(cpu); in dev_pm_opp_of_cpumask_add_table()
[all …]
/drivers/clk/
Dclk-mb86s7x.c330 struct clk *mb86s7x_clclk_register(struct device *cpu_dev) in mb86s7x_clclk_register() argument
340 clc->cluster = topology_physical_package_id(cpu_dev->id); in mb86s7x_clclk_register()
342 init.name = dev_name(cpu_dev); in mb86s7x_clclk_register()
347 return devm_clk_register(cpu_dev, &clc->hw); in mb86s7x_clclk_register()
361 struct device *cpu_dev = get_cpu_device(cpu); in mb86s7x_clclk_of_init() local
363 if (!cpu_dev) { in mb86s7x_clclk_of_init()
368 clk = mb86s7x_clclk_register(cpu_dev); in mb86s7x_clclk_of_init()
373 if (clk_register_clkdev(clk, NULL, dev_name(cpu_dev))) { in mb86s7x_clclk_of_init()
377 pr_debug("registered clk for %s\n", dev_name(cpu_dev)); in mb86s7x_clclk_of_init()
/drivers/thermal/
Dcpu_cooling.c104 struct device *cpu_dev; member
340 cpufreq_device->cpu_dev = dev; in build_dyn_power_table()
433 !cpufreq_device->cpu_dev) { in get_static_power()
440 opp = dev_pm_opp_find_freq_exact(cpufreq_device->cpu_dev, freq_hz, in get_static_power()
447 dev_warn_ratelimited(cpufreq_device->cpu_dev, in get_static_power()
/drivers/base/
Dcacheinfo.c48 struct device *cpu_dev = get_cpu_device(cpu); in cache_setup_of_node() local
56 if (!cpu_dev) { in cache_setup_of_node()
60 np = cpu_dev->of_node; in cache_setup_of_node()
/drivers/cpuidle/
Dsysfs.c615 struct device *cpu_dev = get_cpu_device((unsigned long)dev->cpu); in cpuidle_add_sysfs() local
627 if (!cpu_dev) in cpuidle_add_sysfs()
637 error = kobject_init_and_add(&kdev->kobj, &ktype_cpuidle, &cpu_dev->kobj, in cpuidle_add_sysfs()