Home
last modified time | relevance | path

Searched refs:opp_tables (Results 1 – 5 of 5) sorted by relevance

/Linux-v5.4/drivers/cpufreq/
Dsun50i-cpufreq-nvmem.c94 struct opp_table **opp_tables; in sun50i_cpufreq_nvmem_probe() local
100 opp_tables = kcalloc(num_possible_cpus(), sizeof(*opp_tables), in sun50i_cpufreq_nvmem_probe()
102 if (!opp_tables) in sun50i_cpufreq_nvmem_probe()
119 opp_tables[cpu] = dev_pm_opp_set_prop_name(cpu_dev, name); in sun50i_cpufreq_nvmem_probe()
120 if (IS_ERR(opp_tables[cpu])) { in sun50i_cpufreq_nvmem_probe()
121 ret = PTR_ERR(opp_tables[cpu]); in sun50i_cpufreq_nvmem_probe()
130 platform_set_drvdata(pdev, opp_tables); in sun50i_cpufreq_nvmem_probe()
139 if (IS_ERR_OR_NULL(opp_tables[cpu])) in sun50i_cpufreq_nvmem_probe()
141 dev_pm_opp_put_prop_name(opp_tables[cpu]); in sun50i_cpufreq_nvmem_probe()
143 kfree(opp_tables); in sun50i_cpufreq_nvmem_probe()
[all …]
Dqcom-cpufreq-nvmem.c57 struct opp_table **opp_tables; member
193 drv->opp_tables = kcalloc(num_possible_cpus(), sizeof(*drv->opp_tables), in qcom_cpufreq_probe()
195 if (!drv->opp_tables) { in qcom_cpufreq_probe()
216 drv->opp_tables[cpu] = in qcom_cpufreq_probe()
219 if (IS_ERR(drv->opp_tables[cpu])) { in qcom_cpufreq_probe()
220 ret = PTR_ERR(drv->opp_tables[cpu]); in qcom_cpufreq_probe()
262 if (IS_ERR_OR_NULL(drv->opp_tables[cpu])) in qcom_cpufreq_probe()
264 dev_pm_opp_put_supported_hw(drv->opp_tables[cpu]); in qcom_cpufreq_probe()
266 kfree(drv->opp_tables); in qcom_cpufreq_probe()
281 if (drv->opp_tables[cpu]) in qcom_cpufreq_remove()
[all …]
/Linux-v5.4/drivers/opp/
Dopp.h28 extern struct list_head opp_tables;
Dof.c51 list_for_each_entry(opp_table, &opp_tables, node) { in _managed_opp()
124 list_for_each_entry(opp_table, &opp_tables, node) { in _find_table_of_opp_np()
Dcore.c29 LIST_HEAD(opp_tables);
50 list_for_each_entry(opp_table, &opp_tables, node) { in _find_opp_table_unlocked()
994 list_add(&opp_table->node, &opp_tables); in _allocate_opp_table()