Lines Matching refs:chp

87 static void post_qp_event(struct c4iw_dev *dev, struct c4iw_cq *chp,  in post_qp_event()  argument
105 event.device = chp->ibcq.device; in post_qp_event()
107 event.element.cq = &chp->ibcq; in post_qp_event()
113 spin_lock_irqsave(&chp->comp_handler_lock, flag); in post_qp_event()
114 (*chp->ibcq.comp_handler)(&chp->ibcq, chp->ibcq.cq_context); in post_qp_event()
115 spin_unlock_irqrestore(&chp->comp_handler_lock, flag); in post_qp_event()
120 struct c4iw_cq *chp; in c4iw_ev_dispatch() local
141 chp = get_chp(dev, cqid); in c4iw_ev_dispatch()
142 if (!chp) { in c4iw_ev_dispatch()
154 atomic_inc(&chp->refcnt); in c4iw_ev_dispatch()
160 post_qp_event(dev, chp, qhp, err_cqe, IB_EVENT_QP_REQ_ERR); in c4iw_ev_dispatch()
179 post_qp_event(dev, chp, qhp, err_cqe, IB_EVENT_QP_ACCESS_ERR); in c4iw_ev_dispatch()
186 post_qp_event(dev, chp, qhp, err_cqe, IB_EVENT_DEVICE_FATAL); in c4iw_ev_dispatch()
206 post_qp_event(dev, chp, qhp, err_cqe, IB_EVENT_QP_FATAL); in c4iw_ev_dispatch()
212 post_qp_event(dev, chp, qhp, err_cqe, IB_EVENT_QP_FATAL); in c4iw_ev_dispatch()
216 if (atomic_dec_and_test(&chp->refcnt)) in c4iw_ev_dispatch()
217 wake_up(&chp->wait); in c4iw_ev_dispatch()
225 struct c4iw_cq *chp; in c4iw_ev_handler() local
229 chp = get_chp(dev, qid); in c4iw_ev_handler()
230 if (chp) { in c4iw_ev_handler()
231 atomic_inc(&chp->refcnt); in c4iw_ev_handler()
233 t4_clear_cq_armed(&chp->cq); in c4iw_ev_handler()
234 spin_lock_irqsave(&chp->comp_handler_lock, flag); in c4iw_ev_handler()
235 (*chp->ibcq.comp_handler)(&chp->ibcq, chp->ibcq.cq_context); in c4iw_ev_handler()
236 spin_unlock_irqrestore(&chp->comp_handler_lock, flag); in c4iw_ev_handler()
237 if (atomic_dec_and_test(&chp->refcnt)) in c4iw_ev_handler()
238 wake_up(&chp->wait); in c4iw_ev_handler()