| /linux/drivers/net/ethernet/hisilicon/hns/ |
| H A D | hns_ae_adapt.c | 618 struct net_device_stats *net_stats) in hns_ae_update_stats() argument 684 net_stats->tx_bytes = tx_bytes; in hns_ae_update_stats() 685 net_stats->tx_packets = tx_packets; in hns_ae_update_stats() 686 net_stats->rx_bytes = rx_bytes; in hns_ae_update_stats() 687 net_stats->rx_dropped = 0; in hns_ae_update_stats() 688 net_stats->rx_packets = rx_packets; in hns_ae_update_stats() 689 net_stats->rx_errors = rx_errors; in hns_ae_update_stats() 690 net_stats->tx_errors = tx_errors; in hns_ae_update_stats() 691 net_stats->tx_dropped = tx_dropped; in hns_ae_update_stats() 692 net_stats->rx_missed_errors = rx_missed_errors; in hns_ae_update_stats() [all …]
|
| /linux/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() 1677 net_stats->rx_length_errors = hw_stats->rx_len_err; in alx_get_stats64() 1678 net_stats->rx_crc_errors = hw_stats->rx_fcs_err; in alx_get_stats64() 1679 net_stats->rx_frame_errors = hw_stats->rx_align_err; in alx_get_stats64() [all …]
|
| /linux/drivers/net/ethernet/atheros/atl1e/ |
| H A D | atl1e_main.c | 1159 struct net_device_stats *net_stats = &netdev->stats; in atl1e_get_stats() local 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() 1178 net_stats->rx_length_errors = hw_stats->rx_len_err; in atl1e_get_stats() 1179 net_stats->rx_crc_errors = hw_stats->rx_fcs_err; in atl1e_get_stats() 1180 net_stats->rx_frame_errors = hw_stats->rx_align_err; in atl1e_get_stats() [all …]
|
| /linux/drivers/net/ethernet/atheros/atl1c/ |
| H A D | atl1c_main.c | 1539 struct net_device_stats *net_stats = &netdev->stats; in atl1c_get_stats() local 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() 1559 net_stats->rx_length_errors = hw_stats->rx_len_err; in atl1c_get_stats() 1560 net_stats->rx_crc_errors = hw_stats->rx_fcs_err; in atl1c_get_stats() 1561 net_stats->rx_frame_errors = hw_stats->rx_align_err; in atl1c_get_stats() [all …]
|
| /linux/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() 1127 cp->net_stats[0].collisions += 0x10000; in cas_txmac_interrupt() 1130 cp->net_stats[0].tx_aborted_errors += 0x10000; in cas_txmac_interrupt() 1131 cp->net_stats[0].collisions += 0x10000; in cas_txmac_interrupt() 1135 cp->net_stats[0].tx_aborted_errors += 0x10000; in cas_txmac_interrupt() 1136 cp->net_stats[0].collisions += 0x10000; in cas_txmac_interrupt() 1494 cp->net_stats[0].rx_frame_errors += 0x10000; in cas_rxmac_interrupt() 1497 cp->net_stats[0].rx_crc_errors += 0x10000; in cas_rxmac_interrupt() 1500 cp->net_stats[0].rx_length_errors += 0x10000; in cas_rxmac_interrupt() [all …]
|
| H A D | cassini.h | 2781 struct net_device_stats net_stats[N_TX_RINGS + 1]; member
|
| /linux/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/drivers/net/can/usb/ |
| H A D | ucan.c | 489 struct net_device_stats *net_stats = &up->netdev->stats; in ucan_handle_error_frame() local 499 net_stats->tx_errors++; in ucan_handle_error_frame() 509 net_stats->rx_over_errors++; in ucan_handle_error_frame() 527 net_stats->tx_errors++; in ucan_handle_error_frame() 529 net_stats->rx_errors++; in ucan_handle_error_frame()
|
| /linux/drivers/net/ethernet/broadcom/ |
| H A D | bnx2.c | 6801 bnx2_get_stats64(struct net_device *dev, struct rtnl_link_stats64 *net_stats) in bnx2_get_stats64() argument 6808 net_stats->rx_packets = in bnx2_get_stats64() 6813 net_stats->tx_packets = in bnx2_get_stats64() 6818 net_stats->rx_bytes = in bnx2_get_stats64() 6821 net_stats->tx_bytes = in bnx2_get_stats64() 6824 net_stats->multicast = in bnx2_get_stats64() 6827 net_stats->collisions = in bnx2_get_stats64() 6830 net_stats->rx_length_errors = in bnx2_get_stats64() 6834 net_stats->rx_over_errors = in bnx2_get_stats64() 6838 net_stats->rx_frame_errors = in bnx2_get_stats64() [all …]
|
| /linux/drivers/net/ethernet/intel/igc/ |
| H A D | igc_main.c | 5151 struct rtnl_link_stats64 *net_stats = &adapter->stats64; in igc_update_stats() 5181 net_stats->rx_fifo_errors += rqdpc; in igc_update_stats() 5193 net_stats->rx_bytes = bytes; in igc_update_stats() 5194 net_stats->rx_packets = packets; in igc_update_stats() 5209 net_stats->tx_bytes = bytes; in igc_update_stats() 5210 net_stats->tx_packets = packets; in igc_update_stats() 5234 net_stats->rx_fifo_errors += mpc; in igc_update_stats() 5278 net_stats->multicast = adapter->stats.mprc; in igc_update_stats() 5279 net_stats->collisions = adapter->stats.colc; in igc_update_stats() 5286 net_stats in igc_update_stats() 5147 struct rtnl_link_stats64 *net_stats = &adapter->stats64; igc_update_stats() local [all...] |
| H A D | igc_ethtool.c | 821 struct rtnl_link_stats64 *net_stats = &adapter->stats64; in igc_ethtool_get_stats() local 836 p = (char *)net_stats + igc_gstrings_net_stats[j].stat_offset; in igc_ethtool_get_stats()
|
| /linux/drivers/net/fjes/ |
| H A D | fjes_hw.h | 254 struct rtnl_link_stats64 net_stats; member
|
| /linux/drivers/net/ethernet/intel/igb/ |
| H A D | igb_main.c | 6759 struct rtnl_link_stats64 *net_stats = &adapter->stats64; in igb_update_stats() local 6788 net_stats->rx_fifo_errors += rqdpc; in igb_update_stats() 6800 net_stats->rx_bytes = bytes; in igb_update_stats() 6801 net_stats->rx_packets = packets; in igb_update_stats() 6815 net_stats->tx_bytes = bytes; in igb_update_stats() 6816 net_stats->tx_packets = packets; in igb_update_stats() 6839 net_stats->rx_fifo_errors += mpc; in igb_update_stats() 6901 net_stats->multicast = adapter->stats.mprc; in igb_update_stats() 6902 net_stats->collisions = adapter->stats.colc; in igb_update_stats() 6909 net_stats->rx_errors = adapter->stats.rxerrc + in igb_update_stats() [all …]
|
| H A D | igb_ethtool.c | 2292 struct rtnl_link_stats64 *net_stats = &adapter->stats64; in igb_get_ethtool_stats() local 2307 p = (char *)net_stats + igb_gstrings_net_stats[j].stat_offset; in igb_get_ethtool_stats()
|
| /linux/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/drivers/net/ethernet/intel/ice/ |
| H A D | ice_main.c | 6967 struct rtnl_link_stats64 *net_stats, *stats_prev; in ice_update_vsi_ring_stats() local 6996 net_stats = &vsi->net_stats; in ice_update_vsi_ring_stats() 7005 net_stats->tx_packets += tx_stats.pkts - stats_prev->tx_packets; in ice_update_vsi_ring_stats() 7006 net_stats->tx_bytes += tx_stats.bytes - stats_prev->tx_bytes; in ice_update_vsi_ring_stats() 7007 net_stats->rx_packets += rx_stats.pkts - stats_prev->rx_packets; in ice_update_vsi_ring_stats() 7008 net_stats->rx_bytes += rx_stats.bytes - stats_prev->rx_bytes; in ice_update_vsi_ring_stats() 7023 struct rtnl_link_stats64 *cur_ns = &vsi->net_stats; in ice_update_vsi_stats() 7221 vsi_stats = &vsi->net_stats; in ice_get_stats64()
|
| H A D | ice.h | 384 struct rtnl_link_stats64 net_stats; member
|
| /linux/drivers/net/ethernet/intel/i40e/ |
| H A D | i40e.h | 834 struct rtnl_link_stats64 net_stats; member
|
| H A D | i40e_main.c | 436 return &vsi->net_stats; in i40e_get_vsi_stats_struct()
|
| /linux/drivers/net/ethernet/intel/ixgbe/ |
| H A D | ixgbe_ethtool.c | 1404 const struct rtnl_link_stats64 *net_stats; in ixgbe_get_ethtool_stats() local 1411 net_stats = dev_get_stats(netdev, &temp); in ixgbe_get_ethtool_stats() 1415 p = (char *) net_stats + in ixgbe_get_ethtool_stats()
|
| /linux/drivers/net/wireless/intel/ipw2x00/ |
| H A D | ipw2200.c | 1857 static DEVICE_ATTR_RW(net_stats);
|