Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/net/wireless/quantenna/qtnfmac/
Dcore.c131 if (!vif->stats64) in qtnf_netdev_get_stats64()
135 struct pcpu_sw_netstats *stats64; in qtnf_netdev_get_stats64() local
139 stats64 = per_cpu_ptr(vif->stats64, cpu); in qtnf_netdev_get_stats64()
142 start = u64_stats_fetch_begin_irq(&stats64->syncp); in qtnf_netdev_get_stats64()
143 rx_packets = stats64->rx_packets; in qtnf_netdev_get_stats64()
144 rx_bytes = stats64->rx_bytes; in qtnf_netdev_get_stats64()
145 tx_packets = stats64->tx_packets; in qtnf_netdev_get_stats64()
146 tx_bytes = stats64->tx_bytes; in qtnf_netdev_get_stats64()
147 } while (u64_stats_fetch_retry_irq(&stats64->syncp, start)); in qtnf_netdev_get_stats64()
394 mac->iflist[i].stats64 = in qtnf_core_mac_alloc()
[all …]
Dcore.h90 struct pcpu_sw_netstats __percpu *stats64; member
/Linux-v4.19/drivers/net/fjes/
Dfjes_ethtool.c44 FJES_STAT("rx_packets", stats64.rx_packets),
45 FJES_STAT("tx_packets", stats64.tx_packets),
46 FJES_STAT("rx_bytes", stats64.rx_bytes),
47 FJES_STAT("tx_bytes", stats64.rx_bytes),
48 FJES_STAT("rx_dropped", stats64.rx_dropped),
49 FJES_STAT("tx_dropped", stats64.tx_dropped),
Dfjes_main.c685 adapter->stats64.tx_packets += 1; in fjes_xmit_frame()
687 adapter->stats64.tx_bytes += len; in fjes_xmit_frame()
695 adapter->stats64.tx_packets += 1; in fjes_xmit_frame()
697 adapter->stats64.tx_bytes += len; in fjes_xmit_frame()
714 adapter->stats64.tx_carrier_errors += 1; in fjes_xmit_frame()
724 adapter->stats64.tx_dropped += 1; in fjes_xmit_frame()
726 adapter->stats64.tx_errors += 1; in fjes_xmit_frame()
761 adapter->stats64.tx_fifo_errors += 1; in fjes_xmit_frame()
764 adapter->stats64.tx_errors += 1; in fjes_xmit_frame()
783 adapter->stats64.tx_packets += 1; in fjes_xmit_frame()
[all …]
Dfjes.h43 struct rtnl_link_stats64 stats64; member
/Linux-v4.19/drivers/net/usb/
Dusbnet.c317 struct pcpu_sw_netstats *stats64 = this_cpu_ptr(dev->stats64); in usbnet_skb_return() local
330 flags = u64_stats_update_begin_irqsave(&stats64->syncp); in usbnet_skb_return()
331 stats64->rx_packets++; in usbnet_skb_return()
332 stats64->rx_bytes += skb->len; in usbnet_skb_return()
333 u64_stats_update_end_irqrestore(&stats64->syncp, flags); in usbnet_skb_return()
998 struct pcpu_sw_netstats *stats64; in usbnet_get_stats64() local
1002 stats64 = per_cpu_ptr(dev->stats64, cpu); in usbnet_get_stats64()
1005 start = u64_stats_fetch_begin_irq(&stats64->syncp); in usbnet_get_stats64()
1006 rx_packets = stats64->rx_packets; in usbnet_get_stats64()
1007 rx_bytes = stats64->rx_bytes; in usbnet_get_stats64()
[all …]
/Linux-v4.19/drivers/net/ethernet/cavium/liquidio/
Dlio_vf_rep.c39 struct rtnl_link_stats64 *stats64);
200 struct rtnl_link_stats64 *stats64) in lio_vf_rep_get_stats64() argument
205 stats64->tx_packets = vf_rep->stats.rx_packets; in lio_vf_rep_get_stats64()
206 stats64->tx_bytes = vf_rep->stats.rx_bytes; in lio_vf_rep_get_stats64()
207 stats64->tx_dropped = vf_rep->stats.rx_dropped; in lio_vf_rep_get_stats64()
209 stats64->rx_packets = vf_rep->stats.tx_packets; in lio_vf_rep_get_stats64()
210 stats64->rx_bytes = vf_rep->stats.tx_bytes; in lio_vf_rep_get_stats64()
211 stats64->rx_dropped = vf_rep->stats.tx_dropped; in lio_vf_rep_get_stats64()
/Linux-v4.19/drivers/net/ppp/
Dppp_generic.c154 struct ppp_link_stats stats64; /* 64 bit network stats */ member
1306 ppp_get_stats64(struct net_device *dev, struct rtnl_link_stats64 *stats64) in ppp_get_stats64() argument
1311 stats64->rx_packets = ppp->stats64.rx_packets; in ppp_get_stats64()
1312 stats64->rx_bytes = ppp->stats64.rx_bytes; in ppp_get_stats64()
1316 stats64->tx_packets = ppp->stats64.tx_packets; in ppp_get_stats64()
1317 stats64->tx_bytes = ppp->stats64.tx_bytes; in ppp_get_stats64()
1320 stats64->rx_errors = dev->stats.rx_errors; in ppp_get_stats64()
1321 stats64->tx_errors = dev->stats.tx_errors; in ppp_get_stats64()
1322 stats64->rx_dropped = dev->stats.rx_dropped; in ppp_get_stats64()
1323 stats64->tx_dropped = dev->stats.tx_dropped; in ppp_get_stats64()
[all …]
/Linux-v4.19/drivers/net/ethernet/brocade/bna/
Dbnad_ethtool.c856 u64 *stats64; in bnad_get_ethtool_stats() local
894 stats64 = (u64 *)&bnad->stats.drv_stats; in bnad_get_ethtool_stats()
896 buf[bi++] = stats64[i]; in bnad_get_ethtool_stats()
899 stats64 = (u64 *) &bnad->stats.bna_stats->hw_stats; in bnad_get_ethtool_stats()
904 buf[bi++] = stats64[i]; in bnad_get_ethtool_stats()
910 stats64 = (u64 *)&bnad->stats.bna_stats-> in bnad_get_ethtool_stats()
914 buf[bi++] = stats64[j]; in bnad_get_ethtool_stats()
923 stats64 = (u64 *)&bnad->stats.bna_stats-> in bnad_get_ethtool_stats()
927 buf[bi++] = stats64[j]; in bnad_get_ethtool_stats()
/Linux-v4.19/drivers/net/ethernet/broadcom/
Dbcmsysport.c460 struct bcm_sysport_stats64 *stats64 = &priv->stats64; in bcm_sysport_get_stats() local
470 stats64->tx_bytes = tx_bytes; in bcm_sysport_get_stats()
471 stats64->tx_packets = tx_packets; in bcm_sysport_get_stats()
482 p = (char *)stats64; in bcm_sysport_get_stats()
741 struct bcm_sysport_stats64 *stats64 = &priv->stats64; in bcm_sysport_desc_rx() local
848 stats64->rx_packets++; in bcm_sysport_desc_rx()
849 stats64->rx_bytes += len; in bcm_sysport_desc_rx()
1866 struct bcm_sysport_stats64 *stats64 = &priv->stats64; in bcm_sysport_get_stats64() local
1876 stats->rx_packets = stats64->rx_packets; in bcm_sysport_get_stats64()
1877 stats->rx_bytes = stats64->rx_bytes; in bcm_sysport_get_stats64()
Dbcmsysport.h788 struct bcm_sysport_stats64 stats64; member
/Linux-v4.19/net/dsa/
Dslave.c431 s = this_cpu_ptr(p->stats64); in dsa_slave_xmit()
575 s = per_cpu_ptr(p->stats64, i); in dsa_slave_get_ethtool_stats()
933 s = per_cpu_ptr(p->stats64, i); in dsa_slave_get_stats64()
1329 p->stats64 = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); in dsa_slave_create()
1330 if (!p->stats64) { in dsa_slave_create()
1364 free_percpu(p->stats64); in dsa_slave_create()
1383 free_percpu(p->stats64); in dsa_slave_destroy()
Ddsa_priv.h73 struct pcpu_sw_netstats *stats64; member
Ddsa.c185 s = this_cpu_ptr(p->stats64); in dsa_switch_rcv()
/Linux-v4.19/include/linux/usb/
Dusbnet.h68 struct pcpu_sw_netstats __percpu *stats64; member
/Linux-v4.19/drivers/net/ethernet/intel/igb/
Digb.h519 struct rtnl_link_stats64 stats64; member
Digb_ethtool.c2292 struct rtnl_link_stats64 *net_stats = &adapter->stats64; in igb_get_ethtool_stats()
Digb_main.c6241 memcpy(stats, &adapter->stats64, sizeof(*stats)); in igb_get_stats64()
6291 struct rtnl_link_stats64 *net_stats = &adapter->stats64; in igb_update_stats()
/Linux-v4.19/net/core/
Ddev.c8779 void netdev_stats_to_stats64(struct rtnl_link_stats64 *stats64, in netdev_stats_to_stats64() argument
8783 BUILD_BUG_ON(sizeof(*stats64) < sizeof(*netdev_stats)); in netdev_stats_to_stats64()
8784 memcpy(stats64, netdev_stats, sizeof(*netdev_stats)); in netdev_stats_to_stats64()
8786 memset((char *)stats64 + sizeof(*netdev_stats), 0, in netdev_stats_to_stats64()
8787 sizeof(*stats64) - sizeof(*netdev_stats)); in netdev_stats_to_stats64()
8791 u64 *dst = (u64 *)stats64; in netdev_stats_to_stats64()
8793 BUILD_BUG_ON(n > sizeof(*stats64) / sizeof(u64)); in netdev_stats_to_stats64()
8797 memset((char *)stats64 + n * sizeof(u64), 0, in netdev_stats_to_stats64()
8798 sizeof(*stats64) - n * sizeof(u64)); in netdev_stats_to_stats64()
/Linux-v4.19/include/linux/
Dnetdevice.h4124 void netdev_stats_to_stats64(struct rtnl_link_stats64 *stats64,