Home
last modified time | relevance | path

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

/openbmc/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
633 port = mad_agent->context; in vema_recv()
635 mad_wc->recv_buf.grh, mad_agent->port_num); in vema_recv()
744 if (!port || !port->mad_agent) in opa_vnic_vema_send_trap()
897 if (!port->mad_agent) in vema_unregister()
906 ib_unregister_mad_agent(port->mad_agent); in vema_unregister()
907 port->mad_agent = NULL; in vema_unregister()
953 if (IS_ERR(port->mad_agent)) { in vema_register()
954 ret = PTR_ERR(port->mad_agent); in vema_register()
[all …]
/openbmc/linux/drivers/infiniband/core/
H A Dmad.c849 opa = rdma_cap_opa_mad(mad_agent->device, mad_agent->port_num); in ib_create_send_mad()
910 mad_send_wr->send_buf.mad_agent = mad_agent; in ib_create_send_mad()
1008 mad_agent = mad_send_wr->send_buf.mad_agent; in ib_send_mad()
1546 if (mad_agent && !refcount_inc_not_zero(&mad_agent->refcount)) in find_mad_agent()
1547 mad_agent = NULL; in find_mad_agent()
1597 if (mad_agent) in find_mad_agent()
1603 if (mad_agent && !mad_agent->agent.recv_handler) { in find_mad_agent()
1607 deref_mad_agent(mad_agent); in find_mad_agent()
1608 mad_agent = NULL; in find_mad_agent()
1611 return mad_agent; in find_mad_agent()
[all …]
H A Dcm.c161 struct ib_mad_agent *mad_agent; member
278 struct ib_mad_agent *mad_agent; in cm_alloc_msg() local
288 mad_agent = cm_id_priv->av.port->mad_agent; in cm_alloc_msg()
289 if (!mad_agent) { in cm_alloc_msg()
1298 if (cm_id_priv->av.port->mad_agent) in cm_form_tid()
3835 port = mad_agent->context; in cm_send_handler()
4412 if (IS_ERR(port->mad_agent)) { in cm_add_one()
4413 ret = PTR_ERR(port->mad_agent); in cm_add_one()
4475 struct ib_mad_agent *mad_agent; in cm_remove_one() local
4481 mad_agent = port->mad_agent; in cm_remove_one()
[all …]
H A Dagent.c143 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
/openbmc/linux/include/rdma/
H A Dib_mad.h466 struct ib_mad_agent *mad_agent; member
532 typedef void (*ib_mad_send_handler)(struct ib_mad_agent *mad_agent,
546 typedef void (*ib_mad_recv_handler)(struct ib_mad_agent *mad_agent,
687 void ib_unregister_mad_agent(struct ib_mad_agent *mad_agent);
770 struct ib_mad_send_buf *ib_create_send_mad(struct ib_mad_agent *mad_agent,
/openbmc/linux/drivers/infiniband/ulp/srpt/
H A Dib_srpt.c547 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()
669 if (IS_ERR(mad_agent)) { in srpt_refresh_port()
672 PTR_ERR(mad_agent)); in srpt_refresh_port()
673 sport->mad_agent = NULL; in srpt_refresh_port()
681 sport->mad_agent = mad_agent; in srpt_refresh_port()
705 if (sport->mad_agent) { in srpt_unregister_mad_agent()
707 ib_unregister_mad_agent(sport->mad_agent); in srpt_unregister_mad_agent()
[all …]
H A Dib_srpt.h417 struct ib_mad_agent *mad_agent; member