Lines Matching refs:table
84 em_debug_create_ps(&dev->em_pd->table[i], d); in em_debug_create_pd()
111 struct em_perf_state *table; in em_create_perf_table() local
115 table = kcalloc(nr_states, sizeof(*table), GFP_KERNEL); in em_create_perf_table()
116 if (!table) in em_create_perf_table()
153 table[i].power = power; in em_create_perf_table()
154 table[i].frequency = prev_freq = freq; in em_create_perf_table()
158 fmax = (u64) table[nr_states - 1].frequency; in em_create_perf_table()
163 ret = cb->get_cost(dev, table[i].frequency, &cost); in em_create_perf_table()
170 power_res = table[i].power; in em_create_perf_table()
171 cost = div64_u64(fmax * power_res, table[i].frequency); in em_create_perf_table()
174 table[i].cost = cost; in em_create_perf_table()
176 if (table[i].cost >= prev_cost) { in em_create_perf_table()
177 table[i].flags = EM_PERF_STATE_INEFFICIENT; in em_create_perf_table()
179 table[i].frequency); in em_create_perf_table()
181 prev_cost = table[i].cost; in em_create_perf_table()
185 pd->table = table; in em_create_perf_table()
191 kfree(table); in em_create_perf_table()
243 struct em_perf_state *table; in em_cpufreq_update_efficiencies() local
257 table = pd->table; in em_cpufreq_update_efficiencies()
260 if (!(table[i].flags & EM_PERF_STATE_INEFFICIENT)) in em_cpufreq_update_efficiencies()
263 if (!cpufreq_table_set_inefficient(policy, table[i].frequency)) in em_cpufreq_update_efficiencies()
433 kfree(dev->em_pd->table); in em_dev_unregister_perf_domain()