/drivers/opp/ |
D | core.c | 105 unsigned long dev_pm_opp_get_voltage(struct dev_pm_opp *opp) in dev_pm_opp_get_voltage() argument 107 if (IS_ERR_OR_NULL(opp)) { in dev_pm_opp_get_voltage() 112 return opp->supplies[0].u_volt; in dev_pm_opp_get_voltage() 123 unsigned long dev_pm_opp_get_freq(struct dev_pm_opp *opp) in dev_pm_opp_get_freq() argument 125 if (IS_ERR_OR_NULL(opp)) { in dev_pm_opp_get_freq() 130 return opp->rate; in dev_pm_opp_get_freq() 141 unsigned int dev_pm_opp_get_level(struct dev_pm_opp *opp) in dev_pm_opp_get_level() argument 143 if (IS_ERR_OR_NULL(opp) || !opp->available) { in dev_pm_opp_get_level() 148 return opp->level; in dev_pm_opp_get_level() 161 unsigned int dev_pm_opp_get_required_pstate(struct dev_pm_opp *opp, in dev_pm_opp_get_required_pstate() argument [all …]
|
D | debugfs.c | 31 void opp_debug_remove_one(struct dev_pm_opp *opp) in opp_debug_remove_one() argument 33 debugfs_remove_recursive(opp->dentry); in opp_debug_remove_one() 54 static void opp_debug_create_bw(struct dev_pm_opp *opp, in opp_debug_create_bw() argument 71 &opp->bandwidth[i].peak); in opp_debug_create_bw() 73 &opp->bandwidth[i].avg); in opp_debug_create_bw() 77 static void opp_debug_create_supplies(struct dev_pm_opp *opp, in opp_debug_create_supplies() argument 93 &opp->supplies[i].u_volt); in opp_debug_create_supplies() 96 &opp->supplies[i].u_volt_min); in opp_debug_create_supplies() 99 &opp->supplies[i].u_volt_max); in opp_debug_create_supplies() 102 &opp->supplies[i].u_amp); in opp_debug_create_supplies() [all …]
|
D | of.c | 78 struct dev_pm_opp *opp; in _find_opp_of_np() local 82 list_for_each_entry(opp, &opp_table->opp_list, node) { in _find_opp_of_np() 83 if (opp->np == opp_np) { in _find_opp_of_np() 84 dev_pm_opp_get(opp); in _find_opp_of_np() 86 return opp; in _find_opp_of_np() 258 struct dev_pm_opp *opp) in _of_opp_free_required_opps() argument 260 struct dev_pm_opp **required_opps = opp->required_opps; in _of_opp_free_required_opps() 274 opp->required_opps = NULL; in _of_opp_free_required_opps() 280 struct dev_pm_opp *opp) in _of_opp_alloc_required_opps() argument 294 opp->required_opps = required_opps; in _of_opp_alloc_required_opps() [all …]
|
D | opp.h | 223 void dev_pm_opp_get(struct dev_pm_opp *opp); 230 void _opp_free(struct dev_pm_opp *opp); 237 void _required_opps_available(struct dev_pm_opp *opp, int count); 249 struct dev_pm_opp *opp); 255 struct dev_pm_opp *opp) {} in _of_opp_free_required_opps() argument 259 void opp_debug_remove_one(struct dev_pm_opp *opp); 260 void opp_debug_create_one(struct dev_pm_opp *opp, struct opp_table *opp_table); 264 static inline void opp_debug_remove_one(struct dev_pm_opp *opp) {} in opp_debug_remove_one() argument 266 static inline void opp_debug_create_one(struct dev_pm_opp *opp, in opp_debug_create_one() argument
|
D | cpu.c | 46 struct dev_pm_opp *opp; in dev_pm_opp_init_cpufreq_table() local 61 opp = dev_pm_opp_find_freq_ceil(dev, &rate); in dev_pm_opp_init_cpufreq_table() 62 if (IS_ERR(opp)) { in dev_pm_opp_init_cpufreq_table() 63 ret = PTR_ERR(opp); in dev_pm_opp_init_cpufreq_table() 70 if (dev_pm_opp_is_turbo(opp)) in dev_pm_opp_init_cpufreq_table() 73 dev_pm_opp_put(opp); in dev_pm_opp_init_cpufreq_table()
|
/drivers/gpu/drm/amd/display/dc/dce/ |
D | dce_opp.c | 535 struct output_pixel_processor *opp, in dce110_opp_program_bit_depth_reduction() argument 538 struct dce110_opp *opp110 = TO_DCE110_OPP(opp); in dce110_opp_program_bit_depth_reduction() 547 struct output_pixel_processor *opp, in dce60_opp_program_bit_depth_reduction() argument 550 struct dce110_opp *opp110 = TO_DCE110_OPP(opp); in dce60_opp_program_bit_depth_reduction() 559 struct output_pixel_processor *opp, in dce110_opp_program_clamping_and_pixel_encoding() argument 562 struct dce110_opp *opp110 = TO_DCE110_OPP(opp); in dce110_opp_program_clamping_and_pixel_encoding() 570 struct output_pixel_processor *opp, in dce60_opp_program_clamping_and_pixel_encoding() argument 573 struct dce110_opp *opp110 = TO_DCE110_OPP(opp); in dce60_opp_program_clamping_and_pixel_encoding() 581 static void program_formatter_420_memory(struct output_pixel_processor *opp) in program_formatter_420_memory() argument 583 struct dce110_opp *opp110 = TO_DCE110_OPP(opp); in program_formatter_420_memory() [all …]
|
/drivers/gpu/drm/amd/display/dc/dcn10/ |
D | dcn10_opp.c | 141 struct output_pixel_processor *opp, in opp1_program_bit_depth_reduction() argument 144 struct dcn10_opp *oppn10 = TO_DCN10_OPP(opp); in opp1_program_bit_depth_reduction() 232 struct output_pixel_processor *opp, in opp1_set_dyn_expansion() argument 237 struct dcn10_opp *oppn10 = TO_DCN10_OPP(opp); in opp1_set_dyn_expansion() 243 if (opp->dyn_expansion == DYN_EXPANSION_DISABLE) in opp1_set_dyn_expansion() 275 struct output_pixel_processor *opp, in opp1_program_clamping_and_pixel_encoding() argument 278 struct dcn10_opp *oppn10 = TO_DCN10_OPP(opp); in opp1_program_clamping_and_pixel_encoding() 285 struct output_pixel_processor *opp, in opp1_program_fmt() argument 289 struct dcn10_opp *oppn10 = TO_DCN10_OPP(opp); in opp1_program_fmt() 297 opp, in opp1_program_fmt() [all …]
|
D | dcn10_opp.h | 30 #define TO_DCN10_OPP(opp)\ argument 31 container_of(opp, struct dcn10_opp, base) 166 struct output_pixel_processor *opp, 172 struct output_pixel_processor *opp, 177 struct output_pixel_processor *opp, 181 struct output_pixel_processor *opp, 185 void opp1_pipe_clock_control(struct output_pixel_processor *opp, bool enable); 187 void opp1_destroy(struct output_pixel_processor **opp);
|
/drivers/gpu/drm/amd/display/dc/inc/hw/ |
D | opp.h | 275 struct output_pixel_processor *opp, 280 struct output_pixel_processor *opp, 286 struct output_pixel_processor *opp, 291 struct output_pixel_processor *opp, 295 void (*opp_destroy)(struct output_pixel_processor **opp); 298 struct output_pixel_processor *opp, 303 struct output_pixel_processor *opp, 307 struct output_pixel_processor *opp, 317 struct output_pixel_processor *opp, 322 struct output_pixel_processor *opp); [all …]
|
/drivers/gpu/drm/panfrost/ |
D | panfrost_devfreq.c | 31 struct dev_pm_opp *opp; in panfrost_devfreq_target() local 33 opp = devfreq_recommended_opp(dev, freq, flags); in panfrost_devfreq_target() 34 if (IS_ERR(opp)) in panfrost_devfreq_target() 35 return PTR_ERR(opp); in panfrost_devfreq_target() 36 dev_pm_opp_put(opp); in panfrost_devfreq_target() 88 struct dev_pm_opp *opp; in panfrost_devfreq_init() local 130 opp = devfreq_recommended_opp(dev, &cur_freq, 0); in panfrost_devfreq_init() 131 if (IS_ERR(opp)) in panfrost_devfreq_init() 132 return PTR_ERR(opp); in panfrost_devfreq_init() 140 ret = dev_pm_opp_set_opp(dev, opp); in panfrost_devfreq_init() [all …]
|
/drivers/gpu/drm/lima/ |
D | lima_devfreq.c | 37 struct dev_pm_opp *opp; in lima_devfreq_target() local 39 opp = devfreq_recommended_opp(dev, freq, flags); in lima_devfreq_target() 40 if (IS_ERR(opp)) in lima_devfreq_target() 41 return PTR_ERR(opp); in lima_devfreq_target() 42 dev_pm_opp_put(opp); in lima_devfreq_target() 111 struct dev_pm_opp *opp; in lima_devfreq_init() local 140 opp = devfreq_recommended_opp(dev, &cur_freq, 0); in lima_devfreq_init() 141 if (IS_ERR(opp)) in lima_devfreq_init() 142 return PTR_ERR(opp); in lima_devfreq_init() 145 dev_pm_opp_put(opp); in lima_devfreq_init()
|
/drivers/gpu/drm/amd/display/dc/dcn20/ |
D | dcn20_opp.c | 42 struct output_pixel_processor *opp, in opp2_set_disp_pattern_generator() argument 51 struct dcn20_opp *oppn20 = TO_DCN20_OPP(opp); in opp2_set_disp_pattern_generator() 277 opp2_dpg_set_blank_color(opp, solid_color); in opp2_set_disp_pattern_generator() 294 struct output_pixel_processor *opp, in opp2_program_dpg_dimensions() argument 297 struct dcn20_opp *oppn20 = TO_DCN20_OPP(opp); in opp2_program_dpg_dimensions() 305 struct output_pixel_processor *opp, in opp2_dpg_set_blank_color() argument 308 struct dcn20_opp *oppn20 = TO_DCN20_OPP(opp); in opp2_dpg_set_blank_color() 323 bool opp2_dpg_is_blanked(struct output_pixel_processor *opp) in opp2_dpg_is_blanked() argument 325 struct dcn20_opp *oppn20 = TO_DCN20_OPP(opp); in opp2_dpg_is_blanked() 341 struct output_pixel_processor *opp, in opp2_program_left_edge_extra_pixel() argument [all …]
|
D | dcn20_opp.h | 30 #define TO_DCN20_OPP(opp)\ argument 31 container_of(opp, struct dcn20_opp, base) 147 struct output_pixel_processor *opp, 157 struct output_pixel_processor *opp, 160 bool opp2_dpg_is_blanked(struct output_pixel_processor *opp); 163 struct output_pixel_processor *opp, 167 struct output_pixel_processor *opp,
|
/drivers/firmware/arm_scmi/ |
D | perf.c | 110 } opp[]; member 161 struct scmi_opp opp[MAX_OPPS]; member 267 struct scmi_opp *opp; in scmi_perf_describe_levels_get() local 295 opp = &perf_dom->opp[tot_opp_cnt]; in scmi_perf_describe_levels_get() 296 for (cnt = 0; cnt < num_returned; cnt++, opp++) { in scmi_perf_describe_levels_get() 297 opp->perf = le32_to_cpu(level_info->opp[cnt].perf_val); in scmi_perf_describe_levels_get() 298 opp->power = le32_to_cpu(level_info->opp[cnt].power); in scmi_perf_describe_levels_get() 299 opp->trans_latency_us = le16_to_cpu in scmi_perf_describe_levels_get() 300 (level_info->opp[cnt].transition_latency_us); in scmi_perf_describe_levels_get() 303 opp->perf, opp->power, opp->trans_latency_us); in scmi_perf_describe_levels_get() [all …]
|
/drivers/gpu/drm/msm/ |
D | msm_gpu_devfreq.c | 21 struct dev_pm_opp *opp; in msm_devfreq_target() local 27 opp = devfreq_recommended_opp(dev, freq, flags); in msm_devfreq_target() 35 dev_pm_opp_put(opp); in msm_devfreq_target() 39 if (IS_ERR(opp)) in msm_devfreq_target() 40 return PTR_ERR(opp); in msm_devfreq_target() 42 trace_msm_gpu_freq_change(dev_pm_opp_get_freq(opp)); in msm_devfreq_target() 45 gpu->funcs->gpu_set_freq(gpu, opp); in msm_devfreq_target() 49 dev_pm_opp_put(opp); in msm_devfreq_target()
|
/drivers/devfreq/ |
D | rk3399_dmc.c | 78 struct dev_pm_opp *opp; in rk3399_dmcfreq_target() local 85 opp = devfreq_recommended_opp(dev, freq, flags); in rk3399_dmcfreq_target() 86 if (IS_ERR(opp)) in rk3399_dmcfreq_target() 87 return PTR_ERR(opp); in rk3399_dmcfreq_target() 89 target_rate = dev_pm_opp_get_freq(opp); in rk3399_dmcfreq_target() 90 target_volt = dev_pm_opp_get_voltage(opp); in rk3399_dmcfreq_target() 91 dev_pm_opp_put(opp); in rk3399_dmcfreq_target() 316 struct dev_pm_opp *opp; in rk3399_dmcfreq_probe() local 440 opp = devfreq_recommended_opp(dev, &data->rate, 0); in rk3399_dmcfreq_probe() 441 if (IS_ERR(opp)) { in rk3399_dmcfreq_probe() [all …]
|
D | governor_passive.c | 22 struct dev_pm_opp *opp, *p_opp; in devfreq_passive_get_target_freq() local 63 opp = dev_pm_opp_xlate_required_opp(parent_devfreq->opp_table, in devfreq_passive_get_target_freq() 67 if (IS_ERR(opp)) in devfreq_passive_get_target_freq() 70 *freq = dev_pm_opp_get_freq(opp); in devfreq_passive_get_target_freq() 71 dev_pm_opp_put(opp); in devfreq_passive_get_target_freq()
|
/drivers/thermal/ |
D | devfreq_cooling.c | 138 struct dev_pm_opp *opp; in get_voltage() local 140 opp = dev_pm_opp_find_freq_exact(dev, freq, true); in get_voltage() 141 if (PTR_ERR(opp) == -ERANGE) in get_voltage() 142 opp = dev_pm_opp_find_freq_exact(dev, freq, false); in get_voltage() 144 if (IS_ERR(opp)) { in get_voltage() 146 freq, PTR_ERR(opp)); in get_voltage() 150 voltage = dev_pm_opp_get_voltage(opp) / 1000; /* mV */ in get_voltage() 151 dev_pm_opp_put(opp); in get_voltage() 324 struct dev_pm_opp *opp; in devfreq_cooling_gen_tables() local 326 opp = dev_pm_opp_find_freq_floor(dev, &freq); in devfreq_cooling_gen_tables() [all …]
|
/drivers/cpufreq/ |
D | imx6q-cpufreq.c | 60 struct dev_pm_opp *opp; in imx6q_set_target() local 70 opp = dev_pm_opp_find_freq_ceil(cpu_dev, &freq_hz); in imx6q_set_target() 71 if (IS_ERR(opp)) { in imx6q_set_target() 73 return PTR_ERR(opp); in imx6q_set_target() 76 volt = dev_pm_opp_get_voltage(opp); in imx6q_set_target() 77 dev_pm_opp_put(opp); in imx6q_set_target() 343 struct dev_pm_opp *opp; in imx6q_cpufreq_probe() local 484 opp = dev_pm_opp_find_freq_exact(cpu_dev, in imx6q_cpufreq_probe() 486 min_volt = dev_pm_opp_get_voltage(opp); in imx6q_cpufreq_probe() 487 dev_pm_opp_put(opp); in imx6q_cpufreq_probe() [all …]
|
D | mediatek-cpufreq.c | 212 struct dev_pm_opp *opp; in mtk_cpufreq_set_target() local 227 opp = dev_pm_opp_find_freq_ceil(cpu_dev, &freq_hz); in mtk_cpufreq_set_target() 228 if (IS_ERR(opp)) { in mtk_cpufreq_set_target() 231 return PTR_ERR(opp); in mtk_cpufreq_set_target() 233 vproc = dev_pm_opp_get_voltage(opp); in mtk_cpufreq_set_target() 234 dev_pm_opp_put(opp); in mtk_cpufreq_set_target() 309 struct dev_pm_opp *opp; in mtk_cpu_dvfs_info_init() local 375 opp = dev_pm_opp_find_freq_ceil(cpu_dev, &rate); in mtk_cpu_dvfs_info_init() 376 if (IS_ERR(opp)) { in mtk_cpu_dvfs_info_init() 378 ret = PTR_ERR(opp); in mtk_cpu_dvfs_info_init() [all …]
|
D | qcom-cpufreq-hw.c | 65 struct dev_pm_opp *opp; in qcom_cpufreq_set_bw() local 73 opp = dev_pm_opp_find_freq_exact(dev, freq_hz, true); in qcom_cpufreq_set_bw() 74 if (IS_ERR(opp)) in qcom_cpufreq_set_bw() 75 return PTR_ERR(opp); in qcom_cpufreq_set_bw() 77 ret = dev_pm_opp_set_opp(dev, opp); in qcom_cpufreq_set_bw() 78 dev_pm_opp_put(opp); in qcom_cpufreq_set_bw() 156 struct dev_pm_opp *opp; in qcom_cpufreq_hw_read_lut() local 171 opp = dev_pm_opp_find_freq_ceil(cpu_dev, &rate); in qcom_cpufreq_hw_read_lut() 172 if (IS_ERR(opp)) in qcom_cpufreq_hw_read_lut() 175 dev_pm_opp_put(opp); in qcom_cpufreq_hw_read_lut() [all …]
|
/drivers/clk/ |
D | clk-scpi.c | 67 const struct scpi_opp *opp = clk->info->opps; in __scpi_dvfs_round_rate() local 69 for (idx = 0; idx < clk->info->count; idx++, opp++) { in __scpi_dvfs_round_rate() 70 ftmp = opp->freq; in __scpi_dvfs_round_rate() 87 const struct scpi_opp *opp; in scpi_dvfs_recalc_rate() local 92 opp = clk->info->opps + idx; in scpi_dvfs_recalc_rate() 93 return opp->freq; in scpi_dvfs_recalc_rate() 107 const struct scpi_opp *opp = clk->info->opps; in __scpi_find_dvfs_index() local 109 for (idx = 0; idx < max_opp; idx++, opp++) in __scpi_find_dvfs_index() 110 if (opp->freq == rate) in __scpi_find_dvfs_index()
|
/drivers/sbus/char/ |
D | openprom.c | 123 static int copyout(void __user *info, struct openpromio *opp, int len) in copyout() argument 125 if (copy_to_user(info, opp, len)) in copyout() 294 struct openpromio *opp = NULL; in openprom_sunos_ioctl() local 300 bufsize = getstrings(argp, &opp); in openprom_sunos_ioctl() 302 bufsize = copyin(argp, &opp); in openprom_sunos_ioctl() 312 error = opromgetprop(argp, dp, opp, bufsize); in openprom_sunos_ioctl() 317 error = opromnxtprop(argp, dp, opp, bufsize); in openprom_sunos_ioctl() 322 error = opromsetopt(dp, opp, bufsize); in openprom_sunos_ioctl() 328 error = opromnext(argp, cmd, dp, opp, bufsize, data); in openprom_sunos_ioctl() 332 error = oprompci2node(argp, dp, opp, bufsize, data); in openprom_sunos_ioctl() [all …]
|
/drivers/soc/samsung/ |
D | exynos-asv.c | 29 struct dev_pm_opp *opp; in exynos_asv_update_cpu_opps() local 49 opp = dev_pm_opp_find_freq_exact(cpu, opp_freq * MHZ, true); in exynos_asv_update_cpu_opps() 50 if (IS_ERR(opp)) { in exynos_asv_update_cpu_opps() 57 volt = dev_pm_opp_get_voltage(opp); in exynos_asv_update_cpu_opps() 59 dev_pm_opp_put(opp); in exynos_asv_update_cpu_opps()
|
/drivers/memory/samsung/ |
D | exynos5422-dmc.c | 163 struct dmc_opp_table *opp; member 294 if (dmc->opp[i].freq_hz <= target_rate) in find_target_freq_idx() 354 dmc->opp = devm_kmalloc_array(dmc->dev, dmc->opp_count, in exynos5_init_freq_table() 356 if (!dmc->opp) in exynos5_init_freq_table() 361 struct dev_pm_opp *opp; in exynos5_init_freq_table() local 363 opp = dev_pm_opp_find_freq_floor(dmc->dev, &freq); in exynos5_init_freq_table() 364 if (IS_ERR(opp)) in exynos5_init_freq_table() 365 return PTR_ERR(opp); in exynos5_init_freq_table() 367 dmc->opp[idx - i].freq_hz = freq; in exynos5_init_freq_table() 368 dmc->opp[idx - i].volt_uv = dev_pm_opp_get_voltage(opp); in exynos5_init_freq_table() [all …]
|