Searched refs:hwstats (Results 1 – 10 of 10) sorted by relevance
| /linux/drivers/net/netdevsim/ |
| A D | hwstats.c | 15 return &hwstats->l3_list; in nsim_dev_hwstats_get_list_head() 44 struct nsim_dev_hwstats *hwstats; in nsim_dev_hwstats_traffic_work() local 227 nsim_dev = container_of(hwstats, struct nsim_dev, hwstats); in nsim_dev_hwstats_enable_ifindex() 412 struct nsim_dev_hwstats *hwstats = &nsim_dev->hwstats; in nsim_dev_hwstats_init() local 425 if (IS_ERR(hwstats->ddir)) { in nsim_dev_hwstats_init() 426 err = PTR_ERR(hwstats->ddir); in nsim_dev_hwstats_init() 430 hwstats->l3_ddir = debugfs_create_dir("l3", hwstats->ddir); in nsim_dev_hwstats_init() 436 debugfs_create_file("enable_ifindex", 0200, hwstats->l3_ddir, hwstats, in nsim_dev_hwstats_init() 438 debugfs_create_file("disable_ifindex", 0200, hwstats->l3_ddir, hwstats, in nsim_dev_hwstats_init() 440 debugfs_create_file("fail_next_enable", 0200, hwstats->l3_ddir, hwstats, in nsim_dev_hwstats_init() [all …]
|
| A D | Makefile | 6 netdev.o dev.o ethtool.o fib.o bus.o health.o hwstats.o udp_tunnels.o
|
| A D | netdevsim.h | 320 struct nsim_dev_hwstats hwstats; member
|
| /linux/drivers/net/ethernet/wangxun/libwx/ |
| A D | wx_ethtool.c | 168 struct wx_hw_stats *hwstats; in wx_get_mac_stats() local 172 hwstats = &wx->stats; in wx_get_mac_stats() 173 mac_stats->MulticastFramesXmittedOK = hwstats->mptc; in wx_get_mac_stats() 174 mac_stats->BroadcastFramesXmittedOK = hwstats->bptc; in wx_get_mac_stats() 175 mac_stats->MulticastFramesReceivedOK = hwstats->mprc; in wx_get_mac_stats() 176 mac_stats->BroadcastFramesReceivedOK = hwstats->bprc; in wx_get_mac_stats() 184 struct wx_hw_stats *hwstats; in wx_get_pause_stats() local 188 hwstats = &wx->stats; in wx_get_pause_stats() 189 stats->tx_pause_frames = hwstats->lxontxc + hwstats->lxofftxc; in wx_get_pause_stats() 190 stats->rx_pause_frames = hwstats->lxonoffrxc; in wx_get_pause_stats()
|
| A D | wx_hw.c | 2303 struct wx_hw_stats *hwstats = &wx->stats; in wx_update_stats() local 2333 hwstats->gprc += rd32(wx, WX_RDM_PKT_CNT); in wx_update_stats() 2334 hwstats->gptc += rd32(wx, WX_TDM_PKT_CNT); in wx_update_stats() 2335 hwstats->gorc += rd64(wx, WX_RDM_BYTE_CNT_LSB); in wx_update_stats() 2336 hwstats->gotc += rd64(wx, WX_TDM_BYTE_CNT_LSB); in wx_update_stats() 2348 hwstats->lxontxc += rd32(wx, WX_RDB_LXONTXC); in wx_update_stats() 2349 hwstats->lxofftxc += rd32(wx, WX_RDB_LXOFFTXC); in wx_update_stats() 2351 hwstats->b2ospc += rd32(wx, WX_MNG_BMC2OS_CNT); in wx_update_stats() 2352 hwstats->o2bspc += rd32(wx, WX_MNG_OS2BMC_CNT); in wx_update_stats() 2354 hwstats->rdmdrop += rd32(wx, WX_RDM_DRP_PKT); in wx_update_stats() [all …]
|
| A D | wx_lib.c | 2656 struct wx_hw_stats *hwstats; in wx_get_stats64() local 2697 hwstats = &wx->stats; in wx_get_stats64() 2698 stats->rx_errors = hwstats->crcerrs + hwstats->rlec; in wx_get_stats64() 2699 stats->multicast = hwstats->qmprc; in wx_get_stats64() 2700 stats->rx_length_errors = hwstats->rlec; in wx_get_stats64() 2701 stats->rx_crc_errors = hwstats->crcerrs; in wx_get_stats64()
|
| /linux/drivers/net/ethernet/intel/ixgbe/ |
| A D | ixgbe_main.c | 945 hwstats->lxoffrxc += data; in ixgbe_update_xoff_rx_lfc() 7194 hwstats->mpc[i] += mpc; in ixgbe_update_stats() 7203 hwstats->pxonrxc[i] += in ixgbe_update_stats() 7211 hwstats->pxonrxc[i] += in ixgbe_update_stats() 7237 hwstats->gprc -= missed_rx; in ixgbe_update_stats() 7299 hwstats->bprc += bprc; in ixgbe_update_stats() 7302 hwstats->mprc -= bprc; in ixgbe_update_stats() 7312 hwstats->lxontxc += lxon; in ixgbe_update_stats() 7314 hwstats->lxofftxc += lxoff; in ixgbe_update_stats() 7321 hwstats->gptc -= xon_off_tot; in ixgbe_update_stats() [all …]
|
| A D | ixgbe_ethtool.c | 539 struct ixgbe_hw_stats *hwstats = &adapter->stats; in ixgbe_get_pause_stats() local 541 stats->tx_pause_frames = hwstats->lxontxc + hwstats->lxofftxc; in ixgbe_get_pause_stats() 542 stats->rx_pause_frames = hwstats->lxonrxc + hwstats->lxoffrxc; in ixgbe_get_pause_stats()
|
| /linux/tools/testing/selftests/drivers/net/netdevsim/ |
| A D | hw_stats_l3.sh | 89 echo $ifindex > $(DEBUGFS_DIR $instance)/hwstats/$type/$action
|
| /linux/drivers/net/ethernet/mediatek/ |
| A D | mtk_eth_soc.c | 4381 struct mtk_hw_stats *hwstats = mac->hw_stats; in mtk_get_ethtool_stats() local 4390 if (spin_trylock_bh(&hwstats->stats_lock)) { in mtk_get_ethtool_stats() 4392 spin_unlock_bh(&hwstats->stats_lock); in mtk_get_ethtool_stats() 4396 data_src = (u64 *)hwstats; in mtk_get_ethtool_stats() 4400 start = u64_stats_fetch_begin(&hwstats->syncp); in mtk_get_ethtool_stats() 4406 } while (u64_stats_fetch_retry(&hwstats->syncp, start)); in mtk_get_ethtool_stats()
|
Completed in 55 milliseconds