Lines Matching defs:pos
141 static void *c_start(struct seq_file *m, loff_t *pos)
143 if (*pos == 0) /* just in case, cpu 0 is not the first */
144 *pos = cpumask_first(cpu_online_mask);
146 *pos = cpumask_next(*pos - 1, cpu_online_mask);
147 if ((*pos) < nr_cpu_ids)
148 return &cpu_data(*pos);
152 static void *c_next(struct seq_file *m, void *v, loff_t *pos)
154 (*pos)++;
155 return c_start(m, pos);