Lines Matching refs:entered_state
215 int entered_state; in cpuidle_enter_state() local
267 entered_state = target_state->enter(dev, drv, index); in cpuidle_enter_state()
291 if (entered_state >= 0) { in cpuidle_enter_state()
292 s64 diff, delay = drv->states[entered_state].exit_latency_ns; in cpuidle_enter_state()
303 dev->states_usage[entered_state].time_ns += diff; in cpuidle_enter_state()
304 dev->states_usage[entered_state].usage++; in cpuidle_enter_state()
306 if (diff < drv->states[entered_state].target_residency_ns) { in cpuidle_enter_state()
307 for (i = entered_state - 1; i >= 0; i--) { in cpuidle_enter_state()
312 dev->states_usage[entered_state].above++; in cpuidle_enter_state()
313 trace_cpu_idle_miss(dev->cpu, entered_state, false); in cpuidle_enter_state()
317 for (i = entered_state + 1; i < drv->state_count; i++) { in cpuidle_enter_state()
326 dev->states_usage[entered_state].below++; in cpuidle_enter_state()
327 trace_cpu_idle_miss(dev->cpu, entered_state, true); in cpuidle_enter_state()
340 return entered_state; in cpuidle_enter_state()