Lines Matching refs:qhp
39 struct c4iw_qp *qhp,
47 if ((qhp->attr.state == C4IW_QP_STATE_ERROR) ||
48 (qhp->attr.state == C4IW_QP_STATE_TERMINATE)) {
51 qhp->attr.state, qhp->wq.sq.qid, CQE_STATUS(err_cqe));
61 if (qhp->attr.state == C4IW_QP_STATE_RTS) {
63 c4iw_modify_qp(qhp->rhp, qhp, C4IW_QP_ATTR_NEXT_STATE,
72 event.element.qp = &qhp->ibqp;
73 if (qhp->ibqp.event_handler)
74 (*qhp->ibqp.event_handler)(&event, qhp->ibqp.qp_context);
84 struct c4iw_qp *qhp;
88 qhp = get_qhp(dev, CQE_QPID(err_cqe));
89 if (!qhp) {
101 cqid = qhp->attr.scq;
103 cqid = qhp->attr.rcq;
116 c4iw_qp_add_ref(&qhp->ibqp);
123 post_qp_event(dev, chp, qhp, err_cqe, IB_EVENT_QP_REQ_ERR);
142 post_qp_event(dev, chp, qhp, err_cqe, IB_EVENT_QP_ACCESS_ERR);
149 post_qp_event(dev, chp, qhp, err_cqe, IB_EVENT_DEVICE_FATAL);
169 post_qp_event(dev, chp, qhp, err_cqe, IB_EVENT_QP_FATAL);
174 CQE_STATUS(err_cqe), qhp->wq.sq.qid);
175 post_qp_event(dev, chp, qhp, err_cqe, IB_EVENT_QP_FATAL);
181 c4iw_qp_rem_ref(&qhp->ibqp);