Lines Matching refs:nr_states
218 struct em_perf_state *table, int nr_states) in em_init_performance() argument
234 fmax = (u64) table[nr_states - 1].frequency; in em_init_performance()
236 for (i = 0; i < nr_states; i++) in em_init_performance()
242 struct em_data_callback *cb, int nr_states, in em_compute_costs() argument
249 for (i = nr_states - 1; i >= 0; i--) { in em_compute_costs()
293 int nr_states) in em_dev_compute_costs() argument
295 return em_compute_costs(dev, table, NULL, nr_states, 0); in em_dev_compute_costs()
348 int nr_states = pd->nr_perf_states; in em_create_perf_table() local
352 for (i = 0, freq = 0; i < nr_states; i++, freq++) { in em_create_perf_table()
389 em_init_performance(dev, pd, table, nr_states); in em_create_perf_table()
391 ret = em_compute_costs(dev, table, cb, nr_states, flags); in em_create_perf_table()
398 static int em_create_pd(struct device *dev, int nr_states, in em_create_pd() argument
427 pd->nr_perf_states = nr_states; in em_create_pd()
558 int em_dev_register_perf_domain(struct device *dev, unsigned int nr_states, in em_dev_register_perf_domain() argument
566 if (!dev || !nr_states || !cb) in em_dev_register_perf_domain()
626 ret = em_create_pd(dev, nr_states, cb, cpus, flags); in em_dev_register_perf_domain()