Lines Matching refs:ibqp
119 struct ib_device *ibdev = qp->ibqp.device; in mlx5_ib_read_user_wqe()
131 qp->ibqp.qp_type); in mlx5_ib_read_user_wqe()
172 struct ib_qp *ibqp = &to_mibqp(qp)->ibqp; in mlx5_ib_qp_event() local
178 if (ibqp->event_handler) { in mlx5_ib_qp_event()
179 event.device = ibqp->device; in mlx5_ib_qp_event()
180 event.element.qp = ibqp; in mlx5_ib_qp_event()
211 ibqp->event_handler(&event, ibqp->qp_context); in mlx5_ib_qp_event()
1108 return to_mpd(qp->ibqp.pd); in get_pd()
1114 switch (qp->ibqp.qp_type) { in get_cqs()
1121 *send_cq = to_mcq(qp->ibqp.send_cq); in get_cqs()
1132 *send_cq = to_mcq(qp->ibqp.send_cq); in get_cqs()
1133 *recv_cq = to_mcq(qp->ibqp.recv_cq); in get_cqs()
1168 qp->ibqp.srq ? to_msrq(qp->ibqp.srq) : NULL); in destroy_qp_common()
1271 qp->ibqp.qp_num = 0; in mlx5_ib_create_qp()
1273 qp->ibqp.qp_num = 1; in mlx5_ib_create_qp()
1275 qp->ibqp.qp_num = qp->mqp.qpn; in mlx5_ib_create_qp()
1278 qp->ibqp.qp_num, qp->mqp.qpn, to_mcq(init_attr->recv_cq)->mcq.cqn, in mlx5_ib_create_qp()
1296 return &qp->ibqp; in mlx5_ib_create_qp()
1552 static int __mlx5_ib_modify_qp(struct ib_qp *ibqp, in __mlx5_ib_modify_qp() argument
1556 struct mlx5_ib_dev *dev = to_mdev(ibqp->device); in __mlx5_ib_modify_qp()
1557 struct mlx5_ib_qp *qp = to_mqp(ibqp); in __mlx5_ib_modify_qp()
1573 err = to_mlx5_st(ibqp->qp_type); in __mlx5_ib_modify_qp()
1595 if (ibqp->qp_type == IB_QPT_GSI || ibqp->qp_type == IB_QPT_SMI) { in __mlx5_ib_modify_qp()
1597 } else if (ibqp->qp_type == IB_QPT_UD || in __mlx5_ib_modify_qp()
1598 ibqp->qp_type == MLX5_IB_QPT_REG_UMR) { in __mlx5_ib_modify_qp()
1619 if (is_sqp(ibqp->qp_type)) in __mlx5_ib_modify_qp()
1693 if (!ibqp->uobject && cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT) in __mlx5_ib_modify_qp()
1699 mlx5_st = to_mlx5_st(ibqp->qp_type); in __mlx5_ib_modify_qp()
1739 if (new_state == IB_QPS_RESET && !ibqp->uobject) { in __mlx5_ib_modify_qp()
1741 ibqp->srq ? to_msrq(ibqp->srq) : NULL); in __mlx5_ib_modify_qp()
1760 int mlx5_ib_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, in mlx5_ib_modify_qp() argument
1763 struct mlx5_ib_dev *dev = to_mdev(ibqp->device); in mlx5_ib_modify_qp()
1764 struct mlx5_ib_qp *qp = to_mqp(ibqp); in mlx5_ib_modify_qp()
1774 if (ibqp->qp_type != MLX5_IB_QPT_REG_UMR && in mlx5_ib_modify_qp()
1775 !ib_modify_qp_is_ok(cur_state, new_state, ibqp->qp_type, attr_mask, in mlx5_ib_modify_qp()
1806 err = __mlx5_ib_modify_qp(ibqp, attr, attr_mask, cur_state, new_state); in mlx5_ib_modify_qp()
2438 struct mlx5_ib_pd *pd = to_mpd(qp->ibqp.pd); in set_reg_wr()
2441 mlx5_ib_warn(to_mdev(qp->ibqp.device), in set_reg_wr()
2541 if (unlikely(mlx5_wq_overflow(&qp->sq, nreq, qp->ibqp.send_cq))) { in begin_wqe()
2587 int mlx5_ib_post_send(struct ib_qp *ibqp, struct ib_send_wr *wr, in mlx5_ib_post_send() argument
2591 struct mlx5_ib_dev *dev = to_mdev(ibqp->device); in mlx5_ib_post_send()
2592 struct mlx5_ib_qp *qp = to_mqp(ibqp); in mlx5_ib_post_send()
2637 switch (ibqp->qp_type) { in mlx5_ib_post_send()
2886 int mlx5_ib_post_recv(struct ib_qp *ibqp, struct ib_recv_wr *wr, in mlx5_ib_post_recv() argument
2889 struct mlx5_ib_qp *qp = to_mqp(ibqp); in mlx5_ib_post_recv()
2903 if (mlx5_wq_overflow(&qp->rq, nreq, qp->ibqp.recv_cq)) { in mlx5_ib_post_recv()
3024 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
3027 struct mlx5_ib_dev *dev = to_mdev(ibqp->device); in mlx5_ib_query_qp()
3028 struct mlx5_ib_qp *qp = to_mqp(ibqp); in mlx5_ib_query_qp()
3067 if (qp->ibqp.qp_type == IB_QPT_RC || qp->ibqp.qp_type == IB_QPT_UC) { in mlx5_ib_query_qp()
3094 if (!ibqp->uobject) { in mlx5_ib_query_qp()