Home
last modified time | relevance | path

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

/OK3568_Linux_fs/kernel/drivers/net/wireless/quantenna/qtnfmac/
H A Dcore.c145 if (!vif->stats64) in qtnf_netdev_get_stats64()
148 dev_fetch_sw_netstats(stats, vif->stats64); in qtnf_netdev_get_stats64()
451 vif->stats64 = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); in qtnf_core_mac_alloc()
452 if (!vif->stats64) in qtnf_core_mac_alloc()
534 free_percpu(vif->stats64); in qtnf_core_mac_detach()
930 struct pcpu_sw_netstats *stats64; in qtnf_update_rx_stats() local
932 if (unlikely(!vif || !vif->stats64)) { in qtnf_update_rx_stats()
938 stats64 = this_cpu_ptr(vif->stats64); in qtnf_update_rx_stats()
940 u64_stats_update_begin(&stats64->syncp); in qtnf_update_rx_stats()
941 stats64->rx_packets++; in qtnf_update_rx_stats()
[all …]
H A Dcore.h74 struct pcpu_sw_netstats __percpu *stats64; member
/OK3568_Linux_fs/kernel/drivers/net/usb/
H A Dqmi_wwan.c75 struct pcpu_sw_netstats __percpu *stats64; member
112 struct pcpu_sw_netstats *stats64 = this_cpu_ptr(priv->stats64); in qmimux_start_xmit() local
114 u64_stats_update_begin(&stats64->syncp); in qmimux_start_xmit()
115 stats64->tx_packets++; in qmimux_start_xmit()
116 stats64->tx_bytes += len; in qmimux_start_xmit()
117 u64_stats_update_end(&stats64->syncp); in qmimux_start_xmit()
131 dev_fetch_sw_netstats(stats, priv->stats64); in qmimux_get_stats64()
227 struct pcpu_sw_netstats *stats64; in qmimux_rx_fixup() local
230 stats64 = this_cpu_ptr(priv->stats64); in qmimux_rx_fixup()
231 u64_stats_update_begin(&stats64->syncp); in qmimux_rx_fixup()
[all …]
H A Dusbnet.c307 struct pcpu_sw_netstats *stats64 = this_cpu_ptr(dev->stats64); in usbnet_skb_return() local
320 flags = u64_stats_update_begin_irqsave(&stats64->syncp); in usbnet_skb_return()
321 stats64->rx_packets++; in usbnet_skb_return()
322 stats64->rx_bytes += skb->len; in usbnet_skb_return()
323 u64_stats_update_end_irqrestore(&stats64->syncp, flags); in usbnet_skb_return()
986 dev_fetch_sw_netstats(stats, dev->stats64); in usbnet_get_stats64()
1221 struct pcpu_sw_netstats *stats64 = this_cpu_ptr(dev->stats64); in tx_complete() local
1224 flags = u64_stats_update_begin_irqsave(&stats64->syncp); in tx_complete()
1225 stats64->tx_packets += entry->packets; in tx_complete()
1226 stats64->tx_bytes += entry->length; in tx_complete()
[all …]
/OK3568_Linux_fs/kernel/drivers/net/fjes/
H A 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),
H A Dfjes_main.c673 adapter->stats64.tx_packets += 1; in fjes_xmit_frame()
675 adapter->stats64.tx_bytes += len; in fjes_xmit_frame()
683 adapter->stats64.tx_packets += 1; in fjes_xmit_frame()
685 adapter->stats64.tx_bytes += len; in fjes_xmit_frame()
702 adapter->stats64.tx_carrier_errors += 1; in fjes_xmit_frame()
712 adapter->stats64.tx_dropped += 1; in fjes_xmit_frame()
714 adapter->stats64.tx_errors += 1; in fjes_xmit_frame()
749 adapter->stats64.tx_fifo_errors += 1; in fjes_xmit_frame()
752 adapter->stats64.tx_errors += 1; in fjes_xmit_frame()
771 adapter->stats64.tx_packets += 1; in fjes_xmit_frame()
[all …]
H A Dfjes.h28 struct rtnl_link_stats64 stats64; member
/OK3568_Linux_fs/kernel/drivers/net/ethernet/cavium/liquidio/
H A 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()
/OK3568_Linux_fs/kernel/drivers/net/ppp/
H A Dppp_generic.c152 struct ppp_link_stats stats64; /* 64 bit network stats */ member
1404 ppp_get_stats64(struct net_device *dev, struct rtnl_link_stats64 *stats64) in ppp_get_stats64() argument
1409 stats64->rx_packets = ppp->stats64.rx_packets; in ppp_get_stats64()
1410 stats64->rx_bytes = ppp->stats64.rx_bytes; in ppp_get_stats64()
1414 stats64->tx_packets = ppp->stats64.tx_packets; in ppp_get_stats64()
1415 stats64->tx_bytes = ppp->stats64.tx_bytes; in ppp_get_stats64()
1418 stats64->rx_errors = dev->stats.rx_errors; in ppp_get_stats64()
1419 stats64->tx_errors = dev->stats.tx_errors; in ppp_get_stats64()
1420 stats64->rx_dropped = dev->stats.rx_dropped; in ppp_get_stats64()
1421 stats64->tx_dropped = dev->stats.tx_dropped; in ppp_get_stats64()
[all …]
/OK3568_Linux_fs/kernel/drivers/net/ethernet/brocade/bna/
H A Dbnad_ethtool.c847 u64 *stats64; in bnad_get_ethtool_stats() local
885 stats64 = (u64 *)&bnad->stats.drv_stats; in bnad_get_ethtool_stats()
887 buf[bi++] = stats64[i]; in bnad_get_ethtool_stats()
890 stats64 = (u64 *) &bnad->stats.bna_stats->hw_stats; in bnad_get_ethtool_stats()
895 buf[bi++] = stats64[i]; in bnad_get_ethtool_stats()
901 stats64 = (u64 *)&bnad->stats.bna_stats-> in bnad_get_ethtool_stats()
905 buf[bi++] = stats64[j]; in bnad_get_ethtool_stats()
914 stats64 = (u64 *)&bnad->stats.bna_stats-> in bnad_get_ethtool_stats()
918 buf[bi++] = stats64[j]; in bnad_get_ethtool_stats()
/OK3568_Linux_fs/kernel/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_rep.c136 struct rtnl_link_stats64 stats64 = {}; in MLX5E_DECLARE_STATS_GRP_OP_UPDATE_STATS() local
139 mlx5e_fold_sw_stats64(priv, &stats64); in MLX5E_DECLARE_STATS_GRP_OP_UPDATE_STATS()
141 s->rx_packets = stats64.rx_packets; in MLX5E_DECLARE_STATS_GRP_OP_UPDATE_STATS()
142 s->rx_bytes = stats64.rx_bytes; in MLX5E_DECLARE_STATS_GRP_OP_UPDATE_STATS()
143 s->tx_packets = stats64.tx_packets; in MLX5E_DECLARE_STATS_GRP_OP_UPDATE_STATS()
144 s->tx_bytes = stats64.tx_bytes; in MLX5E_DECLARE_STATS_GRP_OP_UPDATE_STATS()
145 s->tx_queue_dropped = stats64.tx_dropped; in MLX5E_DECLARE_STATS_GRP_OP_UPDATE_STATS()
/OK3568_Linux_fs/kernel/drivers/net/ethernet/broadcom/
H A Dbcmsysport.c473 struct bcm_sysport_stats64 *stats64 = &priv->stats64; in bcm_sysport_get_stats() local
483 stats64->tx_bytes = tx_bytes; in bcm_sysport_get_stats()
484 stats64->tx_packets = tx_packets; in bcm_sysport_get_stats()
495 p = (char *)stats64; in bcm_sysport_get_stats()
743 struct bcm_sysport_stats64 *stats64 = &priv->stats64; in bcm_sysport_desc_rx() local
850 stats64->rx_packets++; in bcm_sysport_desc_rx()
851 stats64->rx_bytes += len; in bcm_sysport_desc_rx()
1867 struct bcm_sysport_stats64 *stats64 = &priv->stats64; in bcm_sysport_get_stats64() local
1877 stats->rx_packets = stats64->rx_packets; in bcm_sysport_get_stats64()
1878 stats->rx_bytes = stats64->rx_bytes; in bcm_sysport_get_stats64()
H A Dbcmsysport.h785 struct bcm_sysport_stats64 stats64; member
/OK3568_Linux_fs/kernel/net/dsa/
H A Dslave.c581 s = this_cpu_ptr(p->stats64); in dsa_slave_xmit()
726 s = per_cpu_ptr(p->stats64, i); in dsa_slave_get_ethtool_stats()
1263 dev_fetch_sw_netstats(stats, p->stats64); in dsa_slave_get_stats64()
1849 p->stats64 = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); in dsa_slave_create()
1850 if (!p->stats64) { in dsa_slave_create()
1912 free_percpu(p->stats64); in dsa_slave_create()
1934 free_percpu(p->stats64); in dsa_slave_destroy()
H A Ddsa_priv.h81 struct pcpu_sw_netstats __percpu *stats64; member
H A Ddsa.c237 s = this_cpu_ptr(p->stats64); in dsa_switch_rcv()
/OK3568_Linux_fs/kernel/include/linux/usb/
H A Dusbnet.h70 struct pcpu_sw_netstats __percpu *stats64; member
/OK3568_Linux_fs/kernel/drivers/net/ethernet/intel/igc/
H A Digc.h173 struct rtnl_link_stats64 stats64; member
H A Digc_ethtool.c807 struct rtnl_link_stats64 *net_stats = &adapter->stats64; in igc_ethtool_get_stats()
H A Digc_main.c3615 struct rtnl_link_stats64 *net_stats = &adapter->stats64; in igc_update_stats()
3927 memcpy(stats, &adapter->stats64, sizeof(*stats)); in igc_get_stats64()
/OK3568_Linux_fs/kernel/drivers/net/ethernet/intel/igb/
H A Digb.h589 struct rtnl_link_stats64 stats64; member
H A Digb_ethtool.c2288 struct rtnl_link_stats64 *net_stats = &adapter->stats64; in igb_get_ethtool_stats()
H A Digb_main.c6511 memcpy(stats, &adapter->stats64, sizeof(*stats)); in igb_get_stats64()
6575 struct rtnl_link_stats64 *net_stats = &adapter->stats64; in igb_update_stats()
/OK3568_Linux_fs/kernel/net/core/
H A Ddev.c10325 void netdev_stats_to_stats64(struct rtnl_link_stats64 *stats64, in netdev_stats_to_stats64() argument
10329 BUILD_BUG_ON(sizeof(*stats64) < sizeof(*netdev_stats)); in netdev_stats_to_stats64()
10330 memcpy(stats64, netdev_stats, sizeof(*netdev_stats)); in netdev_stats_to_stats64()
10332 memset((char *)stats64 + sizeof(*netdev_stats), 0, in netdev_stats_to_stats64()
10333 sizeof(*stats64) - sizeof(*netdev_stats)); in netdev_stats_to_stats64()
10337 u64 *dst = (u64 *)stats64; in netdev_stats_to_stats64()
10339 BUILD_BUG_ON(n > sizeof(*stats64) / sizeof(u64)); in netdev_stats_to_stats64()
10343 memset((char *)stats64 + n * sizeof(u64), 0, in netdev_stats_to_stats64()
10344 sizeof(*stats64) - n * sizeof(u64)); in netdev_stats_to_stats64()
/OK3568_Linux_fs/kernel/include/linux/
H A Dnetdevice.h4621 void netdev_stats_to_stats64(struct rtnl_link_stats64 *stats64,