Lines Matching defs:agent
55 struct ib_mad_agent *agent;
61 agent = ibp->send_agent;
62 if (!agent)
73 send_buf = ib_create_send_mad(agent, 0, 0, 0, IB_MGMT_MAD_HDR,
2076 static void send_handler(struct ib_mad_agent *agent,
2109 struct ib_mad_agent *agent;
2116 agent = ib_register_mad_agent(&dev->ibdev, p + 1, IB_QPT_SMI,
2119 if (IS_ERR(agent)) {
2120 ret = PTR_ERR(agent);
2133 ibp->send_agent = agent;
2142 agent = ibp->send_agent;
2144 ib_unregister_mad_agent(agent);
2154 struct ib_mad_agent *agent;
2161 agent = ibp->send_agent;
2163 ib_unregister_mad_agent(agent);