Lines Matching defs:agent
167 struct ib_mad_agent *agent = dev->send_agent[port_num - 1][qpn];
171 if (agent) {
172 send_buf = ib_create_send_mad(agent, qpn, 0, 0, IB_MGMT_MAD_HDR,
283 static void send_handler(struct ib_mad_agent *agent,
291 struct ib_mad_agent *agent;
299 agent = ib_register_mad_agent(&dev->ib_dev, p + 1,
303 if (IS_ERR(agent)) {
304 ret = PTR_ERR(agent);
307 dev->send_agent[p][q] = agent;
333 struct ib_mad_agent *agent;
338 agent = dev->send_agent[p][q];
340 ib_unregister_mad_agent(agent);