| /linux/drivers/net/ethernet/microchip/lan966x/ |
| H A D | lan966x_ethtool.c | 300 uint idx = i * lan966x->num_stats; in lan966x_stats_update() 305 for (j = 0; j < lan966x->num_stats; j++) { in lan966x_stats_update() 324 return lan966x->num_stats; in lan966x_get_sset_count() 336 for (i = 0; i < lan966x->num_stats; i++) in lan966x_get_strings() 352 for (i = 0; i < lan966x->num_stats; i++) in lan966x_get_ethtool_stats() 354 lan966x->num_stats + i]; in lan966x_get_ethtool_stats() 366 idx = port->chip_port * lan966x->num_stats; in lan966x_get_eth_mac_stats() 443 idx = port->chip_port * lan966x->num_stats; in lan966x_get_eth_rmon_stats() 604 idx = port->chip_port * lan966x->num_stats; in lan966x_stats_get() 696 lan966x->num_stats = ARRAY_SIZE(lan966x_stats_layout); in lan966x_stats_init() [all …]
|
| H A D | lan966x_main.h | 296 u32 num_stats; member
|
| /linux/drivers/net/ethernet/ti/ |
| H A D | am65-cpsw-ethtool.c | 607 u32 i, num_stats; in am65_cpsw_get_strings() local 612 num_stats = ARRAY_SIZE(am65_host_stats); in am65_cpsw_get_strings() 614 for (i = 0; i < num_stats; i++) { in am65_cpsw_get_strings() 619 num_stats = ARRAY_SIZE(am65_slave_stats); in am65_cpsw_get_strings() 621 for (i = 0; i < num_stats; i++) { in am65_cpsw_get_strings() 627 num_stats = ARRAY_SIZE(am65_cpsw_ethtool_priv_flags); in am65_cpsw_get_strings() 629 for (i = 0; i < num_stats; i++) { in am65_cpsw_get_strings() 645 u32 i, num_stats; in am65_cpsw_get_ethtool_stats() local 649 num_stats = ARRAY_SIZE(am65_host_stats); in am65_cpsw_get_ethtool_stats() 651 for (i = 0; i < num_stats; i++) in am65_cpsw_get_ethtool_stats() [all …]
|
| /linux/drivers/net/ethernet/microchip/sparx5/ |
| H A D | sparx5_ethtool.c | 208 portstats = &sparx5->stats[portno * sparx5->num_stats]; in sparx5_get_queue_sys_stats() 232 u64 *portstats = &sparx5->stats[portno * sparx5->num_stats]; in sparx5_get_ana_ac_stats_stats() 507 u64 *portstats = &sparx5->stats[portno * sparx5->num_stats]; in sparx5_get_device_stats() 790 u64 *portstats = &sparx5->stats[portno * sparx5->num_stats]; in sparx5_get_asm_stats() 820 portstats = &sparx5->stats[portno * sparx5->num_stats]; in sparx5_get_eth_phy_stats() 845 portstats = &sparx5->stats[portno * sparx5->num_stats]; in sparx5_get_eth_mac_stats() 913 portstats = &sparx5->stats[portno * sparx5->num_stats]; in sparx5_get_eth_mac_ctrl_stats() 945 portstats = &sparx5->stats[portno * sparx5->num_stats]; in sparx5_get_eth_rmon_stats() 1028 portstats = &sparx5->stats[portno * sparx5->num_stats]; in sparx5_get_sset_data() 1059 portstats = &sparx5->stats[port->portno * sparx5->num_stats]; in sparx5_get_stats64() [all …]
|
| H A D | sparx5_main.h | 381 u32 num_stats; member
|
| /linux/drivers/net/ethernet/qlogic/qlcnic/ |
| H A D | qlcnic_ethtool.c | 1198 int index, i, num_stats; in qlcnic_get_strings() local 1207 num_stats = ARRAY_SIZE(qlcnic_tx_queue_stats_strings); in qlcnic_get_strings() 1209 for (index = 0; index < num_stats; index++) { in qlcnic_get_strings() 1221 num_stats = ARRAY_SIZE(qlcnic_83xx_tx_stats_strings); in qlcnic_get_strings() 1222 for (i = 0; i < num_stats; i++) { in qlcnic_get_strings() 1226 num_stats = ARRAY_SIZE(qlcnic_83xx_mac_stats_strings); in qlcnic_get_strings() 1227 for (i = 0; i < num_stats; i++) { in qlcnic_get_strings() 1231 num_stats = ARRAY_SIZE(qlcnic_83xx_rx_stats_strings); in qlcnic_get_strings() 1232 for (i = 0; i < num_stats; i++) { in qlcnic_get_strings() 1238 num_stats = ARRAY_SIZE(qlcnic_83xx_mac_stats_strings); in qlcnic_get_strings() [all …]
|
| /linux/drivers/virtio/ |
| H A D | virtio_balloon.c | 445 unsigned int len, num_stats; in stats_handle_request() local 447 num_stats = update_balloon_stats(vb); in stats_handle_request() 452 sg_init_one(&sg, vb->stats, sizeof(vb->stats[0]) * num_stats); in stats_handle_request() 615 unsigned int num_stats; in init_vqs() local 622 num_stats = update_balloon_stats(vb); in init_vqs() 624 sg_init_one(&sg, vb->stats, sizeof(vb->stats[0]) * num_stats); in init_vqs()
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/ |
| H A D | en_stats.c | 577 int num_stats = 0; in MLX5E_DECLARE_STATS_GRP_OP_NUM_STATS() local 580 num_stats += NUM_Q_COUNTERS; in MLX5E_DECLARE_STATS_GRP_OP_NUM_STATS() 583 num_stats += NUM_DROP_RQ_COUNTERS; in MLX5E_DECLARE_STATS_GRP_OP_NUM_STATS() 585 return num_stats; in MLX5E_DECLARE_STATS_GRP_OP_NUM_STATS() 1271 int num_stats; in MLX5E_DECLARE_STATS_GRP_OP_NUM_STATS() local 1273 num_stats = NUM_PPORT_PHY_LAYER_COUNTERS; in MLX5E_DECLARE_STATS_GRP_OP_NUM_STATS() 1275 num_stats += NUM_PPORT_PHY_STATISTICAL_LOOPBACK_COUNTERS(mdev); in MLX5E_DECLARE_STATS_GRP_OP_NUM_STATS() 1277 num_stats += NUM_PPORT_PHY_STATISTICAL_PER_LANE_LOOPBACK_COUNTERS(mdev); in MLX5E_DECLARE_STATS_GRP_OP_NUM_STATS() 1279 num_stats += NUM_PPORT_PHY_RECOVERY_LOOPBACK_COUNTERS(mdev); in MLX5E_DECLARE_STATS_GRP_OP_NUM_STATS() 1280 return num_stats; in MLX5E_DECLARE_STATS_GRP_OP_NUM_STATS() [all …]
|
| H A D | en_stats.h | 86 int MLX5E_STATS_GRP_OP(grp, num_stats)(struct mlx5e_priv *priv) 104 .get_num_stats = MLX5E_STATS_GRP_OP(grp, num_stats), \
|
| /linux/drivers/net/ethernet/freescale/dpaa/ |
| H A D | dpaa_ethtool.c | 122 unsigned int total_stats, num_stats; in dpaa_get_sset_count() local 124 num_stats = num_online_cpus() + 1; in dpaa_get_sset_count() 125 total_stats = num_stats * (DPAA_STATS_PERCPU_LEN + 1) + in dpaa_get_sset_count()
|
| /linux/arch/powerpc/platforms/pseries/ |
| H A D | papr_scm.c | 243 unsigned int num_stats) in drc_pmem_query_stats() argument 256 cpu_to_be32(num_stats); in drc_pmem_query_stats() 262 if (num_stats) in drc_pmem_query_stats() 265 num_stats * sizeof(struct papr_scm_perf_stat); in drc_pmem_query_stats()
|
| /linux/net/ethtool/ |
| H A D | stats.c | 514 size_t num_stats = stats_size / sizeof(u64); in ethtool_aggregate_stats() local 520 for (i = 0; i < num_stats; i++) in ethtool_aggregate_stats()
|
| /linux/drivers/net/ethernet/mscc/ |
| H A D | ocelot_stats.c | 446 int num_stats = 0; in ocelot_get_sset_count() local 455 num_stats++; in ocelot_get_sset_count() 457 return num_stats; in ocelot_get_sset_count()
|
| /linux/drivers/net/ethernet/qlogic/qede/ |
| H A D | qede_ethtool.c | 425 int num_stats = QEDE_NUM_STATS, i; in qede_get_sset_count() local 431 num_stats--; in qede_get_sset_count() 434 num_stats += QEDE_TSS_COUNT(edev) * QEDE_NUM_TQSTATS * in qede_get_sset_count() 438 num_stats += QEDE_RSS_COUNT(edev) * QEDE_NUM_RQSTATS; in qede_get_sset_count() 442 num_stats += QEDE_RSS_COUNT(edev) * QEDE_NUM_TQSTATS; in qede_get_sset_count() 443 return num_stats; in qede_get_sset_count()
|
| /linux/drivers/net/ethernet/pensando/ionic/ |
| H A D | ionic_ethtool.c | 40 int i, num_stats = 0; in ionic_get_stats_count() local 43 num_stats += ionic_stats_groups[i].get_count(lif); in ionic_get_stats_count() 45 return num_stats; in ionic_get_stats_count()
|
| /linux/drivers/net/ethernet/cavium/liquidio/ |
| H A D | lio_ethtool.c | 1859 int num_stats; in lio_get_strings() local 1863 num_stats = ARRAY_SIZE(oct_stats_strings); in lio_get_strings() 1864 for (j = 0; j < num_stats; j++) { in lio_get_strings() 1907 int num_stats; in lio_vf_get_strings() local 1911 num_stats = ARRAY_SIZE(oct_vf_stats_strings); in lio_vf_get_strings() 1912 for (j = 0; j < num_stats; j++) { in lio_vf_get_strings()
|