Lines Matching refs:em_pd
61 struct em_perf_domain *em_pd; member
101 if (dfc->em_pd) { in devfreq_cooling_set_cur_state()
103 freq = dfc->em_pd->table[perf_idx].frequency * 1000; 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
128 for (i = 0; i < em_pd->nr_perf_states; i++) { in get_perf_idx()
129 if (em_pd->table[i].frequency == freq) in get_perf_idx()
207 dfc->res_util = dfc->em_pd->table[state].power; in devfreq_cooling_get_requested_power()
219 perf_idx = get_perf_idx(dfc->em_pd, freq / 1000); in devfreq_cooling_get_requested_power()
228 *power = dfc->em_pd->table[perf_idx].power; in devfreq_cooling_get_requested_power()
254 *power = dfc->em_pd->table[perf_idx].power; in devfreq_cooling_state2power()
293 em_power_mw = dfc->em_pd->table[i].power; in devfreq_cooling_power2state()
387 dfc->em_pd = em; in of_devfreq_cooling_register_power()
395 num_opps = em_pd_nr_perf_states(dfc->em_pd); in of_devfreq_cooling_register_power()