Lines Matching refs:desc_data
711 struct mlx5_ib_flow_counters_desc *desc_data, u32 ncounters) in counters_set_description() argument
727 if (desc_data[i].description > IB_COUNTER_BYTES) in counters_set_description()
730 if (cntrs_max_index <= desc_data[i].index) in counters_set_description()
731 cntrs_max_index = desc_data[i].index + 1; in counters_set_description()
735 mcounters->counters_data = desc_data; in counters_set_description()
748 struct mlx5_ib_flow_counters_desc *desc_data = NULL; in mlx5_ib_flow_counters_set_data() local
757 desc_data = kcalloc(cntrs_data->ncounters, in mlx5_ib_flow_counters_set_data()
758 sizeof(*desc_data), in mlx5_ib_flow_counters_set_data()
760 if (!desc_data) in mlx5_ib_flow_counters_set_data()
763 if (copy_from_user(desc_data, in mlx5_ib_flow_counters_set_data()
765 sizeof(*desc_data) * cntrs_data->ncounters)) { in mlx5_ib_flow_counters_set_data()
781 if (desc_data) { in mlx5_ib_flow_counters_set_data()
790 desc_data, in mlx5_ib_flow_counters_set_data()
810 kfree(desc_data); in mlx5_ib_flow_counters_set_data()