Home
last modified time | relevance | path

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

/Linux-v5.15/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.c665 adapter->stats64.tx_packets += 1; in fjes_xmit_frame()
667 adapter->stats64.tx_bytes += len; in fjes_xmit_frame()
675 adapter->stats64.tx_packets += 1; in fjes_xmit_frame()
677 adapter->stats64.tx_bytes += len; in fjes_xmit_frame()
694 adapter->stats64.tx_carrier_errors += 1; in fjes_xmit_frame()
704 adapter->stats64.tx_dropped += 1; in fjes_xmit_frame()
706 adapter->stats64.tx_errors += 1; in fjes_xmit_frame()
741 adapter->stats64.tx_fifo_errors += 1; in fjes_xmit_frame()
744 adapter->stats64.tx_errors += 1; in fjes_xmit_frame()
763 adapter->stats64.tx_packets += 1; in fjes_xmit_frame()
[all …]
Dfjes.h28 struct rtnl_link_stats64 stats64; member
/Linux-v5.15/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.15/drivers/net/ethernet/brocade/bna/
Dbnad_ethtool.c795 u64 *stats64; in bnad_get_ethtool_stats() local
833 stats64 = (u64 *)&bnad->stats.drv_stats; in bnad_get_ethtool_stats()
835 buf[bi++] = stats64[i]; in bnad_get_ethtool_stats()
838 stats64 = (u64 *) &bnad->stats.bna_stats->hw_stats; in bnad_get_ethtool_stats()
843 buf[bi++] = stats64[i]; in bnad_get_ethtool_stats()
849 stats64 = (u64 *)&bnad->stats.bna_stats-> in bnad_get_ethtool_stats()
853 buf[bi++] = stats64[j]; in bnad_get_ethtool_stats()
862 stats64 = (u64 *)&bnad->stats.bna_stats-> in bnad_get_ethtool_stats()
866 buf[bi++] = stats64[j]; in bnad_get_ethtool_stats()
/Linux-v5.15/drivers/net/ppp/
Dppp_generic.c150 struct ppp_link_stats stats64; /* 64 bit network stats */ member
1509 ppp_get_stats64(struct net_device *dev, struct rtnl_link_stats64 *stats64) in ppp_get_stats64() argument
1514 stats64->rx_packets = ppp->stats64.rx_packets; in ppp_get_stats64()
1515 stats64->rx_bytes = ppp->stats64.rx_bytes; in ppp_get_stats64()
1519 stats64->tx_packets = ppp->stats64.tx_packets; in ppp_get_stats64()
1520 stats64->tx_bytes = ppp->stats64.tx_bytes; in ppp_get_stats64()
1523 stats64->rx_errors = dev->stats.rx_errors; in ppp_get_stats64()
1524 stats64->tx_errors = dev->stats.tx_errors; in ppp_get_stats64()
1525 stats64->rx_dropped = dev->stats.rx_dropped; in ppp_get_stats64()
1526 stats64->tx_dropped = dev->stats.tx_dropped; in ppp_get_stats64()
[all …]
/Linux-v5.15/drivers/net/dsa/xrs700x/
Dxrs700x.h23 struct rtnl_link_stats64 stats64; member
Dxrs700x.c141 p->stats64 = stats; in xrs700x_read_port_counters()
181 *s = p->stats64; in xrs700x_get_stats64()
/Linux-v5.15/drivers/net/ethernet/mellanox/mlx5/core/
Den_rep.c129 struct rtnl_link_stats64 stats64 = {}; in MLX5E_DECLARE_STATS_GRP_OP_UPDATE_STATS() local
132 mlx5e_fold_sw_stats64(priv, &stats64); in MLX5E_DECLARE_STATS_GRP_OP_UPDATE_STATS()
134 s->rx_packets = stats64.rx_packets; in MLX5E_DECLARE_STATS_GRP_OP_UPDATE_STATS()
135 s->rx_bytes = stats64.rx_bytes; in MLX5E_DECLARE_STATS_GRP_OP_UPDATE_STATS()
136 s->tx_packets = stats64.tx_packets; in MLX5E_DECLARE_STATS_GRP_OP_UPDATE_STATS()
137 s->tx_bytes = stats64.tx_bytes; in MLX5E_DECLARE_STATS_GRP_OP_UPDATE_STATS()
138 s->tx_queue_dropped = stats64.tx_dropped; in MLX5E_DECLARE_STATS_GRP_OP_UPDATE_STATS()
/Linux-v5.15/drivers/net/ethernet/broadcom/
Dbcmsysport.c474 struct bcm_sysport_stats64 *stats64 = &priv->stats64; in bcm_sysport_get_stats() local
484 stats64->tx_bytes = tx_bytes; in bcm_sysport_get_stats()
485 stats64->tx_packets = tx_packets; in bcm_sysport_get_stats()
496 p = (char *)stats64; in bcm_sysport_get_stats()
748 struct bcm_sysport_stats64 *stats64 = &priv->stats64; in bcm_sysport_desc_rx() local
855 stats64->rx_packets++; in bcm_sysport_desc_rx()
856 stats64->rx_bytes += len; in bcm_sysport_desc_rx()
1870 struct bcm_sysport_stats64 *stats64 = &priv->stats64; in bcm_sysport_get_stats64() local
1880 stats->rx_packets = stats64->rx_packets; in bcm_sysport_get_stats64()
1881 stats->rx_bytes = stats64->rx_bytes; in bcm_sysport_get_stats64()
Dbcmsysport.h753 struct bcm_sysport_stats64 stats64; member
/Linux-v5.15/drivers/net/usb/
Dusbnet.c324 struct pcpu_sw_netstats *stats64 = this_cpu_ptr(dev->net->tstats); in usbnet_skb_return() local
337 flags = u64_stats_update_begin_irqsave(&stats64->syncp); in usbnet_skb_return()
338 stats64->rx_packets++; in usbnet_skb_return()
339 stats64->rx_bytes += skb->len; in usbnet_skb_return()
340 u64_stats_update_end_irqrestore(&stats64->syncp, flags); in usbnet_skb_return()
1255 struct pcpu_sw_netstats *stats64 = this_cpu_ptr(dev->net->tstats); in tx_complete() local
1258 flags = u64_stats_update_begin_irqsave(&stats64->syncp); in tx_complete()
1259 stats64->tx_packets += entry->packets; in tx_complete()
1260 stats64->tx_bytes += entry->length; in tx_complete()
1261 u64_stats_update_end_irqrestore(&stats64->syncp, flags); in tx_complete()
/Linux-v5.15/drivers/net/ethernet/intel/igc/
Digc.h190 struct rtnl_link_stats64 stats64; member
Digc_ethtool.c812 struct rtnl_link_stats64 *net_stats = &adapter->stats64; in igc_ethtool_get_stats()
Digc_main.c4596 struct rtnl_link_stats64 *net_stats = &adapter->stats64; in igc_update_stats()
4914 memcpy(stats, &adapter->stats64, sizeof(*stats)); in igc_get_stats64()
/Linux-v5.15/drivers/net/ethernet/intel/igb/
Digb.h589 struct rtnl_link_stats64 stats64; member
Digb_ethtool.c2290 struct rtnl_link_stats64 *net_stats = &adapter->stats64; in igb_get_ethtool_stats()
Digb_main.c6487 memcpy(stats, &adapter->stats64, sizeof(*stats)); in igb_get_stats64()
6551 struct rtnl_link_stats64 *net_stats = &adapter->stats64; in igb_update_stats()
/Linux-v5.15/net/core/
Ddev.c10620 void netdev_stats_to_stats64(struct rtnl_link_stats64 *stats64, in netdev_stats_to_stats64() argument
10624 BUILD_BUG_ON(sizeof(*stats64) < sizeof(*netdev_stats)); in netdev_stats_to_stats64()
10625 memcpy(stats64, netdev_stats, sizeof(*netdev_stats)); in netdev_stats_to_stats64()
10627 memset((char *)stats64 + sizeof(*netdev_stats), 0, in netdev_stats_to_stats64()
10628 sizeof(*stats64) - sizeof(*netdev_stats)); in netdev_stats_to_stats64()
10632 u64 *dst = (u64 *)stats64; in netdev_stats_to_stats64()
10634 BUILD_BUG_ON(n > sizeof(*stats64) / sizeof(u64)); in netdev_stats_to_stats64()
10638 memset((char *)stats64 + n * sizeof(u64), 0, in netdev_stats_to_stats64()
10639 sizeof(*stats64) - n * sizeof(u64)); in netdev_stats_to_stats64()
/Linux-v5.15/include/linux/
Dnetdevice.h4768 void netdev_stats_to_stats64(struct rtnl_link_stats64 *stats64,