Searched refs:mread_attr (Results 1 – 1 of 1) sorted by relevance
144 struct mlx5_read_counters_attr mread_attr = {}; in mlx5_ib_read_counters() local154 mread_attr.out = kcalloc(mcounters->counters_num, sizeof(u64), in mlx5_ib_read_counters()156 if (!mread_attr.out) { in mlx5_ib_read_counters()161 mread_attr.hw_cntrs_hndl = mcounters->hw_cntrs_hndl; in mlx5_ib_read_counters()162 mread_attr.flags = read_attr->flags; in mlx5_ib_read_counters()163 ret = mcounters->read_counters(counters->device, &mread_attr); in mlx5_ib_read_counters()172 read_attr->counters_buff[desc[i].index] += mread_attr.out[desc[i].description]; in mlx5_ib_read_counters()175 kfree(mread_attr.out); in mlx5_ib_read_counters()