Home
last modified time | relevance | path

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

/net/ethtool/
Dstats.c147 unsigned int n_grps = 0, n_stats = 0; in stats_reply_size() local
151 n_stats += sizeof(struct ethtool_eth_phy_stats) / sizeof(u64); in stats_reply_size()
155 n_stats += sizeof(struct ethtool_eth_mac_stats) / sizeof(u64); in stats_reply_size()
159 n_stats += sizeof(struct ethtool_eth_ctrl_stats) / sizeof(u64); in stats_reply_size()
163 n_stats += sizeof(struct ethtool_rmon_stats) / sizeof(u64); in stats_reply_size()
176 len += n_stats * (nla_total_size(0) + /* _A_STATS_GRP_STAT */ in stats_reply_size()
Dioctl.c732 info.n_stats = rc; in ethtool_get_drvinfo()
2018 int ret, n_stats; in ethtool_get_stats() local
2023 n_stats = ops->get_sset_count(dev, ETH_SS_STATS); in ethtool_get_stats()
2024 if (n_stats < 0) in ethtool_get_stats()
2025 return n_stats; in ethtool_get_stats()
2026 if (n_stats > S32_MAX / sizeof(u64)) in ethtool_get_stats()
2028 WARN_ON_ONCE(!n_stats); in ethtool_get_stats()
2032 stats.n_stats = n_stats; in ethtool_get_stats()
2034 if (n_stats) { in ethtool_get_stats()
2035 data = vzalloc(array_size(n_stats, sizeof(u64))); in ethtool_get_stats()
[all …]