Home
last modified time | relevance | path

Searched refs:counter_stats (Results 1 – 3 of 3) sorted by relevance

/linux-6.12.1/drivers/net/ethernet/mellanox/mlx4/
Dcmd.c3288 struct mlx4_counter *counter_stats, int reset) in mlx4_get_counter_stats() argument
3295 if (!counter_stats) in mlx4_get_counter_stats()
3320 counter_stats->counter_mode = tmp_counter->counter_mode; in mlx4_get_counter_stats()
3321 if (counter_stats->counter_mode == 0) { in mlx4_get_counter_stats()
3322 counter_stats->rx_frames = in mlx4_get_counter_stats()
3323 cpu_to_be64(be64_to_cpu(counter_stats->rx_frames) + in mlx4_get_counter_stats()
3325 counter_stats->tx_frames = in mlx4_get_counter_stats()
3326 cpu_to_be64(be64_to_cpu(counter_stats->tx_frames) + in mlx4_get_counter_stats()
3328 counter_stats->rx_bytes = in mlx4_get_counter_stats()
3329 cpu_to_be64(be64_to_cpu(counter_stats->rx_bytes) + in mlx4_get_counter_stats()
[all …]
/linux-6.12.1/include/linux/mlx4/
Dcmd.h307 struct mlx4_counter *counter_stats, int reset);
/linux-6.12.1/drivers/infiniband/hw/mlx4/
Dmad.c941 struct mlx4_counter counter_stats; in iboe_process_mad() local
952 memset(&counter_stats, 0, sizeof(counter_stats)); in iboe_process_mad()
959 &counter_stats, 0); in iboe_process_mad()
969 switch (counter_stats.counter_mode & 0xf) { in iboe_process_mad()
971 edit_counter(&counter_stats, in iboe_process_mad()