/Linux-v5.4/drivers/opp/ |
D | core.c | 34 struct opp_table *opp_table) in _find_opp_dev() argument 38 list_for_each_entry(opp_dev, &opp_table->dev_list, node) in _find_opp_dev() 45 static struct opp_table *_find_opp_table_unlocked(struct device *dev) in _find_opp_table_unlocked() 47 struct opp_table *opp_table; in _find_opp_table_unlocked() local 50 list_for_each_entry(opp_table, &opp_tables, node) { in _find_opp_table_unlocked() 51 mutex_lock(&opp_table->lock); in _find_opp_table_unlocked() 52 found = !!_find_opp_dev(dev, opp_table); in _find_opp_table_unlocked() 53 mutex_unlock(&opp_table->lock); in _find_opp_table_unlocked() 56 _get_opp_table_kref(opp_table); in _find_opp_table_unlocked() 58 return opp_table; in _find_opp_table_unlocked() [all …]
|
D | opp.h | 88 struct opp_table *opp_table; member 163 struct opp_table { struct 185 struct opp_table **required_opp_tables; argument 208 void _opp_remove_all_static(struct opp_table *opp_table); argument 209 void _get_opp_table_kref(struct opp_table *opp_table); 210 int _get_opp_count(struct opp_table *opp_table); 211 struct opp_table *_find_opp_table(struct device *dev); 212 struct opp_device *_add_opp_dev(const struct device *dev, struct opp_table *opp_table); 214 struct dev_pm_opp *_opp_allocate(struct opp_table *opp_table); 216 int _opp_add(struct device *dev, struct dev_pm_opp *new_opp, struct opp_table *opp_table, bool rate… [all …]
|
D | of.c | 42 struct opp_table *_managed_opp(struct device *dev, int index) in _managed_opp() 44 struct opp_table *opp_table, *managed_table = NULL; in _managed_opp() local 51 list_for_each_entry(opp_table, &opp_tables, node) { in _managed_opp() 52 if (opp_table->np == np) { in _managed_opp() 60 if (opp_table->shared_opp == OPP_TABLE_ACCESS_SHARED) { in _managed_opp() 61 _get_opp_table_kref(opp_table); in _managed_opp() 62 managed_table = opp_table; in _managed_opp() 75 static struct dev_pm_opp *_find_opp_of_np(struct opp_table *opp_table, in _find_opp_of_np() argument 80 mutex_lock(&opp_table->lock); in _find_opp_of_np() 82 list_for_each_entry(opp, &opp_table->opp_list, node) { in _find_opp_of_np() [all …]
|
D | debugfs.c | 36 struct opp_table *opp_table, in opp_debug_create_supplies() argument 42 for (i = 0; i < opp_table->regulator_count; i++) { in opp_debug_create_supplies() 64 void opp_debug_create_one(struct dev_pm_opp *opp, struct opp_table *opp_table) in opp_debug_create_one() argument 66 struct dentry *pdentry = opp_table->dentry; in opp_debug_create_one() 80 id = _get_opp_count(opp_table); in opp_debug_create_one() 96 opp_debug_create_supplies(opp, opp_table, d); in opp_debug_create_one() 102 struct opp_table *opp_table) in opp_list_debug_create_dir() argument 107 opp_set_dev_name(dev, opp_table->dentry_name); in opp_list_debug_create_dir() 110 d = debugfs_create_dir(opp_table->dentry_name, rootdir); in opp_list_debug_create_dir() 113 opp_table->dentry = d; in opp_list_debug_create_dir() [all …]
|
D | cpu.c | 159 struct opp_table *opp_table; in dev_pm_opp_set_sharing_cpus() local 163 opp_table = _find_opp_table(cpu_dev); in dev_pm_opp_set_sharing_cpus() 164 if (IS_ERR(opp_table)) in dev_pm_opp_set_sharing_cpus() 165 return PTR_ERR(opp_table); in dev_pm_opp_set_sharing_cpus() 178 opp_dev = _add_opp_dev(dev, opp_table); in dev_pm_opp_set_sharing_cpus() 186 opp_table->shared_opp = OPP_TABLE_ACCESS_SHARED; in dev_pm_opp_set_sharing_cpus() 189 dev_pm_opp_put_opp_table(opp_table); in dev_pm_opp_set_sharing_cpus() 208 struct opp_table *opp_table; in dev_pm_opp_get_sharing_cpus() local 211 opp_table = _find_opp_table(cpu_dev); in dev_pm_opp_get_sharing_cpus() 212 if (IS_ERR(opp_table)) in dev_pm_opp_get_sharing_cpus() [all …]
|
/Linux-v5.4/include/linux/ |
D | pm_opp.h | 21 struct opp_table; 78 struct opp_table *dev_pm_opp_get_opp_table(struct device *dev); 79 struct opp_table *dev_pm_opp_get_opp_table_indexed(struct device *dev, int index); 80 void dev_pm_opp_put_opp_table(struct opp_table *opp_table); 123 struct opp_table *dev_pm_opp_set_supported_hw(struct device *dev, const u32 *versions, unsigned int… 124 void dev_pm_opp_put_supported_hw(struct opp_table *opp_table); 125 struct opp_table *dev_pm_opp_set_prop_name(struct device *dev, const char *name); 126 void dev_pm_opp_put_prop_name(struct opp_table *opp_table); 127 struct opp_table *dev_pm_opp_set_regulators(struct device *dev, const char * const names[], unsigne… 128 void dev_pm_opp_put_regulators(struct opp_table *opp_table); [all …]
|
D | pm_domain.h | 92 struct opp_table; 115 struct opp_table *opp_table; /* OPP table of the genpd */ member
|
/Linux-v5.4/drivers/devfreq/ |
D | exynos-bus.c | 36 struct opp_table *opp_table; member 161 if (bus->opp_table) { in exynos_bus_exit() 162 dev_pm_opp_put_regulators(bus->opp_table); in exynos_bus_exit() 163 bus->opp_table = NULL; in exynos_bus_exit() 179 struct opp_table *opp_table; in exynos_bus_parent_parse_of() local 183 opp_table = dev_pm_opp_set_regulators(dev, &vdd, 1); in exynos_bus_parent_parse_of() 184 if (IS_ERR(opp_table)) { in exynos_bus_parent_parse_of() 185 ret = PTR_ERR(opp_table); in exynos_bus_parent_parse_of() 190 bus->opp_table = opp_table; in exynos_bus_parent_parse_of() 235 dev_pm_opp_put_regulators(bus->opp_table); in exynos_bus_parent_parse_of() [all …]
|
/Linux-v5.4/drivers/cpufreq/ |
D | cpufreq-dt.c | 27 struct opp_table *opp_table; member 151 struct opp_table *opp_table = NULL; in cpufreq_init() local 194 opp_table = dev_pm_opp_set_regulators(cpu_dev, &name, 1); in cpufreq_init() 195 if (IS_ERR(opp_table)) { in cpufreq_init() 196 ret = PTR_ERR(opp_table); in cpufreq_init() 210 priv->opp_table = opp_table; in cpufreq_init() 290 dev_pm_opp_put_regulators(opp_table); in cpufreq_init() 320 dev_pm_opp_put_regulators(priv->opp_table); in cpufreq_exit()
|
D | sti-cpufreq.c | 160 struct opp_table *opp_table; in sti_cpufreq_set_opp_info() local 212 opp_table = dev_pm_opp_set_prop_name(dev, name); in sti_cpufreq_set_opp_info() 213 if (IS_ERR(opp_table)) { in sti_cpufreq_set_opp_info() 215 return PTR_ERR(opp_table); in sti_cpufreq_set_opp_info() 222 opp_table = dev_pm_opp_set_supported_hw(dev, version, VERSION_ELEMENTS); in sti_cpufreq_set_opp_info() 223 if (IS_ERR(opp_table)) { in sti_cpufreq_set_opp_info() 225 return PTR_ERR(opp_table); in sti_cpufreq_set_opp_info()
|
D | ti-cpufreq.c | 54 struct opp_table *opp_table; member 213 struct opp_table *ti_opp_table; in ti_cpufreq_probe() 268 opp_data->opp_table = ti_opp_table; in ti_cpufreq_probe() 275 dev_pm_opp_put_supported_hw(opp_data->opp_table); in ti_cpufreq_probe()
|
D | sun50i-cpufreq-nvmem.c | 94 struct opp_table **opp_tables; in sun50i_cpufreq_nvmem_probe() 150 struct opp_table **opp_tables = platform_get_drvdata(pdev); in sun50i_cpufreq_nvmem_remove()
|
D | qcom-cpufreq-nvmem.c | 57 struct opp_table **opp_tables; 58 struct opp_table **genpd_opp_tables;
|
D | imx-cpufreq-dt.c | 25 static struct opp_table *cpufreq_opp_table;
|
/Linux-v5.4/Documentation/devicetree/bindings/cpufreq/ |
D | imx-cpufreq-dt.txt | 23 opp_table {
|
D | cpufreq-st.txt | 51 cpu0_opp_table: opp_table {
|
D | cpufreq-mediatek.txt | 29 cpu_opp_table: opp_table {
|
/Linux-v5.4/drivers/base/power/ |
D | domain.c | 303 ret = dev_pm_opp_xlate_performance_state(genpd->opp_table, in _genpd_set_performance_state() 304 master->opp_table, in _genpd_set_performance_state() 2056 genpd->opp_table = dev_pm_opp_get_opp_table(&genpd->dev); in of_genpd_add_provider_simple() 2057 WARN_ON(!genpd->opp_table); in of_genpd_add_provider_simple() 2063 dev_pm_opp_put_opp_table(genpd->opp_table); in of_genpd_add_provider_simple() 2123 genpd->opp_table = dev_pm_opp_get_opp_table_indexed(&genpd->dev, i); in of_genpd_add_provider_onecell() 2124 WARN_ON(!genpd->opp_table); in of_genpd_add_provider_onecell() 2150 dev_pm_opp_put_opp_table(genpd->opp_table); in of_genpd_add_provider_onecell() 2186 dev_pm_opp_put_opp_table(gpd->opp_table); in of_genpd_del_provider()
|
/Linux-v5.4/Documentation/devicetree/bindings/opp/ |
D | sun50i-nvmem-cpufreq.txt | 86 cpu_opp_table: opp_table {
|
D | opp.txt | 279 cpu_opp_table: opp_table { 484 opp_table {
|
/Linux-v5.4/arch/arm/boot/dts/ |
D | da850.dtsi | 28 operating-points-v2 = <&opp_table>; 32 opp_table: opp-table { label
|
D | exynos4210.dtsi | 475 gpu_opp_table: opp_table {
|
D | exynos4412.dtsi | 744 gpu_opp_table: opp_table {
|
D | rv1108.dtsi | 43 cpu_opp_table: opp_table {
|
/Linux-v5.4/arch/arm64/boot/dts/qcom/ |
D | msm8916.dtsi | 308 gpu_opp_table: opp_table {
|