Lines Matching refs:agent
50 struct ib_mad_agent *agent[2]; member
62 if (entry->agent[1]->device == device && in __ib_get_agent_port()
63 entry->agent[1]->port_num == port_num) in __ib_get_agent_port()
86 struct ib_mad_agent *agent; in agent_send_response() local
101 agent = port_priv->agent[qpn]; in agent_send_response()
102 ah = ib_create_ah_from_wc(agent->qp->pd, wc, grh, port_num); in agent_send_response()
112 send_buf = ib_create_send_mad(agent, wc->src_qp, wc->pkey_index, 0, in agent_send_response()
165 port_priv->agent[0] = ib_register_mad_agent(device, port_num, in ib_agent_port_open()
169 if (IS_ERR(port_priv->agent[0])) { in ib_agent_port_open()
170 ret = PTR_ERR(port_priv->agent[0]); in ib_agent_port_open()
176 port_priv->agent[1] = ib_register_mad_agent(device, port_num, in ib_agent_port_open()
180 if (IS_ERR(port_priv->agent[1])) { in ib_agent_port_open()
181 ret = PTR_ERR(port_priv->agent[1]); in ib_agent_port_open()
192 if (port_priv->agent[0]) in ib_agent_port_open()
193 ib_unregister_mad_agent(port_priv->agent[0]); in ib_agent_port_open()
215 ib_unregister_mad_agent(port_priv->agent[1]); in ib_agent_port_close()
216 if (port_priv->agent[0]) in ib_agent_port_close()
217 ib_unregister_mad_agent(port_priv->agent[0]); in ib_agent_port_close()