Lines Matching refs:agent
170 struct ib_mad_agent *agent = dev->send_agent[port_num - 1][qpn]; in forward_trap() local
174 if (agent) { in forward_trap()
175 send_buf = ib_create_send_mad(agent, qpn, 0, 0, IB_MGMT_MAD_HDR, in forward_trap()
277 static void send_handler(struct ib_mad_agent *agent, in send_handler() argument
285 struct ib_mad_agent *agent; in mthca_create_agents() local
293 agent = ib_register_mad_agent(&dev->ib_dev, p + 1, in mthca_create_agents()
297 if (IS_ERR(agent)) { in mthca_create_agents()
298 ret = PTR_ERR(agent); in mthca_create_agents()
301 dev->send_agent[p][q] = agent; in mthca_create_agents()
327 struct ib_mad_agent *agent; in mthca_free_agents() local
332 agent = dev->send_agent[p][q]; in mthca_free_agents()
334 ib_unregister_mad_agent(agent); in mthca_free_agents()