32 #include <linux/slab.h>
33 #include <linux/mman.h>
43 struct ib_event
event;
49 PDBG(
"%s AE received after RTS - "
50 "qp state %d qpid 0x%x status 0x%x\n", __func__,
56 "type %d wrid.hi 0x%x wrid.lo 0x%x\n",
67 event.event = ib_event;
68 event.device = chp->
ibcq.device;
70 event.element.cq = &chp->
ibcq;
72 event.element.qp = &qhp->
ibqp;
73 if (qhp->
ibqp.event_handler)
77 (*chp->
ibcq.comp_handler)(&chp->
ibcq, chp->
ibcq.cq_context);
87 spin_lock_irq(&dev->
lock);
88 qhp = get_qhp(dev,
CQE_QPID(err_cqe));
91 "status 0x%x type %d wrid.hi 0x%x wrid.lo 0x%x\n",
96 spin_unlock_irq(&dev->
lock);
101 cqid = qhp->
attr.scq;
103 cqid = qhp->
attr.rcq;
104 chp = get_chp(dev, cqid);
107 "status 0x%x type %d wrid.hi 0x%x wrid.lo 0x%x\n",
112 spin_unlock_irq(&dev->
lock);
118 spin_unlock_irq(&dev->
lock);
191 chp = get_chp(dev, qid);
194 (*chp->
ibcq.comp_handler)(&chp->
ibcq, chp->
ibcq.cq_context);
197 PDBG(
"%s unknown cqid 0x%x\n", __func__, qid);