Lines Matching refs:chp
42 static void post_qp_event(struct c4iw_dev *dev, struct c4iw_cq *chp,
72 event.device = chp->ibcq.device;
74 event.element.cq = &chp->ibcq;
80 spin_lock_irqsave(&chp->comp_handler_lock, flag);
81 (*chp->ibcq.comp_handler)(&chp->ibcq, chp->ibcq.cq_context);
82 spin_unlock_irqrestore(&chp->comp_handler_lock, flag);
87 struct c4iw_cq *chp;
108 chp = get_chp(dev, cqid);
109 if (!chp) {
121 atomic_inc(&chp->refcnt);
127 post_qp_event(dev, chp, qhp, err_cqe, IB_EVENT_QP_REQ_ERR);
146 post_qp_event(dev, chp, qhp, err_cqe, IB_EVENT_QP_ACCESS_ERR);
153 post_qp_event(dev, chp, qhp, err_cqe, IB_EVENT_DEVICE_FATAL);
173 post_qp_event(dev, chp, qhp, err_cqe, IB_EVENT_QP_FATAL);
179 post_qp_event(dev, chp, qhp, err_cqe, IB_EVENT_QP_FATAL);
183 if (atomic_dec_and_test(&chp->refcnt))
184 wake_up(&chp->wait);
194 struct c4iw_cq *chp;
198 chp = get_chp(dev, qid);
199 if (chp) {
200 atomic_inc(&chp->refcnt);
203 spin_lock_irqsave(&chp->comp_handler_lock, flag);
204 (*chp->ibcq.comp_handler)(&chp->ibcq, chp->ibcq.cq_context);
205 spin_unlock_irqrestore(&chp->comp_handler_lock, flag);
206 if (atomic_dec_and_test(&chp->refcnt))
207 wake_up(&chp->wait);