Lines Matching refs:stats_idx
162 int stats_idx, base_stats_idx, max_stats_idx; in gve_get_ethtool_stats() local
256 for (stats_idx = base_stats_idx; stats_idx < max_stats_idx; in gve_get_ethtool_stats()
257 stats_idx += NIC_RX_STATS_REPORT_NUM) { in gve_get_ethtool_stats()
258 u32 stat_name = be32_to_cpu(report_stats[stats_idx].stat_name); in gve_get_ethtool_stats()
259 u32 queue_id = be32_to_cpu(report_stats[stats_idx].queue_id); in gve_get_ethtool_stats()
266 rx_qid_to_stats_idx[queue_id] = stats_idx; in gve_get_ethtool_stats()
302 stats_idx = rx_qid_to_stats_idx[ring]; in gve_get_ethtool_stats()
305 be64_to_cpu(report_stats[stats_idx + j].value); in gve_get_ethtool_stats()
332 for (stats_idx = base_stats_idx; stats_idx < max_stats_idx; in gve_get_ethtool_stats()
333 stats_idx += NIC_TX_STATS_REPORT_NUM) { in gve_get_ethtool_stats()
334 u32 stat_name = be32_to_cpu(report_stats[stats_idx].stat_name); in gve_get_ethtool_stats()
335 u32 queue_id = be32_to_cpu(report_stats[stats_idx].queue_id); in gve_get_ethtool_stats()
342 tx_qid_to_stats_idx[queue_id] = stats_idx; in gve_get_ethtool_stats()
377 stats_idx = tx_qid_to_stats_idx[ring]; in gve_get_ethtool_stats()
380 be64_to_cpu(report_stats[stats_idx + j].value); in gve_get_ethtool_stats()