Lines Matching refs:seq
18 static struct kcm_mux *kcm_get_first(struct seq_file *seq) in kcm_get_first() argument
20 struct net *net = seq_file_net(seq); in kcm_get_first()
35 static struct kcm_mux *kcm_get_idx(struct seq_file *seq, loff_t pos) in kcm_get_idx() argument
37 struct net *net = seq_file_net(seq); in kcm_get_idx()
49 static void *kcm_seq_next(struct seq_file *seq, void *v, loff_t *pos) in kcm_seq_next() argument
54 p = kcm_get_first(seq); in kcm_seq_next()
61 static void *kcm_seq_start(struct seq_file *seq, loff_t *pos) in kcm_seq_start() argument
69 return kcm_get_idx(seq, *pos - 1); in kcm_seq_start()
72 static void kcm_seq_stop(struct seq_file *seq, void *v) in kcm_seq_stop() argument
83 static void kcm_format_mux_header(struct seq_file *seq) in kcm_format_mux_header() argument
85 struct net *net = seq_file_net(seq); in kcm_format_mux_header()
88 seq_printf(seq, in kcm_format_mux_header()
92 seq_printf(seq, in kcm_format_mux_header()
106 seq_puts(seq, "\n"); in kcm_format_mux_header()
109 static void kcm_format_sock(struct kcm_sock *kcm, struct seq_file *seq, in kcm_format_sock() argument
112 seq_printf(seq, in kcm_format_sock()
125 seq_printf(seq, "Psck-%u ", kcm->tx_psock->index); in kcm_format_sock()
128 seq_puts(seq, "TxWait "); in kcm_format_sock()
131 seq_puts(seq, "WMore "); in kcm_format_sock()
134 seq_puts(seq, "RxWait "); in kcm_format_sock()
136 seq_puts(seq, "\n"); in kcm_format_sock()
139 static void kcm_format_psock(struct kcm_psock *psock, struct seq_file *seq, in kcm_format_psock() argument
142 seq_printf(seq, in kcm_format_psock()
155 seq_puts(seq, "Done "); in kcm_format_psock()
158 seq_puts(seq, "TxStop "); in kcm_format_psock()
161 seq_puts(seq, "RxStop "); in kcm_format_psock()
164 seq_printf(seq, "Rsvd-%d ", psock->tx_kcm->index); in kcm_format_psock()
169 seq_printf(seq, "RxWait=%u ", in kcm_format_psock()
172 seq_printf(seq, "RxWait "); in kcm_format_psock()
176 seq_puts(seq, "RxPause "); in kcm_format_psock()
179 seq_puts(seq, "RdyRx "); in kcm_format_psock()
182 seq_puts(seq, "\n"); in kcm_format_psock()
186 kcm_format_mux(struct kcm_mux *mux, loff_t idx, struct seq_file *seq) in kcm_format_mux() argument
193 seq_printf(seq, in kcm_format_mux()
202 seq_printf(seq, "KCMs: %d, Psocks %d\n", in kcm_format_mux()
209 kcm_format_sock(kcm, seq, i, &len); in kcm_format_mux()
214 kcm_format_psock(psock, seq, i, &len); in kcm_format_mux()
220 static int kcm_seq_show(struct seq_file *seq, void *v) in kcm_seq_show() argument
224 mux_state = seq->private; in kcm_seq_show()
227 kcm_format_mux_header(seq); in kcm_seq_show()
229 kcm_format_mux(v, mux_state->idx, seq); in kcm_seq_show()
242 static int kcm_stats_seq_show(struct seq_file *seq, void *v) in kcm_stats_seq_show() argument
249 struct net *net = seq->private; in kcm_stats_seq_show()
281 seq_printf(seq, in kcm_stats_seq_show()
294 seq_printf(seq, in kcm_stats_seq_show()
307 seq_printf(seq, in kcm_stats_seq_show()
326 seq_printf(seq, in kcm_stats_seq_show()