Searched refs:mread_attr (Results 1 – 1 of 1) sorted by relevance
148 struct mlx5_read_counters_attr mread_attr = {}; in mlx5_ib_read_counters() local158 mread_attr.out = kcalloc(mcounters->counters_num, sizeof(u64), in mlx5_ib_read_counters()160 if (!mread_attr.out) { in mlx5_ib_read_counters()165 mread_attr.hw_cntrs_hndl = mcounters->hw_cntrs_hndl; in mlx5_ib_read_counters()166 mread_attr.flags = read_attr->flags; in mlx5_ib_read_counters()167 ret = mcounters->read_counters(counters->device, &mread_attr); in mlx5_ib_read_counters()176 read_attr->counters_buff[desc[i].index] += mread_attr.out[desc[i].description]; in mlx5_ib_read_counters()179 kfree(mread_attr.out); in mlx5_ib_read_counters()