Lines Matching refs:wc
62 struct ib_wc wc; in qib_ud_loopback() local
125 memset(&wc, 0, sizeof(wc)); in qib_ud_loopback()
126 wc.byte_len = length + sizeof(struct ib_grh); in qib_ud_loopback()
129 wc.wc_flags = IB_WC_WITH_IMM; in qib_ud_loopback()
130 wc.ex.imm_data = swqe->wr.ex.imm_data; in qib_ud_loopback()
155 if (unlikely(wc.byte_len > qp->r_len)) { in qib_ud_loopback()
168 wc.wc_flags |= IB_WC_GRH; in qib_ud_loopback()
201 wc.wr_id = qp->r_wr_id; in qib_ud_loopback()
202 wc.status = IB_WC_SUCCESS; in qib_ud_loopback()
203 wc.opcode = IB_WC_RECV; in qib_ud_loopback()
204 wc.qp = &qp->ibqp; in qib_ud_loopback()
205 wc.src_qp = sqp->ibqp.qp_num; in qib_ud_loopback()
206 wc.pkey_index = qp->ibqp.qp_type == IB_QPT_GSI ? in qib_ud_loopback()
208 wc.slid = ppd->lid | (rdma_ah_get_path_bits(ah_attr) & in qib_ud_loopback()
210 wc.sl = rdma_ah_get_sl(ah_attr); in qib_ud_loopback()
211 wc.dlid_path_bits = rdma_ah_get_dlid(ah_attr) & ((1 << ppd->lmc) - 1); in qib_ud_loopback()
212 wc.port_num = qp->port_num; in qib_ud_loopback()
214 rvt_recv_cq(qp, &wc, swqe->wr.send_flags & IB_SEND_SOLICITED); in qib_ud_loopback()
434 struct ib_wc wc; in qib_ud_rcv() local
511 wc.ex.imm_data = ohdr->u.ud.imm_data; in qib_ud_rcv()
512 wc.wc_flags = IB_WC_WITH_IMM; in qib_ud_rcv()
514 wc.ex.imm_data = 0; in qib_ud_rcv()
515 wc.wc_flags = 0; in qib_ud_rcv()
523 wc.byte_len = tlen + sizeof(struct ib_grh); in qib_ud_rcv()
545 if (unlikely(wc.byte_len > qp->r_len)) { in qib_ud_rcv()
552 wc.wc_flags |= IB_WC_GRH; in qib_ud_rcv()
555 rvt_copy_sge(qp, &qp->r_sge, data, wc.byte_len - sizeof(struct ib_grh), in qib_ud_rcv()
560 wc.wr_id = qp->r_wr_id; in qib_ud_rcv()
561 wc.status = IB_WC_SUCCESS; in qib_ud_rcv()
562 wc.opcode = IB_WC_RECV; in qib_ud_rcv()
563 wc.vendor_err = 0; in qib_ud_rcv()
564 wc.qp = &qp->ibqp; in qib_ud_rcv()
565 wc.src_qp = src_qp; in qib_ud_rcv()
566 wc.pkey_index = qp->ibqp.qp_type == IB_QPT_GSI ? in qib_ud_rcv()
568 wc.slid = be16_to_cpu(hdr->lrh[3]); in qib_ud_rcv()
569 wc.sl = (be16_to_cpu(hdr->lrh[0]) >> 4) & 0xF; in qib_ud_rcv()
574 wc.dlid_path_bits = dlid >= be16_to_cpu(IB_MULTICAST_LID_BASE) ? 0 : in qib_ud_rcv()
576 wc.port_num = qp->port_num; in qib_ud_rcv()
578 rvt_recv_cq(qp, &wc, ib_bth_is_solicited(ohdr)); in qib_ud_rcv()