Lines Matching defs:drv
170 * @drv: struct cpuidle_driver for the platform
171 * @state: index of the target state in drv->states
175 bool cpuidle_state_is_coupled(struct cpuidle_driver *drv, int state)
177 return drv->states[state].flags & CPUIDLE_FLAG_COUPLED;
182 * @drv: struct cpuidle_driver for the platform
187 int cpuidle_coupled_state_verify(struct cpuidle_driver *drv)
191 for (i = drv->state_count - 1; i >= 0; i--) {
192 if (cpuidle_state_is_coupled(drv, i) &&
193 (drv->safe_state_index == i ||
194 drv->safe_state_index < 0 ||
195 drv->safe_state_index >= drv->state_count))
361 * @next_state: the index in drv->states of the requested state for this cpu
454 * @drv: struct cpuidle_driver for the platform
455 * @next_state: index of the requested state in drv->states
471 struct cpuidle_driver *drv, int next_state)
486 entered_state = cpuidle_enter_state(dev, drv,
487 drv->safe_state_index);
534 entered_state = cpuidle_enter_state(dev, drv,
535 drv->safe_state_index);
595 entered_state = cpuidle_enter_state(dev, drv, next_state);