Lines Matching refs:seq
425 #define ac6_seq_private(seq) ((struct ac6_iter_state *)(seq)->private) argument
427 static inline struct ifacaddr6 *ac6_get_first(struct seq_file *seq) in ac6_get_first() argument
430 struct ac6_iter_state *state = ac6_seq_private(seq); in ac6_get_first()
431 struct net *net = seq_file_net(seq); in ac6_get_first()
451 static struct ifacaddr6 *ac6_get_next(struct seq_file *seq, struct ifacaddr6 *im) in ac6_get_next() argument
453 struct ac6_iter_state *state = ac6_seq_private(seq); in ac6_get_next()
475 static struct ifacaddr6 *ac6_get_idx(struct seq_file *seq, loff_t pos) in ac6_get_idx() argument
477 struct ifacaddr6 *im = ac6_get_first(seq); in ac6_get_idx()
479 while (pos && (im = ac6_get_next(seq, im)) != NULL) in ac6_get_idx()
484 static void *ac6_seq_start(struct seq_file *seq, loff_t *pos) in ac6_seq_start() argument
488 return ac6_get_idx(seq, *pos); in ac6_seq_start()
491 static void *ac6_seq_next(struct seq_file *seq, void *v, loff_t *pos) in ac6_seq_next() argument
494 im = ac6_get_next(seq, v); in ac6_seq_next()
499 static void ac6_seq_stop(struct seq_file *seq, void *v) in ac6_seq_stop() argument
502 struct ac6_iter_state *state = ac6_seq_private(seq); in ac6_seq_stop()
510 static int ac6_seq_show(struct seq_file *seq, void *v) in ac6_seq_show() argument
513 struct ac6_iter_state *state = ac6_seq_private(seq); in ac6_seq_show()
515 seq_printf(seq, "%-4d %-15s %pi6 %5d\n", in ac6_seq_show()