Searched refs:read_attr (Results 1 – 3 of 3) sorted by relevance
91 struct ib_counters_read_attr read_attr = {}; in UVERBS_HANDLER() local103 ret = uverbs_get_flags32(&read_attr.flags, attrs, in UVERBS_HANDLER()112 read_attr.ncounters = uattr->ptr_attr.len / sizeof(u64); in UVERBS_HANDLER()113 read_attr.counters_buff = uverbs_zalloc( in UVERBS_HANDLER()114 attrs, array_size(read_attr.ncounters, sizeof(u64))); in UVERBS_HANDLER()115 if (IS_ERR(read_attr.counters_buff)) in UVERBS_HANDLER()116 return PTR_ERR(read_attr.counters_buff); in UVERBS_HANDLER()118 ret = counters->device->ops.read_counters(counters, &read_attr, attrs); in UVERBS_HANDLER()123 read_attr.counters_buff, in UVERBS_HANDLER()124 read_attr.ncounters * sizeof(u64)); in UVERBS_HANDLER()
79 struct ib_counters_read_attr *read_attr, in mlx5_ib_read_counters() argument88 if (mcounters->cntrs_max_index > read_attr->ncounters) { in mlx5_ib_read_counters()101 mread_attr.flags = read_attr->flags; in mlx5_ib_read_counters()111 read_attr->counters_buff[desc[i].index] += mread_attr.out[desc[i].description]; in mlx5_ib_read_counters()542 struct mlx5_read_counters_attr *read_attr) in read_flow_counters() argument544 struct mlx5_fc *fc = read_attr->hw_cntrs_hndl; in read_flow_counters()548 &read_attr->out[IB_COUNTER_PACKETS], in read_flow_counters()549 &read_attr->out[IB_COUNTER_BYTES]); in read_flow_counters()
984 struct mlx5_read_counters_attr *read_attr);