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 | 340 struct nsim_dev_hwstats hwstats; member
|
| /linux/drivers/net/ethernet/wangxun/libwx/ |
| H A D | wx_hw.c | 2840 struct wx_hw_stats *hwstats = &wx->stats; in wx_update_stats() local 2882 hwstats->gprc += rd32(wx, WX_RDM_PKT_CNT); in wx_update_stats() 2883 hwstats->gptc += rd32(wx, WX_TDM_PKT_CNT); in wx_update_stats() 2884 hwstats->gorc += rd64(wx, WX_RDM_BYTE_CNT_LSB); in wx_update_stats() 2885 hwstats->gotc += rd64(wx, WX_TDM_BYTE_CNT_LSB); in wx_update_stats() 2886 hwstats->tpr += rd64(wx, WX_RX_FRAME_CNT_GOOD_BAD_L); in wx_update_stats() 2887 hwstats->tpt += rd64(wx, WX_TX_FRAME_CNT_GOOD_BAD_L); in wx_update_stats() 2888 hwstats->crcerrs += rd64(wx, WX_RX_CRC_ERROR_FRAMES_L); in wx_update_stats() 2889 hwstats->rlec += rd64(wx, WX_RX_LEN_ERROR_FRAMES_L); in wx_update_stats() 2890 hwstats->bprc += rd64(wx, WX_RX_BC_FRAMES_GOOD_L); in wx_update_stats() [all …]
|
| H A D | wx_lib.c | 3051 struct wx_hw_stats *hwstats; in wx_get_stats64() local 3092 hwstats = &wx->stats; in wx_get_stats64() 3093 stats->rx_errors = hwstats->crcerrs + hwstats->rlec; in wx_get_stats64() 3094 stats->multicast = hwstats->qmprc; in wx_get_stats64() 3095 stats->rx_length_errors = hwstats->rlec; in wx_get_stats64() 3096 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() 7658 struct ixgbe_hw_stats *hwstats = &adapter->stats; in ixgbe_update_stats() local 7730 hwstats->crcerrs += IXGBE_READ_REG(hw, IXGBE_CRCERRS); in ixgbe_update_stats() 7737 hwstats->mpc[i] += mpc; in ixgbe_update_stats() 7738 total_mpc += hwstats->mpc[i]; in ixgbe_update_stats() 7739 hwstats->pxontxc[i] += IXGBE_READ_REG(hw, IXGBE_PXONTXC(i)); in ixgbe_update_stats() 7740 hwstats->pxofftxc[i] += IXGBE_READ_REG(hw, IXGBE_PXOFFTXC(i)); in ixgbe_update_stats() [all …]
|
| H A D | ixgbe_ethtool.c | 541 struct ixgbe_hw_stats *hwstats = &adapter->stats; in ixgbe_get_pause_stats() local 543 stats->tx_pause_frames = hwstats->lxontxc + hwstats->lxofftxc; in ixgbe_get_pause_stats() 544 stats->rx_pause_frames = hwstats->lxonrxc + hwstats->lxoffrxc; in ixgbe_get_pause_stats()
|
| /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 | 4608 struct mtk_hw_stats *hwstats = mac->hw_stats; in mtk_get_ethtool_stats() local 4617 if (spin_trylock_bh(&hwstats->stats_lock)) { in mtk_get_ethtool_stats() 4619 spin_unlock_bh(&hwstats->stats_lock); in mtk_get_ethtool_stats() 4623 data_src = (u64 *)hwstats; in mtk_get_ethtool_stats() 4627 start = u64_stats_fetch_begin(&hwstats->syncp); in mtk_get_ethtool_stats() 4633 } while (u64_stats_fetch_retry(&hwstats->syncp, start)); in mtk_get_ethtool_stats()
|