Searched refs:hwstats (Results 1 – 8 of 8) sorted by relevance
| /linux/drivers/net/netdevsim/ |
| H A D | hwstats.c | 10 nsim_dev_hwstats_get_list_head(struct nsim_dev_hwstats *hwstats, in nsim_dev_hwstats_get_list_head() argument 15 return &hwstats->l3_list; in nsim_dev_hwstats_get_list_head() 22 static void nsim_dev_hwstats_traffic_bump(struct nsim_dev_hwstats *hwstats, in nsim_dev_hwstats_traffic_bump() argument 28 hwsdev_list = nsim_dev_hwstats_get_list_head(hwstats, type); in nsim_dev_hwstats_traffic_bump() 44 struct nsim_dev_hwstats *hwstats; in nsim_dev_hwstats_traffic_work() local 46 hwstats = container_of(work, struct nsim_dev_hwstats, traffic_dw.work); in nsim_dev_hwstats_traffic_work() 47 mutex_lock(&hwstats->hwsdev_list_lock); in nsim_dev_hwstats_traffic_work() 48 nsim_dev_hwstats_traffic_bump(hwstats, NETDEV_OFFLOAD_XSTATS_TYPE_L3); in nsim_dev_hwstats_traffic_work() 49 mutex_unlock(&hwstats->hwsdev_list_lock); in nsim_dev_hwstats_traffic_work() 51 schedule_delayed_work(&hwstats->traffic_dw, in nsim_dev_hwstats_traffic_work() [all …]
|
| H A D | netdevsim.h | 353 struct nsim_dev_hwstats hwstats; member
|
| /linux/drivers/net/ethernet/wangxun/libwx/ |
| H A D | wx_ethtool.c | 194 struct wx_hw_stats *hwstats; in wx_get_mac_stats() local 198 hwstats = &wx->stats; in wx_get_mac_stats() 199 mac_stats->MulticastFramesXmittedOK = hwstats->mptc; in wx_get_mac_stats() 200 mac_stats->BroadcastFramesXmittedOK = hwstats->bptc; in wx_get_mac_stats() 201 mac_stats->MulticastFramesReceivedOK = hwstats->mprc; in wx_get_mac_stats() 202 mac_stats->BroadcastFramesReceivedOK = hwstats->bprc; in wx_get_mac_stats() 210 struct wx_hw_stats *hwstats; in wx_get_pause_stats() local 214 hwstats = &wx->stats; in wx_get_pause_stats() 215 stats->tx_pause_frames = hwstats->lxontxc + hwstats->lxofftxc; in wx_get_pause_stats() 216 stats->rx_pause_frames = hwstats->lxonrxc + hwstats->lxoffrxc; in wx_get_pause_stats()
|
| H A D | wx_hw.c | 2854 struct wx_hw_stats *hwstats = &wx->stats; in wx_update_xoff_rx_lfc() local 2867 hwstats->lxoffrxc += data; in wx_update_xoff_rx_lfc() 2883 struct wx_hw_stats *hwstats = &wx->stats; in wx_update_stats() local 2933 hwstats->gprc += rd32(wx, WX_RDM_PKT_CNT); in wx_update_stats() 2934 hwstats->gptc += rd32(wx, WX_TDM_PKT_CNT); in wx_update_stats() 2935 hwstats->gorc += rd64(wx, WX_RDM_BYTE_CNT_LSB); in wx_update_stats() 2936 hwstats->gotc += rd64(wx, WX_TDM_BYTE_CNT_LSB); in wx_update_stats() 2937 hwstats->tpr += rd64(wx, WX_RX_FRAME_CNT_GOOD_BAD_L); in wx_update_stats() 2938 hwstats->tpt += rd64(wx, WX_TX_FRAME_CNT_GOOD_BAD_L); in wx_update_stats() 2939 hwstats->crcerrs += rd64(wx, WX_RX_CRC_ERROR_FRAMES_L); in wx_update_stats() [all …]
|
| H A D | wx_lib.c | 3093 struct wx_hw_stats *hwstats; in wx_get_stats64() local 3134 hwstats = &wx->stats; in wx_get_stats64() 3135 stats->rx_errors = hwstats->crcerrs + hwstats->rlec; in wx_get_stats64() 3136 stats->multicast = hwstats->qmprc; in wx_get_stats64() 3137 stats->rx_length_errors = hwstats->rlec; in wx_get_stats64() 3138 stats->rx_crc_errors = hwstats->crcerrs; in wx_get_stats64()
|
| /linux/drivers/net/ethernet/intel/ixgbe/ |
| H A D | ixgbe_main.c | 948 struct ixgbe_hw_stats *hwstats = &adapter->stats; in ixgbe_update_xoff_rx_lfc() local 963 hwstats->lxoffrxc += data; in ixgbe_update_xoff_rx_lfc() 977 struct ixgbe_hw_stats *hwstats = &adapter->stats; in ixgbe_update_xoff_received() local 1002 hwstats->pxoffrxc[i] += pxoffrxc; in ixgbe_update_xoff_received() 7684 struct ixgbe_hw_stats *hwstats = &adapter->stats; in ixgbe_update_stats() local 7756 hwstats->crcerrs += IXGBE_READ_REG(hw, IXGBE_CRCERRS); in ixgbe_update_stats() 7763 hwstats->mpc[i] += mpc; in ixgbe_update_stats() 7764 total_mpc += hwstats->mpc[i]; in ixgbe_update_stats() 7765 hwstats->pxontxc[i] += IXGBE_READ_REG(hw, IXGBE_PXONTXC(i)); in ixgbe_update_stats() 7766 hwstats->pxofftxc[i] += IXGBE_READ_REG(hw, IXGBE_PXOFFTXC(i)); in ixgbe_update_stats() [all …]
|
| /linux/tools/testing/selftests/drivers/net/netdevsim/ |
| H A D | hw_stats_l3.sh | 89 echo $ifindex > $(DEBUGFS_DIR $instance)/hwstats/$type/$action
|
| /linux/drivers/net/ethernet/mediatek/ |
| H A D | mtk_eth_soc.c | 4651 struct mtk_hw_stats *hwstats = mac->hw_stats; in mtk_get_ethtool_stats() local 4660 if (spin_trylock_bh(&hwstats->stats_lock)) { in mtk_get_ethtool_stats() 4662 spin_unlock_bh(&hwstats->stats_lock); in mtk_get_ethtool_stats() 4666 data_src = (u64 *)hwstats; in mtk_get_ethtool_stats() 4670 start = u64_stats_fetch_begin(&hwstats->syncp); in mtk_get_ethtool_stats() 4676 } while (u64_stats_fetch_retry(&hwstats->syncp, start)); in mtk_get_ethtool_stats()
|