Lines Matching refs:pos
16 static inline struct net_device *dev_from_same_bucket(struct seq_file *seq, loff_t *pos) in dev_from_same_bucket() argument
21 unsigned int count = 0, offset = get_offset(*pos); in dev_from_same_bucket()
23 h = &net->dev_name_head[get_bucket(*pos)]; in dev_from_same_bucket()
32 static inline struct net_device *dev_from_bucket(struct seq_file *seq, loff_t *pos) in dev_from_bucket() argument
38 dev = dev_from_same_bucket(seq, pos); in dev_from_bucket()
42 bucket = get_bucket(*pos) + 1; in dev_from_bucket()
43 *pos = set_bucket_offset(bucket, 1); in dev_from_bucket()
53 static void *dev_seq_start(struct seq_file *seq, loff_t *pos) in dev_seq_start() argument
57 if (!*pos) in dev_seq_start()
60 if (get_bucket(*pos) >= NETDEV_HASHENTRIES) in dev_seq_start()
63 return dev_from_bucket(seq, pos); in dev_seq_start()
66 static void *dev_seq_next(struct seq_file *seq, void *v, loff_t *pos) in dev_seq_next() argument
68 ++*pos; in dev_seq_next()
69 return dev_from_bucket(seq, pos); in dev_seq_next()
119 static struct softnet_data *softnet_get_online(loff_t *pos) in softnet_get_online() argument
123 while (*pos < nr_cpu_ids) in softnet_get_online()
124 if (cpu_online(*pos)) { in softnet_get_online()
125 sd = &per_cpu(softnet_data, *pos); in softnet_get_online()
128 ++*pos; in softnet_get_online()
132 static void *softnet_seq_start(struct seq_file *seq, loff_t *pos) in softnet_seq_start() argument
134 return softnet_get_online(pos); in softnet_seq_start()
137 static void *softnet_seq_next(struct seq_file *seq, void *v, loff_t *pos) in softnet_seq_next() argument
139 ++*pos; in softnet_seq_next()
140 return softnet_get_online(pos); in softnet_seq_next()
185 static void *ptype_get_idx(struct seq_file *seq, loff_t pos) in ptype_get_idx() argument
196 if (i == pos) in ptype_get_idx()
203 if (i == pos) in ptype_get_idx()
210 if (i == pos) in ptype_get_idx()
218 static void *ptype_seq_start(struct seq_file *seq, loff_t *pos) in ptype_seq_start() argument
222 return *pos ? ptype_get_idx(seq, *pos - 1) : SEQ_START_TOKEN; in ptype_seq_start()
225 static void *ptype_seq_next(struct seq_file *seq, void *v, loff_t *pos) in ptype_seq_next() argument
232 ++*pos; in ptype_seq_next()