Lines Matching full:wc

755 			      struct ib_wc *wc, struct c4iw_srq *srq)  in __c4iw_poll_cq_one()  argument
769 wc->wr_id = cookie; in __c4iw_poll_cq_one()
770 wc->qp = &qhp->ibqp; in __c4iw_poll_cq_one()
771 wc->vendor_err = CQE_STATUS(&cqe); in __c4iw_poll_cq_one()
772 wc->wc_flags = 0; in __c4iw_poll_cq_one()
790 wc->byte_len = CQE_LEN(&cqe); in __c4iw_poll_cq_one()
792 wc->byte_len = 0; in __c4iw_poll_cq_one()
796 wc->opcode = IB_WC_RECV; in __c4iw_poll_cq_one()
800 wc->opcode = IB_WC_RECV; in __c4iw_poll_cq_one()
801 wc->ex.invalidate_rkey = CQE_WRID_STAG(&cqe); in __c4iw_poll_cq_one()
802 wc->wc_flags |= IB_WC_WITH_INVALIDATE; in __c4iw_poll_cq_one()
803 c4iw_invalidate_mr(qhp->rhp, wc->ex.invalidate_rkey); in __c4iw_poll_cq_one()
806 wc->opcode = IB_WC_RECV_RDMA_WITH_IMM; in __c4iw_poll_cq_one()
807 wc->ex.imm_data = CQE_IMM_DATA(&cqe); in __c4iw_poll_cq_one()
808 wc->wc_flags |= IB_WC_WITH_IMM; in __c4iw_poll_cq_one()
820 wc->opcode = IB_WC_RDMA_WRITE; in __c4iw_poll_cq_one()
823 wc->opcode = IB_WC_RDMA_READ; in __c4iw_poll_cq_one()
824 wc->byte_len = CQE_LEN(&cqe); in __c4iw_poll_cq_one()
828 wc->opcode = IB_WC_SEND; in __c4iw_poll_cq_one()
829 wc->wc_flags |= IB_WC_WITH_INVALIDATE; in __c4iw_poll_cq_one()
833 wc->opcode = IB_WC_SEND; in __c4iw_poll_cq_one()
837 wc->opcode = IB_WC_LOCAL_INV; in __c4iw_poll_cq_one()
840 wc->opcode = IB_WC_REG_MR; in __c4iw_poll_cq_one()
856 wc->status = IB_WC_WR_FLUSH_ERR; in __c4iw_poll_cq_one()
861 wc->status = IB_WC_SUCCESS; in __c4iw_poll_cq_one()
864 wc->status = IB_WC_LOC_ACCESS_ERR; in __c4iw_poll_cq_one()
867 wc->status = IB_WC_LOC_PROT_ERR; in __c4iw_poll_cq_one()
871 wc->status = IB_WC_LOC_ACCESS_ERR; in __c4iw_poll_cq_one()
874 wc->status = IB_WC_GENERAL_ERR; in __c4iw_poll_cq_one()
877 wc->status = IB_WC_LOC_LEN_ERR; in __c4iw_poll_cq_one()
881 wc->status = IB_WC_MW_BIND_ERR; in __c4iw_poll_cq_one()
897 wc->status = IB_WC_FATAL_ERR; in __c4iw_poll_cq_one()
900 wc->status = IB_WC_WR_FLUSH_ERR; in __c4iw_poll_cq_one()
905 wc->status = IB_WC_FATAL_ERR; in __c4iw_poll_cq_one()
921 static int c4iw_poll_cq_one(struct c4iw_cq *chp, struct ib_wc *wc) in c4iw_poll_cq_one() argument
939 ret = __c4iw_poll_cq_one(chp, qhp, wc, srq); in c4iw_poll_cq_one()
944 ret = __c4iw_poll_cq_one(chp, NULL, wc, NULL); in c4iw_poll_cq_one()
949 int c4iw_poll_cq(struct ib_cq *ibcq, int num_entries, struct ib_wc *wc) in c4iw_poll_cq() argument
961 err = c4iw_poll_cq_one(chp, wc + npolled); in c4iw_poll_cq()