Lines Matching refs:mad_agent
106 struct ib_mad_agent *mad_agent; member
605 static void vema_send(struct ib_mad_agent *mad_agent, in vema_send() argument
622 static void vema_recv(struct ib_mad_agent *mad_agent, in vema_recv() argument
634 port = mad_agent->context; in vema_recv()
635 ah = ib_create_ah_from_wc(mad_agent->qp->pd, mad_wc->wc, in vema_recv()
636 mad_wc->recv_buf.grh, mad_agent->port_num); in vema_recv()
640 rsp = ib_create_send_mad(mad_agent, mad_wc->wc->src_qp, in vema_recv()
745 if (!port || !port->mad_agent) in opa_vnic_vema_send_trap()
779 ah = rdma_create_ah(port->mad_agent->qp->pd, &ah_attr); in opa_vnic_vema_send_trap()
797 send_buf = ib_create_send_mad(port->mad_agent, 1, pkey_idx, 0, in opa_vnic_vema_send_trap()
911 if (!port->mad_agent) in vema_unregister()
919 ib_unregister_mad_agent(port->mad_agent); in vema_unregister()
920 port->mad_agent = NULL; in vema_unregister()
961 port->mad_agent = ib_register_mad_agent(cport->ibdev, i, in vema_register()
966 if (IS_ERR(port->mad_agent)) { in vema_register()
967 ret = PTR_ERR(port->mad_agent); in vema_register()
968 port->mad_agent = NULL; in vema_register()