Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/infiniband/hw/mlx5/
Dcounters.c99 struct mlx5_read_counters_attr mread_attr = {}; in mlx5_ib_read_counters() local
109 mread_attr.out = kcalloc(mcounters->counters_num, sizeof(u64), in mlx5_ib_read_counters()
111 if (!mread_attr.out) { in mlx5_ib_read_counters()
116 mread_attr.hw_cntrs_hndl = mcounters->hw_cntrs_hndl; in mlx5_ib_read_counters()
117 mread_attr.flags = read_attr->flags; in mlx5_ib_read_counters()
118 ret = mcounters->read_counters(counters->device, &mread_attr); in mlx5_ib_read_counters()
127 read_attr->counters_buff[desc[i].index] += mread_attr.out[desc[i].description]; in mlx5_ib_read_counters()
130 kfree(mread_attr.out); in mlx5_ib_read_counters()