Lines Matching refs:agent
55 struct ib_mad_agent *agent; in qib_send_trap() local
61 agent = ibp->send_agent; in qib_send_trap()
62 if (!agent) in qib_send_trap()
73 send_buf = ib_create_send_mad(agent, 0, 0, 0, IB_MGMT_MAD_HDR, in qib_send_trap()
2084 static void send_handler(struct ib_mad_agent *agent, in send_handler() argument
2117 struct ib_mad_agent *agent; in qib_create_agents() local
2124 agent = ib_register_mad_agent(&dev->ibdev, p + 1, IB_QPT_SMI, in qib_create_agents()
2127 if (IS_ERR(agent)) { in qib_create_agents()
2128 ret = PTR_ERR(agent); in qib_create_agents()
2141 ibp->send_agent = agent; in qib_create_agents()
2150 agent = ibp->send_agent; in qib_create_agents()
2152 ib_unregister_mad_agent(agent); in qib_create_agents()
2162 struct ib_mad_agent *agent; in qib_free_agents() local
2169 agent = ibp->send_agent; in qib_free_agents()
2171 ib_unregister_mad_agent(agent); in qib_free_agents()