Lines Matching refs:wc
682 static int c4iw_poll_cq_one(struct c4iw_cq *chp, struct ib_wc *wc) in c4iw_poll_cq_one() argument
708 wc->wr_id = cookie; in c4iw_poll_cq_one()
709 wc->qp = &qhp->ibqp; in c4iw_poll_cq_one()
710 wc->vendor_err = CQE_STATUS(&cqe); in c4iw_poll_cq_one()
711 wc->wc_flags = 0; in c4iw_poll_cq_one()
720 wc->byte_len = CQE_LEN(&cqe); in c4iw_poll_cq_one()
722 wc->byte_len = 0; in c4iw_poll_cq_one()
723 wc->opcode = IB_WC_RECV; in c4iw_poll_cq_one()
726 wc->ex.invalidate_rkey = CQE_WRID_STAG(&cqe); in c4iw_poll_cq_one()
727 wc->wc_flags |= IB_WC_WITH_INVALIDATE; in c4iw_poll_cq_one()
732 wc->opcode = IB_WC_RDMA_WRITE; in c4iw_poll_cq_one()
735 wc->opcode = IB_WC_RDMA_READ; in c4iw_poll_cq_one()
736 wc->byte_len = CQE_LEN(&cqe); in c4iw_poll_cq_one()
740 wc->opcode = IB_WC_SEND; in c4iw_poll_cq_one()
741 wc->wc_flags |= IB_WC_WITH_INVALIDATE; in c4iw_poll_cq_one()
745 wc->opcode = IB_WC_SEND; in c4iw_poll_cq_one()
748 wc->opcode = IB_WC_BIND_MW; in c4iw_poll_cq_one()
752 wc->opcode = IB_WC_LOCAL_INV; in c4iw_poll_cq_one()
755 wc->opcode = IB_WC_REG_MR; in c4iw_poll_cq_one()
767 wc->status = IB_WC_WR_FLUSH_ERR; in c4iw_poll_cq_one()
772 wc->status = IB_WC_SUCCESS; in c4iw_poll_cq_one()
775 wc->status = IB_WC_LOC_ACCESS_ERR; in c4iw_poll_cq_one()
778 wc->status = IB_WC_LOC_PROT_ERR; in c4iw_poll_cq_one()
782 wc->status = IB_WC_LOC_ACCESS_ERR; in c4iw_poll_cq_one()
785 wc->status = IB_WC_GENERAL_ERR; in c4iw_poll_cq_one()
788 wc->status = IB_WC_LOC_LEN_ERR; in c4iw_poll_cq_one()
792 wc->status = IB_WC_MW_BIND_ERR; in c4iw_poll_cq_one()
808 wc->status = IB_WC_FATAL_ERR; in c4iw_poll_cq_one()
811 wc->status = IB_WC_WR_FLUSH_ERR; in c4iw_poll_cq_one()
817 wc->status = IB_WC_FATAL_ERR; in c4iw_poll_cq_one()
826 int c4iw_poll_cq(struct ib_cq *ibcq, int num_entries, struct ib_wc *wc) in c4iw_poll_cq() argument
838 err = c4iw_poll_cq_one(chp, wc + npolled); in c4iw_poll_cq()