Lines Matching defs:agent
42 #include "agent.h"
50 struct ib_mad_agent *agent[2];
62 if (entry->agent[0]->device == device &&
63 entry->agent[0]->port_num == port_num)
86 struct ib_mad_agent *agent;
97 printk(KERN_ERR SPFX "Unable to find port agent\n");
101 agent = port_priv->agent[qpn];
102 ah = ib_create_ah_from_wc(agent->qp->pd, wc, grh, port_num);
108 send_buf = ib_create_send_mad(agent, wc->src_qp, wc->pkey_index, 0,
158 /* Obtain send only MAD agent for SMI QP */
159 port_priv->agent[0] = ib_register_mad_agent(device, port_num,
163 if (IS_ERR(port_priv->agent[0])) {
164 ret = PTR_ERR(port_priv->agent[0]);
168 /* Obtain send only MAD agent for GSI QP */
169 port_priv->agent[1] = ib_register_mad_agent(device, port_num,
173 if (IS_ERR(port_priv->agent[1])) {
174 ret = PTR_ERR(port_priv->agent[1]);
185 ib_unregister_mad_agent(port_priv->agent[0]);
207 ib_unregister_mad_agent(port_priv->agent[1]);
208 ib_unregister_mad_agent(port_priv->agent[0]);