Lines Matching defs:pos
3261 static struct sock *unix_from_bucket(struct seq_file *seq, loff_t *pos)
3263 unsigned long offset = get_offset(*pos);
3264 unsigned long bucket = get_bucket(*pos);
3277 static struct sock *unix_get_first(struct seq_file *seq, loff_t *pos)
3279 unsigned long bucket = get_bucket(*pos);
3286 sk = unix_from_bucket(seq, pos);
3292 *pos = set_bucket_offset(++bucket, 1);
3299 loff_t *pos)
3301 unsigned long bucket = get_bucket(*pos);
3310 *pos = set_bucket_offset(++bucket, 1);
3312 return unix_get_first(seq, pos);
3315 static void *unix_seq_start(struct seq_file *seq, loff_t *pos)
3317 if (!*pos)
3320 return unix_get_first(seq, pos);
3323 static void *unix_seq_next(struct seq_file *seq, void *v, loff_t *pos)
3325 ++*pos;
3328 return unix_get_first(seq, pos);
3330 return unix_get_next(seq, v, pos);
3471 loff_t *pos)
3479 *pos = set_bucket_offset(get_bucket(*pos) + 1, 1);
3486 sk = unix_get_first(seq, pos);
3505 static void *bpf_iter_unix_seq_start(struct seq_file *seq, loff_t *pos)
3507 if (!*pos)
3513 return bpf_iter_unix_batch(seq, pos);
3516 static void *bpf_iter_unix_seq_next(struct seq_file *seq, void *v, loff_t *pos)
3528 ++*pos;
3533 sk = bpf_iter_unix_batch(seq, pos);