Lines Matching refs:ibqp
124 struct ib_device *ibdev = qp->ibqp.device; in mlx5_ib_read_user_wqe()
136 qp->ibqp.qp_type); in mlx5_ib_read_user_wqe()
177 struct ib_qp *ibqp = &to_mibqp(qp)->ibqp; in mlx5_ib_qp_event() local
183 if (ibqp->event_handler) { in mlx5_ib_qp_event()
184 event.device = ibqp->device; in mlx5_ib_qp_event()
185 event.element.qp = ibqp; in mlx5_ib_qp_event()
216 ibqp->event_handler(&event, ibqp->qp_context); in mlx5_ib_qp_event()
1116 return to_mpd(qp->ibqp.pd); in get_pd()
1122 switch (qp->ibqp.qp_type) { in get_cqs()
1129 *send_cq = to_mcq(qp->ibqp.send_cq); in get_cqs()
1140 *send_cq = to_mcq(qp->ibqp.send_cq); in get_cqs()
1141 *recv_cq = to_mcq(qp->ibqp.recv_cq); in get_cqs()
1176 qp->ibqp.srq ? to_msrq(qp->ibqp.srq) : NULL); in destroy_qp_common()
1281 qp->ibqp.qp_num = 0; in mlx5_ib_create_qp()
1283 qp->ibqp.qp_num = 1; in mlx5_ib_create_qp()
1285 qp->ibqp.qp_num = qp->mqp.qpn; in mlx5_ib_create_qp()
1288 qp->ibqp.qp_num, qp->mqp.qpn, to_mcq(init_attr->recv_cq)->mcq.cqn, in mlx5_ib_create_qp()
1306 return &qp->ibqp; in mlx5_ib_create_qp()
1565 static int __mlx5_ib_modify_qp(struct ib_qp *ibqp, in __mlx5_ib_modify_qp() argument
1569 struct mlx5_ib_dev *dev = to_mdev(ibqp->device); in __mlx5_ib_modify_qp()
1570 struct mlx5_ib_qp *qp = to_mqp(ibqp); in __mlx5_ib_modify_qp()
1588 err = to_mlx5_st(ibqp->qp_type); in __mlx5_ib_modify_qp()
1610 if (ibqp->qp_type == IB_QPT_GSI || ibqp->qp_type == IB_QPT_SMI) { in __mlx5_ib_modify_qp()
1612 } else if (ibqp->qp_type == IB_QPT_UD || in __mlx5_ib_modify_qp()
1613 ibqp->qp_type == MLX5_IB_QPT_REG_UMR) { in __mlx5_ib_modify_qp()
1633 if (is_sqp(ibqp->qp_type)) in __mlx5_ib_modify_qp()
1707 if (!ibqp->uobject && cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT) in __mlx5_ib_modify_qp()
1713 mlx5_st = to_mlx5_st(ibqp->qp_type); in __mlx5_ib_modify_qp()
1753 if (new_state == IB_QPS_RESET && !ibqp->uobject) { in __mlx5_ib_modify_qp()
1755 ibqp->srq ? to_msrq(ibqp->srq) : NULL); in __mlx5_ib_modify_qp()
1774 int mlx5_ib_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, in mlx5_ib_modify_qp() argument
1777 struct mlx5_ib_dev *dev = to_mdev(ibqp->device); in mlx5_ib_modify_qp()
1778 struct mlx5_ib_qp *qp = to_mqp(ibqp); in mlx5_ib_modify_qp()
1790 if (ibqp->qp_type != MLX5_IB_QPT_REG_UMR && in mlx5_ib_modify_qp()
1791 !ib_modify_qp_is_ok(cur_state, new_state, ibqp->qp_type, attr_mask, in mlx5_ib_modify_qp()
1818 err = __mlx5_ib_modify_qp(ibqp, attr, attr_mask, cur_state, new_state); in mlx5_ib_modify_qp()
2542 if (unlikely(mlx5_wq_overflow(&qp->sq, nreq, qp->ibqp.send_cq))) { in begin_wqe()
2588 int mlx5_ib_post_send(struct ib_qp *ibqp, struct ib_send_wr *wr, in mlx5_ib_post_send() argument
2592 struct mlx5_ib_dev *dev = to_mdev(ibqp->device); in mlx5_ib_post_send()
2594 struct mlx5_ib_qp *qp = to_mqp(ibqp); in mlx5_ib_post_send()
2639 switch (ibqp->qp_type) { in mlx5_ib_post_send()
2669 err = set_frwr_li_wr(&seg, wr, &size, mdev, to_mpd(ibqp->pd), qp); in mlx5_ib_post_send()
2682 err = set_frwr_li_wr(&seg, wr, &size, mdev, to_mpd(ibqp->pd), qp); in mlx5_ib_post_send()
2895 int mlx5_ib_post_recv(struct ib_qp *ibqp, struct ib_recv_wr *wr, in mlx5_ib_post_recv() argument
2898 struct mlx5_ib_qp *qp = to_mqp(ibqp); in mlx5_ib_post_recv()
2912 if (mlx5_wq_overflow(&qp->rq, nreq, qp->ibqp.recv_cq)) { in mlx5_ib_post_recv()
3033 int mlx5_ib_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *qp_attr, int qp_attr_mask, in mlx5_ib_query_qp() argument
3036 struct mlx5_ib_dev *dev = to_mdev(ibqp->device); in mlx5_ib_query_qp()
3037 struct mlx5_ib_qp *qp = to_mqp(ibqp); in mlx5_ib_query_qp()
3076 if (qp->ibqp.qp_type == IB_QPT_RC || qp->ibqp.qp_type == IB_QPT_UC) { in mlx5_ib_query_qp()
3103 if (!ibqp->uobject) { in mlx5_ib_query_qp()