Lines Matching refs:wc
45 struct ib_wc *wc) in iwch_poll_cq_one() argument
81 wc->wr_id = cookie; in iwch_poll_cq_one()
82 wc->qp = &qhp->ibqp; in iwch_poll_cq_one()
83 wc->vendor_err = CQE_STATUS(cqe); in iwch_poll_cq_one()
84 wc->wc_flags = 0; in iwch_poll_cq_one()
94 wc->byte_len = CQE_LEN(cqe); in iwch_poll_cq_one()
96 wc->byte_len = 0; in iwch_poll_cq_one()
97 wc->opcode = IB_WC_RECV; in iwch_poll_cq_one()
100 wc->ex.invalidate_rkey = CQE_WRID_STAG(cqe); in iwch_poll_cq_one()
101 wc->wc_flags |= IB_WC_WITH_INVALIDATE; in iwch_poll_cq_one()
106 wc->opcode = IB_WC_RDMA_WRITE; in iwch_poll_cq_one()
109 wc->opcode = IB_WC_RDMA_READ; in iwch_poll_cq_one()
110 wc->byte_len = CQE_LEN(cqe); in iwch_poll_cq_one()
116 wc->opcode = IB_WC_SEND; in iwch_poll_cq_one()
119 wc->opcode = IB_WC_BIND_MW; in iwch_poll_cq_one()
123 wc->opcode = IB_WC_LOCAL_INV; in iwch_poll_cq_one()
126 wc->opcode = IB_WC_FAST_REG_MR; in iwch_poll_cq_one()
138 wc->status = IB_WC_WR_FLUSH_ERR; in iwch_poll_cq_one()
143 wc->status = IB_WC_SUCCESS; in iwch_poll_cq_one()
146 wc->status = IB_WC_LOC_ACCESS_ERR; in iwch_poll_cq_one()
149 wc->status = IB_WC_LOC_PROT_ERR; in iwch_poll_cq_one()
153 wc->status = IB_WC_LOC_ACCESS_ERR; in iwch_poll_cq_one()
156 wc->status = IB_WC_GENERAL_ERR; in iwch_poll_cq_one()
159 wc->status = IB_WC_LOC_LEN_ERR; in iwch_poll_cq_one()
163 wc->status = IB_WC_MW_BIND_ERR; in iwch_poll_cq_one()
178 wc->status = IB_WC_FATAL_ERR; in iwch_poll_cq_one()
181 wc->status = IB_WC_WR_FLUSH_ERR; in iwch_poll_cq_one()
195 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()