Searched refs:read_attr (Results 1 – 4 of 4) sorted by relevance
/linux-6.6.21/drivers/infiniband/core/ |
D | uverbs_std_types_counters.c | 91 struct ib_counters_read_attr read_attr = {}; in UVERBS_HANDLER() local 103 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()
|
/linux-6.6.21/drivers/infiniband/hw/mlx5/ |
D | counters.c | 140 struct ib_counters_read_attr *read_attr, in mlx5_ib_read_counters() argument 149 if (mcounters->cntrs_max_index > read_attr->ncounters) { in mlx5_ib_read_counters() 162 mread_attr.flags = read_attr->flags; in mlx5_ib_read_counters() 172 read_attr->counters_buff[desc[i].index] += mread_attr.out[desc[i].description]; in mlx5_ib_read_counters() 841 struct mlx5_read_counters_attr *read_attr) in read_flow_counters() argument 843 struct mlx5_fc *fc = read_attr->hw_cntrs_hndl; in read_flow_counters() 847 &read_attr->out[IB_COUNTER_PACKETS], in read_flow_counters() 848 &read_attr->out[IB_COUNTER_BYTES]); in read_flow_counters()
|
D | mlx5_ib.h | 1027 struct mlx5_read_counters_attr *read_attr);
|
/linux-6.6.21/tools/perf/util/ |
D | header.c | 4082 static int read_attr(int fd, struct perf_header *ph, in read_attr() function 4235 if (read_attr(fd, header, &f_attr) < 0) in perf_session__read_header()
|