Lines Matching refs:ldev
53 static inline void ladder_do_selection(struct ladder_device *ldev, in ladder_do_selection() argument
56 ldev->states[old_idx].stats.promotion_count = 0; in ladder_do_selection()
57 ldev->states[old_idx].stats.demotion_count = 0; in ladder_do_selection()
58 ldev->last_state_idx = new_idx; in ladder_do_selection()
69 struct ladder_device *ldev = this_cpu_ptr(&ladder_devices); in ladder_select_state() local
71 int last_residency, last_idx = ldev->last_state_idx; in ladder_select_state()
76 ladder_do_selection(ldev, last_idx, 0); in ladder_select_state()
80 last_state = &ldev->states[last_idx]; in ladder_select_state()
98 ladder_do_selection(ldev, last_idx, last_idx + 1); in ladder_select_state()
114 ladder_do_selection(ldev, last_idx, i); in ladder_select_state()
123 ladder_do_selection(ldev, last_idx, last_idx - 1); in ladder_select_state()
141 struct ladder_device *ldev = &per_cpu(ladder_devices, dev->cpu); in ladder_enable_device() local
145 ldev->last_state_idx = CPUIDLE_DRIVER_STATE_START; in ladder_enable_device()
149 lstate = &ldev->states[i]; in ladder_enable_device()
173 struct ladder_device *ldev = this_cpu_ptr(&ladder_devices); in ladder_reflect() local
175 ldev->last_state_idx = index; in ladder_reflect()