Lines Matching refs:qhp
119 struct c4iw_qp *qhp, in post_qp_event() argument
127 if ((qhp->attr.state == C4IW_QP_STATE_ERROR) || in post_qp_event()
128 (qhp->attr.state == C4IW_QP_STATE_TERMINATE)) { in post_qp_event()
131 qhp->attr.state, qhp->wq.sq.qid, CQE_STATUS(err_cqe)); in post_qp_event()
137 if (qhp->attr.state == C4IW_QP_STATE_RTS) { in post_qp_event()
139 c4iw_modify_qp(qhp->rhp, qhp, C4IW_QP_ATTR_NEXT_STATE, in post_qp_event()
148 event.element.qp = &qhp->ibqp; in post_qp_event()
149 if (qhp->ibqp.event_handler) in post_qp_event()
150 (*qhp->ibqp.event_handler)(&event, qhp->ibqp.qp_context); in post_qp_event()
160 struct c4iw_qp *qhp; in c4iw_ev_dispatch() local
164 qhp = get_qhp(dev, CQE_QPID(err_cqe)); in c4iw_ev_dispatch()
165 if (!qhp) { in c4iw_ev_dispatch()
177 cqid = qhp->attr.scq; in c4iw_ev_dispatch()
179 cqid = qhp->attr.rcq; in c4iw_ev_dispatch()
192 c4iw_qp_add_ref(&qhp->ibqp); in c4iw_ev_dispatch()
199 post_qp_event(dev, chp, qhp, err_cqe, IB_EVENT_QP_REQ_ERR); in c4iw_ev_dispatch()
218 post_qp_event(dev, chp, qhp, err_cqe, IB_EVENT_QP_ACCESS_ERR); in c4iw_ev_dispatch()
225 post_qp_event(dev, chp, qhp, err_cqe, IB_EVENT_DEVICE_FATAL); in c4iw_ev_dispatch()
245 post_qp_event(dev, chp, qhp, err_cqe, IB_EVENT_QP_FATAL); in c4iw_ev_dispatch()
250 CQE_STATUS(err_cqe), qhp->wq.sq.qid); in c4iw_ev_dispatch()
251 post_qp_event(dev, chp, qhp, err_cqe, IB_EVENT_QP_FATAL); in c4iw_ev_dispatch()
257 c4iw_qp_rem_ref(&qhp->ibqp); in c4iw_ev_dispatch()