Lines Matching refs:freq

90 	unsigned long freq;  in devfreq_cooling_set_cur_state()  local
103 freq = dfc->em_pd->table[perf_idx].frequency * 1000; in devfreq_cooling_set_cur_state()
105 freq = dfc->freq_table[state]; in devfreq_cooling_set_cur_state()
109 DIV_ROUND_UP(freq, HZ_PER_KHZ)); in devfreq_cooling_set_cur_state()
124 static int get_perf_idx(struct em_perf_domain *em_pd, unsigned long freq) in get_perf_idx() argument
129 if (em_pd->table[i].frequency == freq) in get_perf_idx()
136 static unsigned long get_voltage(struct devfreq *df, unsigned long freq) in get_voltage() argument
142 opp = dev_pm_opp_find_freq_exact(dev, freq, true); in get_voltage()
144 opp = dev_pm_opp_find_freq_exact(dev, freq, false); in get_voltage()
148 freq, PTR_ERR(opp)); in get_voltage()
158 freq); in get_voltage()
185 unsigned long freq; in devfreq_cooling_get_requested_power() local
193 freq = status.current_frequency; in devfreq_cooling_get_requested_power()
196 voltage = get_voltage(df, freq); in devfreq_cooling_get_requested_power()
202 res = dfc->power_ops->get_real_power(df, power, freq, voltage); in devfreq_cooling_get_requested_power()
219 perf_idx = get_perf_idx(dfc->em_pd, freq / 1000); in devfreq_cooling_get_requested_power()
235 trace_thermal_power_devfreq_get_power(cdev, &status, freq, *power); in devfreq_cooling_get_requested_power()
266 unsigned long freq, em_power_mw; in devfreq_cooling_power2state() local
274 freq = status.current_frequency; in devfreq_cooling_power2state()
302 trace_thermal_power_devfreq_limit(cdev, freq, *state, power); in devfreq_cooling_power2state()
322 unsigned long freq; in devfreq_cooling_gen_tables() local
330 for (i = 0, freq = ULONG_MAX; i < num_opps; i++, freq--) { in devfreq_cooling_gen_tables()
333 opp = dev_pm_opp_find_freq_floor(dev, &freq); in devfreq_cooling_gen_tables()
340 dfc->freq_table[i] = freq; in devfreq_cooling_gen_tables()