Lines Matching full:wc
41 struct ib_wc wc; in ud_loopback() local
107 memset(&wc, 0, sizeof(wc)); in ud_loopback()
108 wc.byte_len = length + sizeof(struct ib_grh); in ud_loopback()
111 wc.wc_flags = IB_WC_WITH_IMM; in ud_loopback()
112 wc.ex.imm_data = swqe->wr.ex.imm_data; in ud_loopback()
137 if (unlikely(wc.byte_len > qp->r_len)) { in ud_loopback()
174 wc.wc_flags |= IB_WC_GRH; in ud_loopback()
193 wc.wr_id = qp->r_wr_id; in ud_loopback()
194 wc.status = IB_WC_SUCCESS; in ud_loopback()
195 wc.opcode = IB_WC_RECV; in ud_loopback()
196 wc.qp = &qp->ibqp; in ud_loopback()
197 wc.src_qp = sqp->ibqp.qp_num; in ud_loopback()
201 wc.pkey_index = rvt_get_swqe_pkey_index(swqe); in ud_loopback()
203 wc.pkey_index = sqp->s_pkey_index; in ud_loopback()
205 wc.pkey_index = 0; in ud_loopback()
207 wc.slid = (ppd->lid | (rdma_ah_get_path_bits(ah_attr) & in ud_loopback()
210 if (wc.slid == 0 && sqp->ibqp.qp_type == IB_QPT_GSI) in ud_loopback()
211 wc.slid = be16_to_cpu(IB_LID_PERMISSIVE); in ud_loopback()
212 wc.sl = rdma_ah_get_sl(ah_attr); in ud_loopback()
213 wc.dlid_path_bits = rdma_ah_get_dlid(ah_attr) & ((1 << ppd->lmc) - 1); in ud_loopback()
214 wc.port_num = qp->port_num; in ud_loopback()
216 rvt_recv_cq(qp, &wc, swqe->wr.send_flags & IB_SEND_SOLICITED); in ud_loopback()
811 struct ib_wc wc; in hfi1_ud_rcv() local
922 wc.ex.imm_data = packet->ohdr->u.ud.imm_data; in hfi1_ud_rcv()
923 wc.wc_flags = IB_WC_WITH_IMM; in hfi1_ud_rcv()
925 wc.ex.imm_data = 0; in hfi1_ud_rcv()
926 wc.wc_flags = 0; in hfi1_ud_rcv()
935 wc.byte_len = tlen + sizeof(struct ib_grh); in hfi1_ud_rcv()
957 if (unlikely(wc.byte_len > qp->r_len)) { in hfi1_ud_rcv()
964 wc.wc_flags |= IB_WC_GRH; in hfi1_ud_rcv()
975 wc.wc_flags |= IB_WC_GRH; in hfi1_ud_rcv()
979 rvt_copy_sge(qp, &qp->r_sge, data, wc.byte_len - sizeof(struct ib_grh), in hfi1_ud_rcv()
984 wc.wr_id = qp->r_wr_id; in hfi1_ud_rcv()
985 wc.status = IB_WC_SUCCESS; in hfi1_ud_rcv()
986 wc.opcode = IB_WC_RECV; in hfi1_ud_rcv()
987 wc.vendor_err = 0; in hfi1_ud_rcv()
988 wc.qp = &qp->ibqp; in hfi1_ud_rcv()
989 wc.src_qp = src_qp; in hfi1_ud_rcv()
1002 wc.pkey_index = (unsigned)mgmt_pkey_idx; in hfi1_ud_rcv()
1004 wc.pkey_index = 0; in hfi1_ud_rcv()
1008 wc.slid = slid & U16_MAX; in hfi1_ud_rcv()
1009 wc.sl = sl_from_sc; in hfi1_ud_rcv()
1014 wc.dlid_path_bits = hfi1_check_mcast(dlid) ? 0 : in hfi1_ud_rcv()
1016 wc.port_num = qp->port_num; in hfi1_ud_rcv()
1018 rvt_recv_cq(qp, &wc, solicited); in hfi1_ud_rcv()