Home
last modified time | relevance | path

Searched refs:mad_agent (Results 1 – 7 of 7) sorted by relevance

/linux/drivers/infiniband/ulp/opa_vnic/
H A Dopa_vnic_vema.c106 struct ib_mad_agent *mad_agent; member
604 static void vema_send(struct ib_mad_agent *mad_agent, in vema_send() argument
621 static void vema_recv(struct ib_mad_agent *mad_agent, in vema_recv() argument
633 port = mad_agent->context; 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()
744 if (!port || !port->mad_agent) in opa_vnic_vema_send_trap()
778 ah = rdma_create_ah(port->mad_agent->qp->pd, &ah_attr, 0); in opa_vnic_vema_send_trap()
796 send_buf = ib_create_send_mad(port->mad_agent, 1, pkey_idx, 0, in opa_vnic_vema_send_trap()
[all …]
/linux/drivers/infiniband/core/
H A Dmad.c522 void ib_unregister_mad_agent(struct ib_mad_agent *mad_agent) in ib_unregister_mad_agent() argument
526 mad_agent_priv = container_of(mad_agent, in ib_unregister_mad_agent()
833 struct ib_mad_send_buf *ib_create_send_mad(struct ib_mad_agent *mad_agent, in ib_create_send_mad() argument
846 mad_agent_priv = container_of(mad_agent, struct ib_mad_agent_private, in ib_create_send_mad()
849 opa = rdma_cap_opa_mad(mad_agent->device, mad_agent->port_num); in ib_create_send_mad()
859 if (ib_mad_kernel_rmpp_agent(mad_agent)) { in ib_create_send_mad()
880 mad_send_wr->sg_list[0].lkey = mad_agent->qp->pd->local_dma_lkey; in ib_create_send_mad()
889 mad_send_wr->sg_list[1].lkey = mad_agent->qp->pd->local_dma_lkey; in ib_create_send_mad()
910 mad_send_wr->send_buf.mad_agent = mad_agent; in ib_create_send_mad()
982 mad_agent_priv = container_of(send_buf->mad_agent, in ib_free_send_mad()
[all …]
H A Dagent.c152 static void agent_send_handler(struct ib_mad_agent *mad_agent, in agent_send_handler() argument
H A Dsa_query.c946 send_handler(query->mad_buf->mad_agent, &mad_send_wc); in ib_nl_process_good_resolve_rsp()
2017 static void recv_handler(struct ib_mad_agent *mad_agent, in recv_handler() argument
/linux/include/rdma/
H A Dib_mad.h468 struct ib_mad_agent *mad_agent; member
534 typedef void (*ib_mad_send_handler)(struct ib_mad_agent *mad_agent,
548 typedef void (*ib_mad_recv_handler)(struct ib_mad_agent *mad_agent,
689 void ib_unregister_mad_agent(struct ib_mad_agent *mad_agent);
772 struct ib_mad_send_buf *ib_create_send_mad(struct ib_mad_agent *mad_agent,
/linux/drivers/infiniband/ulp/srpt/
H A Dib_srpt.c521 static void srpt_mad_send_handler(struct ib_mad_agent *mad_agent, in srpt_mad_send_handler() argument
534 static void srpt_mad_recv_handler(struct ib_mad_agent *mad_agent, in srpt_mad_recv_handler() argument
538 struct srpt_port *sport = (struct srpt_port *)mad_agent->context; in srpt_mad_recv_handler()
546 ah = ib_create_ah_from_wc(mad_agent->qp->pd, mad_wc->wc, in srpt_mad_recv_handler()
547 mad_wc->recv_buf.grh, mad_agent->port_num); in srpt_mad_recv_handler()
553 rsp = ib_create_send_mad(mad_agent, mad_wc->wc->src_qp, in srpt_mad_recv_handler()
617 struct ib_mad_agent *mad_agent; in srpt_refresh_port() local
655 if (!sport->mad_agent) { in srpt_refresh_port()
662 mad_agent = ib_register_mad_agent(sport->sdev->device, in srpt_refresh_port()
669 if (IS_ERR(mad_agent)) { in srpt_refresh_port()
[all …]
H A Dib_srpt.h417 struct ib_mad_agent *mad_agent; member