Lines Matching refs:freq
87 unsigned int freq = dfc->freq_table[i]; in partition_enable_opps() local
90 opp = dev_pm_opp_find_freq_exact(dev, freq, !want_enable); in partition_enable_opps()
100 ret = dev_pm_opp_enable(dev, freq); in partition_enable_opps()
102 ret = dev_pm_opp_disable(dev, freq); in partition_enable_opps()
165 freq_get_state(struct devfreq_cooling_device *dfc, unsigned long freq) in freq_get_state() argument
170 if (dfc->freq_table[i] == freq) in freq_get_state()
177 static unsigned long get_voltage(struct devfreq *df, unsigned long freq) in get_voltage() argument
183 opp = dev_pm_opp_find_freq_exact(dev, freq, true); in get_voltage()
185 opp = dev_pm_opp_find_freq_exact(dev, freq, false); in get_voltage()
189 freq, PTR_ERR(opp)); in get_voltage()
199 freq); in get_voltage()
216 get_static_power(struct devfreq_cooling_device *dfc, unsigned long freq) in get_static_power() argument
224 voltage = get_voltage(df, freq); in get_static_power()
245 get_dynamic_power(struct devfreq_cooling_device *dfc, unsigned long freq, in get_dynamic_power() argument
253 return dfc_power->get_dynamic_power(dfc->devfreq, freq, in get_dynamic_power()
256 freq_mhz = freq / 1000000; in get_dynamic_power()
265 unsigned long freq, in get_total_power() argument
268 return get_static_power(dfc, freq) + get_dynamic_power(dfc, freq, in get_total_power()
281 unsigned long freq = status->current_frequency; in devfreq_cooling_get_requested_power() local
287 state = freq_get_state(dfc, freq); in devfreq_cooling_get_requested_power()
294 voltage = get_voltage(df, freq); in devfreq_cooling_get_requested_power()
300 res = dfc->power_ops->get_real_power(df, power, freq, voltage); in devfreq_cooling_get_requested_power()
318 static_power = get_static_power(dfc, freq); in devfreq_cooling_get_requested_power()
323 trace_thermal_power_devfreq_get_power(cdev, status, freq, dyn_power, in devfreq_cooling_get_requested_power()
339 unsigned long freq; in devfreq_cooling_state2power() local
345 freq = dfc->freq_table[state]; in devfreq_cooling_state2power()
346 static_power = get_static_power(dfc, freq); in devfreq_cooling_state2power()
359 unsigned long freq = status->current_frequency; in devfreq_cooling_power2state() local
371 static_power = get_static_power(dfc, freq); in devfreq_cooling_power2state()
391 trace_thermal_power_devfreq_limit(cdev, freq, *state, power); in devfreq_cooling_power2state()
424 unsigned long freq; in devfreq_cooling_gen_tables() local
445 for (i = 0, freq = ULONG_MAX; i < num_opps; i++, freq--) { in devfreq_cooling_gen_tables()
449 opp = dev_pm_opp_find_freq_floor(dev, &freq); in devfreq_cooling_gen_tables()
460 power = get_total_power(dfc, freq, voltage); in devfreq_cooling_gen_tables()
462 power = get_dynamic_power(dfc, freq, voltage); in devfreq_cooling_gen_tables()
465 freq / 1000000, voltage, power, power); in devfreq_cooling_gen_tables()
470 freq_table[i] = freq; in devfreq_cooling_gen_tables()