Lines Matching defs:dev
46 * @dev: the CPU
50 struct cpuidle_device *dev,
53 s64 latency_req = cpuidle_governor_latency_req(dev->cpu);
60 if (dev->poll_limit_ns == 0)
64 if (dev->last_state_idx == 0) {
66 if (dev->poll_time_limit == true)
79 static void adjust_poll_limit(struct cpuidle_device *dev, u64 block_ns)
86 if (block_ns > dev->poll_limit_ns && block_ns <= guest_halt_poll_ns) {
87 val = dev->poll_limit_ns * guest_halt_poll_grow;
94 trace_guest_halt_poll_ns_grow(val, dev->poll_limit_ns);
95 dev->poll_limit_ns = val;
100 val = dev->poll_limit_ns;
105 trace_guest_halt_poll_ns_shrink(val, dev->poll_limit_ns);
106 dev->poll_limit_ns = val;
112 * @dev: the CPU
115 static void haltpoll_reflect(struct cpuidle_device *dev, int index)
117 dev->last_state_idx = index;
120 adjust_poll_limit(dev, dev->last_residency_ns);
126 * @dev: the CPU
129 struct cpuidle_device *dev)
131 dev->poll_limit_ns = 0;