Lines Matching refs:index

132 				struct cpuidle_device *dev, int index)  in enter_s2idle_proper()  argument
150 drv->states[index].enter_s2idle(dev, drv, index); in enter_s2idle_proper()
163 dev->states_usage[index].s2idle_time += ktime_us_delta(time_end, time_start); in enter_s2idle_proper()
164 dev->states_usage[index].s2idle_usage++; in enter_s2idle_proper()
177 int index; in cpuidle_enter_s2idle() local
184 index = find_deepest_state(drv, dev, UINT_MAX, 0, true); in cpuidle_enter_s2idle()
185 if (index > 0) in cpuidle_enter_s2idle()
186 enter_s2idle_proper(drv, dev, index); in cpuidle_enter_s2idle()
188 return index; in cpuidle_enter_s2idle()
199 int index) in cpuidle_enter_state() argument
203 struct cpuidle_state *target_state = &drv->states[index]; in cpuidle_enter_state()
214 index = find_deepest_state(drv, dev, target_state->exit_latency, in cpuidle_enter_state()
216 if (index < 0) { in cpuidle_enter_state()
220 target_state = &drv->states[index]; in cpuidle_enter_state()
227 trace_cpu_idle_rcuidle(index, dev->cpu); in cpuidle_enter_state()
231 entered_state = target_state->enter(dev, drv, index); in cpuidle_enter_state()
248 if (!cpuidle_state_is_coupled(drv, index)) in cpuidle_enter_state()
301 int index) in cpuidle_enter() argument
303 if (cpuidle_state_is_coupled(drv, index)) in cpuidle_enter()
304 return cpuidle_enter_state_coupled(dev, drv, index); in cpuidle_enter()
305 return cpuidle_enter_state(dev, drv, index); in cpuidle_enter()
316 void cpuidle_reflect(struct cpuidle_device *dev, int index) in cpuidle_reflect() argument
318 if (cpuidle_curr_governor->reflect && index >= 0) in cpuidle_reflect()
319 cpuidle_curr_governor->reflect(dev, index); in cpuidle_reflect()