Lines Matching defs:common
18 struct mlx5_core_rsc_common *common;
23 common = radix_tree_lookup(&table->tree, rsn);
24 if (common)
25 refcount_inc(&common->refcount);
29 return common;
32 void mlx5_core_put_rsc(struct mlx5_core_rsc_common *common)
34 if (refcount_dec_and_test(&common->refcount))
35 complete(&common->free);
94 struct mlx5_core_rsc_common *common;
125 common = mlx5_get_rsc(table, rsn);
126 if (!common)
132 switch (common->res) {
136 qp = (struct mlx5_core_qp *)common;
140 dct = (struct mlx5_core_dct *)common;
148 mlx5_core_put_rsc(common);
159 qp->common.res = rsc_type;
168 refcount_set(&qp->common.refcount, 1);
169 init_completion(&qp->common.free);
183 qp->qpn | (qp->common.res << MLX5_USER_INDEX_LEN));
186 wait_for_completion(&qp->common.free);