Home
last modified time | relevance | path

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

/linux/drivers/infiniband/core/
H A Dcounters.c51 if (!port_counter->hstats) in rdma_counter_set_auto_mode()
263 if (!port_counter->hstats) in counter_history_stat_update()
269 port_counter->hstats->value[i] += counter->stats->value[i]; in counter_history_stat_update()
435 if (!port_counter->hstats) in rdma_counter_get_hwstat_value()
439 sum += port_counter->hstats->value[index]; in rdma_counter_get_hwstat_value()
546 if (!port_counter->hstats) in rdma_counter_bind_qpn_alloc()
643 port_counter->hstats = dev->ops.alloc_hw_port_stats(dev, port); in rdma_counter_init()
644 if (!port_counter->hstats) in rdma_counter_init()
653 rdma_free_hw_stats_struct(port_counter->hstats); in rdma_counter_init()
654 port_counter->hstats = NULL; in rdma_counter_init()
[all …]
/linux/include/rdma/
H A Drdma_counter.h30 struct rdma_hw_stats *hstats; member
/linux/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum_acl_erp.c1373 const struct objagg_stats *hstats; in mlxsw_sp_acl_erp_hints_check() local
1386 hstats = objagg_hints_stats_get(hints); in mlxsw_sp_acl_erp_hints_check()
1387 if (IS_ERR(hstats)) { in mlxsw_sp_acl_erp_hints_check()
1389 err = PTR_ERR(hstats); in mlxsw_sp_acl_erp_hints_check()
1394 if (hstats->root_count < ostats->root_count) in mlxsw_sp_acl_erp_hints_check()
1399 objagg_stats_put(hstats); in mlxsw_sp_acl_erp_hints_check()