Lines Matching refs:last_state
70 struct ladder_device_state *last_state;
82 last_state = &ldev->states[last_idx];
89 last_residency > last_state->threshold.promotion_time_ns &&
91 last_state->stats.promotion_count++;
92 last_state->stats.demotion_count = 0;
93 if (last_state->stats.promotion_count >= last_state->threshold.promotion_count) {
114 last_residency < last_state->threshold.demotion_time_ns) {
115 last_state->stats.demotion_count++;
116 last_state->stats.promotion_count = 0;
117 if (last_state->stats.demotion_count >= last_state->threshold.demotion_count) {