/device/soc/rockchip/rk3588/kernel/drivers/soc/rockchip/ |
H A D | opp.h | 43 * device 1, 2.. are represented by opp_table structure while each opp 67 * @opp_table: points back to the opp_table struct this opp belongs to 91 struct opp_table *opp_table; member 101 * struct opp_device - devices managed by 'struct opp_table' 107 * by 'struct opp_table'. 125 * struct opp_table - Device opp structure 168 struct opp_table { struct 189 struct opp_table **required_opp_table 236 _of_init_opp_table(struct opp_table *opp_table, struct device *dev, int index) _of_init_opp_table() argument 237 _of_clear_opp_table(struct opp_table *opp_table) _of_clear_opp_table() argument 239 _of_opp_free_required_opps(struct opp_table *opp_table, struct dev_pm_opp *opp) _of_opp_free_required_opps() argument 251 opp_debug_create_one(struct dev_pm_opp *opp, struct opp_table *opp_table) opp_debug_create_one() argument 254 opp_debug_register(struct opp_device *opp_dev, struct opp_table *opp_table) opp_debug_register() argument 257 opp_debug_unregister(struct opp_device *opp_dev, struct opp_table *opp_table) opp_debug_unregister() argument [all...] |
H A D | rockchip_system_monitor.c | 497 struct opp_table *opp_table; in rockchip_init_temp_opp_table() local 508 info->opp_table = kzalloc(sizeof(*info->opp_table) * max_count, in rockchip_init_temp_opp_table() 510 if (!info->opp_table) in rockchip_init_temp_opp_table() 513 opp_table = dev_pm_opp_get_opp_table(dev); in rockchip_init_temp_opp_table() 514 if (!opp_table) { in rockchip_init_temp_opp_table() 515 kfree(info->opp_table); in rockchip_init_temp_opp_table() 516 info->opp_table = NULL; in rockchip_init_temp_opp_table() 519 mutex_lock(&opp_table in rockchip_init_temp_opp_table() 795 struct opp_table *opp_table; rockchip_adjust_low_temp_opp_volt() local 1062 struct opp_table *opp_table; rockchip_system_monitor_parse_supplies() local [all...] |
H A D | rockchip_opp_select.c | 908 struct opp_table *rockchip_set_opp_prop_name(struct device *dev, int process, in rockchip_set_opp_prop_name() 935 struct opp_table *opp_table; in rockchip_adjust_opp_by_irdrop() local 946 opp_table = dev_pm_opp_get_opp_table(dev); in rockchip_adjust_opp_by_irdrop() 947 if (!opp_table) { in rockchip_adjust_opp_by_irdrop() 952 mutex_lock(&opp_table->lock); in rockchip_adjust_opp_by_irdrop() 953 list_for_each_entry(opp, &opp_table->opp_list, node) { in rockchip_adjust_opp_by_irdrop() 990 mutex_unlock(&opp_table->lock); in rockchip_adjust_opp_by_irdrop() 992 dev_pm_opp_put_opp_table(opp_table); in rockchip_adjust_opp_by_irdrop() 1002 struct opp_table *opp_tabl in rockchip_adjust_opp_by_mbist_vmin() local [all...] |
/device/soc/rockchip/common/sdk_linux/drivers/opp/ |
H A D | of.c | 47 struct opp_table *_managed_opp(struct device *dev, int index) in _managed_opp() 49 struct opp_table *opp_table, *managed_table = NULL; in _managed_opp() local 57 list_for_each_entry(opp_table, &opp_tables, node) in _managed_opp() 59 if (opp_table->np == np) { in _managed_opp() 67 if (opp_table->shared_opp == OPP_TABLE_ACCESS_SHARED) { in _managed_opp() 68 _get_opp_table_kref(opp_table); in _managed_opp() 69 managed_table = opp_table; in _managed_opp() 82 static struct dev_pm_opp *_find_opp_of_np(struct opp_table *opp_table, struc argument 110 struct opp_table *opp_table; _find_table_of_opp_np() local 136 _opp_table_free_required_tables(struct opp_table *opp_table) _opp_table_free_required_tables() argument 163 _opp_table_alloc_required_tables(struct opp_table *opp_table, struct device *dev, struct device_node *opp_np) _opp_table_alloc_required_tables() argument 222 _of_init_opp_table(struct opp_table *opp_table, struct device *dev, int index) _of_init_opp_table() argument 265 _of_clear_opp_table(struct opp_table *opp_table) _of_clear_opp_table() argument 274 _of_opp_free_required_opps(struct opp_table *opp_table, struct dev_pm_opp *opp) _of_opp_free_required_opps() argument 297 _of_opp_alloc_required_opps(struct opp_table *opp_table, struct dev_pm_opp *opp) _of_opp_alloc_required_opps() argument 342 _bandwidth_supported(struct device *dev, struct opp_table *opp_table) _bandwidth_supported() argument 376 dev_pm_opp_of_find_icc_paths(struct device *dev, struct opp_table *opp_table) dev_pm_opp_of_find_icc_paths() argument 440 _opp_is_supported(struct device *dev, struct opp_table *opp_table, struct device_node *np) _opp_is_supported() argument 495 opp_parse_supplies(struct dev_pm_opp *opp, struct device *dev, struct opp_table *opp_table) opp_parse_supplies() argument 753 _opp_add_static_v2(struct opp_table *opp_table, struct device *dev, struct device_node *np) _opp_add_static_v2() argument 849 _of_add_opp_table_v2(struct device *dev, struct opp_table *opp_table) _of_add_opp_table_v2() argument 905 _of_add_opp_table_v1(struct device *dev, struct opp_table *opp_table) _of_add_opp_table_v1() argument 982 struct opp_table *opp_table; dev_pm_opp_of_add_table() local 1029 struct opp_table *opp_table; dev_pm_opp_of_add_table_indexed() local 1205 struct opp_table *opp_table; of_get_required_opp_performance_state() local [all...] |
H A D | debugfs.c | 52 static void opp_debug_create_bw(struct dev_pm_opp *opp, struct opp_table *opp_table, struct dentry *pdentry) in opp_debug_create_bw() argument 58 for (i = 0; i < opp_table->path_count; i++) { in opp_debug_create_bw() 64 debugfs_create_file("name", S_IRUGO, d, opp_table->paths[i], &bw_name_fops); in opp_debug_create_bw() 70 static void opp_debug_create_supplies(struct dev_pm_opp *opp, struct opp_table *opp_table, struct dentry *pdentry) in opp_debug_create_supplies() argument 75 for (i = 0; i < opp_table->regulator_count; i++) { in opp_debug_create_supplies() 93 void opp_debug_create_one(struct dev_pm_opp *opp, struct opp_table *opp_table) in opp_debug_create_one() argument 95 struct dentry *pdentry = opp_table in opp_debug_create_one() 131 opp_list_debug_create_dir(struct opp_device *opp_dev, struct opp_table *opp_table) opp_list_debug_create_dir() argument 145 opp_list_debug_create_link(struct opp_device *opp_dev, struct opp_table *opp_table) opp_list_debug_create_link() argument 164 opp_debug_register(struct opp_device *opp_dev, struct opp_table *opp_table) opp_debug_register() argument 173 opp_migrate_dentry(struct opp_device *opp_dev, struct opp_table *opp_table) opp_migrate_dentry() argument 205 opp_debug_unregister(struct opp_device *opp_dev, struct opp_table *opp_table) opp_debug_unregister() argument 225 struct opp_table *opp_table; opp_summary_show() local [all...] |
/device/soc/rockchip/common/vendor/drivers/rockchip/ |
H A D | rockchip_system_monitor.c | 491 struct opp_table *opp_table;
in rockchip_init_temp_opp_table() local 503 info->opp_table = kzalloc(sizeof(*info->opp_table) * max_count, GFP_KERNEL);
in rockchip_init_temp_opp_table() 504 if (!info->opp_table) {
in rockchip_init_temp_opp_table() 508 opp_table = dev_pm_opp_get_opp_table(dev);
in rockchip_init_temp_opp_table() 509 if (!opp_table) {
in rockchip_init_temp_opp_table() 510 kfree(info->opp_table);
in rockchip_init_temp_opp_table() 511 info->opp_table = NULL;
in rockchip_init_temp_opp_table() 514 mutex_lock(&opp_table in rockchip_init_temp_opp_table() 780 struct opp_table *opp_table; rockchip_adjust_low_temp_opp_volt() local 1046 struct opp_table *opp_table; rockchip_system_monitor_parse_supplies() local [all...] |
H A D | rockchip_opp_select.c | 892 struct opp_table *rockchip_set_opp_prop_name(struct device *dev, int process, int volt_sel)
in rockchip_set_opp_prop_name() 916 struct opp_table *opp_table;
in rockchip_adjust_opp_by_irdrop() local 927 opp_table = dev_pm_opp_get_opp_table(dev);
in rockchip_adjust_opp_by_irdrop() 928 if (!opp_table) {
in rockchip_adjust_opp_by_irdrop() 933 mutex_lock(&opp_table->lock);
in rockchip_adjust_opp_by_irdrop() 934 list_for_each_entry(opp, &opp_table->opp_list, node)
in rockchip_adjust_opp_by_irdrop() 978 mutex_unlock(&opp_table->lock);
in rockchip_adjust_opp_by_irdrop() 980 dev_pm_opp_put_opp_table(opp_table);
in rockchip_adjust_opp_by_irdrop() 989 struct opp_table *opp_tabl in rockchip_adjust_opp_by_mbist_vmin() local [all...] |
/device/soc/rockchip/common/sdk_linux/drivers/cpufreq/ |
H A D | cpufreq-dt.c | 33 struct opp_table *opp_table; member 236 priv->opp_table = dev_pm_opp_set_regulators(cpu_dev, ®_name, 1); in dt_cpufreq_early_init() 237 if (IS_ERR(priv->opp_table)) { in dt_cpufreq_early_init() 238 ret = PTR_ERR(priv->opp_table); in dt_cpufreq_early_init() 313 if (priv->opp_table) { in dt_cpufreq_early_init() 314 dev_pm_opp_put_regulators(priv->opp_table); in dt_cpufreq_early_init() 331 if (priv->opp_table) { in dt_cpufreq_release() 332 dev_pm_opp_put_regulators(priv->opp_table); in dt_cpufreq_release()
|
/device/soc/rockchip/common/kernel/drivers/gpu/arm/midgard/backend/gpu/ |
H A D | mali_kbase_devfreq.c | 78 if (kbdev->opp_table[i].opp_freq == freq) { in opp_translate() 79 *core_mask = kbdev->opp_table[i].core_mask; in opp_translate() 80 return kbdev->opp_table[i].real_freq; in opp_translate() 270 kbdev->opp_table = kmalloc_array(count, in kbase_devfreq_init_core_mask_table() 272 if (!kbdev->opp_table) in kbase_devfreq_init_core_mask_table() 315 kbdev->opp_table[i].opp_freq = opp_freq; in kbase_devfreq_init_core_mask_table() 316 kbdev->opp_table[i].real_freq = real_freq; in kbase_devfreq_init_core_mask_table() 317 kbdev->opp_table[i].core_mask = core_mask; in kbase_devfreq_init_core_mask_table() 457 kfree(kbdev->opp_table); in kbase_devfreq_term()
|
/device/soc/rockchip/common/vendor/drivers/gpu/arm/midgard/backend/gpu/ |
H A D | mali_kbase_devfreq.c | 75 if (kbdev->opp_table[i].opp_freq == freq) { in opp_translate() 76 *core_mask = kbdev->opp_table[i].core_mask; in opp_translate() 77 return kbdev->opp_table[i].real_freq; in opp_translate() 263 kbdev->opp_table = kmalloc_array(count, sizeof(struct kbase_devfreq_opp), GFP_KERNEL); in kbase_devfreq_init_core_mask_table() 264 if (!kbdev->opp_table) { in kbase_devfreq_init_core_mask_table() 308 kbdev->opp_table[i].opp_freq = opp_freq; in kbase_devfreq_init_core_mask_table() 309 kbdev->opp_table[i].real_freq = real_freq; in kbase_devfreq_init_core_mask_table() 310 kbdev->opp_table[i].core_mask = core_mask; in kbase_devfreq_init_core_mask_table() 447 kfree(kbdev->opp_table); in kbase_devfreq_term()
|
/device/soc/rockchip/common/vendor/drivers/cpufreq/ |
H A D | rockchip-cpufreq.c | 411 struct opp_table *pname_table = NULL; in rockchip_cpufreq_cluster_init() 412 struct opp_table *reg_table = NULL; in rockchip_cpufreq_cluster_init() 413 struct opp_table *opp_table; in rockchip_cpufreq_cluster_init() local 473 opp_table = dev_pm_opp_register_set_opp_helper(dev, cpu_opp_helper); in rockchip_cpufreq_cluster_init() 474 if (IS_ERR(opp_table)) { in rockchip_cpufreq_cluster_init() 475 ret = PTR_ERR(opp_table); in rockchip_cpufreq_cluster_init()
|
/device/soc/rockchip/rk3588/kernel/drivers/cpufreq/ |
H A D | rockchip-cpufreq.c | 452 struct opp_table *pname_table = NULL; in rockchip_cpufreq_cluster_init() 453 struct opp_table *reg_table = NULL; in rockchip_cpufreq_cluster_init() 454 struct opp_table *opp_table; in rockchip_cpufreq_cluster_init() local 519 opp_table = dev_pm_opp_register_set_opp_helper(dev, in rockchip_cpufreq_cluster_init() 521 if (IS_ERR(opp_table)) { in rockchip_cpufreq_cluster_init() 522 ret = PTR_ERR(opp_table); in rockchip_cpufreq_cluster_init()
|
/device/soc/rockchip/common/sdk_linux/include/soc/rockchip/ |
H A D | rockchip_opp_select.h | 48 struct opp_table *rockchip_set_opp_prop_name(struct device *dev, int process, int volt_sel); 100 static inline struct opp_table *rockchip_set_opp_prop_name(struct device *dev, int process, int volt_sel) in rockchip_set_opp_prop_name()
|
H A D | rockchip_system_monitor.h | 44 * @opp_table: Frequency and voltage information of device 82 struct temp_opp_table *opp_table; member
|
/device/soc/rockchip/rk3588/kernel/include/soc/rockchip/ |
H A D | rockchip_opp_select.h | 60 struct opp_table *rockchip_set_opp_prop_name(struct device *dev, int process, 132 static inline struct opp_table *rockchip_set_opp_prop_name(struct device *dev, in rockchip_set_opp_prop_name()
|
H A D | rockchip_system_monitor.h | 44 * @opp_table: Frequency and voltage information of device 82 struct temp_opp_table *opp_table; member
|
/device/soc/rockchip/common/vendor/drivers/gpu/arm/bifrost/ |
H A D | mali_kbase_defs.h | 643 * @opp_table: Pointer to the device OPP structure maintaining the 896 struct opp_table *opp_table; member
|
H A D | mali_kbase_core_linux.c | 4188 kbdev->opp_table = dev_pm_opp_set_regulators( in power_control_init() 4230 if (!IS_ERR_OR_NULL(kbdev->opp_table)) { in power_control_term() 4231 dev_pm_opp_put_regulators(kbdev->opp_table); in power_control_term()
|
/device/soc/rockchip/common/kernel/drivers/gpu/arm/bifrost/ |
H A D | mali_kbase_defs.h | 678 * @opp_table: Pointer to the device OPP structure maintaining the 982 struct opp_table *opp_table; member
|
H A D | mali_kbase_core_linux.c | 4505 kbdev->opp_table = in power_control_init() 4508 if (IS_ERR(kbdev->opp_table)) { in power_control_init() 4512 kbdev->opp_table = in power_control_init() 4515 if (IS_ERR(kbdev->opp_table)) { in power_control_init() 4516 dev_pm_opp_put_regulators(kbdev->opp_table); in power_control_init() 4517 kbdev->opp_table = NULL; in power_control_init() 4551 if (!IS_ERR_OR_NULL(kbdev->opp_table)) { in power_control_term() 4552 dev_pm_opp_unregister_set_opp_helper(kbdev->opp_table); in power_control_term() 4553 dev_pm_opp_put_regulators(kbdev->opp_table); in power_control_term()
|
/device/soc/rockchip/common/vendor/drivers/gpu/arm/midgard/ |
H A D | mali_kbase_defs.h | 1088 struct kbase_devfreq_opp *opp_table;
member
|
/device/soc/rockchip/common/kernel/drivers/gpu/arm/midgard/ |
H A D | mali_kbase_defs.h | 1099 struct kbase_devfreq_opp *opp_table; member
|