H A D | ev.c | 63 static void dump_err_cqe(struct c4iw_dev *dev, struct t4_cqe *err_cqe) dump_err_cqe() argument 65 __be64 *p = (void *)err_cqe; dump_err_cqe() 70 CQE_QPID(err_cqe), CQE_OPCODE(err_cqe), dump_err_cqe() 71 CQE_STATUS(err_cqe), CQE_TYPE(err_cqe), ntohl(err_cqe->len), dump_err_cqe() 72 CQE_WRID_HI(err_cqe), CQE_WRID_LOW(err_cqe)); dump_err_cqe() 82 if (RQ_TYPE(err_cqe) && (CQE_OPCODE(err_cqe) == FW_RI_RDMA_WRITE || dump_err_cqe() 83 CQE_OPCODE(err_cqe) == FW_RI_READ_RESP)) dump_err_cqe() 84 print_tpte(dev, CQE_WRID_STAG(err_cqe)); dump_err_cqe() 89 struct t4_cqe *err_cqe, post_qp_event() 96 dump_err_cqe(dev, err_cqe); post_qp_event() 118 void c4iw_ev_dispatch(struct c4iw_dev *dev, struct t4_cqe *err_cqe) c4iw_ev_dispatch() argument 125 qhp = get_qhp(dev, CQE_QPID(err_cqe)); c4iw_ev_dispatch() 129 CQE_QPID(err_cqe), c4iw_ev_dispatch() 130 CQE_OPCODE(err_cqe), CQE_STATUS(err_cqe), c4iw_ev_dispatch() 131 CQE_TYPE(err_cqe), CQE_WRID_HI(err_cqe), c4iw_ev_dispatch() 132 CQE_WRID_LOW(err_cqe)); c4iw_ev_dispatch() 137 if (SQ_TYPE(err_cqe)) c4iw_ev_dispatch() 145 cqid, CQE_QPID(err_cqe), c4iw_ev_dispatch() 146 CQE_OPCODE(err_cqe), CQE_STATUS(err_cqe), c4iw_ev_dispatch() 147 CQE_TYPE(err_cqe), CQE_WRID_HI(err_cqe), c4iw_ev_dispatch() 148 CQE_WRID_LOW(err_cqe)); c4iw_ev_dispatch() 158 if (RQ_TYPE(err_cqe) && c4iw_ev_dispatch() 159 (CQE_OPCODE(err_cqe) == FW_RI_RDMA_WRITE)) { c4iw_ev_dispatch() 160 post_qp_event(dev, chp, qhp, err_cqe, IB_EVENT_QP_REQ_ERR); c4iw_ev_dispatch() 164 switch (CQE_STATUS(err_cqe)) { c4iw_ev_dispatch() 179 post_qp_event(dev, chp, qhp, err_cqe, IB_EVENT_QP_ACCESS_ERR); c4iw_ev_dispatch() 186 post_qp_event(dev, chp, qhp, err_cqe, IB_EVENT_DEVICE_FATAL); c4iw_ev_dispatch() 206 post_qp_event(dev, chp, qhp, err_cqe, IB_EVENT_QP_FATAL); c4iw_ev_dispatch() 211 CQE_STATUS(err_cqe), qhp->wq.sq.qid); c4iw_ev_dispatch() 212 post_qp_event(dev, chp, qhp, err_cqe, IB_EVENT_QP_FATAL); c4iw_ev_dispatch() 87 post_qp_event(struct c4iw_dev *dev, struct c4iw_cq *chp, struct c4iw_qp *qhp, struct t4_cqe *err_cqe, enum ib_event_type ib_event) post_qp_event() argument
|