Lines Matching defs:drv
62 * @drv: cpuidle driver
66 static int ladder_select_state(struct cpuidle_driver *drv,
72 int first_idx = drv->states[0].flags & CPUIDLE_FLAG_POLLING ? 1 : 0;
84 last_residency = dev->last_residency_ns - drv->states[last_idx].exit_latency_ns;
87 if (last_idx < drv->state_count - 1 &&
90 drv->states[last_idx + 1].exit_latency_ns <= latency_req) {
102 drv->states[last_idx].exit_latency_ns > latency_req)) {
106 if (drv->states[i].exit_latency_ns <= latency_req)
129 * @drv: cpuidle driver
132 static int ladder_enable_device(struct cpuidle_driver *drv,
136 int first_idx = drv->states[0].flags & CPUIDLE_FLAG_POLLING ? 1 : 0;
143 for (i = first_idx; i < drv->state_count; i++) {
144 state = &drv->states[i];
153 if (i < drv->state_count - 1)