• Home
  • Raw
  • Download

Lines Matching refs:net

78 static void can_init_stats(struct net *net)  in can_init_stats()  argument
80 struct s_stats *can_stats = net->can.can_stats; in can_init_stats()
81 struct s_pstats *can_pstats = net->can.can_pstats; in can_init_stats()
120 struct net *net = (struct net *)data; in can_stat_update() local
121 struct s_stats *can_stats = net->can.can_stats; in can_stat_update()
126 can_init_stats(net); in can_stat_update()
130 can_init_stats(net); in can_stat_update()
134 can_init_stats(net); in can_stat_update()
138 can_init_stats(net); in can_stat_update()
142 can_init_stats(net); in can_stat_update()
179 mod_timer(&net->can.can_stattimer, round_jiffies(jiffies + HZ)); in can_stat_update()
213 struct net *net = m->private; in can_stats_proc_show() local
214 struct s_stats *can_stats = net->can.can_stats; in can_stats_proc_show()
215 struct s_pstats *can_pstats = net->can.can_pstats; in can_stats_proc_show()
224 if (net->can.can_stattimer.function == can_stat_update) { in can_stats_proc_show()
288 struct net *net = m->private; in can_reset_stats_proc_show() local
289 struct s_pstats *can_pstats = net->can.can_pstats; in can_reset_stats_proc_show()
290 struct s_stats *can_stats = net->can.can_stats; in can_reset_stats_proc_show()
294 if (net->can.can_stattimer.function == can_stat_update) { in can_reset_stats_proc_show()
299 can_init_stats(net); in can_reset_stats_proc_show()
357 struct net *net = m->private; in can_rcvlist_proc_show() local
364 d = net->can.can_rx_alldev_list; in can_rcvlist_proc_show()
368 for_each_netdev_rcu(net, dev) { in can_rcvlist_proc_show()
421 struct net *net = m->private; in can_rcvlist_sff_proc_show() local
429 d = net->can.can_rx_alldev_list; in can_rcvlist_sff_proc_show()
433 for_each_netdev_rcu(net, dev) { in can_rcvlist_sff_proc_show()
465 struct net *net = m->private; in can_rcvlist_eff_proc_show() local
473 d = net->can.can_rx_alldev_list; in can_rcvlist_eff_proc_show()
477 for_each_netdev_rcu(net, dev) { in can_rcvlist_eff_proc_show()
507 void can_init_proc(struct net *net) in can_init_proc() argument
510 net->can.proc_dir = proc_net_mkdir(net, "can", net->proc_net); in can_init_proc()
512 if (!net->can.proc_dir) { in can_init_proc()
519 net->can.pde_version = proc_create(CAN_PROC_VERSION, 0644, in can_init_proc()
520 net->can.proc_dir, in can_init_proc()
522 net->can.pde_stats = proc_create(CAN_PROC_STATS, 0644, in can_init_proc()
523 net->can.proc_dir, in can_init_proc()
525 net->can.pde_reset_stats = proc_create(CAN_PROC_RESET_STATS, 0644, in can_init_proc()
526 net->can.proc_dir, in can_init_proc()
528 net->can.pde_rcvlist_err = proc_create_data(CAN_PROC_RCVLIST_ERR, 0644, in can_init_proc()
529 net->can.proc_dir, in can_init_proc()
532 net->can.pde_rcvlist_all = proc_create_data(CAN_PROC_RCVLIST_ALL, 0644, in can_init_proc()
533 net->can.proc_dir, in can_init_proc()
536 net->can.pde_rcvlist_fil = proc_create_data(CAN_PROC_RCVLIST_FIL, 0644, in can_init_proc()
537 net->can.proc_dir, in can_init_proc()
540 net->can.pde_rcvlist_inv = proc_create_data(CAN_PROC_RCVLIST_INV, 0644, in can_init_proc()
541 net->can.proc_dir, in can_init_proc()
544 net->can.pde_rcvlist_eff = proc_create(CAN_PROC_RCVLIST_EFF, 0644, in can_init_proc()
545 net->can.proc_dir, in can_init_proc()
547 net->can.pde_rcvlist_sff = proc_create(CAN_PROC_RCVLIST_SFF, 0644, in can_init_proc()
548 net->can.proc_dir, in can_init_proc()
555 void can_remove_proc(struct net *net) in can_remove_proc() argument
557 if (net->can.pde_version) in can_remove_proc()
558 remove_proc_entry(CAN_PROC_VERSION, net->can.proc_dir); in can_remove_proc()
560 if (net->can.pde_stats) in can_remove_proc()
561 remove_proc_entry(CAN_PROC_STATS, net->can.proc_dir); in can_remove_proc()
563 if (net->can.pde_reset_stats) in can_remove_proc()
564 remove_proc_entry(CAN_PROC_RESET_STATS, net->can.proc_dir); in can_remove_proc()
566 if (net->can.pde_rcvlist_err) in can_remove_proc()
567 remove_proc_entry(CAN_PROC_RCVLIST_ERR, net->can.proc_dir); in can_remove_proc()
569 if (net->can.pde_rcvlist_all) in can_remove_proc()
570 remove_proc_entry(CAN_PROC_RCVLIST_ALL, net->can.proc_dir); in can_remove_proc()
572 if (net->can.pde_rcvlist_fil) in can_remove_proc()
573 remove_proc_entry(CAN_PROC_RCVLIST_FIL, net->can.proc_dir); in can_remove_proc()
575 if (net->can.pde_rcvlist_inv) in can_remove_proc()
576 remove_proc_entry(CAN_PROC_RCVLIST_INV, net->can.proc_dir); in can_remove_proc()
578 if (net->can.pde_rcvlist_eff) in can_remove_proc()
579 remove_proc_entry(CAN_PROC_RCVLIST_EFF, net->can.proc_dir); in can_remove_proc()
581 if (net->can.pde_rcvlist_sff) in can_remove_proc()
582 remove_proc_entry(CAN_PROC_RCVLIST_SFF, net->can.proc_dir); in can_remove_proc()
584 if (net->can.proc_dir) in can_remove_proc()
585 remove_proc_entry("can", net->proc_net); in can_remove_proc()