Lines Matching defs:state_idx
273 int state_idx = genpd->state_count - 1;
285 while (state_idx >= 0) {
286 if (next_wakeup_allows_state(genpd, state_idx, now)) {
290 state_idx--;
293 if (state_idx < 0) {
294 state_idx = 0;
301 genpd->state_idx = gd->cached_power_down_state_idx;
326 while (!__default_power_down_ok(pd, state_idx)) {
327 if (state_idx == 0) {
331 state_idx--;
335 genpd->state_idx = state_idx;
336 gd->cached_power_down_state_idx = genpd->state_idx;
390 i = genpd->state_idx;
394 genpd->state_idx = i;