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()
67 struct ladder_device *ldev = &__get_cpu_var(ladder_devices); in ladder_select_state() local
69 int last_residency, last_idx = ldev->last_state_idx; in ladder_select_state()
74 ladder_do_selection(ldev, last_idx, 0); in ladder_select_state()
78 last_state = &ldev->states[last_idx]; in ladder_select_state()
92 ladder_do_selection(ldev, last_idx, last_idx + 1); in ladder_select_state()
106 ladder_do_selection(ldev, last_idx, i); in ladder_select_state()
115 ladder_do_selection(ldev, last_idx, last_idx - 1); in ladder_select_state()
131 struct ladder_device *ldev = &per_cpu(ladder_devices, dev->cpu); in ladder_enable_device() local
135 ldev->last_state_idx = CPUIDLE_DRIVER_STATE_START; in ladder_enable_device()
139 lstate = &ldev->states[i]; in ladder_enable_device()