Lines Matching refs:seq
483 #define ac6_seq_private(seq) ((struct ac6_iter_state *)(seq)->private) argument
485 static inline struct ifacaddr6 *ac6_get_first(struct seq_file *seq) in ac6_get_first() argument
488 struct ac6_iter_state *state = ac6_seq_private(seq); in ac6_get_first()
489 struct net *net = seq_file_net(seq); in ac6_get_first()
508 static struct ifacaddr6 *ac6_get_next(struct seq_file *seq, struct ifacaddr6 *im) in ac6_get_next() argument
510 struct ac6_iter_state *state = ac6_seq_private(seq); in ac6_get_next()
531 static struct ifacaddr6 *ac6_get_idx(struct seq_file *seq, loff_t pos) in ac6_get_idx() argument
533 struct ifacaddr6 *im = ac6_get_first(seq); in ac6_get_idx()
535 while (pos && (im = ac6_get_next(seq, im)) != NULL) in ac6_get_idx()
540 static void *ac6_seq_start(struct seq_file *seq, loff_t *pos) in ac6_seq_start() argument
544 return ac6_get_idx(seq, *pos); in ac6_seq_start()
547 static void *ac6_seq_next(struct seq_file *seq, void *v, loff_t *pos) in ac6_seq_next() argument
549 struct ifacaddr6 *im = ac6_get_next(seq, v); in ac6_seq_next()
555 static void ac6_seq_stop(struct seq_file *seq, void *v) in ac6_seq_stop() argument
558 struct ac6_iter_state *state = ac6_seq_private(seq); in ac6_seq_stop()
567 static int ac6_seq_show(struct seq_file *seq, void *v) in ac6_seq_show() argument
570 struct ac6_iter_state *state = ac6_seq_private(seq); in ac6_seq_show()
572 seq_printf(seq, "%-4d %-15s %pi6 %5d\n", in ac6_seq_show()