Home
last modified time | relevance | path

Searched refs:stats64 (Results 1 – 25 of 25) sorted by relevance

/Linux-v5.4/drivers/net/wireless/quantenna/qtnfmac/
Dcore.c124 if (!vif->stats64) in qtnf_netdev_get_stats64()
128 struct pcpu_sw_netstats *stats64; in qtnf_netdev_get_stats64() local
132 stats64 = per_cpu_ptr(vif->stats64, cpu); in qtnf_netdev_get_stats64()
135 start = u64_stats_fetch_begin_irq(&stats64->syncp); in qtnf_netdev_get_stats64()
136 rx_packets = stats64->rx_packets; in qtnf_netdev_get_stats64()
137 rx_bytes = stats64->rx_bytes; in qtnf_netdev_get_stats64()
138 tx_packets = stats64->tx_packets; in qtnf_netdev_get_stats64()
139 tx_bytes = stats64->tx_bytes; in qtnf_netdev_get_stats64()
140 } while (u64_stats_fetch_retry_irq(&stats64->syncp, start)); in qtnf_netdev_get_stats64()
423 vif->stats64 = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); in qtnf_core_mac_alloc()
[all …]
Dcore.h72 struct pcpu_sw_netstats __percpu *stats64; member
/Linux-v5.4/drivers/net/usb/
Dqmi_wwan.c76 struct pcpu_sw_netstats __percpu *stats64; member
113 struct pcpu_sw_netstats *stats64 = this_cpu_ptr(priv->stats64); in qmimux_start_xmit() local
115 u64_stats_update_begin(&stats64->syncp); in qmimux_start_xmit()
116 stats64->tx_packets++; in qmimux_start_xmit()
117 stats64->tx_bytes += len; in qmimux_start_xmit()
118 u64_stats_update_end(&stats64->syncp); in qmimux_start_xmit()
136 struct pcpu_sw_netstats *stats64; in qmimux_get_stats64() local
140 stats64 = per_cpu_ptr(priv->stats64, cpu); in qmimux_get_stats64()
143 start = u64_stats_fetch_begin_irq(&stats64->syncp); in qmimux_get_stats64()
144 rx_packets = stats64->rx_packets; in qmimux_get_stats64()
[all …]
Dusbnet.c310 struct pcpu_sw_netstats *stats64 = this_cpu_ptr(dev->stats64); in usbnet_skb_return() local
323 flags = u64_stats_update_begin_irqsave(&stats64->syncp); in usbnet_skb_return()
324 stats64->rx_packets++; in usbnet_skb_return()
325 stats64->rx_bytes += skb->len; in usbnet_skb_return()
326 u64_stats_update_end_irqrestore(&stats64->syncp, flags); in usbnet_skb_return()
995 struct pcpu_sw_netstats *stats64; in usbnet_get_stats64() local
999 stats64 = per_cpu_ptr(dev->stats64, cpu); in usbnet_get_stats64()
1002 start = u64_stats_fetch_begin_irq(&stats64->syncp); in usbnet_get_stats64()
1003 rx_packets = stats64->rx_packets; in usbnet_get_stats64()
1004 rx_bytes = stats64->rx_bytes; in usbnet_get_stats64()
[all …]
/Linux-v5.4/drivers/net/fjes/
Dfjes_ethtool.c29 FJES_STAT("rx_packets", stats64.rx_packets),
30 FJES_STAT("tx_packets", stats64.tx_packets),
31 FJES_STAT("rx_bytes", stats64.rx_bytes),
32 FJES_STAT("tx_bytes", stats64.rx_bytes),
33 FJES_STAT("rx_dropped", stats64.rx_dropped),
34 FJES_STAT("tx_dropped", stats64.tx_dropped),
Dfjes_main.c670 adapter->stats64.tx_packets += 1; in fjes_xmit_frame()
672 adapter->stats64.tx_bytes += len; in fjes_xmit_frame()
680 adapter->stats64.tx_packets += 1; in fjes_xmit_frame()
682 adapter->stats64.tx_bytes += len; in fjes_xmit_frame()
699 adapter->stats64.tx_carrier_errors += 1; in fjes_xmit_frame()
709 adapter->stats64.tx_dropped += 1; in fjes_xmit_frame()
711 adapter->stats64.tx_errors += 1; in fjes_xmit_frame()
746 adapter->stats64.tx_fifo_errors += 1; in fjes_xmit_frame()
749 adapter->stats64.tx_errors += 1; in fjes_xmit_frame()
768 adapter->stats64.tx_packets += 1; in fjes_xmit_frame()
[all …]
Dfjes.h28 struct rtnl_link_stats64 stats64; member
/Linux-v5.4/drivers/net/ethernet/cavium/liquidio/
Dlio_vf_rep.c38 struct rtnl_link_stats64 *stats64);
184 struct rtnl_link_stats64 *stats64) in lio_vf_rep_get_stats64() argument
189 stats64->tx_packets = vf_rep->stats.rx_packets; in lio_vf_rep_get_stats64()
190 stats64->tx_bytes = vf_rep->stats.rx_bytes; in lio_vf_rep_get_stats64()
191 stats64->tx_dropped = vf_rep->stats.rx_dropped; in lio_vf_rep_get_stats64()
193 stats64->rx_packets = vf_rep->stats.tx_packets; in lio_vf_rep_get_stats64()
194 stats64->rx_bytes = vf_rep->stats.tx_bytes; in lio_vf_rep_get_stats64()
195 stats64->rx_dropped = vf_rep->stats.tx_dropped; in lio_vf_rep_get_stats64()
/Linux-v5.4/drivers/net/ppp/
Dppp_generic.c150 struct ppp_link_stats stats64; /* 64 bit network stats */ member
1302 ppp_get_stats64(struct net_device *dev, struct rtnl_link_stats64 *stats64) in ppp_get_stats64() argument
1307 stats64->rx_packets = ppp->stats64.rx_packets; in ppp_get_stats64()
1308 stats64->rx_bytes = ppp->stats64.rx_bytes; in ppp_get_stats64()
1312 stats64->tx_packets = ppp->stats64.tx_packets; in ppp_get_stats64()
1313 stats64->tx_bytes = ppp->stats64.tx_bytes; in ppp_get_stats64()
1316 stats64->rx_errors = dev->stats.rx_errors; in ppp_get_stats64()
1317 stats64->tx_errors = dev->stats.tx_errors; in ppp_get_stats64()
1318 stats64->rx_dropped = dev->stats.rx_dropped; in ppp_get_stats64()
1319 stats64->tx_dropped = dev->stats.tx_dropped; in ppp_get_stats64()
[all …]
/Linux-v5.4/drivers/net/ethernet/brocade/bna/
Dbnad_ethtool.c848 u64 *stats64; in bnad_get_ethtool_stats() local
886 stats64 = (u64 *)&bnad->stats.drv_stats; in bnad_get_ethtool_stats()
888 buf[bi++] = stats64[i]; in bnad_get_ethtool_stats()
891 stats64 = (u64 *) &bnad->stats.bna_stats->hw_stats; in bnad_get_ethtool_stats()
896 buf[bi++] = stats64[i]; in bnad_get_ethtool_stats()
902 stats64 = (u64 *)&bnad->stats.bna_stats-> in bnad_get_ethtool_stats()
906 buf[bi++] = stats64[j]; in bnad_get_ethtool_stats()
915 stats64 = (u64 *)&bnad->stats.bna_stats-> in bnad_get_ethtool_stats()
919 buf[bi++] = stats64[j]; in bnad_get_ethtool_stats()
/Linux-v5.4/drivers/net/ethernet/broadcom/
Dbcmsysport.c453 struct bcm_sysport_stats64 *stats64 = &priv->stats64; in bcm_sysport_get_stats() local
463 stats64->tx_bytes = tx_bytes; in bcm_sysport_get_stats()
464 stats64->tx_packets = tx_packets; in bcm_sysport_get_stats()
475 p = (char *)stats64; in bcm_sysport_get_stats()
723 struct bcm_sysport_stats64 *stats64 = &priv->stats64; in bcm_sysport_desc_rx() local
830 stats64->rx_packets++; in bcm_sysport_desc_rx()
831 stats64->rx_bytes += len; in bcm_sysport_desc_rx()
1829 struct bcm_sysport_stats64 *stats64 = &priv->stats64; in bcm_sysport_get_stats64() local
1839 stats->rx_packets = stats64->rx_packets; in bcm_sysport_get_stats64()
1840 stats->rx_bytes = stats64->rx_bytes; in bcm_sysport_get_stats64()
Dbcmsysport.h782 struct bcm_sysport_stats64 stats64; member
/Linux-v5.4/net/dsa/
Dslave.c515 s = this_cpu_ptr(p->stats64); in dsa_slave_xmit()
676 s = per_cpu_ptr(p->stats64, i); in dsa_slave_get_ethtool_stats()
1062 s = per_cpu_ptr(p->stats64, i); in dsa_slave_get_stats64()
1432 p->stats64 = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); in dsa_slave_create()
1433 if (!p->stats64) { in dsa_slave_create()
1469 free_percpu(p->stats64); in dsa_slave_create()
1488 free_percpu(p->stats64); in dsa_slave_destroy()
Ddsa_priv.h69 struct pcpu_sw_netstats *stats64; member
Ddsa.c232 s = this_cpu_ptr(p->stats64); in dsa_switch_rcv()
/Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/
Den_rep.c176 struct rtnl_link_stats64 stats64 = {}; in mlx5e_rep_update_sw_counters() local
179 mlx5e_fold_sw_stats64(priv, &stats64); in mlx5e_rep_update_sw_counters()
181 s->rx_packets = stats64.rx_packets; in mlx5e_rep_update_sw_counters()
182 s->rx_bytes = stats64.rx_bytes; in mlx5e_rep_update_sw_counters()
183 s->tx_packets = stats64.tx_packets; in mlx5e_rep_update_sw_counters()
184 s->tx_bytes = stats64.tx_bytes; in mlx5e_rep_update_sw_counters()
185 s->tx_queue_dropped = stats64.tx_dropped; in mlx5e_rep_update_sw_counters()
/Linux-v5.4/include/linux/usb/
Dusbnet.h68 struct pcpu_sw_netstats __percpu *stats64; member
/Linux-v5.4/drivers/net/ethernet/intel/igc/
Digc.h398 struct rtnl_link_stats64 stats64; member
Digc_ethtool.c727 struct rtnl_link_stats64 *net_stats = &adapter->stats64; in igc_get_ethtool_stats()
Digc_main.c1904 struct rtnl_link_stats64 *net_stats = &adapter->stats64; in igc_update_stats()
/Linux-v5.4/drivers/net/ethernet/intel/igb/
Digb.h519 struct rtnl_link_stats64 stats64; member
Digb_ethtool.c2295 struct rtnl_link_stats64 *net_stats = &adapter->stats64; in igb_get_ethtool_stats()
Digb_main.c6214 memcpy(stats, &adapter->stats64, sizeof(*stats)); in igb_get_stats64()
6264 struct rtnl_link_stats64 *net_stats = &adapter->stats64; in igb_update_stats()
/Linux-v5.4/net/core/
Ddev.c9367 void netdev_stats_to_stats64(struct rtnl_link_stats64 *stats64, in netdev_stats_to_stats64() argument
9371 BUILD_BUG_ON(sizeof(*stats64) < sizeof(*netdev_stats)); in netdev_stats_to_stats64()
9372 memcpy(stats64, netdev_stats, sizeof(*netdev_stats)); in netdev_stats_to_stats64()
9374 memset((char *)stats64 + sizeof(*netdev_stats), 0, in netdev_stats_to_stats64()
9375 sizeof(*stats64) - sizeof(*netdev_stats)); in netdev_stats_to_stats64()
9379 u64 *dst = (u64 *)stats64; in netdev_stats_to_stats64()
9381 BUILD_BUG_ON(n > sizeof(*stats64) / sizeof(u64)); in netdev_stats_to_stats64()
9385 memset((char *)stats64 + n * sizeof(u64), 0, in netdev_stats_to_stats64()
9386 sizeof(*stats64) - n * sizeof(u64)); in netdev_stats_to_stats64()
/Linux-v5.4/include/linux/
Dnetdevice.h4229 void netdev_stats_to_stats64(struct rtnl_link_stats64 *stats64,