Lines Matching refs:freq

88 	unsigned long freq;  in devfreq_cooling_set_cur_state()  local
101 freq = dfc->em_pd->table[perf_idx].frequency * 1000; in devfreq_cooling_set_cur_state()
103 freq = dfc->freq_table[state]; in devfreq_cooling_set_cur_state()
107 DIV_ROUND_UP(freq, HZ_PER_KHZ)); in devfreq_cooling_set_cur_state()
122 static int get_perf_idx(struct em_perf_domain *em_pd, unsigned long freq) in get_perf_idx() argument
127 if (em_pd->table[i].frequency == freq) in get_perf_idx()
134 static unsigned long get_voltage(struct devfreq *df, unsigned long freq) in get_voltage() argument
140 opp = dev_pm_opp_find_freq_exact(dev, freq, true); in get_voltage()
142 opp = dev_pm_opp_find_freq_exact(dev, freq, false); in get_voltage()
146 freq, PTR_ERR(opp)); in get_voltage()
156 freq); in get_voltage()
183 unsigned long freq; in devfreq_cooling_get_requested_power() local
191 freq = status.current_frequency; in devfreq_cooling_get_requested_power()
194 voltage = get_voltage(df, freq); in devfreq_cooling_get_requested_power()
200 res = dfc->power_ops->get_real_power(df, power, freq, voltage); in devfreq_cooling_get_requested_power()
213 perf_idx = get_perf_idx(dfc->em_pd, freq / 1000); in devfreq_cooling_get_requested_power()
227 trace_thermal_power_devfreq_get_power(cdev, &status, freq, *power); in devfreq_cooling_get_requested_power()
257 unsigned long freq; in devfreq_cooling_power2state() local
265 freq = status.current_frequency; in devfreq_cooling_power2state()
289 trace_thermal_power_devfreq_limit(cdev, freq, *state, power); in devfreq_cooling_power2state()
315 unsigned long freq; in devfreq_cooling_gen_tables() local
323 for (i = 0, freq = ULONG_MAX; i < num_opps; i++, freq--) { in devfreq_cooling_gen_tables()
326 opp = dev_pm_opp_find_freq_floor(dev, &freq); in devfreq_cooling_gen_tables()
333 dfc->freq_table[i] = freq; in devfreq_cooling_gen_tables()