Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/scsi/bfa/
Dbfad_attr.c263 struct fc_host_statistics *hstats; in bfad_im_get_stats() local
271 hstats = &bfad->link_stats; in bfad_im_get_stats()
274 memset(hstats, 0, sizeof(struct fc_host_statistics)); in bfad_im_get_stats()
284 hstats->seconds_since_last_reset = fcstats->fc.secs_reset; in bfad_im_get_stats()
285 hstats->tx_frames = fcstats->fc.tx_frames; in bfad_im_get_stats()
286 hstats->tx_words = fcstats->fc.tx_words; in bfad_im_get_stats()
287 hstats->rx_frames = fcstats->fc.rx_frames; in bfad_im_get_stats()
288 hstats->rx_words = fcstats->fc.rx_words; in bfad_im_get_stats()
289 hstats->lip_count = fcstats->fc.lip_count; in bfad_im_get_stats()
290 hstats->nos_count = fcstats->fc.nos_count; in bfad_im_get_stats()
[all …]
/Linux-v5.4/drivers/infiniband/core/
Dcounters.c41 if (!port_counter->hstats) in rdma_counter_set_auto_mode()
205 if (!port_counter->hstats) in counter_history_stat_update()
209 port_counter->hstats->value[i] += counter->stats->value[i]; in counter_history_stat_update()
397 if (!port_counter->hstats) in rdma_counter_get_hwstat_value()
401 sum += port_counter->hstats->value[index]; in rdma_counter_get_hwstat_value()
513 if (!dev->port_data[port].port_counter.hstats) in rdma_counter_bind_qpn_alloc()
615 port_counter->hstats = dev->ops.alloc_hw_stats(dev, port); in rdma_counter_init()
616 if (!port_counter->hstats) in rdma_counter_init()
625 kfree(port_counter->hstats); in rdma_counter_init()
626 port_counter->hstats = NULL; in rdma_counter_init()
[all …]
/Linux-v5.4/include/rdma/
Drdma_counter.h30 struct rdma_hw_stats *hstats; member
/Linux-v5.4/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_acl_erp.c1384 const struct objagg_stats *hstats; in mlxsw_sp_acl_erp_hints_check() local
1397 hstats = objagg_hints_stats_get(hints); in mlxsw_sp_acl_erp_hints_check()
1398 if (IS_ERR(hstats)) { in mlxsw_sp_acl_erp_hints_check()
1400 err = PTR_ERR(hstats); in mlxsw_sp_acl_erp_hints_check()
1405 if (hstats->root_count < ostats->root_count) in mlxsw_sp_acl_erp_hints_check()
1410 objagg_stats_put(hstats); in mlxsw_sp_acl_erp_hints_check()