Lines Matching refs:can

203 	struct can_pkg_stats *pkg_stats = dev_net(skb->dev)->can.pkg_stats;  in can_send()
310 return net->can.rx_alldev_list; in can_dev_rcv_lists_find()
449 struct can_rcv_lists_stats *rcv_lists_stats = net->can.rcv_lists_stats; in can_rx_register()
464 spin_lock_bh(&net->can.rcvlists_lock); in can_rx_register()
483 spin_unlock_bh(&net->can.rcvlists_lock); in can_rx_register()
518 struct can_rcv_lists_stats *rcv_lists_stats = net->can.rcv_lists_stats; in can_rx_unregister()
527 spin_lock_bh(&net->can.rcvlists_lock); in can_rx_unregister()
561 spin_unlock_bh(&net->can.rcvlists_lock); in can_rx_unregister()
647 struct can_pkg_stats *pkg_stats = net->can.pkg_stats; in can_receive()
661 matches = can_rcv_filter(net->can.rx_alldev_list, skb); in can_receive()
795 spin_lock_init(&net->can.rcvlists_lock); in can_pernet_init()
796 net->can.rx_alldev_list = in can_pernet_init()
797 kzalloc(sizeof(*net->can.rx_alldev_list), GFP_KERNEL); in can_pernet_init()
798 if (!net->can.rx_alldev_list) in can_pernet_init()
800 net->can.pkg_stats = kzalloc(sizeof(*net->can.pkg_stats), GFP_KERNEL); in can_pernet_init()
801 if (!net->can.pkg_stats) in can_pernet_init()
803 net->can.rcv_lists_stats = kzalloc(sizeof(*net->can.rcv_lists_stats), GFP_KERNEL); in can_pernet_init()
804 if (!net->can.rcv_lists_stats) in can_pernet_init()
810 timer_setup(&net->can.stattimer, can_stat_update, in can_pernet_init()
812 mod_timer(&net->can.stattimer, in can_pernet_init()
815 net->can.pkg_stats->jiffies_init = jiffies; in can_pernet_init()
822 kfree(net->can.pkg_stats); in can_pernet_init()
824 kfree(net->can.rx_alldev_list); in can_pernet_init()
834 del_timer_sync(&net->can.stattimer); in can_pernet_exit()
837 kfree(net->can.rx_alldev_list); in can_pernet_exit()
838 kfree(net->can.pkg_stats); in can_pernet_exit()
839 kfree(net->can.rcv_lists_stats); in can_pernet_exit()