Lines Matching defs:dev
45 * @dev: the CPU
49 struct cpuidle_device *dev,
52 s64 latency_req = cpuidle_governor_latency_req(dev->cpu);
59 if (dev->poll_limit_ns == 0)
63 if (dev->last_state_idx == 0) {
65 if (dev->poll_time_limit == true)
78 static void adjust_poll_limit(struct cpuidle_device *dev, u64 block_ns)
85 if (block_ns > dev->poll_limit_ns && block_ns <= guest_halt_poll_ns) {
86 val = dev->poll_limit_ns * guest_halt_poll_grow;
93 dev->poll_limit_ns = val;
98 val = dev->poll_limit_ns;
103 dev->poll_limit_ns = val;
109 * @dev: the CPU
112 static void haltpoll_reflect(struct cpuidle_device *dev, int index)
114 dev->last_state_idx = index;
117 adjust_poll_limit(dev, dev->last_residency_ns);
123 * @dev: the CPU
126 struct cpuidle_device *dev)
128 dev->poll_limit_ns = 0;