Home
last modified time | relevance | path

Searched refs:pkg_stats (Results 1 – 3 of 3) sorted by relevance

/linux-5.19.10/net/can/
Dproc.c81 struct can_pkg_stats *pkg_stats = net->can.pkg_stats; in can_init_stats() local
88 memset(pkg_stats, 0, sizeof(struct can_pkg_stats)); in can_init_stats()
89 pkg_stats->jiffies_init = jiffies; in can_init_stats()
118 struct can_pkg_stats *pkg_stats = net->can.pkg_stats; in can_stat_update() local
126 if (j < pkg_stats->jiffies_init) in can_stat_update()
130 if (pkg_stats->rx_frames > (ULONG_MAX / HZ)) in can_stat_update()
134 if (pkg_stats->tx_frames > (ULONG_MAX / HZ)) in can_stat_update()
138 if (pkg_stats->matches > (ULONG_MAX / 100)) in can_stat_update()
142 if (pkg_stats->rx_frames) in can_stat_update()
143 pkg_stats->total_rx_match_ratio = (pkg_stats->matches * 100) / in can_stat_update()
[all …]
Daf_can.c203 struct can_pkg_stats *pkg_stats = dev_net(skb->dev)->can.pkg_stats; in can_send() local
290 pkg_stats->tx_frames++; in can_send()
291 pkg_stats->tx_frames_delta++; in can_send()
647 struct can_pkg_stats *pkg_stats = net->can.pkg_stats; in can_receive() local
651 pkg_stats->rx_frames++; in can_receive()
652 pkg_stats->rx_frames_delta++; in can_receive()
673 pkg_stats->matches++; in can_receive()
674 pkg_stats->matches_delta++; in can_receive()
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()
[all …]
/linux-5.19.10/include/net/netns/
Dcan.h33 struct can_pkg_stats *pkg_stats; member