• Home
  • Raw
  • Download

Lines Matching refs:wc

3004 static void bnxt_re_process_req_wc(struct ib_wc *wc, struct bnxt_qplib_cqe *cqe)  in bnxt_re_process_req_wc()  argument
3008 wc->opcode = IB_WC_SEND; in bnxt_re_process_req_wc()
3011 wc->opcode = IB_WC_SEND; in bnxt_re_process_req_wc()
3012 wc->wc_flags |= IB_WC_WITH_IMM; in bnxt_re_process_req_wc()
3015 wc->opcode = IB_WC_SEND; in bnxt_re_process_req_wc()
3016 wc->wc_flags |= IB_WC_WITH_INVALIDATE; in bnxt_re_process_req_wc()
3019 wc->opcode = IB_WC_RDMA_WRITE; in bnxt_re_process_req_wc()
3022 wc->opcode = IB_WC_RDMA_WRITE; in bnxt_re_process_req_wc()
3023 wc->wc_flags |= IB_WC_WITH_IMM; in bnxt_re_process_req_wc()
3026 wc->opcode = IB_WC_RDMA_READ; in bnxt_re_process_req_wc()
3029 wc->opcode = IB_WC_COMP_SWAP; in bnxt_re_process_req_wc()
3032 wc->opcode = IB_WC_FETCH_ADD; in bnxt_re_process_req_wc()
3035 wc->opcode = IB_WC_LOCAL_INV; in bnxt_re_process_req_wc()
3038 wc->opcode = IB_WC_REG_MR; in bnxt_re_process_req_wc()
3041 wc->opcode = IB_WC_SEND; in bnxt_re_process_req_wc()
3045 wc->status = __req_to_ib_wc_status(cqe->status); in bnxt_re_process_req_wc()
3253 static void bnxt_re_process_res_rawqp1_wc(struct ib_wc *wc, in bnxt_re_process_res_rawqp1_wc() argument
3256 wc->opcode = IB_WC_RECV; in bnxt_re_process_res_rawqp1_wc()
3257 wc->status = __rawqp1_to_ib_wc_status(cqe->status); in bnxt_re_process_res_rawqp1_wc()
3258 wc->wc_flags |= IB_WC_GRH; in bnxt_re_process_res_rawqp1_wc()
3300 static void bnxt_re_process_res_rc_wc(struct ib_wc *wc, in bnxt_re_process_res_rc_wc() argument
3303 wc->opcode = IB_WC_RECV; in bnxt_re_process_res_rc_wc()
3304 wc->status = __rc_to_ib_wc_status(cqe->status); in bnxt_re_process_res_rc_wc()
3307 wc->wc_flags |= IB_WC_WITH_IMM; in bnxt_re_process_res_rc_wc()
3309 wc->wc_flags |= IB_WC_WITH_INVALIDATE; in bnxt_re_process_res_rc_wc()
3312 wc->opcode = IB_WC_RECV_RDMA_WITH_IMM; in bnxt_re_process_res_rc_wc()
3316 struct ib_wc *wc, in bnxt_re_process_res_shadow_qp_wc() argument
3334 wc->wr_id = sqp_entry->wrid; in bnxt_re_process_res_shadow_qp_wc()
3335 wc->byte_len = orig_cqe->length; in bnxt_re_process_res_shadow_qp_wc()
3336 wc->qp = &gsi_qp->ib_qp; in bnxt_re_process_res_shadow_qp_wc()
3338 wc->ex.imm_data = orig_cqe->immdata; in bnxt_re_process_res_shadow_qp_wc()
3339 wc->src_qp = orig_cqe->src_qp; in bnxt_re_process_res_shadow_qp_wc()
3340 memcpy(wc->smac, orig_cqe->smac, ETH_ALEN); in bnxt_re_process_res_shadow_qp_wc()
3343 wc->vlan_id = vlan_id; in bnxt_re_process_res_shadow_qp_wc()
3344 wc->sl = sl; in bnxt_re_process_res_shadow_qp_wc()
3345 wc->wc_flags |= IB_WC_WITH_VLAN; in bnxt_re_process_res_shadow_qp_wc()
3348 wc->port_num = 1; in bnxt_re_process_res_shadow_qp_wc()
3349 wc->vendor_err = orig_cqe->status; in bnxt_re_process_res_shadow_qp_wc()
3351 wc->opcode = IB_WC_RECV; in bnxt_re_process_res_shadow_qp_wc()
3352 wc->status = __rawqp1_to_ib_wc_status(orig_cqe->status); in bnxt_re_process_res_shadow_qp_wc()
3353 wc->wc_flags |= IB_WC_GRH; in bnxt_re_process_res_shadow_qp_wc()
3358 wc->network_hdr_type = bnxt_re_to_ib_nw_type(nw_type); in bnxt_re_process_res_shadow_qp_wc()
3359 wc->wc_flags |= IB_WC_WITH_NETWORK_HDR_TYPE; in bnxt_re_process_res_shadow_qp_wc()
3364 struct ib_wc *wc, in bnxt_re_process_res_ud_wc() argument
3372 wc->opcode = IB_WC_RECV; in bnxt_re_process_res_ud_wc()
3373 wc->status = __rc_to_ib_wc_status(cqe->status); in bnxt_re_process_res_ud_wc()
3376 wc->wc_flags |= IB_WC_WITH_IMM; in bnxt_re_process_res_ud_wc()
3379 wc->wc_flags |= IB_WC_GRH; in bnxt_re_process_res_ud_wc()
3380 memcpy(wc->smac, cqe->smac, ETH_ALEN); in bnxt_re_process_res_ud_wc()
3381 wc->wc_flags |= IB_WC_WITH_SMAC; in bnxt_re_process_res_ud_wc()
3387 wc->vlan_id = vlan_id; in bnxt_re_process_res_ud_wc()
3388 wc->wc_flags |= IB_WC_WITH_VLAN; in bnxt_re_process_res_ud_wc()
3392 wc->network_hdr_type = bnxt_re_to_ib_nw_type(nw_type); in bnxt_re_process_res_ud_wc()
3393 wc->wc_flags |= IB_WC_WITH_NETWORK_HDR_TYPE; in bnxt_re_process_res_ud_wc()
3420 int bnxt_re_poll_cq(struct ib_cq *ib_cq, int num_entries, struct ib_wc *wc) in bnxt_re_poll_cq() argument
3465 memset(wc, 0, sizeof(*wc)); in bnxt_re_poll_cq()
3467 wc->wr_id = cqe->wr_id; in bnxt_re_poll_cq()
3468 wc->byte_len = cqe->length; in bnxt_re_poll_cq()
3473 wc->qp = &qp->ib_qp; in bnxt_re_poll_cq()
3474 wc->ex.imm_data = cqe->immdata; in bnxt_re_poll_cq()
3475 wc->src_qp = cqe->src_qp; in bnxt_re_poll_cq()
3476 memcpy(wc->smac, cqe->smac, ETH_ALEN); in bnxt_re_poll_cq()
3477 wc->port_num = 1; in bnxt_re_poll_cq()
3478 wc->vendor_err = cqe->status; in bnxt_re_poll_cq()
3488 memset(wc, 0, sizeof(*wc)); in bnxt_re_poll_cq()
3491 bnxt_re_process_req_wc(wc, cqe); in bnxt_re_poll_cq()
3500 memset(wc, 0, sizeof(*wc)); in bnxt_re_poll_cq()
3511 wc->wr_id = sqp_entry->wrid; in bnxt_re_poll_cq()
3512 bnxt_re_process_res_rawqp1_wc(wc, cqe); in bnxt_re_poll_cq()
3515 bnxt_re_process_res_rc_wc(wc, cqe); in bnxt_re_poll_cq()
3528 (qp, wc, cqe); in bnxt_re_poll_cq()
3532 bnxt_re_process_res_ud_wc(qp, wc, cqe); in bnxt_re_poll_cq()
3540 wc++; in bnxt_re_poll_cq()