Lines Matching refs:mad_agent

160 	struct ib_mad_agent *mad_agent;  member
276 struct ib_mad_agent *mad_agent; in cm_alloc_msg() local
286 mad_agent = cm_id_priv->av.port->mad_agent; in cm_alloc_msg()
287 if (!mad_agent) { in cm_alloc_msg()
292 ah = rdma_create_ah(mad_agent->qp->pd, &cm_id_priv->av.ah_attr, 0); in cm_alloc_msg()
298 m = ib_create_send_mad(mad_agent, cm_id_priv->id.remote_cm_qpn, in cm_alloc_msg()
362 return ib_create_send_mad(port->mad_agent, 1, mad_recv_wc->wc->pkey_index, in cm_alloc_response_msg_no_ah()
374 ah = ib_create_ah_from_wc(port->mad_agent->qp->pd, mad_recv_wc->wc, in cm_create_response_msg_ah()
1293 if (cm_id_priv->av.port->mad_agent) in cm_form_tid()
1294 hi_tid = ((u64)cm_id_priv->av.port->mad_agent->hi_tid) << 32; in cm_form_tid()
3807 static void cm_send_handler(struct ib_mad_agent *mad_agent, in cm_send_handler() argument
3817 port = mad_agent->context; in cm_send_handler()
3997 static void cm_recv_handler(struct ib_mad_agent *mad_agent, in cm_recv_handler() argument
4001 struct cm_port *port = mad_agent->context; in cm_recv_handler()
4373 port->mad_agent = ib_register_mad_agent(ib_device, i, in cm_add_one()
4381 if (IS_ERR(port->mad_agent)) { in cm_add_one()
4382 ret = PTR_ERR(port->mad_agent); in cm_add_one()
4404 ib_unregister_mad_agent(port->mad_agent); in cm_add_one()
4416 ib_unregister_mad_agent(port->mad_agent); in cm_add_one()
4444 struct ib_mad_agent *mad_agent; in cm_remove_one() local
4450 mad_agent = port->mad_agent; in cm_remove_one()
4463 port->mad_agent = NULL; in cm_remove_one()
4465 ib_unregister_mad_agent(mad_agent); in cm_remove_one()