Lines Matching refs:entered_state
204 int entered_state; in cpuidle_enter_state() local
249 entered_state = target_state->enter(dev, drv, index); in cpuidle_enter_state()
257 trace_android_vh_cpu_idle_exit(entered_state, dev); in cpuidle_enter_state()
272 if (entered_state >= 0) { in cpuidle_enter_state()
273 s64 diff, delay = drv->states[entered_state].exit_latency_ns; in cpuidle_enter_state()
284 dev->states_usage[entered_state].time_ns += diff; in cpuidle_enter_state()
285 dev->states_usage[entered_state].usage++; in cpuidle_enter_state()
287 if (diff < drv->states[entered_state].target_residency_ns) { in cpuidle_enter_state()
288 for (i = entered_state - 1; i >= 0; i--) { in cpuidle_enter_state()
293 dev->states_usage[entered_state].above++; in cpuidle_enter_state()
297 for (i = entered_state + 1; i < drv->state_count; i++) { in cpuidle_enter_state()
306 dev->states_usage[entered_state].below++; in cpuidle_enter_state()
316 return entered_state; in cpuidle_enter_state()