/drivers/net/ethernet/ti/ |
D | am65-cpsw-ethtool.c | 610 u32 i, num_stats; in am65_cpsw_get_strings() local 615 num_stats = ARRAY_SIZE(am65_host_stats); in am65_cpsw_get_strings() 617 for (i = 0; i < num_stats; i++) { in am65_cpsw_get_strings() 622 num_stats = ARRAY_SIZE(am65_slave_stats); in am65_cpsw_get_strings() 624 for (i = 0; i < num_stats; i++) { in am65_cpsw_get_strings() 630 num_stats = ARRAY_SIZE(am65_cpsw_ethtool_priv_flags); in am65_cpsw_get_strings() 632 for (i = 0; i < num_stats; i++) { in am65_cpsw_get_strings() 648 u32 i, num_stats; in am65_cpsw_get_ethtool_stats() local 652 num_stats = ARRAY_SIZE(am65_host_stats); in am65_cpsw_get_ethtool_stats() 654 for (i = 0; i < num_stats; i++) in am65_cpsw_get_ethtool_stats() [all …]
|
/drivers/net/ethernet/microchip/lan966x/ |
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() 451 idx = port->chip_port * lan966x->num_stats; in lan966x_get_eth_rmon_stats() 615 idx = port->chip_port * lan966x->num_stats; in lan966x_stats_get() 707 lan966x->num_stats = ARRAY_SIZE(lan966x_stats_layout); in lan966x_stats_init() [all …]
|
D | lan966x_main.h | 232 u32 num_stats; member
|
/drivers/net/ethernet/microchip/sparx5/ |
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() 1029 portstats = &sparx5->stats[portno * sparx5->num_stats]; in sparx5_get_sset_data() 1060 portstats = &sparx5->stats[port->portno * sparx5->num_stats]; in sparx5_get_stats64() [all …]
|
D | sparx5_main.h | 244 u32 num_stats; member
|
/drivers/net/ethernet/qlogic/qlcnic/ |
D | qlcnic_ethtool.c | 1198 int index, i, num_stats; in qlcnic_get_strings() local 1206 num_stats = ARRAY_SIZE(qlcnic_tx_queue_stats_strings); in qlcnic_get_strings() 1208 for (index = 0; index < num_stats; index++) { in qlcnic_get_strings() 1222 num_stats = ARRAY_SIZE(qlcnic_83xx_tx_stats_strings); in qlcnic_get_strings() 1223 for (i = 0; i < num_stats; i++, index++) in qlcnic_get_strings() 1227 num_stats = ARRAY_SIZE(qlcnic_83xx_mac_stats_strings); in qlcnic_get_strings() 1228 for (i = 0; i < num_stats; i++, index++) in qlcnic_get_strings() 1232 num_stats = ARRAY_SIZE(qlcnic_83xx_rx_stats_strings); in qlcnic_get_strings() 1233 for (i = 0; i < num_stats; i++, index++) in qlcnic_get_strings() 1239 num_stats = ARRAY_SIZE(qlcnic_83xx_mac_stats_strings); in qlcnic_get_strings() [all …]
|
/drivers/virtio/ |
D | virtio_balloon.c | 381 unsigned int len, num_stats; in stats_handle_request() local 383 num_stats = update_balloon_stats(vb); in stats_handle_request() 388 sg_init_one(&sg, vb->stats, sizeof(vb->stats[0]) * num_stats); in stats_handle_request() 544 unsigned int num_stats; in init_vqs() local 551 num_stats = update_balloon_stats(vb); in init_vqs() 553 sg_init_one(&sg, vb->stats, sizeof(vb->stats[0]) * num_stats); in init_vqs()
|
/drivers/net/ethernet/mscc/ |
D | ocelot_stats.c | 134 int i, num_stats = 0; in ocelot_get_sset_count() local 141 num_stats++; in ocelot_get_sset_count() 143 return num_stats; in ocelot_get_sset_count()
|
/drivers/net/ethernet/mellanox/mlx5/core/ |
D | en_stats.c | 566 int num_stats = 0; in MLX5E_DECLARE_STATS_GRP_OP_NUM_STATS() local 569 num_stats += NUM_Q_COUNTERS; in MLX5E_DECLARE_STATS_GRP_OP_NUM_STATS() 572 num_stats += NUM_DROP_RQ_COUNTERS; in MLX5E_DECLARE_STATS_GRP_OP_NUM_STATS() 574 return num_stats; in MLX5E_DECLARE_STATS_GRP_OP_NUM_STATS() 1161 int num_stats; in MLX5E_DECLARE_STATS_GRP_OP_NUM_STATS() local 1164 num_stats = 1; in MLX5E_DECLARE_STATS_GRP_OP_NUM_STATS() 1166 num_stats += MLX5_CAP_PCAM_FEATURE(mdev, ppcnt_statistical_group) ? in MLX5E_DECLARE_STATS_GRP_OP_NUM_STATS() 1169 num_stats += MLX5_CAP_PCAM_FEATURE(mdev, per_lane_error_counters) ? in MLX5E_DECLARE_STATS_GRP_OP_NUM_STATS() 1172 return num_stats; in MLX5E_DECLARE_STATS_GRP_OP_NUM_STATS() 1444 int num_stats = 0; in MLX5E_DECLARE_STATS_GRP_OP_NUM_STATS() local [all …]
|
D | en_stats.h | 84 int MLX5E_STATS_GRP_OP(grp, num_stats)(struct mlx5e_priv *priv) 102 .get_num_stats = MLX5E_STATS_GRP_OP(grp, num_stats), \
|
/drivers/net/ethernet/freescale/dpaa/ |
D | dpaa_ethtool.c | 180 unsigned int total_stats, num_stats; in dpaa_get_sset_count() local 182 num_stats = num_online_cpus() + 1; in dpaa_get_sset_count() 183 total_stats = num_stats * (DPAA_STATS_PERCPU_LEN + 1) + in dpaa_get_sset_count()
|
/drivers/net/ethernet/pensando/ionic/ |
D | ionic_ethtool.c | 38 int i, num_stats = 0; in ionic_get_stats_count() local 41 num_stats += ionic_stats_groups[i].get_count(lif); in ionic_get_stats_count() 43 return num_stats; in ionic_get_stats_count()
|
/drivers/net/ethernet/qlogic/qede/ |
D | qede_ethtool.c | 452 int num_stats = QEDE_NUM_STATS, i; in qede_get_sset_count() local 458 num_stats--; in qede_get_sset_count() 461 num_stats += QEDE_TSS_COUNT(edev) * QEDE_NUM_TQSTATS * in qede_get_sset_count() 465 num_stats += QEDE_RSS_COUNT(edev) * QEDE_NUM_RQSTATS; in qede_get_sset_count() 469 num_stats += QEDE_RSS_COUNT(edev) * QEDE_NUM_TQSTATS; in qede_get_sset_count() 470 return num_stats; in qede_get_sset_count()
|
/drivers/net/ethernet/cavium/liquidio/ |
D | lio_ethtool.c | 1857 int num_stats; in lio_get_strings() local 1861 num_stats = ARRAY_SIZE(oct_stats_strings); in lio_get_strings() 1862 for (j = 0; j < num_stats; j++) { in lio_get_strings() 1905 int num_stats; in lio_vf_get_strings() local 1909 num_stats = ARRAY_SIZE(oct_vf_stats_strings); in lio_vf_get_strings() 1910 for (j = 0; j < num_stats; j++) { in lio_vf_get_strings()
|
/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt_ethtool.c | 532 int num_stats = bnxt_get_num_ring_stats(bp); in bnxt_get_num_stats() local 534 num_stats += BNXT_NUM_SW_FUNC_STATS; in bnxt_get_num_stats() 537 num_stats += BNXT_NUM_PORT_STATS; in bnxt_get_num_stats() 540 num_stats += bp->fw_rx_stats_ext_size + in bnxt_get_num_stats() 543 num_stats += BNXT_NUM_STATS_PRI; in bnxt_get_num_stats() 546 return num_stats; in bnxt_get_num_stats()
|