Searched refs:mad_wc (Results 1 – 3 of 3) sorted by relevance
/Linux-v5.4/drivers/infiniband/ulp/opa_vnic/ |
D | opa_vnic_vema.c | 607 struct ib_mad_send_wc *mad_wc) in vema_send() argument 609 rdma_destroy_ah(mad_wc->send_buf->ah, RDMA_DESTROY_AH_SLEEPABLE); in vema_send() 610 ib_free_send_mad(mad_wc->send_buf); in vema_send() 625 struct ib_mad_recv_wc *mad_wc) in vema_recv() argument 632 if (!mad_wc || !mad_wc->recv_buf.mad) in vema_recv() 636 ah = ib_create_ah_from_wc(mad_agent->qp->pd, mad_wc->wc, in vema_recv() 637 mad_wc->recv_buf.grh, mad_agent->port_num); in vema_recv() 641 rsp = ib_create_send_mad(mad_agent, mad_wc->wc->src_qp, in vema_recv() 642 mad_wc->wc->pkey_index, 0, in vema_recv() 650 memcpy(vema_mad, mad_wc->recv_buf.mad, IB_MGMT_VENDOR_HDR); in vema_recv() [all …]
|
/Linux-v5.4/drivers/infiniband/ulp/srpt/ |
D | ib_srpt.c | 459 struct ib_mad_send_wc *mad_wc) in srpt_mad_send_handler() argument 461 rdma_destroy_ah(mad_wc->send_buf->ah, RDMA_DESTROY_AH_SLEEPABLE); in srpt_mad_send_handler() 462 ib_free_send_mad(mad_wc->send_buf); in srpt_mad_send_handler() 473 struct ib_mad_recv_wc *mad_wc) in srpt_mad_recv_handler() argument 480 if (!mad_wc || !mad_wc->recv_buf.mad) in srpt_mad_recv_handler() 483 ah = ib_create_ah_from_wc(mad_agent->qp->pd, mad_wc->wc, in srpt_mad_recv_handler() 484 mad_wc->recv_buf.grh, mad_agent->port_num); in srpt_mad_recv_handler() 490 rsp = ib_create_send_mad(mad_agent, mad_wc->wc->src_qp, in srpt_mad_recv_handler() 491 mad_wc->wc->pkey_index, 0, in srpt_mad_recv_handler() 501 memcpy(dm_mad, mad_wc->recv_buf.mad, sizeof(*dm_mad)); in srpt_mad_recv_handler() [all …]
|
/Linux-v5.4/drivers/infiniband/core/ |
D | mad.c | 821 struct ib_wc mad_wc; in handle_outgoing_dr_smp() local 906 send_wr->port_num, &mad_wc); in handle_outgoing_dr_smp() 909 mad_wc.byte_len = mad_send_wr->send_buf.hdr_len in handle_outgoing_dr_smp() 915 ret = device->ops.process_mad(device, 0, port_num, &mad_wc, NULL, in handle_outgoing_dr_smp()
|