Lines Matching refs:i
70 int i; in em_debug_create_pd() local
83 for (i = 0; i < dev->em_pd->nr_perf_states; i++) in em_debug_create_pd()
84 em_debug_create_ps(&dev->em_pd->table[i], d); in em_debug_create_pd()
112 int i, ret; in em_create_perf_table() local
120 for (i = 0, freq = 0; i < nr_states; i++, freq++) { 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()
159 for (i = nr_states - 1; i >= 0; i--) { 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()
246 int i; in em_cpufreq_update_efficiencies() local
259 for (i = 0; i < pd->nr_perf_states; i++) { 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()