Lines Matching defs:mad_recv_wc
208 struct ib_mad_recv_wc *mad_recv_wc)
213 if (mad_recv_wc->wc->status != IB_WC_SUCCESS)
220 packet->length = mad_recv_wc->mad_len;
221 packet->recv_wc = mad_recv_wc;
224 packet->mad.hdr.length = hdr_size(file) + mad_recv_wc->mad_len;
225 packet->mad.hdr.qpn = cpu_to_be32(mad_recv_wc->wc->src_qp);
226 packet->mad.hdr.lid = cpu_to_be16(mad_recv_wc->wc->slid);
227 packet->mad.hdr.sl = mad_recv_wc->wc->sl;
228 packet->mad.hdr.path_bits = mad_recv_wc->wc->dlid_path_bits;
229 packet->mad.hdr.pkey_index = mad_recv_wc->wc->pkey_index;
230 packet->mad.hdr.grh_present = !!(mad_recv_wc->wc->wc_flags & IB_WC_GRH);
235 mad_recv_wc->wc, mad_recv_wc->recv_buf.grh,
252 ib_free_recv_mad(mad_recv_wc);