Lines Matching defs:wc
62 struct ib_wc wc;
125 memset(&wc, 0, sizeof(wc));
126 wc.byte_len = length + sizeof(struct ib_grh);
129 wc.wc_flags = IB_WC_WITH_IMM;
130 wc.ex.imm_data = swqe->wr.ex.imm_data;
155 if (unlikely(wc.byte_len > qp->r_len)) {
168 wc.wc_flags |= IB_WC_GRH;
201 wc.wr_id = qp->r_wr_id;
202 wc.status = IB_WC_SUCCESS;
203 wc.opcode = IB_WC_RECV;
204 wc.qp = &qp->ibqp;
205 wc.src_qp = sqp->ibqp.qp_num;
206 wc.pkey_index = qp->ibqp.qp_type == IB_QPT_GSI ?
208 wc.slid = ppd->lid | (rdma_ah_get_path_bits(ah_attr) &
210 wc.sl = rdma_ah_get_sl(ah_attr);
211 wc.dlid_path_bits = rdma_ah_get_dlid(ah_attr) & ((1 << ppd->lmc) - 1);
212 wc.port_num = qp->port_num;
214 rvt_recv_cq(qp, &wc, swqe->wr.send_flags & IB_SEND_SOLICITED);
433 struct ib_wc wc;
510 wc.ex.imm_data = ohdr->u.ud.imm_data;
511 wc.wc_flags = IB_WC_WITH_IMM;
513 wc.ex.imm_data = 0;
514 wc.wc_flags = 0;
522 wc.byte_len = tlen + sizeof(struct ib_grh);
544 if (unlikely(wc.byte_len > qp->r_len)) {
551 wc.wc_flags |= IB_WC_GRH;
554 rvt_copy_sge(qp, &qp->r_sge, data, wc.byte_len - sizeof(struct ib_grh),
559 wc.wr_id = qp->r_wr_id;
560 wc.status = IB_WC_SUCCESS;
561 wc.opcode = IB_WC_RECV;
562 wc.vendor_err = 0;
563 wc.qp = &qp->ibqp;
564 wc.src_qp = src_qp;
565 wc.pkey_index = qp->ibqp.qp_type == IB_QPT_GSI ?
567 wc.slid = be16_to_cpu(hdr->lrh[3]);
568 wc.sl = (be16_to_cpu(hdr->lrh[0]) >> 4) & 0xF;
573 wc.dlid_path_bits = dlid >= be16_to_cpu(IB_MULTICAST_LID_BASE) ? 0 :
575 wc.port_num = qp->port_num;
577 rvt_recv_cq(qp, &wc, ib_bth_is_solicited(ohdr));