Lines Matching refs:m

193 static void can_print_rcvlist(struct seq_file *m, struct hlist_head *rx_list,  in can_print_rcvlist()  argument
203 seq_printf(m, fmt, DNAME(dev), r->can_id, r->mask, in can_print_rcvlist()
208 static void can_print_recv_banner(struct seq_file *m) in can_print_recv_banner() argument
214 seq_puts(m, " device can_id can_mask function" in can_print_recv_banner()
218 static int can_stats_proc_show(struct seq_file *m, void *v) in can_stats_proc_show() argument
220 seq_putc(m, '\n'); in can_stats_proc_show()
221 seq_printf(m, " %8ld transmitted frames (TXF)\n", can_stats.tx_frames); in can_stats_proc_show()
222 seq_printf(m, " %8ld received frames (RXF)\n", can_stats.rx_frames); in can_stats_proc_show()
223 seq_printf(m, " %8ld matched frames (RXMF)\n", can_stats.matches); in can_stats_proc_show()
225 seq_putc(m, '\n'); in can_stats_proc_show()
228 seq_printf(m, " %8ld %% total match ratio (RXMR)\n", in can_stats_proc_show()
231 seq_printf(m, " %8ld frames/s total tx rate (TXR)\n", in can_stats_proc_show()
233 seq_printf(m, " %8ld frames/s total rx rate (RXR)\n", in can_stats_proc_show()
236 seq_putc(m, '\n'); in can_stats_proc_show()
238 seq_printf(m, " %8ld %% current match ratio (CRXMR)\n", in can_stats_proc_show()
241 seq_printf(m, " %8ld frames/s current tx rate (CTXR)\n", in can_stats_proc_show()
243 seq_printf(m, " %8ld frames/s current rx rate (CRXR)\n", in can_stats_proc_show()
246 seq_putc(m, '\n'); in can_stats_proc_show()
248 seq_printf(m, " %8ld %% max match ratio (MRXMR)\n", in can_stats_proc_show()
251 seq_printf(m, " %8ld frames/s max tx rate (MTXR)\n", in can_stats_proc_show()
253 seq_printf(m, " %8ld frames/s max rx rate (MRXR)\n", in can_stats_proc_show()
256 seq_putc(m, '\n'); in can_stats_proc_show()
259 seq_printf(m, " %8ld current receive list entries (CRCV)\n", in can_stats_proc_show()
261 seq_printf(m, " %8ld maximum receive list entries (MRCV)\n", in can_stats_proc_show()
265 seq_printf(m, "\n %8ld statistic resets (STR)\n", in can_stats_proc_show()
269 seq_printf(m, " %8ld user statistic resets (USTR)\n", in can_stats_proc_show()
272 seq_putc(m, '\n'); in can_stats_proc_show()
289 static int can_reset_stats_proc_show(struct seq_file *m, void *v) in can_reset_stats_proc_show() argument
294 seq_printf(m, "Scheduled statistic reset #%ld.\n", in can_reset_stats_proc_show()
301 seq_printf(m, "Performed statistic reset #%ld.\n", in can_reset_stats_proc_show()
320 static int can_version_proc_show(struct seq_file *m, void *v) in can_version_proc_show() argument
322 seq_printf(m, "%s\n", CAN_VERSION_STRING); in can_version_proc_show()
339 static inline void can_rcvlist_proc_show_one(struct seq_file *m, int idx, in can_rcvlist_proc_show_one() argument
344 can_print_recv_banner(m); in can_rcvlist_proc_show_one()
345 can_print_rcvlist(m, &d->rx[idx], dev); in can_rcvlist_proc_show_one()
347 seq_printf(m, " (%s: no entry)\n", DNAME(dev)); in can_rcvlist_proc_show_one()
351 static int can_rcvlist_proc_show(struct seq_file *m, void *v) in can_rcvlist_proc_show() argument
354 int idx = (int)(long)m->private; in can_rcvlist_proc_show()
358 seq_printf(m, "\nreceive list '%s':\n", rx_list_name[idx]); in can_rcvlist_proc_show()
364 can_rcvlist_proc_show_one(m, idx, NULL, d); in can_rcvlist_proc_show()
369 can_rcvlist_proc_show_one(m, idx, dev, dev->ml_priv); in can_rcvlist_proc_show()
374 seq_putc(m, '\n'); in can_rcvlist_proc_show()
391 static inline void can_rcvlist_proc_show_array(struct seq_file *m, in can_rcvlist_proc_show_array() argument
407 can_print_recv_banner(m); in can_rcvlist_proc_show_array()
410 can_print_rcvlist(m, &rcv_array[i], dev); in can_rcvlist_proc_show_array()
413 seq_printf(m, " (%s: no entry)\n", DNAME(dev)); in can_rcvlist_proc_show_array()
416 static int can_rcvlist_sff_proc_show(struct seq_file *m, void *v) in can_rcvlist_sff_proc_show() argument
422 seq_puts(m, "\nreceive list 'rx_sff':\n"); in can_rcvlist_sff_proc_show()
428 can_rcvlist_proc_show_array(m, NULL, d->rx_sff, ARRAY_SIZE(d->rx_sff)); in can_rcvlist_sff_proc_show()
434 can_rcvlist_proc_show_array(m, dev, d->rx_sff, in can_rcvlist_sff_proc_show()
441 seq_putc(m, '\n'); in can_rcvlist_sff_proc_show()
459 static int can_rcvlist_eff_proc_show(struct seq_file *m, void *v) in can_rcvlist_eff_proc_show() argument
465 seq_puts(m, "\nreceive list 'rx_eff':\n"); in can_rcvlist_eff_proc_show()
471 can_rcvlist_proc_show_array(m, NULL, d->rx_eff, ARRAY_SIZE(d->rx_eff)); in can_rcvlist_eff_proc_show()
477 can_rcvlist_proc_show_array(m, dev, d->rx_eff, in can_rcvlist_eff_proc_show()
484 seq_putc(m, '\n'); in can_rcvlist_eff_proc_show()