Lines Matching defs:drv
63 * @drv: cpuidle driver
67 static int ladder_select_state(struct cpuidle_driver *drv,
73 int first_idx = drv->states[0].flags & CPUIDLE_FLAG_POLLING ? 1 : 0;
85 last_residency = dev->last_residency_ns - drv->states[last_idx].exit_latency_ns;
88 if (last_idx < drv->state_count - 1 &&
91 drv->states[last_idx + 1].exit_latency_ns <= latency_req) {
103 drv->states[last_idx].exit_latency_ns > latency_req)) {
107 if (drv->states[i].exit_latency_ns <= latency_req)
130 * @drv: cpuidle driver
133 static int ladder_enable_device(struct cpuidle_driver *drv,
137 int first_idx = drv->states[0].flags & CPUIDLE_FLAG_POLLING ? 1 : 0;
144 for (i = first_idx; i < drv->state_count; i++) {
145 state = &drv->states[i];
154 if (i < drv->state_count - 1)