Home
last modified time | relevance | path

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

/linux/drivers/infiniband/hw/ionic/
H A Dionic_hw_stats.c251 err = xa_alloc(&dev->counter_stats->xa_counters, &counter->id, in ionic_counter_alloc_stats()
260 return rdma_alloc_hw_stats_struct(dev->counter_stats->stats_hdrs, in ionic_counter_alloc_stats()
261 dev->counter_stats->queue_stats_count, in ionic_counter_alloc_stats()
276 cntr = xa_erase(&dev->counter_stats->xa_counters, counter->id); in ionic_counter_dealloc()
294 cntr = xa_load(&dev->counter_stats->xa_counters, counter->id); in ionic_counter_bind_qp()
327 cs = dev->counter_stats; in ionic_get_qp_stats()
370 struct ionic_counter_stats *cs = dev->counter_stats; in ionic_alloc_counters()
449 dev->counter_stats = kzalloc_obj(*dev->counter_stats); in ionic_stats_init()
450 if (!dev->counter_stats) in ionic_stats_init()
456 kfree(dev->counter_stats); in ionic_stats_init()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx4/
H A Dcmd.c3281 struct mlx4_counter *counter_stats, int reset) in mlx4_get_counter_stats() argument
3288 if (!counter_stats) in mlx4_get_counter_stats()
3313 counter_stats->counter_mode = tmp_counter->counter_mode; in mlx4_get_counter_stats()
3314 if (counter_stats->counter_mode == 0) { in mlx4_get_counter_stats()
3315 counter_stats->rx_frames = in mlx4_get_counter_stats()
3316 cpu_to_be64(be64_to_cpu(counter_stats->rx_frames) + in mlx4_get_counter_stats()
3318 counter_stats->tx_frames = in mlx4_get_counter_stats()
3319 cpu_to_be64(be64_to_cpu(counter_stats->tx_frames) + in mlx4_get_counter_stats()
3321 counter_stats->rx_bytes = in mlx4_get_counter_stats()
3322 cpu_to_be64(be64_to_cpu(counter_stats->rx_bytes) + in mlx4_get_counter_stats()
[all …]
/linux/include/linux/mlx4/
H A Dcmd.h307 struct mlx4_counter *counter_stats, int reset);
/linux/drivers/infiniband/hw/mlx4/
H A 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()