Lines Matching refs:dev
132 struct cpuidle_device *dev) in call_cpuidle_s2idle() argument
137 return cpuidle_enter_s2idle(drv, dev); in call_cpuidle_s2idle()
140 static int call_cpuidle(struct cpuidle_driver *drv, struct cpuidle_device *dev, in call_cpuidle() argument
148 dev->last_residency_ns = 0; in call_cpuidle()
158 return cpuidle_enter(drv, dev, next_state); in call_cpuidle()
172 struct cpuidle_device *dev = cpuidle_get_device(); in cpuidle_idle_call() local
173 struct cpuidle_driver *drv = cpuidle_get_cpu_driver(dev); in cpuidle_idle_call()
191 if (cpuidle_not_available(drv, dev)) { in cpuidle_idle_call()
208 if (idle_should_enter_s2idle() || dev->forced_idle_latency_limit_ns) { in cpuidle_idle_call()
213 entered_state = call_cpuidle_s2idle(drv, dev); in cpuidle_idle_call()
219 max_latency_ns = dev->forced_idle_latency_limit_ns; in cpuidle_idle_call()
224 next_state = cpuidle_find_deepest_state(drv, dev, max_latency_ns); in cpuidle_idle_call()
225 call_cpuidle(drv, dev, next_state); in cpuidle_idle_call()
232 next_state = cpuidle_select(drv, dev, &stop_tick); in cpuidle_idle_call()
239 entered_state = call_cpuidle(drv, dev, next_state); in cpuidle_idle_call()
243 cpuidle_reflect(dev, entered_state); in cpuidle_idle_call()