Lines Matching refs:pos
15 static inline struct net_device *dev_from_same_bucket(struct seq_file *seq, loff_t *pos) in dev_from_same_bucket() argument
20 unsigned int count = 0, offset = get_offset(*pos); in dev_from_same_bucket()
22 h = &net->dev_name_head[get_bucket(*pos)]; in dev_from_same_bucket()
31 static inline struct net_device *dev_from_bucket(struct seq_file *seq, loff_t *pos) in dev_from_bucket() argument
37 dev = dev_from_same_bucket(seq, pos); in dev_from_bucket()
41 bucket = get_bucket(*pos) + 1; in dev_from_bucket()
42 *pos = set_bucket_offset(bucket, 1); in dev_from_bucket()
52 static void *dev_seq_start(struct seq_file *seq, loff_t *pos) in dev_seq_start() argument
56 if (!*pos) in dev_seq_start()
59 if (get_bucket(*pos) >= NETDEV_HASHENTRIES) in dev_seq_start()
62 return dev_from_bucket(seq, pos); in dev_seq_start()
65 static void *dev_seq_next(struct seq_file *seq, void *v, loff_t *pos) in dev_seq_next() argument
67 ++*pos; in dev_seq_next()
68 return dev_from_bucket(seq, pos); in dev_seq_next()
118 static struct softnet_data *softnet_get_online(loff_t *pos) in softnet_get_online() argument
122 while (*pos < nr_cpu_ids) in softnet_get_online()
123 if (cpu_online(*pos)) { in softnet_get_online()
124 sd = &per_cpu(softnet_data, *pos); in softnet_get_online()
127 ++*pos; in softnet_get_online()
131 static void *softnet_seq_start(struct seq_file *seq, loff_t *pos) in softnet_seq_start() argument
133 return softnet_get_online(pos); in softnet_seq_start()
136 static void *softnet_seq_next(struct seq_file *seq, void *v, loff_t *pos) in softnet_seq_next() argument
138 ++*pos; in softnet_seq_next()
139 return softnet_get_online(pos); in softnet_seq_next()
210 static void *ptype_get_idx(loff_t pos) in ptype_get_idx() argument
217 if (i == pos) in ptype_get_idx()
224 if (i == pos) in ptype_get_idx()
232 static void *ptype_seq_start(struct seq_file *seq, loff_t *pos) in ptype_seq_start() argument
236 return *pos ? ptype_get_idx(*pos - 1) : SEQ_START_TOKEN; in ptype_seq_start()
239 static void *ptype_seq_next(struct seq_file *seq, void *v, loff_t *pos) in ptype_seq_next() argument
245 ++*pos; in ptype_seq_next()