Lines Matching refs:states
42 struct ladder_device_state states[CPUIDLE_STATE_MAX]; member
57 ldev->states[old_idx].stats.promotion_count = 0; in ladder_do_selection()
58 ldev->states[old_idx].stats.demotion_count = 0; in ladder_do_selection()
81 last_state = &ldev->states[last_idx]; in ladder_select_state()
83 last_residency = cpuidle_get_last_residency(dev) - drv->states[last_idx].exit_latency; in ladder_select_state()
87 !drv->states[last_idx + 1].disabled && in ladder_select_state()
90 drv->states[last_idx + 1].exit_latency <= latency_req) { in ladder_select_state()
101 (drv->states[last_idx].disabled || in ladder_select_state()
103 drv->states[last_idx].exit_latency > latency_req)) { in ladder_select_state()
107 if (drv->states[i].exit_latency <= latency_req) in ladder_select_state()
144 state = &drv->states[i]; in ladder_enable_device()
145 lstate = &ldev->states[i]; in ladder_enable_device()