Lines Matching refs:ldev
49 * @ldev: the ladder device
53 static inline void ladder_do_selection(struct ladder_device *ldev,
56 ldev->states[old_idx].stats.promotion_count = 0;
57 ldev->states[old_idx].stats.demotion_count = 0;
58 ldev->last_state_idx = new_idx;
67 struct ladder_device *ldev = &__get_cpu_var(ladder_devices);
69 int last_residency, last_idx = ldev->last_state_idx;
74 ladder_do_selection(ldev, last_idx, 0);
78 last_state = &ldev->states[last_idx];
92 ladder_do_selection(ldev, last_idx, last_idx + 1);
106 ladder_do_selection(ldev, last_idx, i);
115 ladder_do_selection(ldev, last_idx, last_idx - 1);
131 struct ladder_device *ldev = &per_cpu(ladder_devices, dev->cpu);
135 ldev->last_state_idx = CPUIDLE_DRIVER_STATE_START;
139 lstate = &ldev->states[i];