/kernel/linux/linux-5.10/drivers/net/ethernet/ti/ |
H A D | am65-cpsw-ethtool.c | 645 u32 i, num_stats; in am65_cpsw_get_strings() local 650 num_stats = ARRAY_SIZE(am65_host_stats); in am65_cpsw_get_strings() 652 for (i = 0; i < num_stats; i++) { in am65_cpsw_get_strings() 657 num_stats = ARRAY_SIZE(am65_slave_stats); in am65_cpsw_get_strings() 659 for (i = 0; i < num_stats; i++) { in am65_cpsw_get_strings() 665 num_stats = ARRAY_SIZE(am65_cpsw_ethtool_priv_flags); in am65_cpsw_get_strings() 667 for (i = 0; i < num_stats; i++) { in am65_cpsw_get_strings() 683 u32 i, num_stats; in am65_cpsw_get_ethtool_stats() local 687 num_stats = ARRAY_SIZE(am65_host_stats); in am65_cpsw_get_ethtool_stats() 689 for (i = 0; i < num_stats; in am65_cpsw_get_ethtool_stats() [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/ti/ |
H A 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; in am65_cpsw_get_ethtool_stats() [all...] |
/kernel/linux/linux-6.6/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() 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 in lan966x_stats_init() [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | en_stats.c | 414 int num_stats = 0; in MLX5E_DECLARE_STATS_GRP_OP_NUM_STATS() local 417 num_stats += NUM_Q_COUNTERS; in MLX5E_DECLARE_STATS_GRP_OP_NUM_STATS() 420 num_stats += NUM_DROP_RQ_COUNTERS; in MLX5E_DECLARE_STATS_GRP_OP_NUM_STATS() 422 return num_stats; in MLX5E_DECLARE_STATS_GRP_OP_NUM_STATS() 860 int num_stats; in MLX5E_DECLARE_STATS_GRP_OP_NUM_STATS() local 863 num_stats = 1; in MLX5E_DECLARE_STATS_GRP_OP_NUM_STATS() 865 num_stats += MLX5_CAP_PCAM_FEATURE(mdev, ppcnt_statistical_group) ? in MLX5E_DECLARE_STATS_GRP_OP_NUM_STATS() 868 num_stats += MLX5_CAP_PCAM_FEATURE(mdev, per_lane_error_counters) ? in MLX5E_DECLARE_STATS_GRP_OP_NUM_STATS() 871 return num_stats; in MLX5E_DECLARE_STATS_GRP_OP_NUM_STATS() 1026 int num_stats in MLX5E_DECLARE_STATS_GRP_OP_NUM_STATS() local [all...] |
H A D | en_stats.h | 77 int MLX5E_STATS_GRP_OP(grp, num_stats)(struct mlx5e_priv *priv) 95 .get_num_stats = MLX5E_STATS_GRP_OP(grp, num_stats), \
|
/kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/qlcnic/ |
H A D | qlcnic_ethtool.c | 1194 int index, i, num_stats; in qlcnic_get_strings() local 1202 num_stats = ARRAY_SIZE(qlcnic_tx_queue_stats_strings); in qlcnic_get_strings() 1204 for (index = 0; index < num_stats; index++) { in qlcnic_get_strings() 1218 num_stats = ARRAY_SIZE(qlcnic_83xx_tx_stats_strings); in qlcnic_get_strings() 1219 for (i = 0; i < num_stats; i++, index++) in qlcnic_get_strings() 1223 num_stats = ARRAY_SIZE(qlcnic_83xx_mac_stats_strings); in qlcnic_get_strings() 1224 for (i = 0; i < num_stats; i++, index++) in qlcnic_get_strings() 1228 num_stats = ARRAY_SIZE(qlcnic_83xx_rx_stats_strings); in qlcnic_get_strings() 1229 for (i = 0; i < num_stats; i++, index++) in qlcnic_get_strings() 1235 num_stats in qlcnic_get_strings() [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/qlogic/qlcnic/ |
H A 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 in qlcnic_get_strings() [all...] |
/kernel/linux/linux-5.10/drivers/virtio/ |
H A D | virtio_balloon.c | 384 unsigned int len, num_stats; in stats_handle_request() local 386 num_stats = update_balloon_stats(vb); in stats_handle_request() 391 sg_init_one(&sg, vb->stats, sizeof(vb->stats[0]) * num_stats); in stats_handle_request() 547 unsigned int num_stats; in init_vqs() local 554 num_stats = update_balloon_stats(vb); in init_vqs() 556 sg_init_one(&sg, vb->stats, sizeof(vb->stats[0]) * num_stats); in init_vqs()
|
/kernel/linux/linux-6.6/drivers/virtio/ |
H A D | virtio_balloon.c | 377 unsigned int len, num_stats; in stats_handle_request() local 379 num_stats = update_balloon_stats(vb); in stats_handle_request() 384 sg_init_one(&sg, vb->stats, sizeof(vb->stats[0]) * num_stats); in stats_handle_request() 540 unsigned int num_stats; in init_vqs() local 547 num_stats = update_balloon_stats(vb); in init_vqs() 549 sg_init_one(&sg, vb->stats, sizeof(vb->stats[0]) * num_stats); in init_vqs()
|
/kernel/linux/linux-6.6/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() 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...] |
/kernel/linux/linux-5.10/drivers/net/dsa/ocelot/ |
H A D | felix.h | 21 unsigned int num_stats; member
|
H A D | felix.c | 449 ocelot->num_stats = felix->info->num_stats; in felix_init_structs()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/ |
H A 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() 1182 int num_stats; in MLX5E_DECLARE_STATS_GRP_OP_NUM_STATS() local 1185 num_stats = 1; in MLX5E_DECLARE_STATS_GRP_OP_NUM_STATS() 1187 num_stats += MLX5_CAP_PCAM_FEATURE(mdev, ppcnt_statistical_group) ? in MLX5E_DECLARE_STATS_GRP_OP_NUM_STATS() 1190 num_stats += MLX5_CAP_PCAM_FEATURE(mdev, per_lane_error_counters) ? in MLX5E_DECLARE_STATS_GRP_OP_NUM_STATS() 1193 return num_stats; in MLX5E_DECLARE_STATS_GRP_OP_NUM_STATS() 1482 int num_stats in MLX5E_DECLARE_STATS_GRP_OP_NUM_STATS() local [all...] |
H A 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), \
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mscc/ |
H A D | ocelot.c | 845 for (i = 0; i < ocelot->num_stats; i++) in ocelot_get_strings() 861 for (j = 0; j < ocelot->num_stats; j++) { in ocelot_update_stats() 863 unsigned int idx = i * ocelot->num_stats + j; in ocelot_update_stats() 899 for (i = 0; i < ocelot->num_stats; i++) in ocelot_get_ethtool_stats() 900 *data++ = ocelot->stats[port * ocelot->num_stats + i]; in ocelot_get_ethtool_stats() 909 return ocelot->num_stats; in ocelot_get_sset_count() 1510 ocelot->num_phys_ports * ocelot->num_stats, in ocelot_init()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/freescale/dpaa/ |
H A D | dpaa_ethtool.c | 206 unsigned int total_stats, num_stats; in dpaa_get_sset_count() local 208 num_stats = num_online_cpus() + 1; in dpaa_get_sset_count() 209 total_stats = num_stats * (DPAA_STATS_PERCPU_LEN + 1) + in dpaa_get_sset_count()
|
/kernel/linux/linux-6.6/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()
|
/kernel/linux/linux-5.10/arch/powerpc/platforms/pseries/ |
H A D | papr_scm.c | 230 * (num_stats + header) bytes. 233 * - If buff_stats != NULL and num_stats == 0 then we copy all known 236 * - if buff_stats != NULL and num_stats > 0 then copy the requested 241 unsigned int num_stats) in drc_pmem_query_stats() 254 cpu_to_be32(num_stats); in drc_pmem_query_stats() 260 if (num_stats) in drc_pmem_query_stats() 261 /* Calculate size from the num_stats */ in drc_pmem_query_stats() 263 num_stats * sizeof(struct papr_scm_perf_stat); in drc_pmem_query_stats() 239 drc_pmem_query_stats(struct papr_scm_priv *p, struct papr_scm_perf_stats *buff_stats, unsigned int num_stats) drc_pmem_query_stats() argument
|
/kernel/linux/linux-5.10/drivers/net/ethernet/pensando/ionic/ |
H A D | ionic_ethtool.c | 44 int i, num_stats = 0; in ionic_get_stats_count() local 47 num_stats += ionic_stats_groups[i].get_count(lif); in ionic_get_stats_count() 49 return num_stats; in ionic_get_stats_count()
|
/kernel/linux/linux-6.6/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()
|
/kernel/linux/linux-6.6/arch/powerpc/platforms/pseries/ |
H A D | papr_scm.c | 270 * (num_stats + header) bytes. 273 * - If buff_stats != NULL and num_stats == 0 then we copy all known 276 * - if buff_stats != NULL and num_stats > 0 then copy the requested 281 unsigned int num_stats) in drc_pmem_query_stats() 294 cpu_to_be32(num_stats); in drc_pmem_query_stats() 300 if (num_stats) in drc_pmem_query_stats() 301 /* Calculate size from the num_stats */ in drc_pmem_query_stats() 303 num_stats * sizeof(struct papr_scm_perf_stat); in drc_pmem_query_stats() 279 drc_pmem_query_stats(struct papr_scm_priv *p, struct papr_scm_perf_stats *buff_stats, unsigned int num_stats) drc_pmem_query_stats() argument
|
/kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/qede/ |
H A D | qede_ethtool.c | 448 int num_stats = QEDE_NUM_STATS, i; in qede_get_sset_count() local 454 num_stats--; in qede_get_sset_count() 457 num_stats += QEDE_TSS_COUNT(edev) * QEDE_NUM_TQSTATS * in qede_get_sset_count() 461 num_stats += QEDE_RSS_COUNT(edev) * QEDE_NUM_RQSTATS; in qede_get_sset_count() 465 num_stats += QEDE_RSS_COUNT(edev) * QEDE_NUM_TQSTATS; in qede_get_sset_count() 466 return num_stats; in qede_get_sset_count()
|
/kernel/linux/linux-6.6/net/ethtool/ |
H A D | stats.c | 459 size_t num_stats = stats_size / sizeof(u64); in ethtool_aggregate_stats() local 465 for (i = 0; i < num_stats; i++) in ethtool_aggregate_stats()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/qlogic/qede/ |
H A D | qede_ethtool.c | 451 int num_stats = QEDE_NUM_STATS, i; in qede_get_sset_count() local 457 num_stats--; in qede_get_sset_count() 460 num_stats += QEDE_TSS_COUNT(edev) * QEDE_NUM_TQSTATS * in qede_get_sset_count() 464 num_stats += QEDE_RSS_COUNT(edev) * QEDE_NUM_RQSTATS; in qede_get_sset_count() 468 num_stats += QEDE_RSS_COUNT(edev) * QEDE_NUM_TQSTATS; in qede_get_sset_count() 469 return num_stats; in qede_get_sset_count()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/pensando/ionic/ |
H A 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()
|