Lines Matching refs:mad_wc
457 struct ib_mad_send_wc *mad_wc) in srpt_mad_send_handler() argument
459 rdma_destroy_ah(mad_wc->send_buf->ah, RDMA_DESTROY_AH_SLEEPABLE); in srpt_mad_send_handler()
460 ib_free_send_mad(mad_wc->send_buf); in srpt_mad_send_handler()
471 struct ib_mad_recv_wc *mad_wc) in srpt_mad_recv_handler() argument
478 if (!mad_wc || !mad_wc->recv_buf.mad) in srpt_mad_recv_handler()
481 ah = ib_create_ah_from_wc(mad_agent->qp->pd, mad_wc->wc, in srpt_mad_recv_handler()
482 mad_wc->recv_buf.grh, mad_agent->port_num); in srpt_mad_recv_handler()
488 rsp = ib_create_send_mad(mad_agent, mad_wc->wc->src_qp, in srpt_mad_recv_handler()
489 mad_wc->wc->pkey_index, 0, in srpt_mad_recv_handler()
499 memcpy(dm_mad, mad_wc->recv_buf.mad, sizeof(*dm_mad)); in srpt_mad_recv_handler()
503 switch (mad_wc->recv_buf.mad->mad_hdr.method) { in srpt_mad_recv_handler()
505 srpt_mgmt_method_get(sport, mad_wc->recv_buf.mad, dm_mad); in srpt_mad_recv_handler()
518 ib_free_recv_mad(mad_wc); in srpt_mad_recv_handler()
528 ib_free_recv_mad(mad_wc); in srpt_mad_recv_handler()