Lines Matching defs:state_idx
245 genpd->states[genpd->state_idx].idle_time += delta;
546 unsigned int state_idx = genpd->state_idx;
562 timed = timed && genpd->gd && !genpd->states[state_idx].fwnode;
577 if (elapsed_ns <= genpd->states[state_idx].power_on_latency_ns)
580 genpd->states[state_idx].power_on_latency_ns = elapsed_ns;
597 unsigned int state_idx = genpd->state_idx;
613 timed = timed && genpd->gd && !genpd->states[state_idx].fwnode;
628 if (elapsed_ns <= genpd->states[state_idx].power_off_latency_ns)
631 genpd->states[state_idx].power_off_latency_ns = elapsed_ns;
703 if (child->state_idx < child->state_count - 1)
727 genpd->state_idx = 0;
735 genpd->states[genpd->state_idx].rejected++;
741 genpd->states[genpd->state_idx].usage++;
1137 if (child->state_idx < child->state_count - 1)
1142 genpd->state_idx = genpd->state_count - 1;
3134 status_lookup[genpd->status], genpd->state_idx);
3215 genpd->state_idx);
3256 if (genpd->status == GENPD_STATE_OFF && genpd->state_idx == i) {
3311 if (genpd->status == GENPD_STATE_OFF && genpd->state_idx == i) {