Lines Matching refs:seq

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