Lines Matching defs:agent
208 struct ib_mad_agent *agent = dev->send_agent[port_num - 1][qpn];
211 if (agent) {
212 send_buf = ib_create_send_mad(agent, qpn, 0, 0, IB_MGMT_MAD_HDR,
303 static void send_handler(struct ib_mad_agent *agent,
311 struct ib_mad_agent *agent;
317 agent = ib_register_mad_agent(&dev->ib_dev, p + 1,
321 if (IS_ERR(agent)) {
322 ret = PTR_ERR(agent);
325 dev->send_agent[p][q] = agent;
341 struct ib_mad_agent *agent;
346 agent = dev->send_agent[p][q];
348 ib_unregister_mad_agent(agent);