Lines Matching refs:wc

36 			      struct iwch_qp *qhp, struct ib_wc *wc)  in __iwch_poll_cq_one()  argument
59 wc->wr_id = cookie; in __iwch_poll_cq_one()
60 wc->qp = qhp ? &qhp->ibqp : NULL; in __iwch_poll_cq_one()
61 wc->vendor_err = CQE_STATUS(cqe); in __iwch_poll_cq_one()
62 wc->wc_flags = 0; in __iwch_poll_cq_one()
72 wc->byte_len = CQE_LEN(cqe); in __iwch_poll_cq_one()
74 wc->byte_len = 0; in __iwch_poll_cq_one()
75 wc->opcode = IB_WC_RECV; in __iwch_poll_cq_one()
78 wc->ex.invalidate_rkey = CQE_WRID_STAG(cqe); in __iwch_poll_cq_one()
79 wc->wc_flags |= IB_WC_WITH_INVALIDATE; in __iwch_poll_cq_one()
84 wc->opcode = IB_WC_RDMA_WRITE; in __iwch_poll_cq_one()
87 wc->opcode = IB_WC_RDMA_READ; in __iwch_poll_cq_one()
88 wc->byte_len = CQE_LEN(cqe); in __iwch_poll_cq_one()
94 wc->opcode = IB_WC_SEND; in __iwch_poll_cq_one()
97 wc->opcode = IB_WC_LOCAL_INV; in __iwch_poll_cq_one()
100 wc->opcode = IB_WC_REG_MR; in __iwch_poll_cq_one()
111 wc->status = IB_WC_WR_FLUSH_ERR; in __iwch_poll_cq_one()
116 wc->status = IB_WC_SUCCESS; in __iwch_poll_cq_one()
119 wc->status = IB_WC_LOC_ACCESS_ERR; in __iwch_poll_cq_one()
122 wc->status = IB_WC_LOC_PROT_ERR; in __iwch_poll_cq_one()
126 wc->status = IB_WC_LOC_ACCESS_ERR; in __iwch_poll_cq_one()
129 wc->status = IB_WC_GENERAL_ERR; in __iwch_poll_cq_one()
132 wc->status = IB_WC_LOC_LEN_ERR; in __iwch_poll_cq_one()
136 wc->status = IB_WC_MW_BIND_ERR; in __iwch_poll_cq_one()
151 wc->status = IB_WC_FATAL_ERR; in __iwch_poll_cq_one()
154 wc->status = IB_WC_WR_FLUSH_ERR; in __iwch_poll_cq_one()
176 struct ib_wc *wc) in iwch_poll_cq_one() argument
190 ret = __iwch_poll_cq_one(rhp, chp, qhp, wc); in iwch_poll_cq_one()
193 ret = __iwch_poll_cq_one(rhp, chp, NULL, wc); in iwch_poll_cq_one()
198 int iwch_poll_cq(struct ib_cq *ibcq, int num_entries, struct ib_wc *wc) in iwch_poll_cq() argument
218 err = iwch_poll_cq_one(rhp, chp, wc + npolled); in iwch_poll_cq()