Lines Matching +full:8 +full:m
67 static const char rx_list_name[][8] = {
186 static void can_print_rcvlist(struct seq_file *m, struct hlist_head *rx_list, in can_print_rcvlist() argument
193 " %-5s %08x %08x %pK %pK %8ld %s\n" : in can_print_rcvlist()
194 " %-5s %03x %08x %pK %pK %8ld %s\n"; in can_print_rcvlist()
196 seq_printf(m, fmt, DNAME(dev), r->can_id, r->mask, in can_print_rcvlist()
201 static void can_print_recv_banner(struct seq_file *m) in can_print_recv_banner() argument
207 seq_puts(m, " device can_id can_mask function" in can_print_recv_banner()
211 static int can_stats_proc_show(struct seq_file *m, void *v) in can_stats_proc_show() argument
213 struct net *net = m->private; in can_stats_proc_show()
217 seq_putc(m, '\n'); in can_stats_proc_show()
218 seq_printf(m, " %8ld transmitted frames (TXF)\n", can_stats->tx_frames); in can_stats_proc_show()
219 seq_printf(m, " %8ld received frames (RXF)\n", can_stats->rx_frames); in can_stats_proc_show()
220 seq_printf(m, " %8ld matched frames (RXMF)\n", can_stats->matches); in can_stats_proc_show()
222 seq_putc(m, '\n'); in can_stats_proc_show()
225 seq_printf(m, " %8ld %% total match ratio (RXMR)\n", in can_stats_proc_show()
228 seq_printf(m, " %8ld frames/s total tx rate (TXR)\n", in can_stats_proc_show()
230 seq_printf(m, " %8ld frames/s total rx rate (RXR)\n", in can_stats_proc_show()
233 seq_putc(m, '\n'); in can_stats_proc_show()
235 seq_printf(m, " %8ld %% current match ratio (CRXMR)\n", in can_stats_proc_show()
238 seq_printf(m, " %8ld frames/s current tx rate (CTXR)\n", in can_stats_proc_show()
240 seq_printf(m, " %8ld frames/s current rx rate (CRXR)\n", in can_stats_proc_show()
243 seq_putc(m, '\n'); in can_stats_proc_show()
245 seq_printf(m, " %8ld %% max match ratio (MRXMR)\n", in can_stats_proc_show()
248 seq_printf(m, " %8ld frames/s max tx rate (MTXR)\n", in can_stats_proc_show()
250 seq_printf(m, " %8ld frames/s max rx rate (MRXR)\n", in can_stats_proc_show()
253 seq_putc(m, '\n'); in can_stats_proc_show()
256 seq_printf(m, " %8ld current receive list entries (CRCV)\n", in can_stats_proc_show()
258 seq_printf(m, " %8ld maximum receive list entries (MRCV)\n", in can_stats_proc_show()
262 seq_printf(m, "\n %8ld statistic resets (STR)\n", in can_stats_proc_show()
266 seq_printf(m, " %8ld user statistic resets (USTR)\n", in can_stats_proc_show()
269 seq_putc(m, '\n'); in can_stats_proc_show()
273 static int can_reset_stats_proc_show(struct seq_file *m, void *v) in can_reset_stats_proc_show() argument
275 struct net *net = m->private; in can_reset_stats_proc_show()
282 seq_printf(m, "Scheduled statistic reset #%ld.\n", in can_reset_stats_proc_show()
288 seq_printf(m, "Performed statistic reset #%ld.\n", in can_reset_stats_proc_show()
294 static int can_version_proc_show(struct seq_file *m, void *v) in can_version_proc_show() argument
296 seq_printf(m, "%s\n", CAN_VERSION_STRING); in can_version_proc_show()
300 static inline void can_rcvlist_proc_show_one(struct seq_file *m, int idx, in can_rcvlist_proc_show_one() argument
305 can_print_recv_banner(m); in can_rcvlist_proc_show_one()
306 can_print_rcvlist(m, &d->rx[idx], dev); in can_rcvlist_proc_show_one()
308 seq_printf(m, " (%s: no entry)\n", DNAME(dev)); in can_rcvlist_proc_show_one()
312 static int can_rcvlist_proc_show(struct seq_file *m, void *v) in can_rcvlist_proc_show() argument
315 int idx = (int)(long)PDE_DATA(m->file->f_inode); in can_rcvlist_proc_show()
318 struct net *net = m->private; in can_rcvlist_proc_show()
320 seq_printf(m, "\nreceive list '%s':\n", rx_list_name[idx]); in can_rcvlist_proc_show()
326 can_rcvlist_proc_show_one(m, idx, NULL, d); in can_rcvlist_proc_show()
331 can_rcvlist_proc_show_one(m, idx, dev, dev->ml_priv); in can_rcvlist_proc_show()
336 seq_putc(m, '\n'); in can_rcvlist_proc_show()
340 static inline void can_rcvlist_proc_show_array(struct seq_file *m, in can_rcvlist_proc_show_array() argument
356 can_print_recv_banner(m); in can_rcvlist_proc_show_array()
359 can_print_rcvlist(m, &rcv_array[i], dev); in can_rcvlist_proc_show_array()
362 seq_printf(m, " (%s: no entry)\n", DNAME(dev)); in can_rcvlist_proc_show_array()
365 static int can_rcvlist_sff_proc_show(struct seq_file *m, void *v) in can_rcvlist_sff_proc_show() argument
369 struct net *net = m->private; in can_rcvlist_sff_proc_show()
372 seq_puts(m, "\nreceive list 'rx_sff':\n"); in can_rcvlist_sff_proc_show()
378 can_rcvlist_proc_show_array(m, NULL, d->rx_sff, ARRAY_SIZE(d->rx_sff)); in can_rcvlist_sff_proc_show()
384 can_rcvlist_proc_show_array(m, dev, d->rx_sff, in can_rcvlist_sff_proc_show()
391 seq_putc(m, '\n'); in can_rcvlist_sff_proc_show()
395 static int can_rcvlist_eff_proc_show(struct seq_file *m, void *v) in can_rcvlist_eff_proc_show() argument
399 struct net *net = m->private; in can_rcvlist_eff_proc_show()
402 seq_puts(m, "\nreceive list 'rx_eff':\n"); in can_rcvlist_eff_proc_show()
408 can_rcvlist_proc_show_array(m, NULL, d->rx_eff, ARRAY_SIZE(d->rx_eff)); in can_rcvlist_eff_proc_show()
414 can_rcvlist_proc_show_array(m, dev, d->rx_eff, in can_rcvlist_eff_proc_show()
421 seq_putc(m, '\n'); in can_rcvlist_eff_proc_show()