/openbmc/linux/drivers/opp/ |
H A D | core.c | 26 * The root of the list of all opp-tables. All opp_table structures branch off 27 * from here, with each opp_table containing the list of opps it supports in 40 static bool _find_opp_dev(const struct device *dev, struct opp_table *opp_table) in _find_opp_dev() argument 45 mutex_lock(&opp_table->lock); in _find_opp_dev() 46 list_for_each_entry(opp_dev, &opp_table->dev_list, node) in _find_opp_dev() 52 mutex_unlock(&opp_table->lock); in _find_opp_dev() 56 static struct opp_table *_find_opp_table_unlocked(struct device *dev) in _find_opp_table_unlocked() 58 struct opp_table *opp_table; in _find_opp_table_unlocked() local 60 list_for_each_entry(opp_table, &opp_tables, node) { in _find_opp_table_unlocked() 61 if (_find_opp_dev(dev, opp_table)) { in _find_opp_table_unlocked() [all …]
|
H A D | opp.h | 41 * @opp_table: OPP table 48 struct opp_table *opp_table; member 64 * device 1, 2.. are represented by opp_table structure while each opp 88 * @opp_table: points back to the opp_table struct this opp belongs to 112 struct opp_table *opp_table; member 123 * struct opp_device - devices managed by 'struct opp_table' 129 * by 'struct opp_table'. 147 * struct opp_table - Device opp structure 194 struct opp_table { struct 217 struct opp_table **required_opp_tables; argument [all …]
|
H A D | of.c | 45 struct opp_table *_managed_opp(struct device *dev, int index) in _managed_opp() 47 struct opp_table *opp_table, *managed_table = NULL; in _managed_opp() local 54 list_for_each_entry(opp_table, &opp_tables, node) { in _managed_opp() 55 if (opp_table->np == np) { in _managed_opp() 63 if (opp_table->shared_opp == OPP_TABLE_ACCESS_SHARED) { in _managed_opp() 64 _get_opp_table_kref(opp_table); in _managed_opp() 65 managed_table = opp_table; in _managed_opp() 78 static struct dev_pm_opp *_find_opp_of_np(struct opp_table *opp_table, in _find_opp_of_np() argument 83 mutex_lock(&opp_table->lock); in _find_opp_of_np() 85 list_for_each_entry(opp, &opp_table->opp_list, node) { in _find_opp_of_np() [all …]
|
H A D | debugfs.c | 57 struct opp_table *opp_table, in opp_debug_create_bw() argument 64 for (i = 0; i < opp_table->path_count; i++) { in opp_debug_create_bw() 70 debugfs_create_file("name", S_IRUGO, d, opp_table->paths[i], in opp_debug_create_bw() 80 struct opp_table *opp_table, in opp_debug_create_clks() argument 86 if (opp_table->clk_count == 1) { in opp_debug_create_clks() 91 for (i = 0; i < opp_table->clk_count; i++) { in opp_debug_create_clks() 98 struct opp_table *opp_table, in opp_debug_create_supplies() argument 104 for (i = 0; i < opp_table->regulator_count; i++) { in opp_debug_create_supplies() 129 void opp_debug_create_one(struct dev_pm_opp *opp, struct opp_table *opp_table) in opp_debug_create_one() argument 131 struct dentry *pdentry = opp_table->dentry; in opp_debug_create_one() [all …]
|
H A D | cpu.c | 27 * @opp_table: Cpufreq table returned back to caller 44 struct cpufreq_frequency_table **opp_table) in dev_pm_opp_init_cpufreq_table() argument 79 *opp_table = &freq_table[0]; in dev_pm_opp_init_cpufreq_table() 92 * @opp_table: table to free 97 struct cpufreq_frequency_table **opp_table) in dev_pm_opp_free_cpufreq_table() argument 99 if (!opp_table) in dev_pm_opp_free_cpufreq_table() 102 kfree(*opp_table); in dev_pm_opp_free_cpufreq_table() 103 *opp_table = NULL; in dev_pm_opp_free_cpufreq_table() 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() [all …]
|
/openbmc/linux/include/linux/ |
H A D | pm_opp.h | 22 struct opp_table; 64 typedef int (*config_clks_t)(struct device *dev, struct opp_table *opp_table, 97 struct opp_table *dev_pm_opp_get_opp_table(struct device *dev); 98 void dev_pm_opp_put_opp_table(struct opp_table *opp_table); 175 struct opp_table *opp_table, struct dev_pm_opp *opp, void *data, 178 struct dev_pm_opp *dev_pm_opp_xlate_required_opp(struct opp_table *src_table, struct opp_table *dst… 179 int dev_pm_opp_xlate_performance_state(struct opp_table *src_table, struct opp_table *dst_table, un… 188 static inline struct opp_table *dev_pm_opp_get_opp_table(struct device *dev) in dev_pm_opp_get_opp_table() 193 static inline struct opp_table *dev_pm_opp_get_opp_table_indexed(struct device *dev, int index) in dev_pm_opp_get_opp_table_indexed() 198 static inline void dev_pm_opp_put_opp_table(struct opp_table *opp_table) {} in dev_pm_opp_put_opp_table() argument [all …]
|
H A D | pm_domain.h | 117 struct opp_table; 143 struct opp_table *opp_table; /* OPP table of the genpd */ member
|
H A D | devfreq.h | 147 * @opp_table: Reference to OPP table of dev.parent, if one exists. 187 struct opp_table *opp_table; member
|
/openbmc/linux/drivers/devfreq/ |
H A D | governor_passive.c | 43 if (parent_cpu_data->opp_table) in delete_parent_cpu_data() 44 dev_pm_opp_put_opp_table(parent_cpu_data->opp_table); in delete_parent_cpu_data() 51 struct opp_table *p_opp_table, in get_target_freq_by_required_opp() 52 struct opp_table *opp_table, in get_target_freq_by_required_opp() argument 58 if (!p_dev || !p_opp_table || !opp_table || !freq) in get_target_freq_by_required_opp() 65 opp = dev_pm_opp_xlate_required_opp(p_opp_table, opp_table, p_opp); in get_target_freq_by_required_opp() 105 parent_cpu_data->opp_table, in get_target_freq_with_cpufreq() 106 devfreq->opp_table, &cpu_cur); in get_target_freq_with_cpufreq() 141 parent_devfreq->opp_table, in get_target_freq_with_devfreq() 142 devfreq->opp_table, freq); in get_target_freq_with_devfreq() [all …]
|
H A D | governor.h | 55 * @opp_table: reference to cpu opp table. 69 struct opp_table *opp_table; member
|
H A D | devfreq.c | 783 if (devfreq->opp_table) in devfreq_dev_release() 784 dev_pm_opp_put_opp_table(devfreq->opp_table); in devfreq_dev_release() 881 devfreq->opp_table = dev_pm_opp_get_opp_table(dev); in devfreq_add_device() 882 if (IS_ERR(devfreq->opp_table)) in devfreq_add_device() 883 devfreq->opp_table = NULL; in devfreq_add_device()
|
H A D | tegra30-devfreq.c | 825 struct opp_table *opp_table, in tegra_devfreq_config_clks_nop() argument
|
/openbmc/linux/drivers/soc/samsung/ |
H A D | exynos-asv.c | 81 struct opp_table *last_opp_table = NULL; in exynos_asv_update_opps() 86 struct opp_table *opp_table; in exynos_asv_update_opps() local 92 opp_table = dev_pm_opp_get_opp_table(cpu); in exynos_asv_update_opps() 93 if (IS_ERR(opp_table)) in exynos_asv_update_opps() 96 if (!last_opp_table || opp_table != last_opp_table) { in exynos_asv_update_opps() 97 last_opp_table = opp_table; in exynos_asv_update_opps() 105 dev_pm_opp_put_opp_table(opp_table); in exynos_asv_update_opps()
|
/openbmc/linux/Documentation/devicetree/bindings/cpufreq/ |
H A D | imx-cpufreq-dt.txt | 23 opp_table {
|
H A D | cpufreq-st.txt | 49 cpu0_opp_table: opp_table {
|
H A D | cpufreq-mediatek.txt | 36 cpu_opp_table: opp_table {
|
/openbmc/linux/Documentation/devicetree/bindings/clock/ |
H A D | nvidia,tegra20-car.yaml | 95 operating-points-v2 = <&opp_table>;
|
/openbmc/linux/drivers/base/power/ |
H A D | domain.c | 309 return dev_pm_opp_xlate_performance_state(genpd->opp_table, in genpd_xlate_performance_state() 310 parent->opp_table, in genpd_xlate_performance_state() 2341 genpd->opp_table = dev_pm_opp_get_opp_table(&genpd->dev); in of_genpd_add_provider_simple() 2342 WARN_ON(IS_ERR(genpd->opp_table)); in of_genpd_add_provider_simple() 2348 dev_pm_opp_put_opp_table(genpd->opp_table); in of_genpd_add_provider_simple() 2403 genpd->opp_table = dev_pm_opp_get_opp_table(&genpd->dev); in of_genpd_add_provider_onecell() 2404 WARN_ON(IS_ERR(genpd->opp_table)); in of_genpd_add_provider_onecell() 2428 dev_pm_opp_put_opp_table(genpd->opp_table); in of_genpd_add_provider_onecell() 2462 dev_pm_opp_put_opp_table(gpd->opp_table); in of_genpd_del_provider()
|
/openbmc/linux/drivers/cpufreq/ |
H A D | tegra194-cpufreq.c | 399 struct cpufreq_frequency_table **opp_table) in tegra_cpufreq_init_cpufreq_table() argument 467 *opp_table = &freq_table[0]; in tegra_cpufreq_init_cpufreq_table()
|
/openbmc/linux/arch/arm/boot/dts/ti/davinci/ |
H A D | da850.dtsi | 28 operating-points-v2 = <&opp_table>; 32 opp_table: opp-table { label
|
/openbmc/linux/arch/arm64/boot/dts/qcom/ |
H A D | msm8939.dtsi | 1419 operating-points-v2 = <&opp_table>; 1422 opp_table: opp-table { label
|
/openbmc/linux/drivers/gpu/drm/msm/dp/ |
H A D | dp_ctrl.c | 2109 /* caller do PTR_ERR(opp_table) */ in dp_ctrl_get()
|