Lines Matching defs:agent
119 struct ib_mad_agent *agent[IB_UMAD_MAX_AGENTS];
153 return file->agents_dead ? NULL : file->agent[id];
157 struct ib_mad_agent *agent,
167 if (agent == __get_agent(file, packet->mad.hdr.id)) {
189 static void send_handler(struct ib_mad_agent *agent,
192 struct ib_umad_file *file = agent->context;
202 if (!queue_packet(file, agent, packet))
208 static void recv_handler(struct ib_mad_agent *agent,
211 struct ib_umad_file *file = agent->context;
235 ib_init_ah_from_wc(agent->device, agent->port_num,
246 if (queue_packet(file, agent, packet))
438 struct ib_mad_agent *agent;
466 agent = __get_agent(file, packet->mad.hdr.id);
467 if (!agent) {
486 ah = ib_create_ah(agent->qp->pd, &ah_attr);
504 packet->msg = ib_create_send_mad(agent,
542 *tid = cpu_to_be64(((u64) agent->hi_tid) << 32 |
596 struct ib_mad_agent *agent;
632 agent = ib_register_mad_agent(file->port->ib_dev, file->port->port_num,
637 if (IS_ERR(agent)) {
638 ret = PTR_ERR(agent);
645 ib_unregister_mad_agent(agent);
649 file->agent[agent_id] = agent;
659 struct ib_mad_agent *agent = NULL;
673 agent = file->agent[id];
674 file->agent[id] = NULL;
679 if (agent)
680 ib_unregister_mad_agent(agent);
768 if (file->agent[i])
769 ib_unregister_mad_agent(file->agent[i]);
1023 if (file->agent[id])
1024 ib_unregister_mad_agent(file->agent[id]);