| /linux-6.15/drivers/net/ethernet/qualcomm/emac/ |
| H A D | emac.c | 335 struct rtnl_link_stats64 *net_stats) in emac_get_stats64() argument 345 net_stats->rx_packets = stats->rx_ok; in emac_get_stats64() 346 net_stats->tx_packets = stats->tx_ok; in emac_get_stats64() 347 net_stats->rx_bytes = stats->rx_byte_cnt; in emac_get_stats64() 348 net_stats->tx_bytes = stats->tx_byte_cnt; in emac_get_stats64() 349 net_stats->multicast = stats->rx_mcast; in emac_get_stats64() 356 net_stats->rx_fifo_errors = stats->rx_rxf_ov; in emac_get_stats64() 358 net_stats->rx_crc_errors = stats->rx_fcs_err; in emac_get_stats64() 360 net_stats->rx_over_errors = stats->rx_rxf_ov; in emac_get_stats64() 361 net_stats->rx_missed_errors = stats->rx_rxf_ov; in emac_get_stats64() [all …]
|
| /linux-6.15/drivers/net/ethernet/hisilicon/hns/ |
| H A D | hns_ethtool.c | 863 p[0] = net_stats->rx_packets; in hns_get_ethtool_stats() 864 p[1] = net_stats->tx_packets; in hns_get_ethtool_stats() 865 p[2] = net_stats->rx_bytes; in hns_get_ethtool_stats() 866 p[3] = net_stats->tx_bytes; in hns_get_ethtool_stats() 867 p[4] = net_stats->rx_errors; in hns_get_ethtool_stats() 868 p[5] = net_stats->tx_errors; in hns_get_ethtool_stats() 869 p[6] = net_stats->rx_dropped; in hns_get_ethtool_stats() 870 p[7] = net_stats->tx_dropped; in hns_get_ethtool_stats() 871 p[8] = net_stats->multicast; in hns_get_ethtool_stats() 872 p[9] = net_stats->collisions; in hns_get_ethtool_stats() [all …]
|
| H A D | hns_ae_adapt.c | 619 struct net_device_stats *net_stats) in hns_ae_update_stats() argument 685 net_stats->tx_bytes = tx_bytes; in hns_ae_update_stats() 686 net_stats->tx_packets = tx_packets; in hns_ae_update_stats() 687 net_stats->rx_bytes = rx_bytes; in hns_ae_update_stats() 688 net_stats->rx_dropped = 0; in hns_ae_update_stats() 689 net_stats->rx_packets = rx_packets; in hns_ae_update_stats() 690 net_stats->rx_errors = rx_errors; in hns_ae_update_stats() 691 net_stats->tx_errors = tx_errors; in hns_ae_update_stats() 692 net_stats->tx_dropped = tx_dropped; in hns_ae_update_stats() 693 net_stats->rx_missed_errors = rx_missed_errors; in hns_ae_update_stats() [all …]
|
| H A D | hnae.h | 512 struct net_device_stats *net_stats);
|
| /linux-6.15/drivers/net/fjes/ |
| H A D | fjes_main.c | 646 hw->ep_shm_info[my_epid].net_stats.tx_packets += 1; in fjes_xmit_frame() 665 hw->ep_shm_info[dest_epid].net_stats in fjes_xmit_frame() 712 hw->ep_shm_info[dest_epid].net_stats in fjes_xmit_frame() 715 hw->ep_shm_info[dest_epid].net_stats in fjes_xmit_frame() 734 hw->ep_shm_info[dest_epid].net_stats in fjes_xmit_frame() 737 hw->ep_shm_info[dest_epid].net_stats in fjes_xmit_frame() 985 hw->ep_shm_info[cur_epid].net_stats in fjes_poll() 988 hw->ep_shm_info[cur_epid].net_stats in fjes_poll() 1000 hw->ep_shm_info[cur_epid].net_stats in fjes_poll() 1003 hw->ep_shm_info[cur_epid].net_stats in fjes_poll() [all …]
|
| H A D | fjes_hw.h | 254 struct rtnl_link_stats64 net_stats; member
|
| /linux-6.15/drivers/net/ethernet/atheros/alx/ |
| H A D | main.c | 1651 struct rtnl_link_stats64 *net_stats) in alx_get_stats64() argument 1660 net_stats->tx_bytes = hw_stats->tx_byte_cnt; in alx_get_stats64() 1661 net_stats->rx_bytes = hw_stats->rx_byte_cnt; in alx_get_stats64() 1662 net_stats->multicast = hw_stats->rx_mcast; in alx_get_stats64() 1663 net_stats->collisions = hw_stats->tx_single_col + in alx_get_stats64() 1668 net_stats->rx_errors = hw_stats->rx_frag + in alx_get_stats64() 1676 net_stats->rx_fifo_errors = hw_stats->rx_ov_rxf; in alx_get_stats64() 1680 net_stats->rx_dropped = hw_stats->rx_ov_rrd; in alx_get_stats64() 1682 net_stats->tx_errors = hw_stats->tx_late_col + in alx_get_stats64() 1691 net_stats->tx_packets = hw_stats->tx_ok + net_stats->tx_errors; in alx_get_stats64() [all …]
|
| /linux-6.15/drivers/net/ethernet/atheros/atl1e/ |
| H A D | atl1e_main.c | 1161 net_stats->rx_bytes = hw_stats->rx_byte_cnt; in atl1e_get_stats() 1162 net_stats->tx_bytes = hw_stats->tx_byte_cnt; in atl1e_get_stats() 1163 net_stats->multicast = hw_stats->rx_mcast; in atl1e_get_stats() 1164 net_stats->collisions = hw_stats->tx_1_col + in atl1e_get_stats() 1169 net_stats->rx_errors = hw_stats->rx_frag + in atl1e_get_stats() 1177 net_stats->rx_fifo_errors = hw_stats->rx_rxf_ov; in atl1e_get_stats() 1181 net_stats->rx_dropped = hw_stats->rx_rrd_ov; in atl1e_get_stats() 1183 net_stats->tx_errors = hw_stats->tx_late_col + in atl1e_get_stats() 1192 net_stats->rx_packets = hw_stats->rx_ok + net_stats->rx_errors; in atl1e_get_stats() 1193 net_stats->tx_packets = hw_stats->tx_ok + net_stats->tx_errors; in atl1e_get_stats() [all …]
|
| /linux-6.15/drivers/net/ethernet/atheros/atl1c/ |
| H A D | atl1c_main.c | 1542 net_stats->rx_bytes = hw_stats->rx_byte_cnt; in atl1c_get_stats() 1543 net_stats->tx_bytes = hw_stats->tx_byte_cnt; in atl1c_get_stats() 1544 net_stats->multicast = hw_stats->rx_mcast; in atl1c_get_stats() 1545 net_stats->collisions = hw_stats->tx_1_col + in atl1c_get_stats() 1550 net_stats->rx_errors = hw_stats->rx_frag + in atl1c_get_stats() 1558 net_stats->rx_fifo_errors = hw_stats->rx_rxf_ov; in atl1c_get_stats() 1562 net_stats->rx_dropped = hw_stats->rx_rrd_ov; in atl1c_get_stats() 1564 net_stats->tx_errors = hw_stats->tx_late_col + in atl1c_get_stats() 1573 net_stats->rx_packets = hw_stats->rx_ok + net_stats->rx_errors; in atl1c_get_stats() 1574 net_stats->tx_packets = hw_stats->tx_ok + net_stats->tx_errors; in atl1c_get_stats() [all …]
|
| /linux-6.15/drivers/infiniband/ulp/ipoib/ |
| H A D | ipoib_ethtool.c | 121 struct net_device_stats *net_stats = &dev->stats; in ipoib_get_ethtool_stats() local 122 u8 *p = (u8 *)net_stats; in ipoib_get_ethtool_stats()
|
| /linux-6.15/drivers/net/ethernet/sun/ |
| H A D | cassini.c | 1115 cp->net_stats[0].tx_fifo_errors++; in cas_txmac_interrupt() 1120 cp->net_stats[0].tx_errors++; in cas_txmac_interrupt() 1503 cp->net_stats[0].rx_over_errors++; in cas_rxmac_interrupt() 1504 cp->net_stats[0].rx_fifo_errors++; in cas_rxmac_interrupt() 1734 cp->net_stats[0].rx_errors++; in cas_abnormal_irq() 1744 cp->net_stats[0].rx_errors++; in cas_abnormal_irq() 1866 cp->net_stats[ring].tx_packets++; in cas_tx_ringN() 2276 cp->net_stats[ring].rx_errors++; in cas_rx_ringN() 2308 cp->net_stats[ring].rx_packets++; in cas_rx_ringN() 2432 cp->net_stats[1].rx_dropped++; in cas_handle_irq1() [all …]
|
| H A D | cassini.h | 2781 struct net_device_stats net_stats[N_TX_RINGS + 1]; member
|
| /linux-6.15/drivers/net/ethernet/cisco/enic/ |
| H A D | enic_main.c | 896 struct rtnl_link_stats64 *net_stats) in enic_get_stats() argument 913 net_stats->tx_packets = stats->tx.tx_frames_ok; in enic_get_stats() 914 net_stats->tx_bytes = stats->tx.tx_bytes_ok; in enic_get_stats() 915 net_stats->tx_errors = stats->tx.tx_errors; in enic_get_stats() 916 net_stats->tx_dropped = stats->tx.tx_drops; in enic_get_stats() 918 net_stats->rx_packets = stats->rx.rx_frames_ok; in enic_get_stats() 919 net_stats->rx_bytes = stats->rx.rx_bytes_ok; in enic_get_stats() 920 net_stats->rx_errors = stats->rx.rx_errors; in enic_get_stats() 921 net_stats->multicast = stats->rx.rx_multicast_frames_ok; in enic_get_stats() 931 net_stats->rx_over_errors = pkt_truncated; in enic_get_stats() [all …]
|
| /linux-6.15/drivers/net/can/usb/ |
| H A D | ucan.c | 490 struct net_device_stats *net_stats = &up->netdev->stats; in ucan_handle_error_frame() local 500 net_stats->tx_errors++; in ucan_handle_error_frame() 510 net_stats->rx_over_errors++; in ucan_handle_error_frame() 528 net_stats->tx_errors++; in ucan_handle_error_frame() 530 net_stats->rx_errors++; in ucan_handle_error_frame()
|
| /linux-6.15/drivers/net/ethernet/intel/fm10k/ |
| H A D | fm10k_pci.c | 536 struct net_device_stats *net_stats = &interface->netdev->stats; in fm10k_update_stats() local 572 net_stats->tx_bytes = bytes; in fm10k_update_stats() 573 net_stats->tx_packets = pkts; in fm10k_update_stats() 597 net_stats->rx_bytes = bytes; in fm10k_update_stats() 598 net_stats->rx_packets = pkts; in fm10k_update_stats() 627 net_stats->rx_errors = rx_errors; in fm10k_update_stats() 628 net_stats->rx_dropped = interface->stats.nodesc_drop.count; in fm10k_update_stats()
|
| H A D | fm10k_ethtool.c | 266 struct net_device_stats *net_stats = &netdev->stats; in fm10k_get_ethtool_stats() local 271 fm10k_add_ethtool_stats(&data, net_stats, fm10k_gstrings_net_stats); in fm10k_get_ethtool_stats()
|
| /linux-6.15/drivers/net/ethernet/broadcom/ |
| H A D | bnx2.c | 6809 net_stats->rx_packets = in bnx2_get_stats64() 6814 net_stats->tx_packets = in bnx2_get_stats64() 6819 net_stats->rx_bytes = in bnx2_get_stats64() 6822 net_stats->tx_bytes = in bnx2_get_stats64() 6825 net_stats->multicast = in bnx2_get_stats64() 6828 net_stats->collisions = in bnx2_get_stats64() 6842 net_stats->rx_crc_errors = in bnx2_get_stats64() 6845 net_stats->rx_errors = net_stats->rx_length_errors + in bnx2_get_stats64() 6846 net_stats->rx_over_errors + net_stats->rx_frame_errors + in bnx2_get_stats64() 6847 net_stats->rx_crc_errors; in bnx2_get_stats64() [all …]
|
| /linux-6.15/drivers/net/ethernet/intel/igc/ |
| H A D | igc_main.c | 5114 net_stats->rx_fifo_errors += rqdpc; in igc_update_stats() 5126 net_stats->rx_bytes = bytes; in igc_update_stats() 5127 net_stats->rx_packets = packets; in igc_update_stats() 5142 net_stats->tx_bytes = bytes; in igc_update_stats() 5143 net_stats->tx_packets = packets; in igc_update_stats() 5167 net_stats->rx_fifo_errors += mpc; in igc_update_stats() 5211 net_stats->multicast = adapter->stats.mprc; in igc_update_stats() 5212 net_stats->collisions = adapter->stats.colc; in igc_update_stats() 5219 net_stats->rx_errors = adapter->stats.rxerrc + in igc_update_stats() 5230 net_stats->tx_errors = adapter->stats.ecol + in igc_update_stats() [all …]
|
| H A D | igc_ethtool.c | 818 struct rtnl_link_stats64 *net_stats = &adapter->stats64; in igc_ethtool_get_stats() local 833 p = (char *)net_stats + igc_gstrings_net_stats[j].stat_offset; in igc_ethtool_get_stats()
|
| /linux-6.15/drivers/net/ethernet/intel/ixgbevf/ |
| H A D | ethtool.c | 424 const struct rtnl_link_stats64 *net_stats; in ixgbevf_get_ethtool_stats() local 431 net_stats = dev_get_stats(netdev, &temp); in ixgbevf_get_ethtool_stats() 435 p = (char *)net_stats + in ixgbevf_get_ethtool_stats()
|
| /linux-6.15/drivers/net/ethernet/intel/igb/ |
| H A D | igb_main.c | 6741 net_stats->rx_fifo_errors += rqdpc; in igb_update_stats() 6753 net_stats->rx_bytes = bytes; in igb_update_stats() 6754 net_stats->rx_packets = packets; in igb_update_stats() 6768 net_stats->tx_bytes = bytes; in igb_update_stats() 6769 net_stats->tx_packets = packets; in igb_update_stats() 6792 net_stats->rx_fifo_errors += mpc; in igb_update_stats() 6854 net_stats->multicast = adapter->stats.mprc; in igb_update_stats() 6855 net_stats->collisions = adapter->stats.colc; in igb_update_stats() 6862 net_stats->rx_errors = adapter->stats.rxerrc + in igb_update_stats() 6870 net_stats->rx_missed_errors = adapter->stats.mpc; in igb_update_stats() [all …]
|
| /linux-6.15/drivers/net/ethernet/intel/e1000e/ |
| H A D | ethtool.c | 2049 struct rtnl_link_stats64 net_stats; in e1000_get_ethtool_stats() local 2053 dev_get_stats(netdev, &net_stats); in e1000_get_ethtool_stats() 2058 p = (char *)&net_stats + in e1000_get_ethtool_stats()
|
| /linux-6.15/drivers/net/ethernet/intel/ice/ |
| H A D | ice_main.c | 6883 struct rtnl_link_stats64 *net_stats, *stats_prev; in ice_update_vsi_ring_stats() local 6928 net_stats = &vsi->net_stats; in ice_update_vsi_ring_stats() 6937 net_stats->tx_packets += vsi_stats->tx_packets - stats_prev->tx_packets; in ice_update_vsi_ring_stats() 6938 net_stats->tx_bytes += vsi_stats->tx_bytes - stats_prev->tx_bytes; in ice_update_vsi_ring_stats() 6939 net_stats->rx_packets += vsi_stats->rx_packets - stats_prev->rx_packets; in ice_update_vsi_ring_stats() 6940 net_stats->rx_bytes += vsi_stats->rx_bytes - stats_prev->rx_bytes; in ice_update_vsi_ring_stats() 6957 struct rtnl_link_stats64 *cur_ns = &vsi->net_stats; in ice_update_vsi_stats() 7153 vsi_stats = &vsi->net_stats; in ice_get_stats64()
|
| H A D | ice.h | 376 struct rtnl_link_stats64 net_stats; member
|
| /linux-6.15/drivers/net/ethernet/intel/ixgbe/ |
| H A D | ixgbe_ethtool.c | 1341 const struct rtnl_link_stats64 *net_stats; in ixgbe_get_ethtool_stats() local 1348 net_stats = dev_get_stats(netdev, &temp); in ixgbe_get_ethtool_stats() 1352 p = (char *) net_stats + in ixgbe_get_ethtool_stats()
|