Lines Matching defs:ibqp
1254 struct ibv_qp *ibqp;
1271 ibqp = (struct ibv_qp *)&qp->verbs_qp;
1272 qp->ibv_qp = ibqp;
1283 return ibqp;
1379 ret = mlx5_store_qp(ctx, ibqp->qp_num, qp);
1403 usr_idx : ibqp->qp_num;
1405 return ibqp;
1408 ibv_cmd_destroy_qp(ibqp);
1495 int mlx5_destroy_qp(struct ibv_qp *ibqp)
1497 struct mlx5_qp *qp = to_mqp(ibqp);
1498 struct mlx5_context *ctx = to_mctx(ibqp->context);
1502 ret = ibv_cmd_destroy_qp(ibqp);
1511 ret = ibv_cmd_destroy_qp(ibqp);
1518 mlx5_lock_cqs(ibqp);
1520 __mlx5_cq_clean(to_mcq(ibqp->recv_cq), qp->rsc.rsn,
1521 ibqp->srq ? to_msrq(ibqp->srq) : NULL);
1522 if (ibqp->send_cq != ibqp->recv_cq)
1523 __mlx5_cq_clean(to_mcq(ibqp->send_cq), qp->rsc.rsn, NULL);
1527 mlx5_clear_qp(ctx, ibqp->qp_num);
1530 mlx5_unlock_cqs(ibqp);
1533 else if (!is_xrc_tgt(ibqp->qp_type))
1546 int mlx5_query_qp(struct ibv_qp *ibqp, struct ibv_qp_attr *attr,
1550 struct mlx5_qp *qp = to_mqp(ibqp);
1556 ret = ibv_cmd_query_qp(ibqp, attr, attr_mask, init_attr, &cmd, sizeof(cmd));