Lines Matching refs:can
81 struct can_pkg_stats *pkg_stats = net->can.pkg_stats; in can_init_stats()
82 struct can_rcv_lists_stats *rcv_lists_stats = net->can.rcv_lists_stats; in can_init_stats()
117 struct net *net = from_timer(net, t, can.stattimer); in can_stat_update()
118 struct can_pkg_stats *pkg_stats = net->can.pkg_stats; in can_stat_update()
176 mod_timer(&net->can.stattimer, round_jiffies(jiffies + HZ)); in can_stat_update()
213 struct can_pkg_stats *pkg_stats = net->can.pkg_stats; in can_stats_proc_show()
214 struct can_rcv_lists_stats *rcv_lists_stats = net->can.rcv_lists_stats; in can_stats_proc_show()
223 if (net->can.stattimer.function == can_stat_update) { in can_stats_proc_show()
275 struct can_rcv_lists_stats *rcv_lists_stats = net->can.rcv_lists_stats; in can_reset_stats_proc_show()
276 struct can_pkg_stats *pkg_stats = net->can.pkg_stats; in can_reset_stats_proc_show()
280 if (net->can.stattimer.function == can_stat_update) { in can_reset_stats_proc_show()
318 dev_rcv_lists = net->can.rx_alldev_list; in can_rcvlist_proc_show()
373 dev_rcv_lists = net->can.rx_alldev_list; in can_rcvlist_sff_proc_show()
406 dev_rcv_lists = net->can.rx_alldev_list; in can_rcvlist_eff_proc_show()
433 net->can.proc_dir = proc_net_mkdir(net, "can", net->proc_net); in can_init_proc()
435 if (!net->can.proc_dir) { in can_init_proc()
442 net->can.pde_stats = proc_create_net_single(CAN_PROC_STATS, 0644, in can_init_proc()
443 net->can.proc_dir, can_stats_proc_show, NULL); in can_init_proc()
444 net->can.pde_reset_stats = proc_create_net_single(CAN_PROC_RESET_STATS, in can_init_proc()
445 0644, net->can.proc_dir, can_reset_stats_proc_show, in can_init_proc()
447 net->can.pde_rcvlist_err = proc_create_net_single(CAN_PROC_RCVLIST_ERR, in can_init_proc()
448 0644, net->can.proc_dir, can_rcvlist_proc_show, in can_init_proc()
450 net->can.pde_rcvlist_all = proc_create_net_single(CAN_PROC_RCVLIST_ALL, in can_init_proc()
451 0644, net->can.proc_dir, can_rcvlist_proc_show, in can_init_proc()
453 net->can.pde_rcvlist_fil = proc_create_net_single(CAN_PROC_RCVLIST_FIL, in can_init_proc()
454 0644, net->can.proc_dir, can_rcvlist_proc_show, in can_init_proc()
456 net->can.pde_rcvlist_inv = proc_create_net_single(CAN_PROC_RCVLIST_INV, in can_init_proc()
457 0644, net->can.proc_dir, can_rcvlist_proc_show, in can_init_proc()
459 net->can.pde_rcvlist_eff = proc_create_net_single(CAN_PROC_RCVLIST_EFF, in can_init_proc()
460 0644, net->can.proc_dir, can_rcvlist_eff_proc_show, NULL); in can_init_proc()
461 net->can.pde_rcvlist_sff = proc_create_net_single(CAN_PROC_RCVLIST_SFF, in can_init_proc()
462 0644, net->can.proc_dir, can_rcvlist_sff_proc_show, NULL); in can_init_proc()
470 if (!net->can.proc_dir) in can_remove_proc()
473 if (net->can.pde_stats) in can_remove_proc()
474 remove_proc_entry(CAN_PROC_STATS, net->can.proc_dir); in can_remove_proc()
476 if (net->can.pde_reset_stats) in can_remove_proc()
477 remove_proc_entry(CAN_PROC_RESET_STATS, net->can.proc_dir); in can_remove_proc()
479 if (net->can.pde_rcvlist_err) in can_remove_proc()
480 remove_proc_entry(CAN_PROC_RCVLIST_ERR, net->can.proc_dir); in can_remove_proc()
482 if (net->can.pde_rcvlist_all) in can_remove_proc()
483 remove_proc_entry(CAN_PROC_RCVLIST_ALL, net->can.proc_dir); in can_remove_proc()
485 if (net->can.pde_rcvlist_fil) in can_remove_proc()
486 remove_proc_entry(CAN_PROC_RCVLIST_FIL, net->can.proc_dir); in can_remove_proc()
488 if (net->can.pde_rcvlist_inv) in can_remove_proc()
489 remove_proc_entry(CAN_PROC_RCVLIST_INV, net->can.proc_dir); in can_remove_proc()
491 if (net->can.pde_rcvlist_eff) in can_remove_proc()
492 remove_proc_entry(CAN_PROC_RCVLIST_EFF, net->can.proc_dir); in can_remove_proc()
494 if (net->can.pde_rcvlist_sff) in can_remove_proc()
495 remove_proc_entry(CAN_PROC_RCVLIST_SFF, net->can.proc_dir); in can_remove_proc()