33 #include <linux/mman.h>
46 struct ib_event
event;
51 spin_lock(&rnicp->
lock);
58 spin_unlock(&rnicp->
lock);
64 PDBG(
"%s AE received after RTS - "
65 "qp state %d qpid 0x%x status 0x%x\n", __func__,
67 spin_unlock(&rnicp->
lock);
72 "type %d wrid.hi 0x%x wrid.lo 0x%x \n", __func__,
78 spin_unlock(&rnicp->
lock);
88 event.event = ib_event;
89 event.device = chp->
ibcq.device;
91 event.element.cq = &chp->
ibcq;
93 event.element.qp = &qhp->
ibqp;
95 if (qhp->
ibqp.event_handler)
99 (*chp->
ibcq.comp_handler)(&chp->
ibcq, chp->
ibcq.cq_context);
116 spin_lock(&rnicp->
lock);
117 chp = get_chp(rnicp, cqid);
121 "status 0x%x type %d wrid.hi 0x%x wrid.lo 0x%x \n",
126 spin_unlock(&rnicp->
lock);
131 spin_unlock(&rnicp->
lock);
140 PDBG(
"%s QPID 0x%x ep %p disconnecting\n",
141 __func__, qhp->
wq.qpid, qhp->
ep);
144 PDBG(
"%s post REQ_ERR AE QPID 0x%x\n", __func__,
146 post_qp_event(rnicp, chp, rsp_msg,
176 dst_confirm(qhp->
ep->dst);
178 (*chp->
ibcq.comp_handler)(&chp->
ibcq, chp->
ibcq.cq_context);