Lines Matching refs:last_state
68 struct ladder_device_state *last_state;
78 last_state = &ldev->states[last_idx];
83 last_residency = last_state->threshold.promotion_time + 1;
87 last_residency > last_state->threshold.promotion_time &&
89 last_state->stats.promotion_count++;
90 last_state->stats.demotion_count = 0;
91 if (last_state->stats.promotion_count >= last_state->threshold.promotion_count) {
111 last_residency < last_state->threshold.demotion_time) {
112 last_state->stats.demotion_count++;
113 last_state->stats.promotion_count = 0;
114 if (last_state->stats.demotion_count >= last_state->threshold.demotion_count) {