Lines Matching defs:agent
62 struct ib_mad_agent *agent;
366 if (ib_query_port(port->agent->device, port->port_num, &port_attr)) {
381 if (ib_find_pkey(port->agent->device, port->port_num,
390 new_ah->ah = ib_create_ah(port->agent->qp->pd, &ah_attr);
456 struct ib_mad_agent *agent;
464 agent = query->port->agent;
468 ib_cancel_mad(agent, mad_buf);
536 query->mad_buf = ib_create_send_mad(query->port->agent, 1,
556 static void init_mad(struct ib_sa_mad *mad, struct ib_mad_agent *agent)
568 cpu_to_be64(((u64) agent->hi_tid) << 32 | tid++);
674 struct ib_mad_agent *agent;
682 agent = port->agent;
699 init_mad(mad, agent);
791 struct ib_mad_agent *agent;
799 agent = port->agent;
821 init_mad(mad, agent);
888 struct ib_mad_agent *agent;
896 agent = port->agent;
913 init_mad(mad, agent);
942 static void send_handler(struct ib_mad_agent *agent,
1024 sa_dev->port[i].agent =
1028 if (IS_ERR(sa_dev->port[i].agent))
1054 ib_unregister_mad_agent(sa_dev->port[i].agent);
1074 ib_unregister_mad_agent(sa_dev->port[i].agent);