Searched refs:n_stats (Results 1 - 28 of 28) sorted by relevance

/linux-4.1.27/drivers/net/ethernet/qualcomm/
H A Dqca_spi.c238 struct net_device_stats *n_stats = &qca->net_dev->stats; qcaspi_transmit() local
264 n_stats->tx_packets++; qcaspi_transmit()
265 n_stats->tx_bytes += qca->txr.skb[qca->txr.head]->len; qcaspi_transmit()
292 struct net_device_stats *n_stats = &net_dev->stats; qcaspi_receive() local
363 n_stats->rx_errors++; qcaspi_receive()
364 n_stats->rx_dropped++; qcaspi_receive()
368 n_stats->rx_errors++; qcaspi_receive()
369 n_stats->rx_dropped++; qcaspi_receive()
373 n_stats->rx_packets++; qcaspi_receive()
374 n_stats->rx_bytes += retcode; qcaspi_receive()
384 n_stats->rx_errors++; qcaspi_receive()
/linux-4.1.27/net/core/
H A Dethtool.c415 info.n_stats = rc; ethtool_get_drvinfo()
1360 int ret, n_stats; ethtool_get_stats() local
1365 n_stats = ops->get_sset_count(dev, ETH_SS_STATS); ethtool_get_stats()
1366 if (n_stats < 0) ethtool_get_stats()
1367 return n_stats; ethtool_get_stats()
1368 WARN_ON(n_stats == 0); ethtool_get_stats()
1373 stats.n_stats = n_stats; ethtool_get_stats()
1374 data = kmalloc(n_stats * sizeof(u64), GFP_USER); ethtool_get_stats()
1384 if (copy_to_user(useraddr, data, stats.n_stats * sizeof(u64))) ethtool_get_stats()
/linux-4.1.27/drivers/net/ethernet/sfc/
H A Dethtool.c364 size_t n_stats = 0; efx_describe_per_queue_stats() local
369 n_stats++; efx_for_each_channel()
382 n_stats++; efx_for_each_channel()
390 return n_stats;
/linux-4.1.27/drivers/net/ethernet/atheros/atl1c/
H A Datl1c_ethtool.c236 drvinfo->n_stats = 0; atl1c_get_drvinfo()
/linux-4.1.27/drivers/net/ethernet/brocade/bna/
H A Dbnad_ethtool.c860 if (bnad_get_stats_count_locked(netdev) != stats->n_stats) { bnad_get_ethtool_stats()
871 memset(buf, 0, stats->n_stats * sizeof(u64)); bnad_get_ethtool_stats()
/linux-4.1.27/drivers/net/ethernet/atheros/atl1e/
H A Datl1e_ethtool.c319 drvinfo->n_stats = 0; atl1e_get_drvinfo()
/linux-4.1.27/drivers/net/vmxnet3/
H A Dvmxnet3_ethtool.c211 drvinfo->n_stats = vmxnet3_get_sset_count(netdev, ETH_SS_STATS); vmxnet3_get_drvinfo()
/linux-4.1.27/include/uapi/linux/
H A Dethtool.h159 * @n_stats: Number of u64 statistics returned by the %ETHTOOL_GSTATS
184 __u32 n_stats; member in struct:ethtool_drvinfo
635 * @n_stats: On return, the number of statistics
645 __u32 n_stats; member in struct:ethtool_stats
/linux-4.1.27/drivers/net/ethernet/intel/ixgb/
H A Dixgb_ethtool.c482 drvinfo->n_stats = IXGB_STATS_LEN; ixgb_get_drvinfo()
/linux-4.1.27/drivers/net/ethernet/qlogic/qlge/
H A Dqlge_ethtool.c418 drvinfo->n_stats = 0; ql_get_drvinfo()
/linux-4.1.27/drivers/net/ethernet/amd/xgbe/
H A Dxgbe-ethtool.c373 drvinfo->n_stats = XGBE_STATS_COUNT; xgbe_get_drvinfo()
/linux-4.1.27/drivers/net/ethernet/broadcom/
H A Dbcm63xx_enet.c1336 drvinfo->n_stats = BCM_ENET_STATS_LEN; bcm_enet_get_drvinfo()
2600 drvinfo->n_stats = BCM_ENETSW_STATS_LEN; bcm_enetsw_get_drvinfo()
H A Dbcmsysport.c290 info->n_stats = BCM_SYSPORT_STATS_LEN; bcm_sysport_get_drvinfo()
/linux-4.1.27/drivers/net/ethernet/intel/fm10k/
H A Dfm10k_ethtool.c401 info->n_stats = fm10k_get_sset_count(dev, ETH_SS_STATS); fm10k_get_drvinfo()
/linux-4.1.27/drivers/net/ethernet/neterion/vxge/
H A Dvxge-ethtool.c111 info->n_stats = STAT_LEN; vxge_ethtool_gdrvinfo()
/linux-4.1.27/drivers/net/ethernet/octeon/
H A Docteon_mgmt.c1347 info->n_stats = 0; octeon_mgmt_get_drvinfo()
/linux-4.1.27/drivers/net/ethernet/micrel/
H A Dksz884x.c6519 int n_stats = stats->n_stats; netdev_get_ethtool_stats() local
6565 if (n > n_stats) netdev_get_ethtool_stats()
6566 n = n_stats; netdev_get_ethtool_stats()
6567 n_stats -= n; netdev_get_ethtool_stats()
/linux-4.1.27/drivers/net/ethernet/mellanox/mlx4/
H A Den_ethtool.c98 drvinfo->n_stats = 0; mlx4_en_get_drvinfo()
/linux-4.1.27/drivers/net/ethernet/qlogic/qlcnic/
H A Dqlcnic_ethtool.c1339 memset(data, 0, stats->n_stats * sizeof(u64)); qlcnic_get_ethtool_stats()
/linux-4.1.27/drivers/infiniband/hw/nes/
H A Dnes_nic.c1137 target_ethtool_stats->n_stats = NES_ETHTOOL_STAT_COUNT; nes_netdev_get_ethtool_stats()
/linux-4.1.27/drivers/net/ethernet/intel/igb/
H A Digb_ethtool.c845 drvinfo->n_stats = IGB_STATS_LEN; igb_get_drvinfo()
/linux-4.1.27/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_ethtool.c938 drvinfo->n_stats = IXGBE_STATS_LEN; ixgbe_get_drvinfo()
/linux-4.1.27/drivers/net/ethernet/marvell/
H A Dmv643xx_eth.c1589 drvinfo->n_stats = ARRAY_SIZE(mv643xx_eth_stats); mv643xx_eth_get_drvinfo()
/linux-4.1.27/drivers/net/ethernet/tehuti/
H A Dtehuti.c2186 drvinfo->n_stats = ((priv->stats_flag) ? ARRAY_SIZE(bdx_stat_names) : 0); bdx_get_drvinfo()
/linux-4.1.27/drivers/net/ethernet/atheros/atlx/
H A Datl2.c2033 drvinfo->n_stats = 0; atl2_get_drvinfo()
/linux-4.1.27/drivers/net/ethernet/broadcom/bnx2x/
H A Dbnx2x_ethtool.c1065 info->n_stats = BNX2X_NUM_STATS; bnx2x_get_drvinfo()
/linux-4.1.27/drivers/net/ethernet/broadcom/genet/
H A Dbcmgenet.c649 info->n_stats = BCMGENET_STATS_LEN; bcmgenet_get_drvinfo()
/linux-4.1.27/drivers/net/ethernet/sun/
H A Dcassini.c4535 info->n_stats = CAS_NUM_STAT_KEYS; cas_get_drvinfo()

Completed in 961 milliseconds