Lines Matching +full:8 +full:m
68 static const char rx_list_name[][8] = {
188 static void can_print_rcvlist(struct seq_file *m, struct hlist_head *rx_list, in can_print_rcvlist() argument
195 " %-5s %08x %08x %pK %pK %8ld %s\n" : in can_print_rcvlist()
196 " %-5s %03x %08x %pK %pK %8ld %s\n"; in can_print_rcvlist()
198 seq_printf(m, fmt, DNAME(dev), r->can_id, r->mask, in can_print_rcvlist()
203 static void can_print_recv_banner(struct seq_file *m) in can_print_recv_banner() argument
210 …seq_puts(m, " device can_id can_mask function userdata matches ident\n"); in can_print_recv_banner()
212 seq_puts(m, " device can_id can_mask function userdata matches ident\n"); in can_print_recv_banner()
215 static int can_stats_proc_show(struct seq_file *m, void *v) in can_stats_proc_show() argument
217 struct net *net = m->private; in can_stats_proc_show()
221 seq_putc(m, '\n'); in can_stats_proc_show()
222 seq_printf(m, " %8ld transmitted frames (TXF)\n", in can_stats_proc_show()
224 seq_printf(m, " %8ld received frames (RXF)\n", in can_stats_proc_show()
226 seq_printf(m, " %8ld matched frames (RXMF)\n", in can_stats_proc_show()
229 seq_putc(m, '\n'); in can_stats_proc_show()
232 seq_printf(m, " %8ld %% total match ratio (RXMR)\n", in can_stats_proc_show()
235 seq_printf(m, " %8ld frames/s total tx rate (TXR)\n", in can_stats_proc_show()
237 seq_printf(m, " %8ld frames/s total rx rate (RXR)\n", in can_stats_proc_show()
240 seq_putc(m, '\n'); in can_stats_proc_show()
242 seq_printf(m, " %8ld %% current match ratio (CRXMR)\n", in can_stats_proc_show()
245 seq_printf(m, " %8ld frames/s current tx rate (CTXR)\n", in can_stats_proc_show()
247 seq_printf(m, " %8ld frames/s current rx rate (CRXR)\n", in can_stats_proc_show()
250 seq_putc(m, '\n'); in can_stats_proc_show()
252 seq_printf(m, " %8ld %% max match ratio (MRXMR)\n", in can_stats_proc_show()
255 seq_printf(m, " %8ld frames/s max tx rate (MTXR)\n", in can_stats_proc_show()
257 seq_printf(m, " %8ld frames/s max rx rate (MRXR)\n", in can_stats_proc_show()
260 seq_putc(m, '\n'); in can_stats_proc_show()
263 seq_printf(m, " %8ld current receive list entries (CRCV)\n", in can_stats_proc_show()
265 seq_printf(m, " %8ld maximum receive list entries (MRCV)\n", in can_stats_proc_show()
269 seq_printf(m, "\n %8ld statistic resets (STR)\n", in can_stats_proc_show()
273 seq_printf(m, " %8ld user statistic resets (USTR)\n", in can_stats_proc_show()
276 seq_putc(m, '\n'); in can_stats_proc_show()
280 static int can_reset_stats_proc_show(struct seq_file *m, void *v) in can_reset_stats_proc_show() argument
282 struct net *net = m->private; in can_reset_stats_proc_show()
289 seq_printf(m, "Scheduled statistic reset #%ld.\n", in can_reset_stats_proc_show()
295 seq_printf(m, "Performed statistic reset #%ld.\n", in can_reset_stats_proc_show()
301 static inline void can_rcvlist_proc_show_one(struct seq_file *m, int idx, in can_rcvlist_proc_show_one() argument
306 can_print_recv_banner(m); in can_rcvlist_proc_show_one()
307 can_print_rcvlist(m, &dev_rcv_lists->rx[idx], dev); in can_rcvlist_proc_show_one()
309 seq_printf(m, " (%s: no entry)\n", DNAME(dev)); in can_rcvlist_proc_show_one()
313 static int can_rcvlist_proc_show(struct seq_file *m, void *v) in can_rcvlist_proc_show() argument
316 int idx = (int)(long)pde_data(m->file->f_inode); in can_rcvlist_proc_show()
319 struct net *net = m->private; in can_rcvlist_proc_show()
321 seq_printf(m, "\nreceive list '%s':\n", rx_list_name[idx]); in can_rcvlist_proc_show()
327 can_rcvlist_proc_show_one(m, idx, NULL, dev_rcv_lists); in can_rcvlist_proc_show()
334 can_rcvlist_proc_show_one(m, idx, dev, in can_rcvlist_proc_show()
340 seq_putc(m, '\n'); in can_rcvlist_proc_show()
344 static inline void can_rcvlist_proc_show_array(struct seq_file *m, in can_rcvlist_proc_show_array() argument
360 can_print_recv_banner(m); in can_rcvlist_proc_show_array()
363 can_print_rcvlist(m, &rcv_array[i], dev); in can_rcvlist_proc_show_array()
366 seq_printf(m, " (%s: no entry)\n", DNAME(dev)); in can_rcvlist_proc_show_array()
369 static int can_rcvlist_sff_proc_show(struct seq_file *m, void *v) in can_rcvlist_sff_proc_show() argument
373 struct net *net = m->private; in can_rcvlist_sff_proc_show()
376 seq_puts(m, "\nreceive list 'rx_sff':\n"); in can_rcvlist_sff_proc_show()
382 can_rcvlist_proc_show_array(m, NULL, dev_rcv_lists->rx_sff, in can_rcvlist_sff_proc_show()
391 can_rcvlist_proc_show_array(m, dev, dev_rcv_lists->rx_sff, in can_rcvlist_sff_proc_show()
398 seq_putc(m, '\n'); in can_rcvlist_sff_proc_show()
402 static int can_rcvlist_eff_proc_show(struct seq_file *m, void *v) in can_rcvlist_eff_proc_show() argument
406 struct net *net = m->private; in can_rcvlist_eff_proc_show()
409 seq_puts(m, "\nreceive list 'rx_eff':\n"); in can_rcvlist_eff_proc_show()
415 can_rcvlist_proc_show_array(m, NULL, dev_rcv_lists->rx_eff, in can_rcvlist_eff_proc_show()
424 can_rcvlist_proc_show_array(m, dev, dev_rcv_lists->rx_eff, in can_rcvlist_eff_proc_show()
431 seq_putc(m, '\n'); in can_rcvlist_eff_proc_show()