Lines Matching refs:pos

10 static void *dev_seq_from_index(struct seq_file *seq, loff_t *pos)  in dev_seq_from_index()  argument
12 unsigned long ifindex = *pos; in dev_seq_from_index()
16 *pos = dev->ifindex; in dev_seq_from_index()
22 static void *dev_seq_start(struct seq_file *seq, loff_t *pos) in dev_seq_start() argument
26 if (!*pos) in dev_seq_start()
29 return dev_seq_from_index(seq, pos); in dev_seq_start()
32 static void *dev_seq_next(struct seq_file *seq, void *v, loff_t *pos) in dev_seq_next() argument
34 ++*pos; in dev_seq_next()
35 return dev_seq_from_index(seq, pos); in dev_seq_next()
95 static struct softnet_data *softnet_get_online(loff_t *pos) in softnet_get_online() argument
99 while (*pos < nr_cpu_ids) in softnet_get_online()
100 if (cpu_online(*pos)) { in softnet_get_online()
101 sd = &per_cpu(softnet_data, *pos); in softnet_get_online()
104 ++*pos; in softnet_get_online()
108 static void *softnet_seq_start(struct seq_file *seq, loff_t *pos) in softnet_seq_start() argument
110 return softnet_get_online(pos); in softnet_seq_start()
113 static void *softnet_seq_next(struct seq_file *seq, void *v, loff_t *pos) in softnet_seq_next() argument
115 ++*pos; in softnet_seq_next()
116 return softnet_get_online(pos); in softnet_seq_next()
172 static void *ptype_get_idx(struct seq_file *seq, loff_t pos) in ptype_get_idx() argument
183 if (i == pos) in ptype_get_idx()
190 if (i == pos) in ptype_get_idx()
196 if (i == pos) in ptype_get_idx()
203 if (i == pos) in ptype_get_idx()
211 static void *ptype_seq_start(struct seq_file *seq, loff_t *pos) in ptype_seq_start() argument
215 return *pos ? ptype_get_idx(seq, *pos - 1) : SEQ_START_TOKEN; in ptype_seq_start()
218 static void *ptype_seq_next(struct seq_file *seq, void *v, loff_t *pos) in ptype_seq_next() argument
226 ++*pos; in ptype_seq_next()