Home
last modified time | relevance | path

Searched refs:n_stats (Results 1 – 23 of 23) sorted by relevance

/linux-2.6.39/net/core/ !
Dethtool.c620 info.n_stats = rc; in ethtool_get_drvinfo()
1636 int ret, n_stats; in ethtool_get_stats() local
1641 n_stats = ops->get_sset_count(dev, ETH_SS_STATS); in ethtool_get_stats()
1642 if (n_stats < 0) in ethtool_get_stats()
1643 return n_stats; in ethtool_get_stats()
1644 WARN_ON(n_stats == 0); in ethtool_get_stats()
1649 stats.n_stats = n_stats; in ethtool_get_stats()
1650 data = kmalloc(n_stats * sizeof(u64), GFP_USER); in ethtool_get_stats()
1660 if (copy_to_user(useraddr, data, stats.n_stats * sizeof(u64))) in ethtool_get_stats()
/linux-2.6.39/include/linux/ !
Dethtool.h76 __u32 n_stats; /* number of u64's from ETHTOOL_GSTATS */ member
296 __u32 n_stats; /* number of u64's being returned */ member
/linux-2.6.39/drivers/net/atl1c/ !
Datl1c_ethtool.c242 drvinfo->n_stats = 0; in atl1c_get_drvinfo()
/linux-2.6.39/drivers/net/stmmac/ !
Dstmmac_ethtool.c104 info->n_stats = STMMAC_STATS_LEN; in stmmac_ethtool_getdrvinfo()
/linux-2.6.39/drivers/net/atl1e/ !
Datl1e_ethtool.c317 drvinfo->n_stats = 0; in atl1e_get_drvinfo()
/linux-2.6.39/drivers/net/bna/ !
Dbnad_ethtool.c1164 if (bnad_get_stats_count_locked(netdev) != stats->n_stats) { in bnad_get_ethtool_stats()
1175 memset(buf, 0, stats->n_stats * sizeof(u64)); in bnad_get_ethtool_stats()
/linux-2.6.39/drivers/net/mlx4/ !
Den_ethtool.c55 drvinfo->n_stats = 0; in mlx4_en_get_drvinfo()
/linux-2.6.39/drivers/net/qlge/ !
Dqlge_ethtool.c376 drvinfo->n_stats = 0; in ql_get_drvinfo()
/linux-2.6.39/drivers/net/vmxnet3/ !
Dvmxnet3_ethtool.c250 drvinfo->n_stats = vmxnet3_get_sset_count(netdev, ETH_SS_STATS); in vmxnet3_get_drvinfo()
/linux-2.6.39/drivers/net/ixgb/ !
Dixgb_ethtool.c530 drvinfo->n_stats = IXGB_STATS_LEN; in ixgb_get_drvinfo()
/linux-2.6.39/drivers/net/ !
Dksz884x.c6532 int n_stats = stats->n_stats; in netdev_get_ethtool_stats() local
6578 if (n > n_stats) in netdev_get_ethtool_stats()
6579 n = n_stats; in netdev_get_ethtool_stats()
6580 n_stats -= n; in netdev_get_ethtool_stats()
Dbcm63xx_enet.c1233 drvinfo->n_stats = BCM_ENET_STATS_LEN; in bcm_enet_get_drvinfo()
Dtehuti.c2184 drvinfo->n_stats = ((priv->stats_flag) ? ARRAY_SIZE(bdx_stat_names) : 0); in bdx_get_drvinfo()
Dmv643xx_eth.c1504 drvinfo->n_stats = ARRAY_SIZE(mv643xx_eth_stats); in mv643xx_eth_get_drvinfo()
Dcassini.c4541 info->n_stats = CAS_NUM_STAT_KEYS; in cas_get_drvinfo()
/linux-2.6.39/drivers/net/sfc/ !
Dethtool.c486 EFX_BUG_ON_PARANOID(stats->n_stats != EFX_ETHTOOL_NUM_STATS); in efx_ethtool_get_stats()
/linux-2.6.39/drivers/net/octeon/ !
Docteon_mgmt.c1018 info->n_stats = 0; in octeon_mgmt_get_drvinfo()
/linux-2.6.39/drivers/net/vxge/ !
Dvxge-ethtool.c91 info->n_stats = STAT_LEN; in vxge_ethtool_gdrvinfo()
/linux-2.6.39/drivers/net/bnx2x/ !
Dbnx2x_ethtool.c632 info->n_stats = BNX2X_NUM_STATS; in bnx2x_get_drvinfo()
/linux-2.6.39/drivers/infiniband/hw/nes/ !
Dnes_nic.c1165 target_ethtool_stats->n_stats = NES_ETHTOOL_STAT_COUNT; in nes_netdev_get_ethtool_stats()
/linux-2.6.39/drivers/net/igb/ !
Digb_ethtool.c753 drvinfo->n_stats = IGB_STATS_LEN; in igb_get_drvinfo()
/linux-2.6.39/drivers/net/atlx/ !
Datl2.c2045 drvinfo->n_stats = 0;
/linux-2.6.39/drivers/net/ixgbe/ !
Dixgbe_ethtool.c885 drvinfo->n_stats = IXGBE_STATS_LEN; in ixgbe_get_drvinfo()