Lines Matching refs:opp
111 struct dev_pm_opp *opp; in partition_enable_opps() local
117 opp = dev_pm_opp_find_freq_exact(dev, freq, !want_enable); in partition_enable_opps()
120 if (PTR_ERR(opp) == -ERANGE) in partition_enable_opps()
122 else if (IS_ERR(opp)) in partition_enable_opps()
123 return PTR_ERR(opp); in partition_enable_opps()
219 struct dev_pm_opp *opp; in get_static_power() local
226 opp = dev_pm_opp_find_freq_exact(dev, freq, true); in get_static_power()
227 if (IS_ERR(opp) && (PTR_ERR(opp) == -ERANGE)) in get_static_power()
228 opp = dev_pm_opp_find_freq_exact(dev, freq, false); in get_static_power()
230 voltage = dev_pm_opp_get_voltage(opp) / 1000; /* mV */ in get_static_power()
237 freq, IS_ERR(opp) ? PTR_ERR(opp) : 0); in get_static_power()
412 struct dev_pm_opp *opp; in devfreq_cooling_gen_tables() local
416 opp = dev_pm_opp_find_freq_floor(dev, &freq); in devfreq_cooling_gen_tables()
417 if (IS_ERR(opp)) { in devfreq_cooling_gen_tables()
419 ret = PTR_ERR(opp); in devfreq_cooling_gen_tables()
423 voltage = dev_pm_opp_get_voltage(opp) / 1000; /* mV */ in devfreq_cooling_gen_tables()