Lines Matching full:wc
110 static int erdma_poll_one_cqe(struct erdma_cq *cq, struct ib_wc *wc) in erdma_poll_one_cqe() argument
157 wc->wr_id = id_table[wqe_idx & (depth - 1)]; in erdma_poll_one_cqe()
158 wc->byte_len = be32_to_cpu(cqe->size); in erdma_poll_one_cqe()
160 wc->wc_flags = 0; in erdma_poll_one_cqe()
162 wc->opcode = wc_mapping_table[opcode]; in erdma_poll_one_cqe()
164 wc->ex.imm_data = cpu_to_be32(le32_to_cpu(cqe->imm_data)); in erdma_poll_one_cqe()
165 wc->wc_flags |= IB_WC_WITH_IMM; in erdma_poll_one_cqe()
167 wc->ex.invalidate_rkey = be32_to_cpu(cqe->inv_rkey); in erdma_poll_one_cqe()
168 wc->wc_flags |= IB_WC_WITH_INVALIDATE; in erdma_poll_one_cqe()
174 wc->status = map_cqe_status[syndrome].base; in erdma_poll_one_cqe()
175 wc->vendor_err = map_cqe_status[syndrome].vendor; in erdma_poll_one_cqe()
176 wc->qp = &qp->ibqp; in erdma_poll_one_cqe()
181 int erdma_poll_cq(struct ib_cq *ibcq, int num_entries, struct ib_wc *wc) in erdma_poll_cq() argument
190 ret = erdma_poll_one_cqe(cq, wc + npolled); in erdma_poll_cq()