Home
last modified time | relevance | path

Searched refs:mad_wc (Results 1 – 3 of 3) sorted by relevance

/linux-6.6.21/drivers/infiniband/ulp/opa_vnic/
Dopa_vnic_vema.c605 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()
[all …]
/linux-6.6.21/drivers/infiniband/ulp/srpt/
Dib_srpt.c463 struct ib_mad_send_wc *mad_wc) in srpt_mad_send_handler() argument
465 rdma_destroy_ah(mad_wc->send_buf->ah, RDMA_DESTROY_AH_SLEEPABLE); in srpt_mad_send_handler()
466 ib_free_send_mad(mad_wc->send_buf); in srpt_mad_send_handler()
477 struct ib_mad_recv_wc *mad_wc) in srpt_mad_recv_handler() argument
484 if (!mad_wc || !mad_wc->recv_buf.mad) in srpt_mad_recv_handler()
487 ah = ib_create_ah_from_wc(mad_agent->qp->pd, mad_wc->wc, in srpt_mad_recv_handler()
488 mad_wc->recv_buf.grh, mad_agent->port_num); in srpt_mad_recv_handler()
494 rsp = ib_create_send_mad(mad_agent, mad_wc->wc->src_qp, in srpt_mad_recv_handler()
495 mad_wc->wc->pkey_index, 0, in srpt_mad_recv_handler()
505 memcpy(dm_mad, mad_wc->recv_buf.mad, sizeof(*dm_mad)); in srpt_mad_recv_handler()
[all …]
/linux-6.6.21/drivers/infiniband/core/
Dmad.c606 struct ib_wc mad_wc; in handle_outgoing_dr_smp() local
691 send_wr->port_num, &mad_wc); in handle_outgoing_dr_smp()
694 mad_wc.byte_len = mad_send_wr->send_buf.hdr_len in handle_outgoing_dr_smp()
700 ret = device->ops.process_mad(device, 0, port_num, &mad_wc, NULL, in handle_outgoing_dr_smp()