Searched refs:hwstats (Results 1 – 7 of 7) sorted by relevance
/linux-6.1.9/drivers/net/netdevsim/ |
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 …]
|
D | Makefile | 6 netdev.o dev.o ethtool.o fib.o bus.o health.o hwstats.o udp_tunnels.o
|
D | netdevsim.h | 284 struct nsim_dev_hwstats hwstats; member
|
/linux-6.1.9/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_main.c | 930 struct ixgbe_hw_stats *hwstats = &adapter->stats; in ixgbe_update_xoff_rx_lfc() local 945 hwstats->lxoffrxc += data; in ixgbe_update_xoff_rx_lfc() 963 struct ixgbe_hw_stats *hwstats = &adapter->stats; in ixgbe_update_xoff_received() local 988 hwstats->pxoffrxc[i] += pxoffrxc; in ixgbe_update_xoff_received() 7088 struct ixgbe_hw_stats *hwstats = &adapter->stats; in ixgbe_update_stats() local 7160 hwstats->crcerrs += IXGBE_READ_REG(hw, IXGBE_CRCERRS); in ixgbe_update_stats() 7167 hwstats->mpc[i] += mpc; in ixgbe_update_stats() 7168 total_mpc += hwstats->mpc[i]; in ixgbe_update_stats() 7169 hwstats->pxontxc[i] += IXGBE_READ_REG(hw, IXGBE_PXONTXC(i)); in ixgbe_update_stats() 7170 hwstats->pxofftxc[i] += IXGBE_READ_REG(hw, IXGBE_PXOFFTXC(i)); in ixgbe_update_stats() [all …]
|
D | ixgbe_ethtool.c | 537 struct ixgbe_hw_stats *hwstats = &adapter->stats; in ixgbe_get_pause_stats() local 539 stats->tx_pause_frames = hwstats->lxontxc + hwstats->lxofftxc; in ixgbe_get_pause_stats() 540 stats->rx_pause_frames = hwstats->lxonrxc + hwstats->lxoffrxc; in ixgbe_get_pause_stats()
|
/linux-6.1.9/tools/testing/selftests/drivers/net/netdevsim/ |
D | hw_stats_l3.sh | 89 echo $ifindex > $(DEBUGFS_DIR $instance)/hwstats/$type/$action
|
/linux-6.1.9/drivers/net/ethernet/mediatek/ |
D | mtk_eth_soc.c | 3691 struct mtk_hw_stats *hwstats = mac->hw_stats; in mtk_get_ethtool_stats() local 3700 if (spin_trylock_bh(&hwstats->stats_lock)) { in mtk_get_ethtool_stats() 3702 spin_unlock_bh(&hwstats->stats_lock); in mtk_get_ethtool_stats() 3706 data_src = (u64 *)hwstats; in mtk_get_ethtool_stats() 3710 start = u64_stats_fetch_begin_irq(&hwstats->syncp); in mtk_get_ethtool_stats() 3716 } while (u64_stats_fetch_retry_irq(&hwstats->syncp, start)); in mtk_get_ethtool_stats()
|