Home
last modified time | relevance | path

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

/Linux-v5.10/drivers/infiniband/core/
Duverbs_std_types_counters.c92 struct ib_counters_read_attr read_attr = {}; in UVERBS_HANDLER() local
104 ret = uverbs_get_flags32(&read_attr.flags, attrs, in UVERBS_HANDLER()
111 read_attr.ncounters = uattr->ptr_attr.len / sizeof(u64); in UVERBS_HANDLER()
112 read_attr.counters_buff = uverbs_zalloc( in UVERBS_HANDLER()
113 attrs, array_size(read_attr.ncounters, sizeof(u64))); in UVERBS_HANDLER()
114 if (IS_ERR(read_attr.counters_buff)) in UVERBS_HANDLER()
115 return PTR_ERR(read_attr.counters_buff); in UVERBS_HANDLER()
117 ret = counters->device->ops.read_counters(counters, &read_attr, attrs); in UVERBS_HANDLER()
122 read_attr.counters_buff, in UVERBS_HANDLER()
123 read_attr.ncounters * sizeof(u64)); in UVERBS_HANDLER()
/Linux-v5.10/drivers/infiniband/hw/mlx5/
Dcounters.c79 struct ib_counters_read_attr *read_attr, in mlx5_ib_read_counters() argument
88 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() argument
544 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()
Dmlx5_ib.h914 struct mlx5_read_counters_attr *read_attr);
/Linux-v5.10/tools/perf/util/
Dheader.c3697 static int read_attr(int fd, struct perf_header *ph, in read_attr() function
3845 if (read_attr(fd, header, &f_attr) < 0) in perf_session__read_header()