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 if (t4_clear_cq_armed(&chp->cq)) { in post_qp_event()
114 spin_lock_irqsave(&chp->comp_handler_lock, flag); in post_qp_event()
115 (*chp->ibcq.comp_handler)(&chp->ibcq, chp->ibcq.cq_context); in post_qp_event()
116 spin_unlock_irqrestore(&chp->comp_handler_lock, flag); in post_qp_event()
122 struct c4iw_cq *chp; in c4iw_ev_dispatch() local
142 chp = get_chp(dev, cqid); in c4iw_ev_dispatch()
143 if (!chp) { in c4iw_ev_dispatch()
154 refcount_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 c4iw_cq_rem_ref(chp); in c4iw_ev_dispatch()
224 struct c4iw_cq *chp; in c4iw_ev_handler() local
228 chp = xa_load(&dev->cqs, qid); in c4iw_ev_handler()
229 if (chp) { in c4iw_ev_handler()
230 refcount_inc(&chp->refcnt); in c4iw_ev_handler()
232 t4_clear_cq_armed(&chp->cq); in c4iw_ev_handler()
233 spin_lock_irqsave(&chp->comp_handler_lock, flag); in c4iw_ev_handler()
234 (*chp->ibcq.comp_handler)(&chp->ibcq, chp->ibcq.cq_context); in c4iw_ev_handler()
235 spin_unlock_irqrestore(&chp->comp_handler_lock, flag); in c4iw_ev_handler()
236 c4iw_cq_rem_ref(chp); in c4iw_ev_handler()