Lines Matching refs:err_cqe
62 static void dump_err_cqe(struct c4iw_dev *dev, struct t4_cqe *err_cqe) in dump_err_cqe() argument
64 __be64 *p = (void *)err_cqe; in dump_err_cqe()
69 CQE_QPID(err_cqe), CQE_OPCODE(err_cqe), in dump_err_cqe()
70 CQE_STATUS(err_cqe), CQE_TYPE(err_cqe), ntohl(err_cqe->len), in dump_err_cqe()
71 CQE_WRID_HI(err_cqe), CQE_WRID_LOW(err_cqe)); in dump_err_cqe()
82 if (RQ_TYPE(err_cqe) && (CQE_OPCODE(err_cqe) == FW_RI_RDMA_WRITE || in dump_err_cqe()
83 CQE_OPCODE(err_cqe) == FW_RI_READ_RESP)) in dump_err_cqe()
84 print_tpte(dev, CQE_WRID_STAG(err_cqe)); in dump_err_cqe()
89 struct t4_cqe *err_cqe, in post_qp_event() argument
96 dump_err_cqe(dev, err_cqe); in post_qp_event()
120 void c4iw_ev_dispatch(struct c4iw_dev *dev, struct t4_cqe *err_cqe) in c4iw_ev_dispatch() argument
127 qhp = xa_load(&dev->qps, CQE_QPID(err_cqe)); in c4iw_ev_dispatch()
130 CQE_QPID(err_cqe), in c4iw_ev_dispatch()
131 CQE_OPCODE(err_cqe), CQE_STATUS(err_cqe), in c4iw_ev_dispatch()
132 CQE_TYPE(err_cqe), CQE_WRID_HI(err_cqe), in c4iw_ev_dispatch()
133 CQE_WRID_LOW(err_cqe)); in c4iw_ev_dispatch()
138 if (SQ_TYPE(err_cqe)) in c4iw_ev_dispatch()
145 cqid, CQE_QPID(err_cqe), in c4iw_ev_dispatch()
146 CQE_OPCODE(err_cqe), CQE_STATUS(err_cqe), in c4iw_ev_dispatch()
147 CQE_TYPE(err_cqe), CQE_WRID_HI(err_cqe), in c4iw_ev_dispatch()
148 CQE_WRID_LOW(err_cqe)); in c4iw_ev_dispatch()
158 if (RQ_TYPE(err_cqe) && in c4iw_ev_dispatch()
159 (CQE_OPCODE(err_cqe) == FW_RI_RDMA_WRITE)) { in c4iw_ev_dispatch()
160 post_qp_event(dev, chp, qhp, err_cqe, IB_EVENT_QP_REQ_ERR); in c4iw_ev_dispatch()
164 switch (CQE_STATUS(err_cqe)) { in c4iw_ev_dispatch()
179 post_qp_event(dev, chp, qhp, err_cqe, IB_EVENT_QP_ACCESS_ERR); in c4iw_ev_dispatch()
186 post_qp_event(dev, chp, qhp, err_cqe, IB_EVENT_DEVICE_FATAL); in c4iw_ev_dispatch()
206 post_qp_event(dev, chp, qhp, err_cqe, IB_EVENT_QP_FATAL); in c4iw_ev_dispatch()
211 CQE_STATUS(err_cqe), qhp->wq.sq.qid); in c4iw_ev_dispatch()
212 post_qp_event(dev, chp, qhp, err_cqe, IB_EVENT_QP_FATAL); in c4iw_ev_dispatch()