Home
last modified time | relevance | path

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

/net/ethtool/
A Dstats.c199 unsigned int n_grps = 0, n_stats = 0; in stats_reply_size() local
205 n_stats += sizeof(struct ethtool_eth_phy_stats) / sizeof(u64); in stats_reply_size()
209 n_stats += sizeof(struct ethtool_eth_mac_stats) / sizeof(u64); in stats_reply_size()
213 n_stats += sizeof(struct ethtool_eth_ctrl_stats) / sizeof(u64); in stats_reply_size()
217 n_stats += sizeof(struct ethtool_rmon_stats) / sizeof(u64); in stats_reply_size()
227 n_stats += sizeof(struct ethtool_phy_stats) / sizeof(u64); in stats_reply_size()
234 len += n_stats * (nla_total_size(0) + /* _A_STATS_GRP_STAT */ in stats_reply_size()
A Dioctl.c2448 int ret, n_stats; in ethtool_get_stats() local
2454 if (n_stats < 0) in ethtool_get_stats()
2455 return n_stats; in ethtool_get_stats()
2462 stats.n_stats = n_stats; in ethtool_get_stats()
2464 if (n_stats) { in ethtool_get_stats()
2488 if (n_stats < 0) in ethtool_vzalloc_stats_array()
2489 return n_stats; in ethtool_vzalloc_stats_array()
2507 int n_stats, ret; in ethtool_get_phy_stats_phydev() local
2518 stats->n_stats = n_stats; in ethtool_get_phy_stats_phydev()
2527 int n_stats, ret; in ethtool_get_phy_stats_ethtool() local
[all …]

Completed in 14 milliseconds