Lines Matching refs:chp
38 static void post_qp_event(struct c4iw_dev *dev, struct c4iw_cq *chp,
67 event.device = chp->ibcq.device;
69 event.element.cq = &chp->ibcq;
75 (*chp->ibcq.comp_handler)(&chp->ibcq, chp->ibcq.cq_context);
80 struct c4iw_cq *chp;
101 chp = get_chp(dev, cqid);
102 if (!chp) {
114 atomic_inc(&chp->refcnt);
120 post_qp_event(dev, chp, qhp, err_cqe, IB_EVENT_QP_REQ_ERR);
139 post_qp_event(dev, chp, qhp, err_cqe, IB_EVENT_QP_ACCESS_ERR);
146 post_qp_event(dev, chp, qhp, err_cqe, IB_EVENT_DEVICE_FATAL);
166 post_qp_event(dev, chp, qhp, err_cqe, IB_EVENT_QP_FATAL);
172 post_qp_event(dev, chp, qhp, err_cqe, IB_EVENT_QP_FATAL);
176 if (atomic_dec_and_test(&chp->refcnt))
177 wake_up(&chp->wait);
185 struct c4iw_cq *chp;
187 chp = get_chp(dev, qid);
188 if (chp)
189 (*chp->ibcq.comp_handler)(&chp->ibcq, chp->ibcq.cq_context);