Lines Matching refs:stats
37 struct mhi_net_stats stats; member
93 u64_stats_update_begin(&mhi_netdev->stats.tx_syncp); in mhi_ndo_xmit()
94 u64_stats_inc(&mhi_netdev->stats.tx_dropped); in mhi_ndo_xmit()
95 u64_stats_update_end(&mhi_netdev->stats.tx_syncp); in mhi_ndo_xmit()
101 struct rtnl_link_stats64 *stats) in mhi_ndo_get_stats64() argument
107 start = u64_stats_fetch_begin_irq(&mhi_netdev->stats.rx_syncp); in mhi_ndo_get_stats64()
108 stats->rx_packets = u64_stats_read(&mhi_netdev->stats.rx_packets); in mhi_ndo_get_stats64()
109 stats->rx_bytes = u64_stats_read(&mhi_netdev->stats.rx_bytes); in mhi_ndo_get_stats64()
110 stats->rx_errors = u64_stats_read(&mhi_netdev->stats.rx_errors); in mhi_ndo_get_stats64()
111 } while (u64_stats_fetch_retry_irq(&mhi_netdev->stats.rx_syncp, start)); in mhi_ndo_get_stats64()
114 start = u64_stats_fetch_begin_irq(&mhi_netdev->stats.tx_syncp); in mhi_ndo_get_stats64()
115 stats->tx_packets = u64_stats_read(&mhi_netdev->stats.tx_packets); in mhi_ndo_get_stats64()
116 stats->tx_bytes = u64_stats_read(&mhi_netdev->stats.tx_bytes); in mhi_ndo_get_stats64()
117 stats->tx_errors = u64_stats_read(&mhi_netdev->stats.tx_errors); in mhi_ndo_get_stats64()
118 stats->tx_dropped = u64_stats_read(&mhi_netdev->stats.tx_dropped); in mhi_ndo_get_stats64()
119 } while (u64_stats_fetch_retry_irq(&mhi_netdev->stats.tx_syncp, start)); in mhi_ndo_get_stats64()
199 u64_stats_update_begin(&mhi_netdev->stats.rx_syncp); in mhi_net_dl_callback()
200 u64_stats_inc(&mhi_netdev->stats.rx_errors); in mhi_net_dl_callback()
201 u64_stats_update_end(&mhi_netdev->stats.rx_syncp); in mhi_net_dl_callback()
224 u64_stats_update_begin(&mhi_netdev->stats.rx_syncp); in mhi_net_dl_callback()
225 u64_stats_inc(&mhi_netdev->stats.rx_packets); in mhi_net_dl_callback()
226 u64_stats_add(&mhi_netdev->stats.rx_bytes, skb->len); in mhi_net_dl_callback()
227 u64_stats_update_end(&mhi_netdev->stats.rx_syncp); in mhi_net_dl_callback()
249 u64_stats_update_begin(&mhi_netdev->stats.tx_syncp); in mhi_net_ul_callback()
253 u64_stats_update_end(&mhi_netdev->stats.tx_syncp); in mhi_net_ul_callback()
257 u64_stats_inc(&mhi_netdev->stats.tx_errors); in mhi_net_ul_callback()
259 u64_stats_inc(&mhi_netdev->stats.tx_packets); in mhi_net_ul_callback()
260 u64_stats_add(&mhi_netdev->stats.tx_bytes, mhi_res->bytes_xferd); in mhi_net_ul_callback()
262 u64_stats_update_end(&mhi_netdev->stats.tx_syncp); in mhi_net_ul_callback()
318 u64_stats_init(&mhi_netdev->stats.rx_syncp); in mhi_net_newlink()
319 u64_stats_init(&mhi_netdev->stats.tx_syncp); in mhi_net_newlink()