Lines Matching refs:descs
242 stats = rdma_alloc_hw_stats_struct(cnts->descs,
440 type = *(u32 *)cnts->descs[index].priv;
580 struct rdma_stat_desc *descs, size_t *offsets,
592 descs[j].name = names[i].name;
601 descs[j].name = names[i].name;
611 descs[j].name = names[i].name;
621 descs[j].name = names[i].name;
631 descs[j].name = names[i].name;
641 descs[j].name = cong_cnts[i].name;
648 descs[j].name = ext_ppcnt_cnts[i].name;
654 descs[j].name = basic_op_cnts[i].name;
655 descs[j].flags |= IB_STAT_FLAG_OPTIONAL;
656 descs[j].priv = &basic_op_cnts[i].type;
662 descs[j].name = rdmarx_cnp_op_cnts[i].name;
663 descs[j].flags |= IB_STAT_FLAG_OPTIONAL;
664 descs[j].priv = &rdmarx_cnp_op_cnts[i].type;
671 descs[j].name = rdmatx_cnp_op_cnts[i].name;
672 descs[j].flags |= IB_STAT_FLAG_OPTIONAL;
673 descs[j].priv = &rdmatx_cnp_op_cnts[i].type;
737 cnts->descs = kcalloc(num_counters,
739 if (!cnts->descs)
750 kfree(cnts->descs);
751 cnts->descs = NULL;
773 kfree(dev->port[i].cnts.descs);
816 mlx5_ib_fill_counters(dev, dev->port[i].cnts.descs,
990 if (!(cnts->descs[index].flags & IB_STAT_FLAG_OPTIONAL))
993 type = *(u32 *)cnts->descs[index].priv;