Lines Matching +full:8 +full:m
68 static const char rx_list_name[][8] = {
183 static void can_print_rcvlist(struct seq_file *m, struct hlist_head *rx_list, in can_print_rcvlist() argument
190 " %-5s %08x %08x %pK %pK %8ld %s\n" : in can_print_rcvlist()
191 " %-5s %03x %08x %pK %pK %8ld %s\n"; in can_print_rcvlist()
193 seq_printf(m, fmt, DNAME(dev), r->can_id, r->mask, in can_print_rcvlist()
198 static void can_print_recv_banner(struct seq_file *m) in can_print_recv_banner() argument
205 …seq_puts(m, " device can_id can_mask function userdata matches ident\n"); in can_print_recv_banner()
207 seq_puts(m, " device can_id can_mask function userdata matches ident\n"); in can_print_recv_banner()
210 static int can_stats_proc_show(struct seq_file *m, void *v) in can_stats_proc_show() argument
212 struct net *net = m->private; in can_stats_proc_show()
216 seq_putc(m, '\n'); in can_stats_proc_show()
217 seq_printf(m, " %8ld transmitted frames (TXF)\n", pkg_stats->tx_frames); in can_stats_proc_show()
218 seq_printf(m, " %8ld received frames (RXF)\n", pkg_stats->rx_frames); in can_stats_proc_show()
219 seq_printf(m, " %8ld matched frames (RXMF)\n", pkg_stats->matches); in can_stats_proc_show()
221 seq_putc(m, '\n'); in can_stats_proc_show()
224 seq_printf(m, " %8ld %% total match ratio (RXMR)\n", in can_stats_proc_show()
227 seq_printf(m, " %8ld frames/s total tx rate (TXR)\n", in can_stats_proc_show()
229 seq_printf(m, " %8ld frames/s total rx rate (RXR)\n", in can_stats_proc_show()
232 seq_putc(m, '\n'); in can_stats_proc_show()
234 seq_printf(m, " %8ld %% current match ratio (CRXMR)\n", in can_stats_proc_show()
237 seq_printf(m, " %8ld frames/s current tx rate (CTXR)\n", in can_stats_proc_show()
239 seq_printf(m, " %8ld frames/s current rx rate (CRXR)\n", in can_stats_proc_show()
242 seq_putc(m, '\n'); in can_stats_proc_show()
244 seq_printf(m, " %8ld %% max match ratio (MRXMR)\n", in can_stats_proc_show()
247 seq_printf(m, " %8ld frames/s max tx rate (MTXR)\n", in can_stats_proc_show()
249 seq_printf(m, " %8ld frames/s max rx rate (MRXR)\n", in can_stats_proc_show()
252 seq_putc(m, '\n'); in can_stats_proc_show()
255 seq_printf(m, " %8ld current receive list entries (CRCV)\n", in can_stats_proc_show()
257 seq_printf(m, " %8ld maximum receive list entries (MRCV)\n", in can_stats_proc_show()
261 seq_printf(m, "\n %8ld statistic resets (STR)\n", in can_stats_proc_show()
265 seq_printf(m, " %8ld user statistic resets (USTR)\n", in can_stats_proc_show()
268 seq_putc(m, '\n'); in can_stats_proc_show()
272 static int can_reset_stats_proc_show(struct seq_file *m, void *v) in can_reset_stats_proc_show() argument
274 struct net *net = m->private; in can_reset_stats_proc_show()
281 seq_printf(m, "Scheduled statistic reset #%ld.\n", in can_reset_stats_proc_show()
287 seq_printf(m, "Performed statistic reset #%ld.\n", in can_reset_stats_proc_show()
293 static inline void can_rcvlist_proc_show_one(struct seq_file *m, int idx, in can_rcvlist_proc_show_one() argument
298 can_print_recv_banner(m); in can_rcvlist_proc_show_one()
299 can_print_rcvlist(m, &dev_rcv_lists->rx[idx], dev); in can_rcvlist_proc_show_one()
301 seq_printf(m, " (%s: no entry)\n", DNAME(dev)); in can_rcvlist_proc_show_one()
305 static int can_rcvlist_proc_show(struct seq_file *m, void *v) in can_rcvlist_proc_show() argument
308 int idx = (int)(long)pde_data(m->file->f_inode); in can_rcvlist_proc_show()
311 struct net *net = m->private; in can_rcvlist_proc_show()
313 seq_printf(m, "\nreceive list '%s':\n", rx_list_name[idx]); in can_rcvlist_proc_show()
319 can_rcvlist_proc_show_one(m, idx, NULL, dev_rcv_lists); in can_rcvlist_proc_show()
326 can_rcvlist_proc_show_one(m, idx, dev, in can_rcvlist_proc_show()
332 seq_putc(m, '\n'); in can_rcvlist_proc_show()
336 static inline void can_rcvlist_proc_show_array(struct seq_file *m, in can_rcvlist_proc_show_array() argument
352 can_print_recv_banner(m); in can_rcvlist_proc_show_array()
355 can_print_rcvlist(m, &rcv_array[i], dev); in can_rcvlist_proc_show_array()
358 seq_printf(m, " (%s: no entry)\n", DNAME(dev)); in can_rcvlist_proc_show_array()
361 static int can_rcvlist_sff_proc_show(struct seq_file *m, void *v) in can_rcvlist_sff_proc_show() argument
365 struct net *net = m->private; in can_rcvlist_sff_proc_show()
368 seq_puts(m, "\nreceive list 'rx_sff':\n"); in can_rcvlist_sff_proc_show()
374 can_rcvlist_proc_show_array(m, NULL, dev_rcv_lists->rx_sff, in can_rcvlist_sff_proc_show()
383 can_rcvlist_proc_show_array(m, dev, dev_rcv_lists->rx_sff, in can_rcvlist_sff_proc_show()
390 seq_putc(m, '\n'); in can_rcvlist_sff_proc_show()
394 static int can_rcvlist_eff_proc_show(struct seq_file *m, void *v) in can_rcvlist_eff_proc_show() argument
398 struct net *net = m->private; in can_rcvlist_eff_proc_show()
401 seq_puts(m, "\nreceive list 'rx_eff':\n"); in can_rcvlist_eff_proc_show()
407 can_rcvlist_proc_show_array(m, NULL, dev_rcv_lists->rx_eff, in can_rcvlist_eff_proc_show()
416 can_rcvlist_proc_show_array(m, dev, dev_rcv_lists->rx_eff, in can_rcvlist_eff_proc_show()
423 seq_putc(m, '\n'); in can_rcvlist_eff_proc_show()