Lines Matching refs:iter
286 struct timer_list_iter *iter = v; in timer_list_show() local
288 if (iter->cpu == -1 && !iter->second_pass) in timer_list_show()
289 timer_list_header(m, iter->now); in timer_list_show()
290 else if (!iter->second_pass) in timer_list_show()
291 print_cpu(m, iter->cpu, iter->now); in timer_list_show()
293 else if (iter->cpu == -1 && iter->second_pass) in timer_list_show()
296 print_tickdevice(m, tick_get_device(iter->cpu), iter->cpu); in timer_list_show()
301 static void *move_iter(struct timer_list_iter *iter, loff_t offset) in move_iter() argument
304 iter->cpu = cpumask_next(iter->cpu, cpu_online_mask); in move_iter()
305 if (iter->cpu >= nr_cpu_ids) { in move_iter()
307 if (!iter->second_pass) { in move_iter()
308 iter->cpu = -1; in move_iter()
309 iter->second_pass = true; in move_iter()
317 return iter; in move_iter()
322 struct timer_list_iter *iter = file->private; in timer_list_start() local
325 iter->now = ktime_to_ns(ktime_get()); in timer_list_start()
326 iter->cpu = -1; in timer_list_start()
327 iter->second_pass = false; in timer_list_start()
328 return move_iter(iter, *offset); in timer_list_start()
333 struct timer_list_iter *iter = file->private; in timer_list_next() local
335 return move_iter(iter, 1); in timer_list_next()