/linux-4.1.27/drivers/net/ethernet/qualcomm/ |
H A D | qca_spi.c | 238 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 D | ethtool.c | 415 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 D | ethtool.c | 364 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 D | atl1c_ethtool.c | 236 drvinfo->n_stats = 0; atl1c_get_drvinfo()
|
/linux-4.1.27/drivers/net/ethernet/brocade/bna/ |
H A D | bnad_ethtool.c | 860 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 D | atl1e_ethtool.c | 319 drvinfo->n_stats = 0; atl1e_get_drvinfo()
|
/linux-4.1.27/drivers/net/vmxnet3/ |
H A D | vmxnet3_ethtool.c | 211 drvinfo->n_stats = vmxnet3_get_sset_count(netdev, ETH_SS_STATS); vmxnet3_get_drvinfo()
|
/linux-4.1.27/include/uapi/linux/ |
H A D | ethtool.h | 159 * @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 D | ixgb_ethtool.c | 482 drvinfo->n_stats = IXGB_STATS_LEN; ixgb_get_drvinfo()
|
/linux-4.1.27/drivers/net/ethernet/qlogic/qlge/ |
H A D | qlge_ethtool.c | 418 drvinfo->n_stats = 0; ql_get_drvinfo()
|
/linux-4.1.27/drivers/net/ethernet/amd/xgbe/ |
H A D | xgbe-ethtool.c | 373 drvinfo->n_stats = XGBE_STATS_COUNT; xgbe_get_drvinfo()
|
/linux-4.1.27/drivers/net/ethernet/broadcom/ |
H A D | bcm63xx_enet.c | 1336 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 D | bcmsysport.c | 290 info->n_stats = BCM_SYSPORT_STATS_LEN; bcm_sysport_get_drvinfo()
|
/linux-4.1.27/drivers/net/ethernet/intel/fm10k/ |
H A D | fm10k_ethtool.c | 401 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 D | vxge-ethtool.c | 111 info->n_stats = STAT_LEN; vxge_ethtool_gdrvinfo()
|
/linux-4.1.27/drivers/net/ethernet/octeon/ |
H A D | octeon_mgmt.c | 1347 info->n_stats = 0; octeon_mgmt_get_drvinfo()
|
/linux-4.1.27/drivers/net/ethernet/micrel/ |
H A D | ksz884x.c | 6519 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 D | en_ethtool.c | 98 drvinfo->n_stats = 0; mlx4_en_get_drvinfo()
|
/linux-4.1.27/drivers/net/ethernet/qlogic/qlcnic/ |
H A D | qlcnic_ethtool.c | 1339 memset(data, 0, stats->n_stats * sizeof(u64)); qlcnic_get_ethtool_stats()
|
/linux-4.1.27/drivers/infiniband/hw/nes/ |
H A D | nes_nic.c | 1137 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 D | igb_ethtool.c | 845 drvinfo->n_stats = IGB_STATS_LEN; igb_get_drvinfo()
|
/linux-4.1.27/drivers/net/ethernet/intel/ixgbe/ |
H A D | ixgbe_ethtool.c | 938 drvinfo->n_stats = IXGBE_STATS_LEN; ixgbe_get_drvinfo()
|
/linux-4.1.27/drivers/net/ethernet/marvell/ |
H A D | mv643xx_eth.c | 1589 drvinfo->n_stats = ARRAY_SIZE(mv643xx_eth_stats); mv643xx_eth_get_drvinfo()
|
/linux-4.1.27/drivers/net/ethernet/tehuti/ |
H A D | tehuti.c | 2186 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 D | atl2.c | 2033 drvinfo->n_stats = 0; atl2_get_drvinfo()
|
/linux-4.1.27/drivers/net/ethernet/broadcom/bnx2x/ |
H A D | bnx2x_ethtool.c | 1065 info->n_stats = BNX2X_NUM_STATS; bnx2x_get_drvinfo()
|
/linux-4.1.27/drivers/net/ethernet/broadcom/genet/ |
H A D | bcmgenet.c | 649 info->n_stats = BCMGENET_STATS_LEN; bcmgenet_get_drvinfo()
|
/linux-4.1.27/drivers/net/ethernet/sun/ |
H A D | cassini.c | 4535 info->n_stats = CAS_NUM_STAT_KEYS; cas_get_drvinfo()
|