Lines Matching refs:mad_wc
605 struct ib_mad_send_wc *mad_wc) in vema_send() argument
607 rdma_destroy_ah(mad_wc->send_buf->ah, RDMA_DESTROY_AH_SLEEPABLE); in vema_send()
608 ib_free_send_mad(mad_wc->send_buf); in vema_send()
623 struct ib_mad_recv_wc *mad_wc) in vema_recv() argument
630 if (!mad_wc || !mad_wc->recv_buf.mad) in vema_recv()
634 ah = ib_create_ah_from_wc(mad_agent->qp->pd, mad_wc->wc, in vema_recv()
635 mad_wc->recv_buf.grh, mad_agent->port_num); in vema_recv()
639 rsp = ib_create_send_mad(mad_agent, mad_wc->wc->src_qp, in vema_recv()
640 mad_wc->wc->pkey_index, 0, in vema_recv()
648 memcpy(vema_mad, mad_wc->recv_buf.mad, IB_MGMT_VENDOR_HDR); in vema_recv()
655 switch (mad_wc->recv_buf.mad->mad_hdr.method) { in vema_recv()
657 vema_get(port, (struct opa_vnic_vema_mad *)mad_wc->recv_buf.mad, in vema_recv()
661 vema_set(port, (struct opa_vnic_vema_mad *)mad_wc->recv_buf.mad, in vema_recv()
683 ib_free_recv_mad(mad_wc); in vema_recv()