Lines Matching refs:mad_agent
106 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()
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()
948 port->mad_agent = ib_register_mad_agent(cport->ibdev, i, in vema_register()
953 if (IS_ERR(port->mad_agent)) { in vema_register()
954 ret = PTR_ERR(port->mad_agent); in vema_register()
955 port->mad_agent = NULL; in vema_register()