opp_table 303 drivers/base/power/domain.c ret = dev_pm_opp_xlate_performance_state(genpd->opp_table, opp_table 304 drivers/base/power/domain.c master->opp_table, opp_table 2056 drivers/base/power/domain.c genpd->opp_table = dev_pm_opp_get_opp_table(&genpd->dev); opp_table 2057 drivers/base/power/domain.c WARN_ON(!genpd->opp_table); opp_table 2063 drivers/base/power/domain.c dev_pm_opp_put_opp_table(genpd->opp_table); opp_table 2123 drivers/base/power/domain.c genpd->opp_table = dev_pm_opp_get_opp_table_indexed(&genpd->dev, i); opp_table 2124 drivers/base/power/domain.c WARN_ON(!genpd->opp_table); opp_table 2150 drivers/base/power/domain.c dev_pm_opp_put_opp_table(genpd->opp_table); opp_table 2186 drivers/base/power/domain.c dev_pm_opp_put_opp_table(gpd->opp_table); opp_table 27 drivers/cpufreq/cpufreq-dt.c struct opp_table *opp_table; opp_table 151 drivers/cpufreq/cpufreq-dt.c struct opp_table *opp_table = NULL; opp_table 194 drivers/cpufreq/cpufreq-dt.c opp_table = dev_pm_opp_set_regulators(cpu_dev, &name, 1); opp_table 195 drivers/cpufreq/cpufreq-dt.c if (IS_ERR(opp_table)) { opp_table 196 drivers/cpufreq/cpufreq-dt.c ret = PTR_ERR(opp_table); opp_table 210 drivers/cpufreq/cpufreq-dt.c priv->opp_table = opp_table; opp_table 290 drivers/cpufreq/cpufreq-dt.c dev_pm_opp_put_regulators(opp_table); opp_table 320 drivers/cpufreq/cpufreq-dt.c dev_pm_opp_put_regulators(priv->opp_table); opp_table 25 drivers/cpufreq/imx-cpufreq-dt.c static struct opp_table *cpufreq_opp_table; opp_table 57 drivers/cpufreq/qcom-cpufreq-nvmem.c struct opp_table **opp_tables; opp_table 58 drivers/cpufreq/qcom-cpufreq-nvmem.c struct opp_table **genpd_opp_tables; opp_table 160 drivers/cpufreq/sti-cpufreq.c struct opp_table *opp_table; opp_table 212 drivers/cpufreq/sti-cpufreq.c opp_table = dev_pm_opp_set_prop_name(dev, name); opp_table 213 drivers/cpufreq/sti-cpufreq.c if (IS_ERR(opp_table)) { opp_table 215 drivers/cpufreq/sti-cpufreq.c return PTR_ERR(opp_table); opp_table 222 drivers/cpufreq/sti-cpufreq.c opp_table = dev_pm_opp_set_supported_hw(dev, version, VERSION_ELEMENTS); opp_table 223 drivers/cpufreq/sti-cpufreq.c if (IS_ERR(opp_table)) { opp_table 225 drivers/cpufreq/sti-cpufreq.c return PTR_ERR(opp_table); opp_table 89 drivers/cpufreq/sun50i-cpufreq-nvmem.c struct opp_table **opp_tables; opp_table 145 drivers/cpufreq/sun50i-cpufreq-nvmem.c struct opp_table **opp_tables = platform_get_drvdata(pdev); opp_table 54 drivers/cpufreq/ti-cpufreq.c struct opp_table *opp_table; opp_table 213 drivers/cpufreq/ti-cpufreq.c struct opp_table *ti_opp_table; opp_table 268 drivers/cpufreq/ti-cpufreq.c opp_data->opp_table = ti_opp_table; opp_table 275 drivers/cpufreq/ti-cpufreq.c dev_pm_opp_put_supported_hw(opp_data->opp_table); opp_table 36 drivers/devfreq/exynos-bus.c struct opp_table *opp_table; opp_table 161 drivers/devfreq/exynos-bus.c if (bus->opp_table) { opp_table 162 drivers/devfreq/exynos-bus.c dev_pm_opp_put_regulators(bus->opp_table); opp_table 163 drivers/devfreq/exynos-bus.c bus->opp_table = NULL; opp_table 179 drivers/devfreq/exynos-bus.c struct opp_table *opp_table; opp_table 183 drivers/devfreq/exynos-bus.c opp_table = dev_pm_opp_set_regulators(dev, &vdd, 1); opp_table 184 drivers/devfreq/exynos-bus.c if (IS_ERR(opp_table)) { opp_table 185 drivers/devfreq/exynos-bus.c ret = PTR_ERR(opp_table); opp_table 190 drivers/devfreq/exynos-bus.c bus->opp_table = opp_table; opp_table 235 drivers/devfreq/exynos-bus.c dev_pm_opp_put_regulators(bus->opp_table); opp_table 236 drivers/devfreq/exynos-bus.c bus->opp_table = NULL; opp_table 428 drivers/devfreq/exynos-bus.c dev_pm_opp_put_regulators(bus->opp_table); opp_table 429 drivers/devfreq/exynos-bus.c bus->opp_table = NULL; opp_table 34 drivers/opp/core.c struct opp_table *opp_table) opp_table 38 drivers/opp/core.c list_for_each_entry(opp_dev, &opp_table->dev_list, node) opp_table 45 drivers/opp/core.c static struct opp_table *_find_opp_table_unlocked(struct device *dev) opp_table 47 drivers/opp/core.c struct opp_table *opp_table; opp_table 50 drivers/opp/core.c list_for_each_entry(opp_table, &opp_tables, node) { opp_table 51 drivers/opp/core.c mutex_lock(&opp_table->lock); opp_table 52 drivers/opp/core.c found = !!_find_opp_dev(dev, opp_table); opp_table 53 drivers/opp/core.c mutex_unlock(&opp_table->lock); opp_table 56 drivers/opp/core.c _get_opp_table_kref(opp_table); opp_table 58 drivers/opp/core.c return opp_table; opp_table 76 drivers/opp/core.c struct opp_table *_find_opp_table(struct device *dev) opp_table 78 drivers/opp/core.c struct opp_table *opp_table; opp_table 86 drivers/opp/core.c opp_table = _find_opp_table_unlocked(dev); opp_table 89 drivers/opp/core.c return opp_table; opp_table 177 drivers/opp/core.c struct opp_table *opp_table; opp_table 180 drivers/opp/core.c opp_table = _find_opp_table(dev); opp_table 181 drivers/opp/core.c if (IS_ERR(opp_table)) opp_table 184 drivers/opp/core.c clock_latency_ns = opp_table->clock_latency_ns_max; opp_table 186 drivers/opp/core.c dev_pm_opp_put_opp_table(opp_table); opp_table 200 drivers/opp/core.c struct opp_table *opp_table; opp_table 210 drivers/opp/core.c opp_table = _find_opp_table(dev); opp_table 211 drivers/opp/core.c if (IS_ERR(opp_table)) opp_table 215 drivers/opp/core.c if (!opp_table->regulators) opp_table 218 drivers/opp/core.c count = opp_table->regulator_count; opp_table 224 drivers/opp/core.c mutex_lock(&opp_table->lock); opp_table 230 drivers/opp/core.c list_for_each_entry(opp, &opp_table->opp_list, node) { opp_table 241 drivers/opp/core.c mutex_unlock(&opp_table->lock); opp_table 248 drivers/opp/core.c reg = opp_table->regulators[i]; opp_table 256 drivers/opp/core.c dev_pm_opp_put_opp_table(opp_table); opp_table 286 drivers/opp/core.c struct opp_table *opp_table; opp_table 289 drivers/opp/core.c opp_table = _find_opp_table(dev); opp_table 290 drivers/opp/core.c if (IS_ERR(opp_table)) opp_table 293 drivers/opp/core.c if (opp_table->suspend_opp && opp_table->suspend_opp->available) opp_table 294 drivers/opp/core.c freq = dev_pm_opp_get_freq(opp_table->suspend_opp); opp_table 296 drivers/opp/core.c dev_pm_opp_put_opp_table(opp_table); opp_table 302 drivers/opp/core.c int _get_opp_count(struct opp_table *opp_table) opp_table 307 drivers/opp/core.c mutex_lock(&opp_table->lock); opp_table 309 drivers/opp/core.c list_for_each_entry(opp, &opp_table->opp_list, node) { opp_table 314 drivers/opp/core.c mutex_unlock(&opp_table->lock); opp_table 328 drivers/opp/core.c struct opp_table *opp_table; opp_table 331 drivers/opp/core.c opp_table = _find_opp_table(dev); opp_table 332 drivers/opp/core.c if (IS_ERR(opp_table)) { opp_table 333 drivers/opp/core.c count = PTR_ERR(opp_table); opp_table 339 drivers/opp/core.c count = _get_opp_count(opp_table); opp_table 340 drivers/opp/core.c dev_pm_opp_put_opp_table(opp_table); opp_table 373 drivers/opp/core.c struct opp_table *opp_table; opp_table 376 drivers/opp/core.c opp_table = _find_opp_table(dev); opp_table 377 drivers/opp/core.c if (IS_ERR(opp_table)) { opp_table 378 drivers/opp/core.c int r = PTR_ERR(opp_table); opp_table 384 drivers/opp/core.c mutex_lock(&opp_table->lock); opp_table 386 drivers/opp/core.c list_for_each_entry(temp_opp, &opp_table->opp_list, node) { opp_table 397 drivers/opp/core.c mutex_unlock(&opp_table->lock); opp_table 398 drivers/opp/core.c dev_pm_opp_put_opp_table(opp_table); opp_table 422 drivers/opp/core.c struct opp_table *opp_table; opp_table 425 drivers/opp/core.c opp_table = _find_opp_table(dev); opp_table 426 drivers/opp/core.c if (IS_ERR(opp_table)) { opp_table 427 drivers/opp/core.c int r = PTR_ERR(opp_table); opp_table 433 drivers/opp/core.c mutex_lock(&opp_table->lock); opp_table 435 drivers/opp/core.c list_for_each_entry(temp_opp, &opp_table->opp_list, node) { opp_table 445 drivers/opp/core.c mutex_unlock(&opp_table->lock); opp_table 446 drivers/opp/core.c dev_pm_opp_put_opp_table(opp_table); opp_table 452 drivers/opp/core.c static noinline struct dev_pm_opp *_find_freq_ceil(struct opp_table *opp_table, opp_table 457 drivers/opp/core.c mutex_lock(&opp_table->lock); opp_table 459 drivers/opp/core.c list_for_each_entry(temp_opp, &opp_table->opp_list, node) { opp_table 470 drivers/opp/core.c mutex_unlock(&opp_table->lock); opp_table 496 drivers/opp/core.c struct opp_table *opp_table; opp_table 504 drivers/opp/core.c opp_table = _find_opp_table(dev); opp_table 505 drivers/opp/core.c if (IS_ERR(opp_table)) opp_table 506 drivers/opp/core.c return ERR_CAST(opp_table); opp_table 508 drivers/opp/core.c opp = _find_freq_ceil(opp_table, freq); opp_table 510 drivers/opp/core.c dev_pm_opp_put_opp_table(opp_table); opp_table 537 drivers/opp/core.c struct opp_table *opp_table; opp_table 545 drivers/opp/core.c opp_table = _find_opp_table(dev); opp_table 546 drivers/opp/core.c if (IS_ERR(opp_table)) opp_table 547 drivers/opp/core.c return ERR_CAST(opp_table); opp_table 549 drivers/opp/core.c mutex_lock(&opp_table->lock); opp_table 551 drivers/opp/core.c list_for_each_entry(temp_opp, &opp_table->opp_list, node) { opp_table 564 drivers/opp/core.c mutex_unlock(&opp_table->lock); opp_table 565 drivers/opp/core.c dev_pm_opp_put_opp_table(opp_table); opp_table 594 drivers/opp/core.c struct opp_table *opp_table; opp_table 603 drivers/opp/core.c opp_table = _find_opp_table(dev); opp_table 604 drivers/opp/core.c if (IS_ERR(opp_table)) opp_table 605 drivers/opp/core.c return ERR_CAST(opp_table); opp_table 607 drivers/opp/core.c mutex_lock(&opp_table->lock); opp_table 609 drivers/opp/core.c list_for_each_entry(temp_opp, &opp_table->opp_list, node) { opp_table 621 drivers/opp/core.c mutex_unlock(&opp_table->lock); opp_table 622 drivers/opp/core.c dev_pm_opp_put_opp_table(opp_table); opp_table 667 drivers/opp/core.c static int _generic_set_opp_regulator(const struct opp_table *opp_table, opp_table 674 drivers/opp/core.c struct regulator *reg = opp_table->regulators[0]; opp_table 678 drivers/opp/core.c if (WARN_ON(opp_table->regulator_count > 1)) { opp_table 691 drivers/opp/core.c ret = _generic_set_opp_clk_only(dev, opp_table->clk, freq); opp_table 705 drivers/opp/core.c if (_generic_set_opp_clk_only(dev, opp_table->clk, old_freq)) opp_table 716 drivers/opp/core.c static int _set_opp_custom(const struct opp_table *opp_table, opp_table 725 drivers/opp/core.c data = opp_table->set_opp_data; opp_table 726 drivers/opp/core.c data->regulators = opp_table->regulators; opp_table 727 drivers/opp/core.c data->regulator_count = opp_table->regulator_count; opp_table 728 drivers/opp/core.c data->clk = opp_table->clk; opp_table 732 drivers/opp/core.c size = sizeof(*old_supply) * opp_table->regulator_count; opp_table 741 drivers/opp/core.c return opp_table->set_opp(data); opp_table 746 drivers/opp/core.c struct opp_table *opp_table, opp_table 749 drivers/opp/core.c struct opp_table **required_opp_tables = opp_table->required_opp_tables; opp_table 750 drivers/opp/core.c struct device **genpd_virt_devs = opp_table->genpd_virt_devs; opp_table 774 drivers/opp/core.c mutex_lock(&opp_table->genpd_virt_dev_lock); opp_table 776 drivers/opp/core.c for (i = 0; i < opp_table->required_opp_count; i++) { opp_table 789 drivers/opp/core.c mutex_unlock(&opp_table->genpd_virt_dev_lock); opp_table 807 drivers/opp/core.c struct opp_table *opp_table; opp_table 813 drivers/opp/core.c opp_table = _find_opp_table(dev); opp_table 814 drivers/opp/core.c if (IS_ERR(opp_table)) { opp_table 816 drivers/opp/core.c return PTR_ERR(opp_table); opp_table 820 drivers/opp/core.c if (opp_table->required_opp_tables) { opp_table 821 drivers/opp/core.c ret = _set_required_opps(dev, opp_table, NULL); opp_table 830 drivers/opp/core.c clk = opp_table->clk; opp_table 853 drivers/opp/core.c old_opp = _find_freq_ceil(opp_table, &temp_freq); opp_table 860 drivers/opp/core.c opp = _find_freq_ceil(opp_table, &temp_freq); opp_table 873 drivers/opp/core.c ret = _set_required_opps(dev, opp_table, opp); opp_table 878 drivers/opp/core.c if (opp_table->set_opp) { opp_table 879 drivers/opp/core.c ret = _set_opp_custom(opp_table, dev, old_freq, freq, opp_table 882 drivers/opp/core.c } else if (opp_table->regulators) { opp_table 883 drivers/opp/core.c ret = _generic_set_opp_regulator(opp_table, dev, old_freq, freq, opp_table 893 drivers/opp/core.c ret = _set_required_opps(dev, opp_table, opp); opp_table 904 drivers/opp/core.c dev_pm_opp_put_opp_table(opp_table); opp_table 911 drivers/opp/core.c struct opp_table *opp_table) opp_table 913 drivers/opp/core.c opp_debug_unregister(opp_dev, opp_table); opp_table 919 drivers/opp/core.c struct opp_table *opp_table) opp_table 930 drivers/opp/core.c list_add(&opp_dev->node, &opp_table->dev_list); opp_table 933 drivers/opp/core.c opp_debug_register(opp_dev, opp_table); opp_table 939 drivers/opp/core.c struct opp_table *opp_table) opp_table 943 drivers/opp/core.c mutex_lock(&opp_table->lock); opp_table 944 drivers/opp/core.c opp_dev = _add_opp_dev_unlocked(dev, opp_table); opp_table 945 drivers/opp/core.c mutex_unlock(&opp_table->lock); opp_table 950 drivers/opp/core.c static struct opp_table *_allocate_opp_table(struct device *dev, int index) opp_table 952 drivers/opp/core.c struct opp_table *opp_table; opp_table 960 drivers/opp/core.c opp_table = kzalloc(sizeof(*opp_table), GFP_KERNEL); opp_table 961 drivers/opp/core.c if (!opp_table) opp_table 964 drivers/opp/core.c mutex_init(&opp_table->lock); opp_table 965 drivers/opp/core.c mutex_init(&opp_table->genpd_virt_dev_lock); opp_table 966 drivers/opp/core.c INIT_LIST_HEAD(&opp_table->dev_list); opp_table 969 drivers/opp/core.c opp_table->regulator_count = -1; opp_table 971 drivers/opp/core.c opp_dev = _add_opp_dev(dev, opp_table); opp_table 973 drivers/opp/core.c kfree(opp_table); opp_table 977 drivers/opp/core.c _of_init_opp_table(opp_table, dev, index); opp_table 980 drivers/opp/core.c opp_table->clk = clk_get(dev, NULL); opp_table 981 drivers/opp/core.c if (IS_ERR(opp_table->clk)) { opp_table 982 drivers/opp/core.c ret = PTR_ERR(opp_table->clk); opp_table 988 drivers/opp/core.c BLOCKING_INIT_NOTIFIER_HEAD(&opp_table->head); opp_table 989 drivers/opp/core.c INIT_LIST_HEAD(&opp_table->opp_list); opp_table 990 drivers/opp/core.c kref_init(&opp_table->kref); opp_table 991 drivers/opp/core.c kref_init(&opp_table->list_kref); opp_table 994 drivers/opp/core.c list_add(&opp_table->node, &opp_tables); opp_table 995 drivers/opp/core.c return opp_table; opp_table 998 drivers/opp/core.c void _get_opp_table_kref(struct opp_table *opp_table) opp_table 1000 drivers/opp/core.c kref_get(&opp_table->kref); opp_table 1003 drivers/opp/core.c static struct opp_table *_opp_get_opp_table(struct device *dev, int index) opp_table 1005 drivers/opp/core.c struct opp_table *opp_table; opp_table 1010 drivers/opp/core.c opp_table = _find_opp_table_unlocked(dev); opp_table 1011 drivers/opp/core.c if (!IS_ERR(opp_table)) opp_table 1014 drivers/opp/core.c opp_table = _managed_opp(dev, index); opp_table 1015 drivers/opp/core.c if (opp_table) { opp_table 1016 drivers/opp/core.c if (!_add_opp_dev_unlocked(dev, opp_table)) { opp_table 1017 drivers/opp/core.c dev_pm_opp_put_opp_table(opp_table); opp_table 1018 drivers/opp/core.c opp_table = NULL; opp_table 1023 drivers/opp/core.c opp_table = _allocate_opp_table(dev, index); opp_table 1028 drivers/opp/core.c return opp_table; opp_table 1031 drivers/opp/core.c struct opp_table *dev_pm_opp_get_opp_table(struct device *dev) opp_table 1037 drivers/opp/core.c struct opp_table *dev_pm_opp_get_opp_table_indexed(struct device *dev, opp_table 1045 drivers/opp/core.c struct opp_table *opp_table = container_of(kref, struct opp_table, kref); opp_table 1048 drivers/opp/core.c _of_clear_opp_table(opp_table); opp_table 1051 drivers/opp/core.c if (!IS_ERR(opp_table->clk)) opp_table 1052 drivers/opp/core.c clk_put(opp_table->clk); opp_table 1054 drivers/opp/core.c WARN_ON(!list_empty(&opp_table->opp_list)); opp_table 1056 drivers/opp/core.c list_for_each_entry_safe(opp_dev, temp, &opp_table->dev_list, node) { opp_table 1061 drivers/opp/core.c if (opp_table->genpd_performance_state) opp_table 1064 drivers/opp/core.c _remove_opp_dev(opp_dev, opp_table); opp_table 1067 drivers/opp/core.c mutex_destroy(&opp_table->genpd_virt_dev_lock); opp_table 1068 drivers/opp/core.c mutex_destroy(&opp_table->lock); opp_table 1069 drivers/opp/core.c list_del(&opp_table->node); opp_table 1070 drivers/opp/core.c kfree(opp_table); opp_table 1075 drivers/opp/core.c void _opp_remove_all_static(struct opp_table *opp_table) opp_table 1079 drivers/opp/core.c list_for_each_entry_safe(opp, tmp, &opp_table->opp_list, node) { opp_table 1084 drivers/opp/core.c opp_table->parsed_static_opps = false; opp_table 1089 drivers/opp/core.c struct opp_table *opp_table = container_of(kref, struct opp_table, opp_table 1092 drivers/opp/core.c _opp_remove_all_static(opp_table); opp_table 1096 drivers/opp/core.c void _put_opp_list_kref(struct opp_table *opp_table) opp_table 1098 drivers/opp/core.c kref_put_mutex(&opp_table->list_kref, _opp_table_list_kref_release, opp_table 1102 drivers/opp/core.c void dev_pm_opp_put_opp_table(struct opp_table *opp_table) opp_table 1104 drivers/opp/core.c kref_put_mutex(&opp_table->kref, _opp_table_kref_release, opp_table 1115 drivers/opp/core.c struct opp_table *opp_table) opp_table 1121 drivers/opp/core.c blocking_notifier_call_chain(&opp_table->head, OPP_EVENT_REMOVE, opp); opp_table 1122 drivers/opp/core.c _of_opp_free_required_opps(opp_table, opp); opp_table 1131 drivers/opp/core.c struct opp_table *opp_table = opp->opp_table; opp_table 1133 drivers/opp/core.c _opp_kref_release(opp, opp_table); opp_table 1139 drivers/opp/core.c struct opp_table *opp_table = opp->opp_table; opp_table 1141 drivers/opp/core.c _opp_kref_release(opp, opp_table); opp_table 1142 drivers/opp/core.c mutex_unlock(&opp_table->lock); opp_table 1153 drivers/opp/core.c &opp->opp_table->lock); opp_table 1172 drivers/opp/core.c struct opp_table *opp_table; opp_table 1175 drivers/opp/core.c opp_table = _find_opp_table(dev); opp_table 1176 drivers/opp/core.c if (IS_ERR(opp_table)) opp_table 1179 drivers/opp/core.c mutex_lock(&opp_table->lock); opp_table 1181 drivers/opp/core.c list_for_each_entry(opp, &opp_table->opp_list, node) { opp_table 1188 drivers/opp/core.c mutex_unlock(&opp_table->lock); opp_table 1194 drivers/opp/core.c dev_pm_opp_put_opp_table(opp_table); opp_table 1201 drivers/opp/core.c dev_pm_opp_put_opp_table(opp_table); opp_table 1213 drivers/opp/core.c struct opp_table *opp_table; opp_table 1217 drivers/opp/core.c opp_table = _find_opp_table(dev); opp_table 1218 drivers/opp/core.c if (IS_ERR(opp_table)) opp_table 1221 drivers/opp/core.c mutex_lock(&opp_table->lock); opp_table 1222 drivers/opp/core.c list_for_each_entry_safe(opp, temp, &opp_table->opp_list, node) { opp_table 1228 drivers/opp/core.c mutex_unlock(&opp_table->lock); opp_table 1232 drivers/opp/core.c dev_pm_opp_put_opp_table(opp_table); opp_table 1235 drivers/opp/core.c dev_pm_opp_put_opp_table(opp_table); opp_table 1239 drivers/opp/core.c struct dev_pm_opp *_opp_allocate(struct opp_table *table) opp_table 1261 drivers/opp/core.c struct opp_table *opp_table) opp_table 1266 drivers/opp/core.c if (!opp_table->regulators) opp_table 1269 drivers/opp/core.c for (i = 0; i < opp_table->regulator_count; i++) { opp_table 1270 drivers/opp/core.c reg = opp_table->regulators[i]; opp_table 1286 drivers/opp/core.c struct opp_table *opp_table, opp_table 1299 drivers/opp/core.c list_for_each_entry(opp, &opp_table->opp_list, node) { opp_table 1333 drivers/opp/core.c struct opp_table *opp_table, bool rate_not_available) opp_table 1338 drivers/opp/core.c mutex_lock(&opp_table->lock); opp_table 1339 drivers/opp/core.c head = &opp_table->opp_list; opp_table 1342 drivers/opp/core.c ret = _opp_is_duplicate(dev, new_opp, opp_table, &head); opp_table 1344 drivers/opp/core.c mutex_unlock(&opp_table->lock); opp_table 1350 drivers/opp/core.c mutex_unlock(&opp_table->lock); opp_table 1352 drivers/opp/core.c new_opp->opp_table = opp_table; opp_table 1355 drivers/opp/core.c opp_debug_create_one(new_opp, opp_table); opp_table 1357 drivers/opp/core.c if (!_opp_supported_by_regulators(new_opp, opp_table)) { opp_table 1388 drivers/opp/core.c int _opp_add_v1(struct opp_table *opp_table, struct device *dev, opp_table 1395 drivers/opp/core.c new_opp = _opp_allocate(opp_table); opp_table 1401 drivers/opp/core.c tol = u_volt * opp_table->voltage_tolerance_v1 / 100; opp_table 1408 drivers/opp/core.c ret = _opp_add(dev, new_opp, opp_table, false); opp_table 1420 drivers/opp/core.c blocking_notifier_call_chain(&opp_table->head, OPP_EVENT_ADD, new_opp); opp_table 1440 drivers/opp/core.c struct opp_table *dev_pm_opp_set_supported_hw(struct device *dev, opp_table 1443 drivers/opp/core.c struct opp_table *opp_table; opp_table 1445 drivers/opp/core.c opp_table = dev_pm_opp_get_opp_table(dev); opp_table 1446 drivers/opp/core.c if (!opp_table) opp_table 1450 drivers/opp/core.c WARN_ON(!list_empty(&opp_table->opp_list)); opp_table 1453 drivers/opp/core.c if (opp_table->supported_hw) opp_table 1454 drivers/opp/core.c return opp_table; opp_table 1456 drivers/opp/core.c opp_table->supported_hw = kmemdup(versions, count * sizeof(*versions), opp_table 1458 drivers/opp/core.c if (!opp_table->supported_hw) { opp_table 1459 drivers/opp/core.c dev_pm_opp_put_opp_table(opp_table); opp_table 1463 drivers/opp/core.c opp_table->supported_hw_count = count; opp_table 1465 drivers/opp/core.c return opp_table; opp_table 1477 drivers/opp/core.c void dev_pm_opp_put_supported_hw(struct opp_table *opp_table) opp_table 1480 drivers/opp/core.c WARN_ON(!list_empty(&opp_table->opp_list)); opp_table 1482 drivers/opp/core.c kfree(opp_table->supported_hw); opp_table 1483 drivers/opp/core.c opp_table->supported_hw = NULL; opp_table 1484 drivers/opp/core.c opp_table->supported_hw_count = 0; opp_table 1486 drivers/opp/core.c dev_pm_opp_put_opp_table(opp_table); opp_table 1500 drivers/opp/core.c struct opp_table *dev_pm_opp_set_prop_name(struct device *dev, const char *name) opp_table 1502 drivers/opp/core.c struct opp_table *opp_table; opp_table 1504 drivers/opp/core.c opp_table = dev_pm_opp_get_opp_table(dev); opp_table 1505 drivers/opp/core.c if (!opp_table) opp_table 1509 drivers/opp/core.c WARN_ON(!list_empty(&opp_table->opp_list)); opp_table 1512 drivers/opp/core.c if (opp_table->prop_name) opp_table 1513 drivers/opp/core.c return opp_table; opp_table 1515 drivers/opp/core.c opp_table->prop_name = kstrdup(name, GFP_KERNEL); opp_table 1516 drivers/opp/core.c if (!opp_table->prop_name) { opp_table 1517 drivers/opp/core.c dev_pm_opp_put_opp_table(opp_table); opp_table 1521 drivers/opp/core.c return opp_table; opp_table 1533 drivers/opp/core.c void dev_pm_opp_put_prop_name(struct opp_table *opp_table) opp_table 1536 drivers/opp/core.c WARN_ON(!list_empty(&opp_table->opp_list)); opp_table 1538 drivers/opp/core.c kfree(opp_table->prop_name); opp_table 1539 drivers/opp/core.c opp_table->prop_name = NULL; opp_table 1541 drivers/opp/core.c dev_pm_opp_put_opp_table(opp_table); opp_table 1545 drivers/opp/core.c static int _allocate_set_opp_data(struct opp_table *opp_table) opp_table 1548 drivers/opp/core.c int len, count = opp_table->regulator_count; opp_table 1550 drivers/opp/core.c if (WARN_ON(!opp_table->regulators)) opp_table 1566 drivers/opp/core.c opp_table->set_opp_data = data; opp_table 1571 drivers/opp/core.c static void _free_set_opp_data(struct opp_table *opp_table) opp_table 1573 drivers/opp/core.c kfree(opp_table->set_opp_data); opp_table 1574 drivers/opp/core.c opp_table->set_opp_data = NULL; opp_table 1589 drivers/opp/core.c struct opp_table *dev_pm_opp_set_regulators(struct device *dev, opp_table 1593 drivers/opp/core.c struct opp_table *opp_table; opp_table 1597 drivers/opp/core.c opp_table = dev_pm_opp_get_opp_table(dev); opp_table 1598 drivers/opp/core.c if (!opp_table) opp_table 1602 drivers/opp/core.c if (WARN_ON(!list_empty(&opp_table->opp_list))) { opp_table 1608 drivers/opp/core.c if (opp_table->regulators) opp_table 1609 drivers/opp/core.c return opp_table; opp_table 1611 drivers/opp/core.c opp_table->regulators = kmalloc_array(count, opp_table 1612 drivers/opp/core.c sizeof(*opp_table->regulators), opp_table 1614 drivers/opp/core.c if (!opp_table->regulators) { opp_table 1629 drivers/opp/core.c opp_table->regulators[i] = reg; opp_table 1632 drivers/opp/core.c opp_table->regulator_count = count; opp_table 1635 drivers/opp/core.c ret = _allocate_set_opp_data(opp_table); opp_table 1639 drivers/opp/core.c return opp_table; opp_table 1643 drivers/opp/core.c regulator_put(opp_table->regulators[--i]); opp_table 1645 drivers/opp/core.c kfree(opp_table->regulators); opp_table 1646 drivers/opp/core.c opp_table->regulators = NULL; opp_table 1647 drivers/opp/core.c opp_table->regulator_count = -1; opp_table 1649 drivers/opp/core.c dev_pm_opp_put_opp_table(opp_table); opp_table 1659 drivers/opp/core.c void dev_pm_opp_put_regulators(struct opp_table *opp_table) opp_table 1663 drivers/opp/core.c if (!opp_table->regulators) opp_table 1667 drivers/opp/core.c WARN_ON(!list_empty(&opp_table->opp_list)); opp_table 1669 drivers/opp/core.c for (i = opp_table->regulator_count - 1; i >= 0; i--) opp_table 1670 drivers/opp/core.c regulator_put(opp_table->regulators[i]); opp_table 1672 drivers/opp/core.c _free_set_opp_data(opp_table); opp_table 1674 drivers/opp/core.c kfree(opp_table->regulators); opp_table 1675 drivers/opp/core.c opp_table->regulators = NULL; opp_table 1676 drivers/opp/core.c opp_table->regulator_count = -1; opp_table 1679 drivers/opp/core.c dev_pm_opp_put_opp_table(opp_table); opp_table 1695 drivers/opp/core.c struct opp_table *dev_pm_opp_set_clkname(struct device *dev, const char *name) opp_table 1697 drivers/opp/core.c struct opp_table *opp_table; opp_table 1700 drivers/opp/core.c opp_table = dev_pm_opp_get_opp_table(dev); opp_table 1701 drivers/opp/core.c if (!opp_table) opp_table 1705 drivers/opp/core.c if (WARN_ON(!list_empty(&opp_table->opp_list))) { opp_table 1711 drivers/opp/core.c if (!IS_ERR(opp_table->clk)) opp_table 1712 drivers/opp/core.c clk_put(opp_table->clk); opp_table 1715 drivers/opp/core.c opp_table->clk = clk_get(dev, name); opp_table 1716 drivers/opp/core.c if (IS_ERR(opp_table->clk)) { opp_table 1717 drivers/opp/core.c ret = PTR_ERR(opp_table->clk); opp_table 1725 drivers/opp/core.c return opp_table; opp_table 1728 drivers/opp/core.c dev_pm_opp_put_opp_table(opp_table); opp_table 1738 drivers/opp/core.c void dev_pm_opp_put_clkname(struct opp_table *opp_table) opp_table 1741 drivers/opp/core.c WARN_ON(!list_empty(&opp_table->opp_list)); opp_table 1743 drivers/opp/core.c clk_put(opp_table->clk); opp_table 1744 drivers/opp/core.c opp_table->clk = ERR_PTR(-EINVAL); opp_table 1746 drivers/opp/core.c dev_pm_opp_put_opp_table(opp_table); opp_table 1760 drivers/opp/core.c struct opp_table *dev_pm_opp_register_set_opp_helper(struct device *dev, opp_table 1763 drivers/opp/core.c struct opp_table *opp_table; opp_table 1768 drivers/opp/core.c opp_table = dev_pm_opp_get_opp_table(dev); opp_table 1769 drivers/opp/core.c if (!opp_table) opp_table 1773 drivers/opp/core.c if (WARN_ON(!list_empty(&opp_table->opp_list))) { opp_table 1774 drivers/opp/core.c dev_pm_opp_put_opp_table(opp_table); opp_table 1779 drivers/opp/core.c if (!opp_table->set_opp) opp_table 1780 drivers/opp/core.c opp_table->set_opp = set_opp; opp_table 1782 drivers/opp/core.c return opp_table; opp_table 1793 drivers/opp/core.c void dev_pm_opp_unregister_set_opp_helper(struct opp_table *opp_table) opp_table 1796 drivers/opp/core.c WARN_ON(!list_empty(&opp_table->opp_list)); opp_table 1798 drivers/opp/core.c opp_table->set_opp = NULL; opp_table 1799 drivers/opp/core.c dev_pm_opp_put_opp_table(opp_table); opp_table 1803 drivers/opp/core.c static void _opp_detach_genpd(struct opp_table *opp_table) opp_table 1807 drivers/opp/core.c for (index = 0; index < opp_table->required_opp_count; index++) { opp_table 1808 drivers/opp/core.c if (!opp_table->genpd_virt_devs[index]) opp_table 1811 drivers/opp/core.c dev_pm_domain_detach(opp_table->genpd_virt_devs[index], false); opp_table 1812 drivers/opp/core.c opp_table->genpd_virt_devs[index] = NULL; opp_table 1815 drivers/opp/core.c kfree(opp_table->genpd_virt_devs); opp_table 1816 drivers/opp/core.c opp_table->genpd_virt_devs = NULL; opp_table 1841 drivers/opp/core.c struct opp_table *dev_pm_opp_attach_genpd(struct device *dev, opp_table 1844 drivers/opp/core.c struct opp_table *opp_table; opp_table 1849 drivers/opp/core.c opp_table = dev_pm_opp_get_opp_table(dev); opp_table 1850 drivers/opp/core.c if (!opp_table) opp_table 1858 drivers/opp/core.c if (!opp_table->required_opp_count) { opp_table 1863 drivers/opp/core.c mutex_lock(&opp_table->genpd_virt_dev_lock); opp_table 1865 drivers/opp/core.c opp_table->genpd_virt_devs = kcalloc(opp_table->required_opp_count, opp_table 1866 drivers/opp/core.c sizeof(*opp_table->genpd_virt_devs), opp_table 1868 drivers/opp/core.c if (!opp_table->genpd_virt_devs) opp_table 1872 drivers/opp/core.c if (index >= opp_table->required_opp_count) { opp_table 1874 drivers/opp/core.c *name, opp_table->required_opp_count, index); opp_table 1878 drivers/opp/core.c if (opp_table->genpd_virt_devs[index]) { opp_table 1891 drivers/opp/core.c opp_table->genpd_virt_devs[index] = virt_dev; opp_table 1897 drivers/opp/core.c *virt_devs = opp_table->genpd_virt_devs; opp_table 1898 drivers/opp/core.c mutex_unlock(&opp_table->genpd_virt_dev_lock); opp_table 1900 drivers/opp/core.c return opp_table; opp_table 1903 drivers/opp/core.c _opp_detach_genpd(opp_table); opp_table 1905 drivers/opp/core.c mutex_unlock(&opp_table->genpd_virt_dev_lock); opp_table 1908 drivers/opp/core.c dev_pm_opp_put_opp_table(opp_table); opp_table 1921 drivers/opp/core.c void dev_pm_opp_detach_genpd(struct opp_table *opp_table) opp_table 1927 drivers/opp/core.c mutex_lock(&opp_table->genpd_virt_dev_lock); opp_table 1928 drivers/opp/core.c _opp_detach_genpd(opp_table); opp_table 1929 drivers/opp/core.c mutex_unlock(&opp_table->genpd_virt_dev_lock); opp_table 1931 drivers/opp/core.c dev_pm_opp_put_opp_table(opp_table); opp_table 1948 drivers/opp/core.c int dev_pm_opp_xlate_performance_state(struct opp_table *src_table, opp_table 1949 drivers/opp/core.c struct opp_table *dst_table, opp_table 2017 drivers/opp/core.c struct opp_table *opp_table; opp_table 2020 drivers/opp/core.c opp_table = dev_pm_opp_get_opp_table(dev); opp_table 2021 drivers/opp/core.c if (!opp_table) opp_table 2025 drivers/opp/core.c opp_table->regulator_count = 1; opp_table 2027 drivers/opp/core.c ret = _opp_add_v1(opp_table, dev, freq, u_volt, true); opp_table 2029 drivers/opp/core.c dev_pm_opp_put_opp_table(opp_table); opp_table 2051 drivers/opp/core.c struct opp_table *opp_table; opp_table 2056 drivers/opp/core.c opp_table = _find_opp_table(dev); opp_table 2057 drivers/opp/core.c if (IS_ERR(opp_table)) { opp_table 2058 drivers/opp/core.c r = PTR_ERR(opp_table); opp_table 2063 drivers/opp/core.c mutex_lock(&opp_table->lock); opp_table 2066 drivers/opp/core.c list_for_each_entry(tmp_opp, &opp_table->opp_list, node) { opp_table 2085 drivers/opp/core.c mutex_unlock(&opp_table->lock); opp_table 2089 drivers/opp/core.c blocking_notifier_call_chain(&opp_table->head, OPP_EVENT_ENABLE, opp_table 2092 drivers/opp/core.c blocking_notifier_call_chain(&opp_table->head, opp_table 2099 drivers/opp/core.c mutex_unlock(&opp_table->lock); opp_table 2101 drivers/opp/core.c dev_pm_opp_put_opp_table(opp_table); opp_table 2153 drivers/opp/core.c struct opp_table *opp_table; opp_table 2156 drivers/opp/core.c opp_table = _find_opp_table(dev); opp_table 2157 drivers/opp/core.c if (IS_ERR(opp_table)) opp_table 2158 drivers/opp/core.c return PTR_ERR(opp_table); opp_table 2160 drivers/opp/core.c ret = blocking_notifier_chain_register(&opp_table->head, nb); opp_table 2162 drivers/opp/core.c dev_pm_opp_put_opp_table(opp_table); opp_table 2178 drivers/opp/core.c struct opp_table *opp_table; opp_table 2181 drivers/opp/core.c opp_table = _find_opp_table(dev); opp_table 2182 drivers/opp/core.c if (IS_ERR(opp_table)) opp_table 2183 drivers/opp/core.c return PTR_ERR(opp_table); opp_table 2185 drivers/opp/core.c ret = blocking_notifier_chain_unregister(&opp_table->head, nb); opp_table 2187 drivers/opp/core.c dev_pm_opp_put_opp_table(opp_table); opp_table 2195 drivers/opp/core.c struct opp_table *opp_table; opp_table 2198 drivers/opp/core.c opp_table = _find_opp_table(dev); opp_table 2199 drivers/opp/core.c if (IS_ERR(opp_table)) { opp_table 2200 drivers/opp/core.c int error = PTR_ERR(opp_table); opp_table 2210 drivers/opp/core.c _put_opp_list_kref(opp_table); opp_table 2213 drivers/opp/core.c dev_pm_opp_put_opp_table(opp_table); opp_table 2216 drivers/opp/core.c dev_pm_opp_put_opp_table(opp_table); opp_table 159 drivers/opp/cpu.c struct opp_table *opp_table; opp_table 163 drivers/opp/cpu.c opp_table = _find_opp_table(cpu_dev); opp_table 164 drivers/opp/cpu.c if (IS_ERR(opp_table)) opp_table 165 drivers/opp/cpu.c return PTR_ERR(opp_table); opp_table 178 drivers/opp/cpu.c opp_dev = _add_opp_dev(dev, opp_table); opp_table 186 drivers/opp/cpu.c opp_table->shared_opp = OPP_TABLE_ACCESS_SHARED; opp_table 189 drivers/opp/cpu.c dev_pm_opp_put_opp_table(opp_table); opp_table 208 drivers/opp/cpu.c struct opp_table *opp_table; opp_table 211 drivers/opp/cpu.c opp_table = _find_opp_table(cpu_dev); opp_table 212 drivers/opp/cpu.c if (IS_ERR(opp_table)) opp_table 213 drivers/opp/cpu.c return PTR_ERR(opp_table); opp_table 215 drivers/opp/cpu.c if (opp_table->shared_opp == OPP_TABLE_ACCESS_UNKNOWN) { opp_table 222 drivers/opp/cpu.c if (opp_table->shared_opp == OPP_TABLE_ACCESS_SHARED) { opp_table 223 drivers/opp/cpu.c mutex_lock(&opp_table->lock); opp_table 224 drivers/opp/cpu.c list_for_each_entry(opp_dev, &opp_table->dev_list, node) opp_table 226 drivers/opp/cpu.c mutex_unlock(&opp_table->lock); opp_table 232 drivers/opp/cpu.c dev_pm_opp_put_opp_table(opp_table); opp_table 36 drivers/opp/debugfs.c struct opp_table *opp_table, opp_table 42 drivers/opp/debugfs.c for (i = 0; i < opp_table->regulator_count; i++) { opp_table 64 drivers/opp/debugfs.c void opp_debug_create_one(struct dev_pm_opp *opp, struct opp_table *opp_table) opp_table 66 drivers/opp/debugfs.c struct dentry *pdentry = opp_table->dentry; opp_table 80 drivers/opp/debugfs.c id = _get_opp_count(opp_table); opp_table 96 drivers/opp/debugfs.c opp_debug_create_supplies(opp, opp_table, d); opp_table 102 drivers/opp/debugfs.c struct opp_table *opp_table) opp_table 107 drivers/opp/debugfs.c opp_set_dev_name(dev, opp_table->dentry_name); opp_table 110 drivers/opp/debugfs.c d = debugfs_create_dir(opp_table->dentry_name, rootdir); opp_table 113 drivers/opp/debugfs.c opp_table->dentry = d; opp_table 117 drivers/opp/debugfs.c struct opp_table *opp_table) opp_table 125 drivers/opp/debugfs.c opp_table->dentry_name); opp_table 137 drivers/opp/debugfs.c void opp_debug_register(struct opp_device *opp_dev, struct opp_table *opp_table) opp_table 139 drivers/opp/debugfs.c if (opp_table->dentry) opp_table 140 drivers/opp/debugfs.c opp_list_debug_create_link(opp_dev, opp_table); opp_table 142 drivers/opp/debugfs.c opp_list_debug_create_dir(opp_dev, opp_table); opp_table 146 drivers/opp/debugfs.c struct opp_table *opp_table) opp_table 153 drivers/opp/debugfs.c list_for_each_entry(new_dev, &opp_table->dev_list, node) opp_table 161 drivers/opp/debugfs.c opp_set_dev_name(dev, opp_table->dentry_name); opp_table 164 drivers/opp/debugfs.c opp_table->dentry_name); opp_table 172 drivers/opp/debugfs.c opp_table->dentry = dentry; opp_table 183 drivers/opp/debugfs.c struct opp_table *opp_table) opp_table 185 drivers/opp/debugfs.c if (opp_dev->dentry == opp_table->dentry) { opp_table 187 drivers/opp/debugfs.c if (!list_is_singular(&opp_table->dev_list)) { opp_table 188 drivers/opp/debugfs.c opp_migrate_dentry(opp_dev, opp_table); opp_table 191 drivers/opp/debugfs.c opp_table->dentry = NULL; opp_table 42 drivers/opp/of.c struct opp_table *_managed_opp(struct device *dev, int index) opp_table 44 drivers/opp/of.c struct opp_table *opp_table, *managed_table = NULL; opp_table 51 drivers/opp/of.c list_for_each_entry(opp_table, &opp_tables, node) { opp_table 52 drivers/opp/of.c if (opp_table->np == np) { opp_table 60 drivers/opp/of.c if (opp_table->shared_opp == OPP_TABLE_ACCESS_SHARED) { opp_table 61 drivers/opp/of.c _get_opp_table_kref(opp_table); opp_table 62 drivers/opp/of.c managed_table = opp_table; opp_table 75 drivers/opp/of.c static struct dev_pm_opp *_find_opp_of_np(struct opp_table *opp_table, opp_table 80 drivers/opp/of.c mutex_lock(&opp_table->lock); opp_table 82 drivers/opp/of.c list_for_each_entry(opp, &opp_table->opp_list, node) { opp_table 85 drivers/opp/of.c mutex_unlock(&opp_table->lock); opp_table 90 drivers/opp/of.c mutex_unlock(&opp_table->lock); opp_table 110 drivers/opp/of.c static struct opp_table *_find_table_of_opp_np(struct device_node *opp_np) opp_table 112 drivers/opp/of.c struct opp_table *opp_table; opp_table 124 drivers/opp/of.c list_for_each_entry(opp_table, &opp_tables, node) { opp_table 125 drivers/opp/of.c if (opp_table_np == opp_table->np) { opp_table 126 drivers/opp/of.c _get_opp_table_kref(opp_table); opp_table 127 drivers/opp/of.c return opp_table; opp_table 136 drivers/opp/of.c static void _opp_table_free_required_tables(struct opp_table *opp_table) opp_table 138 drivers/opp/of.c struct opp_table **required_opp_tables = opp_table->required_opp_tables; opp_table 144 drivers/opp/of.c for (i = 0; i < opp_table->required_opp_count; i++) { opp_table 153 drivers/opp/of.c opp_table->required_opp_count = 0; opp_table 154 drivers/opp/of.c opp_table->required_opp_tables = NULL; opp_table 161 drivers/opp/of.c static void _opp_table_alloc_required_tables(struct opp_table *opp_table, opp_table 165 drivers/opp/of.c struct opp_table **required_opp_tables; opp_table 185 drivers/opp/of.c opp_table->required_opp_tables = required_opp_tables; opp_table 186 drivers/opp/of.c opp_table->required_opp_count = count; opp_table 214 drivers/opp/of.c _opp_table_free_required_tables(opp_table); opp_table 219 drivers/opp/of.c void _of_init_opp_table(struct opp_table *opp_table, struct device *dev, opp_table 234 drivers/opp/of.c opp_table->clock_latency_ns_max = val; opp_table 236 drivers/opp/of.c &opp_table->voltage_tolerance_v1); opp_table 239 drivers/opp/of.c opp_table->is_genpd = true; opp_table 249 drivers/opp/of.c opp_table->shared_opp = OPP_TABLE_ACCESS_SHARED; opp_table 251 drivers/opp/of.c opp_table->shared_opp = OPP_TABLE_ACCESS_EXCLUSIVE; opp_table 253 drivers/opp/of.c opp_table->np = opp_np; opp_table 255 drivers/opp/of.c _opp_table_alloc_required_tables(opp_table, dev, opp_np); opp_table 259 drivers/opp/of.c void _of_clear_opp_table(struct opp_table *opp_table) opp_table 261 drivers/opp/of.c _opp_table_free_required_tables(opp_table); opp_table 268 drivers/opp/of.c void _of_opp_free_required_opps(struct opp_table *opp_table, opp_table 277 drivers/opp/of.c for (i = 0; i < opp_table->required_opp_count; i++) { opp_table 290 drivers/opp/of.c static int _of_opp_alloc_required_opps(struct opp_table *opp_table, opp_table 294 drivers/opp/of.c struct opp_table *required_table; opp_table 296 drivers/opp/of.c int i, ret, count = opp_table->required_opp_count; opp_table 308 drivers/opp/of.c required_table = opp_table->required_opp_tables[i]; opp_table 330 drivers/opp/of.c _of_opp_free_required_opps(opp_table, opp); opp_table 335 drivers/opp/of.c static bool _opp_is_supported(struct device *dev, struct opp_table *opp_table, opp_table 338 drivers/opp/of.c unsigned int count = opp_table->supported_hw_count; opp_table 342 drivers/opp/of.c if (!opp_table->supported_hw) { opp_table 365 drivers/opp/of.c if (!(version & opp_table->supported_hw[count])) opp_table 373 drivers/opp/of.c struct opp_table *opp_table) opp_table 376 drivers/opp/of.c int supplies = opp_table->regulator_count, vcount, icount, ret, i, j; opp_table 381 drivers/opp/of.c if (opp_table->prop_name) { opp_table 383 drivers/opp/of.c opp_table->prop_name); opp_table 396 drivers/opp/of.c opp_table->regulator_count = 0; opp_table 411 drivers/opp/of.c supplies = opp_table->regulator_count = 1; opp_table 444 drivers/opp/of.c if (opp_table->prop_name) { opp_table 446 drivers/opp/of.c opp_table->prop_name); opp_table 548 drivers/opp/of.c static struct dev_pm_opp *_opp_add_static_v2(struct opp_table *opp_table, opp_table 557 drivers/opp/of.c new_opp = _opp_allocate(opp_table); opp_table 564 drivers/opp/of.c if (!opp_table->is_genpd) { opp_table 582 drivers/opp/of.c if (!_opp_is_supported(dev, opp_table, np)) { opp_table 593 drivers/opp/of.c ret = _of_opp_alloc_required_opps(opp_table, new_opp); opp_table 600 drivers/opp/of.c ret = opp_parse_supplies(new_opp, dev, opp_table); opp_table 604 drivers/opp/of.c if (opp_table->is_genpd) opp_table 607 drivers/opp/of.c ret = _opp_add(dev, new_opp, opp_table, rate_not_available); opp_table 617 drivers/opp/of.c if (opp_table->suspend_opp) { opp_table 619 drivers/opp/of.c if (new_opp->rate > opp_table->suspend_opp->rate) { opp_table 620 drivers/opp/of.c opp_table->suspend_opp->suspend = false; opp_table 622 drivers/opp/of.c opp_table->suspend_opp = new_opp; opp_table 626 drivers/opp/of.c opp_table->suspend_opp = new_opp; opp_table 630 drivers/opp/of.c if (new_opp->clock_latency_ns > opp_table->clock_latency_ns_max) opp_table 631 drivers/opp/of.c opp_table->clock_latency_ns_max = new_opp->clock_latency_ns; opp_table 642 drivers/opp/of.c blocking_notifier_call_chain(&opp_table->head, OPP_EVENT_ADD, new_opp); opp_table 646 drivers/opp/of.c _of_opp_free_required_opps(opp_table, new_opp); opp_table 654 drivers/opp/of.c static int _of_add_opp_table_v2(struct device *dev, struct opp_table *opp_table) opp_table 661 drivers/opp/of.c if (opp_table->parsed_static_opps) { opp_table 662 drivers/opp/of.c kref_get(&opp_table->list_kref); opp_table 671 drivers/opp/of.c kref_init(&opp_table->list_kref); opp_table 674 drivers/opp/of.c for_each_available_child_of_node(opp_table->np, np) { opp_table 675 drivers/opp/of.c opp = _opp_add_static_v2(opp_table, dev, np); opp_table 693 drivers/opp/of.c list_for_each_entry(opp, &opp_table->opp_list, node) opp_table 705 drivers/opp/of.c opp_table->genpd_performance_state = true; opp_table 707 drivers/opp/of.c opp_table->parsed_static_opps = true; opp_table 712 drivers/opp/of.c _put_opp_list_kref(opp_table); opp_table 718 drivers/opp/of.c static int _of_add_opp_table_v1(struct device *dev, struct opp_table *opp_table) opp_table 745 drivers/opp/of.c ret = _opp_add_v1(opp_table, dev, freq, volt, false); opp_table 749 drivers/opp/of.c _put_opp_list_kref(opp_table); opp_table 777 drivers/opp/of.c struct opp_table *opp_table; opp_table 780 drivers/opp/of.c opp_table = dev_pm_opp_get_opp_table_indexed(dev, 0); opp_table 781 drivers/opp/of.c if (!opp_table) opp_table 788 drivers/opp/of.c if (opp_table->np) opp_table 789 drivers/opp/of.c ret = _of_add_opp_table_v2(dev, opp_table); opp_table 791 drivers/opp/of.c ret = _of_add_opp_table_v1(dev, opp_table); opp_table 794 drivers/opp/of.c dev_pm_opp_put_opp_table(opp_table); opp_table 821 drivers/opp/of.c struct opp_table *opp_table; opp_table 835 drivers/opp/of.c opp_table = dev_pm_opp_get_opp_table_indexed(dev, index); opp_table 836 drivers/opp/of.c if (!opp_table) opp_table 839 drivers/opp/of.c ret = _of_add_opp_table_v2(dev, opp_table); opp_table 841 drivers/opp/of.c dev_pm_opp_put_opp_table(opp_table); opp_table 993 drivers/opp/of.c struct opp_table *opp_table; opp_table 1000 drivers/opp/of.c opp_table = _find_table_of_opp_np(required_np); opp_table 1001 drivers/opp/of.c if (IS_ERR(opp_table)) { opp_table 1003 drivers/opp/of.c __func__, np, PTR_ERR(opp_table)); opp_table 1007 drivers/opp/of.c opp = _find_opp_of_np(opp_table, required_np); opp_table 1013 drivers/opp/of.c dev_pm_opp_put_opp_table(opp_table); opp_table 88 drivers/opp/opp.h struct opp_table *opp_table; opp_table 185 drivers/opp/opp.h struct opp_table **required_opp_tables; opp_table 208 drivers/opp/opp.h void _opp_remove_all_static(struct opp_table *opp_table); opp_table 209 drivers/opp/opp.h void _get_opp_table_kref(struct opp_table *opp_table); opp_table 210 drivers/opp/opp.h int _get_opp_count(struct opp_table *opp_table); opp_table 211 drivers/opp/opp.h struct opp_table *_find_opp_table(struct device *dev); opp_table 212 drivers/opp/opp.h struct opp_device *_add_opp_dev(const struct device *dev, struct opp_table *opp_table); opp_table 214 drivers/opp/opp.h struct dev_pm_opp *_opp_allocate(struct opp_table *opp_table); opp_table 216 drivers/opp/opp.h int _opp_add(struct device *dev, struct dev_pm_opp *new_opp, struct opp_table *opp_table, bool rate_not_available); opp_table 217 drivers/opp/opp.h int _opp_add_v1(struct opp_table *opp_table, struct device *dev, unsigned long freq, long u_volt, bool dynamic); opp_table 219 drivers/opp/opp.h struct opp_table *_add_opp_table(struct device *dev); opp_table 220 drivers/opp/opp.h void _put_opp_list_kref(struct opp_table *opp_table); opp_table 223 drivers/opp/opp.h void _of_init_opp_table(struct opp_table *opp_table, struct device *dev, int index); opp_table 224 drivers/opp/opp.h void _of_clear_opp_table(struct opp_table *opp_table); opp_table 225 drivers/opp/opp.h struct opp_table *_managed_opp(struct device *dev, int index); opp_table 226 drivers/opp/opp.h void _of_opp_free_required_opps(struct opp_table *opp_table, opp_table 229 drivers/opp/opp.h static inline void _of_init_opp_table(struct opp_table *opp_table, struct device *dev, int index) {} opp_table 230 drivers/opp/opp.h static inline void _of_clear_opp_table(struct opp_table *opp_table) {} opp_table 231 drivers/opp/opp.h static inline struct opp_table *_managed_opp(struct device *dev, int index) { return NULL; } opp_table 232 drivers/opp/opp.h static inline void _of_opp_free_required_opps(struct opp_table *opp_table, opp_table 238 drivers/opp/opp.h void opp_debug_create_one(struct dev_pm_opp *opp, struct opp_table *opp_table); opp_table 239 drivers/opp/opp.h void opp_debug_register(struct opp_device *opp_dev, struct opp_table *opp_table); opp_table 240 drivers/opp/opp.h void opp_debug_unregister(struct opp_device *opp_dev, struct opp_table *opp_table); opp_table 245 drivers/opp/opp.h struct opp_table *opp_table) { } opp_table 248 drivers/opp/opp.h struct opp_table *opp_table) { } opp_table 251 drivers/opp/opp.h struct opp_table *opp_table) opp_table 92 include/linux/pm_domain.h struct opp_table; opp_table 115 include/linux/pm_domain.h struct opp_table *opp_table; /* OPP table of the genpd */ opp_table 21 include/linux/pm_opp.h struct opp_table; opp_table 78 include/linux/pm_opp.h struct opp_table *dev_pm_opp_get_opp_table(struct device *dev); opp_table 79 include/linux/pm_opp.h struct opp_table *dev_pm_opp_get_opp_table_indexed(struct device *dev, int index); opp_table 80 include/linux/pm_opp.h void dev_pm_opp_put_opp_table(struct opp_table *opp_table); opp_table 123 include/linux/pm_opp.h struct opp_table *dev_pm_opp_set_supported_hw(struct device *dev, const u32 *versions, unsigned int count); opp_table 124 include/linux/pm_opp.h void dev_pm_opp_put_supported_hw(struct opp_table *opp_table); opp_table 125 include/linux/pm_opp.h struct opp_table *dev_pm_opp_set_prop_name(struct device *dev, const char *name); opp_table 126 include/linux/pm_opp.h void dev_pm_opp_put_prop_name(struct opp_table *opp_table); opp_table 127 include/linux/pm_opp.h struct opp_table *dev_pm_opp_set_regulators(struct device *dev, const char * const names[], unsigned int count); opp_table 128 include/linux/pm_opp.h void dev_pm_opp_put_regulators(struct opp_table *opp_table); opp_table 129 include/linux/pm_opp.h struct opp_table *dev_pm_opp_set_clkname(struct device *dev, const char * name); opp_table 130 include/linux/pm_opp.h void dev_pm_opp_put_clkname(struct opp_table *opp_table); opp_table 131 include/linux/pm_opp.h struct opp_table *dev_pm_opp_register_set_opp_helper(struct device *dev, int (*set_opp)(struct dev_pm_set_opp_data *data)); opp_table 132 include/linux/pm_opp.h void dev_pm_opp_unregister_set_opp_helper(struct opp_table *opp_table); opp_table 133 include/linux/pm_opp.h struct opp_table *dev_pm_opp_attach_genpd(struct device *dev, const char **names, struct device ***virt_devs); opp_table 134 include/linux/pm_opp.h void dev_pm_opp_detach_genpd(struct opp_table *opp_table); opp_table 135 include/linux/pm_opp.h int dev_pm_opp_xlate_performance_state(struct opp_table *src_table, struct opp_table *dst_table, unsigned int pstate); opp_table 142 include/linux/pm_opp.h static inline struct opp_table *dev_pm_opp_get_opp_table(struct device *dev) opp_table 147 include/linux/pm_opp.h static inline struct opp_table *dev_pm_opp_get_opp_table_indexed(struct device *dev, int index) opp_table 152 include/linux/pm_opp.h static inline void dev_pm_opp_put_opp_table(struct opp_table *opp_table) {} opp_table 265 include/linux/pm_opp.h static inline struct opp_table *dev_pm_opp_set_supported_hw(struct device *dev, opp_table 272 include/linux/pm_opp.h static inline void dev_pm_opp_put_supported_hw(struct opp_table *opp_table) {} opp_table 274 include/linux/pm_opp.h static inline struct opp_table *dev_pm_opp_register_set_opp_helper(struct device *dev, opp_table 280 include/linux/pm_opp.h static inline void dev_pm_opp_unregister_set_opp_helper(struct opp_table *opp_table) {} opp_table 282 include/linux/pm_opp.h static inline struct opp_table *dev_pm_opp_set_prop_name(struct device *dev, const char *name) opp_table 287 include/linux/pm_opp.h static inline void dev_pm_opp_put_prop_name(struct opp_table *opp_table) {} opp_table 289 include/linux/pm_opp.h static inline struct opp_table *dev_pm_opp_set_regulators(struct device *dev, const char * const names[], unsigned int count) opp_table 294 include/linux/pm_opp.h static inline void dev_pm_opp_put_regulators(struct opp_table *opp_table) {} opp_table 296 include/linux/pm_opp.h static inline struct opp_table *dev_pm_opp_set_clkname(struct device *dev, const char * name) opp_table 301 include/linux/pm_opp.h static inline void dev_pm_opp_put_clkname(struct opp_table *opp_table) {} opp_table 303 include/linux/pm_opp.h static inline struct opp_table *dev_pm_opp_attach_genpd(struct device *dev, const char **names, struct device ***virt_devs) opp_table 308 include/linux/pm_opp.h static inline void dev_pm_opp_detach_genpd(struct opp_table *opp_table) {} opp_table 310 include/linux/pm_opp.h static inline int dev_pm_opp_xlate_performance_state(struct opp_table *src_table, struct opp_table *dst_table, unsigned int pstate)