/device/soc/amlogic/a311d/soc/arch/arm64/boot/dts/amlogic/ |
D | meson-g12b-a311d.dtsi | 10 cpu_opp_table_0: opp-table-0 { 12 opp-shared; 14 opp-1000000000 { 15 opp-hz = /bits/ 64 <1000000000>; 16 opp-microvolt = <761000>; 19 opp-1200000000 { 20 opp-hz = /bits/ 64 <1200000000>; 21 opp-microvolt = <781000>; 24 opp-1398000000 { 25 opp-hz = /bits/ 64 <1398000000>; [all …]
|
/device/soc/rockchip/common/sdk_linux/drivers/opp/ |
D | debugfs.c | 30 void opp_debug_remove_one(struct dev_pm_opp *opp) in opp_debug_remove_one() argument 32 debugfs_remove_recursive(opp->dentry); in opp_debug_remove_one() 52 static void opp_debug_create_bw(struct dev_pm_opp *opp, struct opp_table *opp_table, struct dentry … in opp_debug_create_bw() argument 65 debugfs_create_u32("peak_bw", S_IRUGO, d, &opp->bandwidth[i].peak); in opp_debug_create_bw() 66 debugfs_create_u32("avg_bw", S_IRUGO, d, &opp->bandwidth[i].avg); in opp_debug_create_bw() 70 static void opp_debug_create_supplies(struct dev_pm_opp *opp, struct opp_table *opp_table, struct d… in opp_debug_create_supplies() argument 83 debugfs_create_ulong("u_volt_target", S_IRUGO, d, &opp->supplies[i].u_volt); in opp_debug_create_supplies() 85 debugfs_create_ulong("u_volt_min", S_IRUGO, d, &opp->supplies[i].u_volt_min); in opp_debug_create_supplies() 87 debugfs_create_ulong("u_volt_max", S_IRUGO, d, &opp->supplies[i].u_volt_max); in opp_debug_create_supplies() 89 debugfs_create_ulong("u_amp", S_IRUGO, d, &opp->supplies[i].u_amp); in opp_debug_create_supplies() [all …]
|
D | of.c | 84 struct dev_pm_opp *opp; in _find_opp_of_np() local 88 list_for_each_entry(opp, &opp_table->opp_list, node) in _find_opp_of_np() 90 if (opp->np == opp_np) { in _find_opp_of_np() 91 dev_pm_opp_get(opp); in _find_opp_of_np() 93 return opp; in _find_opp_of_np() 274 void _of_opp_free_required_opps(struct opp_table *opp_table, struct dev_pm_opp *opp) in _of_opp_free_required_opps() argument 276 struct dev_pm_opp **required_opps = opp->required_opps; in _of_opp_free_required_opps() 293 opp->required_opps = NULL; in _of_opp_free_required_opps() 297 static int _of_opp_alloc_required_opps(struct opp_table *opp_table, struct dev_pm_opp *opp) in _of_opp_alloc_required_opps() argument 313 opp->required_opps = required_opps; in _of_opp_alloc_required_opps() [all …]
|
/device/soc/rockchip/common/kernel/drivers/gpu/arm/mali400/mali/linux/ |
D | mali_devfreq.c | 31 #define dev_pm_opp opp 54 struct dev_pm_opp *opp; in mali_devfreq_target() local 62 opp = devfreq_recommended_opp(dev, &freq, flags); in mali_devfreq_target() 63 if (IS_ERR(opp)) { in mali_devfreq_target() 64 MALI_PRINT_ERROR(("Failed to get opp (%ld)\n", PTR_ERR(opp))); in mali_devfreq_target() 65 return PTR_ERR(opp); in mali_devfreq_target() 67 voltage = dev_pm_opp_get_voltage(opp); in mali_devfreq_target() 68 dev_pm_opp_put(opp); in mali_devfreq_target() 177 struct dev_pm_opp *opp; in mali_devfreq_init_freq_table() local 196 opp = dev_pm_opp_find_freq_ceil(mdev->dev, &freq); in mali_devfreq_init_freq_table() [all …]
|
/device/soc/rockchip/common/vendor/drivers/gpu/arm/mali400/mali/linux/ |
D | mali_devfreq.c | 32 #define dev_pm_opp opp 54 struct dev_pm_opp *opp; in mali_devfreq_target() local 62 opp = devfreq_recommended_opp(dev, &freq, flags); in mali_devfreq_target() 63 if (IS_ERR(opp)) { in mali_devfreq_target() 64 MALI_PRINT_ERROR(("Failed to get opp (%ld)\n", PTR_ERR(opp))); in mali_devfreq_target() 65 return PTR_ERR(opp); in mali_devfreq_target() 67 voltage = dev_pm_opp_get_voltage(opp); in mali_devfreq_target() 68 dev_pm_opp_put(opp); in mali_devfreq_target() 174 struct dev_pm_opp *opp; in mali_devfreq_init_freq_table() local 194 opp = dev_pm_opp_find_freq_ceil(mdev->dev, &freq); in mali_devfreq_init_freq_table() [all …]
|
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/gpu/panfrost/ |
D | panfrost_devfreq.c | 31 struct dev_pm_opp *opp; in panfrost_devfreq_target() local 34 opp = devfreq_recommended_opp(dev, freq, flags); in panfrost_devfreq_target() 35 if (IS_ERR(opp)) in panfrost_devfreq_target() 36 return PTR_ERR(opp); in panfrost_devfreq_target() 37 dev_pm_opp_put(opp); in panfrost_devfreq_target() 92 struct dev_pm_opp *opp; in panfrost_devfreq_init() local 128 opp = devfreq_recommended_opp(dev, &cur_freq, 0); in panfrost_devfreq_init() 129 if (IS_ERR(opp)) { in panfrost_devfreq_init() 130 ret = PTR_ERR(opp); in panfrost_devfreq_init() 135 dev_pm_opp_put(opp); in panfrost_devfreq_init()
|
/device/soc/rockchip/rk3588/kernel/drivers/soc/rockchip/ |
D | opp.h | 214 void dev_pm_opp_get(struct dev_pm_opp *opp); 221 void _opp_free(struct dev_pm_opp *opp); 234 struct dev_pm_opp *opp); 240 struct dev_pm_opp *opp) {} in _of_opp_free_required_opps() argument 244 void opp_debug_remove_one(struct dev_pm_opp *opp); 245 void opp_debug_create_one(struct dev_pm_opp *opp, struct opp_table *opp_table); 249 static inline void opp_debug_remove_one(struct dev_pm_opp *opp) {} in opp_debug_remove_one() argument 251 static inline void opp_debug_create_one(struct dev_pm_opp *opp, in opp_debug_create_one() argument
|
D | rockchip_opp_select.c | 936 struct dev_pm_opp *opp; in rockchip_adjust_opp_by_irdrop() local 953 list_for_each_entry(opp, &opp_table->opp_list, node) { in rockchip_adjust_opp_by_irdrop() 957 opp_rate = opp->rate / 1000000; in rockchip_adjust_opp_by_irdrop() 968 if ((opp->supplies[0].u_volt + delta_irdrop) <= max_volt) { in rockchip_adjust_opp_by_irdrop() 969 opp->supplies[0].u_volt += delta_irdrop; in rockchip_adjust_opp_by_irdrop() 970 opp->supplies[0].u_volt_min += delta_irdrop; in rockchip_adjust_opp_by_irdrop() 971 if (opp->supplies[0].u_volt_max + delta_irdrop <= in rockchip_adjust_opp_by_irdrop() 973 opp->supplies[0].u_volt_max += delta_irdrop; in rockchip_adjust_opp_by_irdrop() 975 opp->supplies[0].u_volt_max = max_volt; in rockchip_adjust_opp_by_irdrop() 977 tmp_safe_rate = opp->rate; in rockchip_adjust_opp_by_irdrop() [all …]
|
D | rockchip_system_monitor.c | 498 struct dev_pm_opp *opp; in rockchip_init_temp_opp_table() local 520 list_for_each_entry(opp, &opp_table->opp_list, node) { in rockchip_init_temp_opp_table() 521 info->opp_table[i].rate = opp->rate; in rockchip_init_temp_opp_table() 522 info->opp_table[i].volt = opp->supplies[0].u_volt; in rockchip_init_temp_opp_table() 523 info->opp_table[i].max_volt = opp->supplies[0].u_volt_max; in rockchip_init_temp_opp_table() 525 if (opp->supplies[0].u_volt <= info->high_temp_max_volt) { in rockchip_init_temp_opp_table() 527 high_limit = opp->rate; in rockchip_init_temp_opp_table() 528 if (opp->supplies[0].u_volt == info->high_temp_max_volt) in rockchip_init_temp_opp_table() 532 if (rockchip_get_low_temp_volt(info, opp->rate, &delta_volt)) in rockchip_init_temp_opp_table() 534 if ((opp->supplies[0].u_volt + delta_volt) <= info->max_volt) { in rockchip_init_temp_opp_table() [all …]
|
/device/soc/rockchip/common/vendor/drivers/gpu/arm/midgard/backend/gpu/ |
D | mali_kbase_devfreq.c | 40 #define dev_pm_opp opp 90 struct dev_pm_opp *opp; in kbase_devfreq_target() local 100 opp = devfreq_recommended_opp(dev, &freq, flags); in kbase_devfreq_target() 101 if (IS_ERR(opp)) { in kbase_devfreq_target() 102 dev_err(dev, "Failed to get opp (%ld)\n", PTR_ERR(opp)); in kbase_devfreq_target() 103 return PTR_ERR(opp); in kbase_devfreq_target() 105 voltage = dev_pm_opp_get_voltage(opp); in kbase_devfreq_target() 203 struct dev_pm_opp *opp; in kbase_devfreq_init_freq_table() local 216 opp = dev_pm_opp_find_freq_floor(kbdev->dev, &freq); in kbase_devfreq_init_freq_table() 217 if (IS_ERR(opp)) { in kbase_devfreq_init_freq_table() [all …]
|
/device/soc/rockchip/common/kernel/drivers/gpu/arm/midgard/backend/gpu/ |
D | mali_kbase_devfreq.c | 42 #define dev_pm_opp opp 94 struct dev_pm_opp *opp; in kbase_devfreq_target() local 104 opp = devfreq_recommended_opp(dev, &freq, flags); in kbase_devfreq_target() 105 if (IS_ERR(opp)) { in kbase_devfreq_target() 106 dev_err(dev, "Failed to get opp (%ld)\n", PTR_ERR(opp)); in kbase_devfreq_target() 107 return PTR_ERR(opp); in kbase_devfreq_target() 109 voltage = dev_pm_opp_get_voltage(opp); in kbase_devfreq_target() 212 struct dev_pm_opp *opp; in kbase_devfreq_init_freq_table() local 225 opp = dev_pm_opp_find_freq_floor(kbdev->dev, &freq); in kbase_devfreq_init_freq_table() 226 if (IS_ERR(opp)) in kbase_devfreq_init_freq_table() [all …]
|
/device/soc/rockchip/common/kernel/drivers/gpu/arm/bifrost/backend/gpu/ |
D | mali_kbase_devfreq.c | 68 struct dev_pm_opp *opp; in get_voltage() local 75 opp = dev_pm_opp_find_freq_exact(kbdev->dev, freq, true); in get_voltage() 77 if (IS_ERR_OR_NULL(opp)) in get_voltage() 78 dev_err(kbdev->dev, "Failed to get opp (%ld)\n", PTR_ERR(opp)); in get_voltage() 80 voltage = dev_pm_opp_get_voltage(opp); in get_voltage() 82 dev_pm_opp_put(opp); in get_voltage() 245 struct dev_pm_opp *opp; in kbase_devfreq_target() local 251 opp = devfreq_recommended_opp(dev, freq, flags); in kbase_devfreq_target() 252 if (IS_ERR(opp)) in kbase_devfreq_target() 253 return PTR_ERR(opp); in kbase_devfreq_target() [all …]
|
/device/board/isoftstone/yangfan/kernel/src/driv/soc/ |
D | rockchip_opp_select.c | 936 struct dev_pm_opp *opp; in rockchip_adjust_opp_by_irdrop() local 953 list_for_each_entry(opp, &opp_table->opp_list, node) { in rockchip_adjust_opp_by_irdrop() 957 opp_rate = opp->rate / 1000000; in rockchip_adjust_opp_by_irdrop() 968 if ((opp->supplies[0].u_volt + delta_irdrop) <= max_volt) { in rockchip_adjust_opp_by_irdrop() 969 opp->supplies[0].u_volt += delta_irdrop; in rockchip_adjust_opp_by_irdrop() 970 opp->supplies[0].u_volt_min += delta_irdrop; in rockchip_adjust_opp_by_irdrop() 971 if (opp->supplies[0].u_volt_max + delta_irdrop <= in rockchip_adjust_opp_by_irdrop() 973 opp->supplies[0].u_volt_max += delta_irdrop; in rockchip_adjust_opp_by_irdrop() 975 opp->supplies[0].u_volt_max = max_volt; in rockchip_adjust_opp_by_irdrop() 977 tmp_safe_rate = opp->rate; in rockchip_adjust_opp_by_irdrop() [all …]
|
D | rockchip_system_monitor.c | 498 struct dev_pm_opp *opp; in rockchip_init_temp_opp_table() local 520 list_for_each_entry(opp, &opp_table->opp_list, node) { in rockchip_init_temp_opp_table() 521 info->opp_table[i].rate = opp->rate; in rockchip_init_temp_opp_table() 522 info->opp_table[i].volt = opp->supplies[0].u_volt; in rockchip_init_temp_opp_table() 523 info->opp_table[i].max_volt = opp->supplies[0].u_volt_max; in rockchip_init_temp_opp_table() 525 if (opp->supplies[0].u_volt <= info->high_temp_max_volt) { in rockchip_init_temp_opp_table() 527 high_limit = opp->rate; in rockchip_init_temp_opp_table() 528 if (opp->supplies[0].u_volt == info->high_temp_max_volt) in rockchip_init_temp_opp_table() 532 if (rockchip_get_low_temp_volt(info, opp->rate, &delta_volt)) in rockchip_init_temp_opp_table() 534 if ((opp->supplies[0].u_volt + delta_volt) <= info->max_volt) { in rockchip_init_temp_opp_table() [all …]
|
/device/soc/rockchip/common/vendor/drivers/rockchip/ |
D | rockchip_opp_select.c | 917 struct dev_pm_opp *opp; in rockchip_adjust_opp_by_irdrop() local 934 list_for_each_entry(opp, &opp_table->opp_list, node) in rockchip_adjust_opp_by_irdrop() 939 opp_rate = opp->rate / 0xF4240; in rockchip_adjust_opp_by_irdrop() 952 if ((opp->supplies[0].u_volt + delta_irdrop) <= max_volt) { in rockchip_adjust_opp_by_irdrop() 953 opp->supplies[0].u_volt += delta_irdrop; in rockchip_adjust_opp_by_irdrop() 954 opp->supplies[0].u_volt_min += delta_irdrop; in rockchip_adjust_opp_by_irdrop() 955 if (opp->supplies[0].u_volt_max + delta_irdrop <= max_volt) { in rockchip_adjust_opp_by_irdrop() 956 opp->supplies[0].u_volt_max += delta_irdrop; in rockchip_adjust_opp_by_irdrop() 958 opp->supplies[0].u_volt_max = max_volt; in rockchip_adjust_opp_by_irdrop() 961 tmp_safe_rate = opp->rate; in rockchip_adjust_opp_by_irdrop() [all …]
|
D | rockchip_system_monitor.c | 492 struct dev_pm_opp *opp; in rockchip_init_temp_opp_table() local 515 list_for_each_entry(opp, &opp_table->opp_list, node) in rockchip_init_temp_opp_table() 517 info->opp_table[i].rate = opp->rate; in rockchip_init_temp_opp_table() 518 info->opp_table[i].volt = opp->supplies[0].u_volt; in rockchip_init_temp_opp_table() 519 info->opp_table[i].max_volt = opp->supplies[0].u_volt_max; in rockchip_init_temp_opp_table() 521 if (opp->supplies[0].u_volt <= info->high_temp_max_volt) { in rockchip_init_temp_opp_table() 523 high_limit = opp->rate; in rockchip_init_temp_opp_table() 525 if (opp->supplies[0].u_volt == info->high_temp_max_volt) { in rockchip_init_temp_opp_table() 530 if (rockchip_get_low_temp_volt(info, opp->rate, &delta_volt)) { in rockchip_init_temp_opp_table() 533 if ((opp->supplies[0].u_volt + delta_volt) <= info->max_volt) { in rockchip_init_temp_opp_table() [all …]
|
/device/soc/rockchip/common/vendor/drivers/gpu/arm/bifrost/backend/gpu/ |
D | mali_kbase_devfreq.c | 43 #define dev_pm_opp opp 109 struct dev_pm_opp *opp; in kbase_devfreq_target() local 122 opp = devfreq_recommended_opp(dev, &nominal_freq, flags); in kbase_devfreq_target() 123 if (IS_ERR_OR_NULL(opp)) { in kbase_devfreq_target() 127 dev_err(dev, "Failed to get opp (%ld)\n", PTR_ERR(opp)); in kbase_devfreq_target() 128 return PTR_ERR(opp); in kbase_devfreq_target() 130 nominal_volt = dev_pm_opp_get_voltage(opp); in kbase_devfreq_target() 135 dev_pm_opp_put(opp); in kbase_devfreq_target() 280 struct dev_pm_opp *opp; in kbase_devfreq_init_freq_table() local 302 opp = dev_pm_opp_find_freq_floor(kbdev->dev, &freq); in kbase_devfreq_init_freq_table() [all …]
|
/device/soc/rockchip/rk3588/kernel/arch/arm64/boot/dts/rockchip/ |
D | rk3588s.dtsi | 547 cluster0_opp_table: cluster0-opp-table { 549 opp-shared; 551 opp-408000000 { 552 opp-hz = /bits/ 64 <408000000>; 553 opp-microvolt = <750000 750000 950000>, 556 opp-suspend; 558 opp-600000000 { 559 opp-hz = /bits/ 64 <600000000>; 560 opp-microvolt = <750000 750000 950000>, 564 opp-816000000 { [all …]
|
D | .rk3588-bearkey-bq3588c1-linux.dtb.dts.tmp | 588 cluster0_opp_table: cluster0-opp-table { 590 opp-shared; 592 opp-408000000 { 593 opp-hz = /bits/ 64 <408000000>; 594 opp-microvolt = <750000 750000 950000>, 597 opp-suspend; 599 opp-600000000 { 600 opp-hz = /bits/ 64 <600000000>; 601 opp-microvolt = <750000 750000 950000>, 605 opp-816000000 { [all …]
|
/device/board/isoftstone/zhiyuan/bootloader/configs/default/linux-5.10/ |
D | sun50iw9.dtsi | 141 cpu_opp_table: cpu-opp-table { 145 opp-shared; 147 opp@480000000 { 148 opp-hz = /bits/ 64 <480000000>; 149 opp-microvolt-a0 = <900000>; 150 opp-microvolt-a1 = <900000>; 152 opp-supported-hw = <0x11>; 155 opp@600000000 { 156 opp-hz = /bits/ 64 <600000000>; 157 opp-microvolt-a1 = <900000>; [all …]
|
/device/soc/rockchip/rk3588/kernel/drivers/devfreq/ |
D | rockchip_bus.c | 117 struct dev_pm_opp *opp; in rockchip_bus_set_freq_table() local 136 opp = dev_pm_opp_find_freq_ceil(dev, &freq); in rockchip_bus_set_freq_table() 137 if (IS_ERR(opp)) { in rockchip_bus_set_freq_table() 140 return PTR_ERR(opp); in rockchip_bus_set_freq_table() 142 bus->freq_table[i].volt = dev_pm_opp_get_voltage(opp); in rockchip_bus_set_freq_table() 144 dev_pm_opp_put(opp); in rockchip_bus_set_freq_table() 273 struct dev_pm_opp *opp; in rockchip_bus_cpufreq_target() local 288 opp = devfreq_recommended_opp(dev, &target_rate, flags); in rockchip_bus_cpufreq_target() 289 if (IS_ERR(opp)) { in rockchip_bus_cpufreq_target() 291 return PTR_ERR(opp); in rockchip_bus_cpufreq_target() [all …]
|
/device/soc/rockchip/common/vendor/drivers/devfreq/ |
D | rockchip_bus.c | 113 struct dev_pm_opp *opp; in rockchip_bus_set_freq_table() local 130 opp = dev_pm_opp_find_freq_ceil(dev, &freq); in rockchip_bus_set_freq_table() 131 if (IS_ERR(opp)) { in rockchip_bus_set_freq_table() 134 return PTR_ERR(opp); in rockchip_bus_set_freq_table() 136 bus->freq_table[i].volt = dev_pm_opp_get_voltage(opp); in rockchip_bus_set_freq_table() 138 dev_pm_opp_put(opp); in rockchip_bus_set_freq_table() 263 struct dev_pm_opp *opp; in rockchip_bus_cpufreq_target() local 278 opp = devfreq_recommended_opp(dev, &target_rate, flags); in rockchip_bus_cpufreq_target() 279 if (IS_ERR(opp)) { in rockchip_bus_cpufreq_target() 281 return PTR_ERR(opp); in rockchip_bus_cpufreq_target() [all …]
|
/device/board/isoftstone/yangfan/kernel/src/driv/devfreq/ |
D | rockchip_bus.c | 117 struct dev_pm_opp *opp; in rockchip_bus_set_freq_table() local 136 opp = dev_pm_opp_find_freq_ceil(dev, &freq); in rockchip_bus_set_freq_table() 137 if (IS_ERR(opp)) { in rockchip_bus_set_freq_table() 140 return PTR_ERR(opp); in rockchip_bus_set_freq_table() 142 bus->freq_table[i].volt = dev_pm_opp_get_voltage(opp); in rockchip_bus_set_freq_table() 144 dev_pm_opp_put(opp); in rockchip_bus_set_freq_table() 273 struct dev_pm_opp *opp; in rockchip_bus_cpufreq_target() local 288 opp = devfreq_recommended_opp(dev, &target_rate, flags); in rockchip_bus_cpufreq_target() 289 if (IS_ERR(opp)) { in rockchip_bus_cpufreq_target() 291 return PTR_ERR(opp); in rockchip_bus_cpufreq_target() [all …]
|
/device/board/kaihong/khdvk_3566b/kernel/ |
D | rk3566-rp-kh.dts | 181 cpu0-opp-table { 183 opp-shared; 202 opp-408000000 { 203 opp-hz = <0x00 0x18519600>; 204 opp-microvolt = <0xc96a8 0xc96a8 0x118c30>; 208 opp-600000000 { 209 opp-hz = <0x00 0x23c34600>; 210 opp-microvolt = <0xc96a8 0xc96a8 0x118c30>; 214 opp-816000000 { 215 opp-hz = <0x00 0x30a32c00>; [all …]
|
/device/soc/rockchip/common/sdk_linux/drivers/devfreq/ |
D | devfreq.c | 87 struct dev_pm_opp *opp; in find_available_min_freq() local 90 opp = dev_pm_opp_find_freq_ceil(devfreq->dev.parent, &min_freq); in find_available_min_freq() 91 if (IS_ERR(opp)) { in find_available_min_freq() 94 dev_pm_opp_put(opp); in find_available_min_freq() 102 struct dev_pm_opp *opp; in find_available_max_freq() local 105 opp = dev_pm_opp_find_freq_floor(devfreq->dev.parent, &max_freq); in find_available_max_freq() 106 if (IS_ERR(opp)) { in find_available_max_freq() 109 dev_pm_opp_put(opp); in find_available_max_freq() 181 struct dev_pm_opp *opp; in set_freq_table() local 200 opp = dev_pm_opp_find_freq_ceil(devfreq->dev.parent, &freq); in set_freq_table() [all …]
|