Lines Matching refs:chp
41 static void post_qp_event(struct iwch_dev *rnicp, struct iwch_cq *chp, in post_qp_event() argument
80 event.device = chp->ibcq.device; in post_qp_event()
82 event.element.cq = &chp->ibcq; in post_qp_event()
105 struct iwch_cq *chp; in iwch_ev_dispatch() local
111 chp = get_chp(rnicp, cqid); in iwch_ev_dispatch()
113 if (!chp || !qhp) { in iwch_ev_dispatch()
124 atomic_inc(&chp->refcnt); in iwch_ev_dispatch()
140 post_qp_event(rnicp, chp, rsp_msg, in iwch_ev_dispatch()
150 post_qp_event(rnicp, chp, rsp_msg, IB_EVENT_QP_REQ_ERR, 1); in iwch_ev_dispatch()
157 post_qp_event(rnicp, chp, rsp_msg, IB_EVENT_QP_REQ_ERR, 1); in iwch_ev_dispatch()
171 (*chp->ibcq.comp_handler)(&chp->ibcq, chp->ibcq.cq_context); in iwch_ev_dispatch()
187 (*chp->ibcq.comp_handler)(&chp->ibcq, chp->ibcq.cq_context); in iwch_ev_dispatch()
188 post_qp_event(rnicp, chp, rsp_msg, IB_EVENT_QP_ACCESS_ERR, 1); in iwch_ev_dispatch()
195 post_qp_event(rnicp, chp, rsp_msg, IB_EVENT_DEVICE_FATAL, 1); in iwch_ev_dispatch()
215 post_qp_event(rnicp, chp, rsp_msg, IB_EVENT_QP_FATAL, 1); in iwch_ev_dispatch()
221 post_qp_event(rnicp, chp, rsp_msg, IB_EVENT_QP_FATAL, 1); in iwch_ev_dispatch()
225 if (atomic_dec_and_test(&chp->refcnt)) in iwch_ev_dispatch()
226 wake_up(&chp->wait); in iwch_ev_dispatch()