Lines Matching refs:chp
87 static void post_qp_event(struct c4iw_dev *dev, struct c4iw_cq *chp,
105 event.device = chp->ibcq.device;
107 event.element.cq = &chp->ibcq;
113 if (t4_clear_cq_armed(&chp->cq)) {
114 spin_lock_irqsave(&chp->comp_handler_lock, flag);
115 (*chp->ibcq.comp_handler)(&chp->ibcq, chp->ibcq.cq_context);
116 spin_unlock_irqrestore(&chp->comp_handler_lock, flag);
122 struct c4iw_cq *chp;
142 chp = get_chp(dev, cqid);
143 if (!chp) {
154 refcount_inc(&chp->refcnt);
160 post_qp_event(dev, chp, qhp, err_cqe, IB_EVENT_QP_REQ_ERR);
179 post_qp_event(dev, chp, qhp, err_cqe, IB_EVENT_QP_ACCESS_ERR);
186 post_qp_event(dev, chp, qhp, err_cqe, IB_EVENT_DEVICE_FATAL);
206 post_qp_event(dev, chp, qhp, err_cqe, IB_EVENT_QP_FATAL);
212 post_qp_event(dev, chp, qhp, err_cqe, IB_EVENT_QP_FATAL);
216 c4iw_cq_rem_ref(chp);
224 struct c4iw_cq *chp;
228 chp = xa_load(&dev->cqs, qid);
229 if (chp) {
230 refcount_inc(&chp->refcnt);
232 t4_clear_cq_armed(&chp->cq);
233 spin_lock_irqsave(&chp->comp_handler_lock, flag);
234 (*chp->ibcq.comp_handler)(&chp->ibcq, chp->ibcq.cq_context);
235 spin_unlock_irqrestore(&chp->comp_handler_lock, flag);
236 c4iw_cq_rem_ref(chp);