Lines Matching refs:agent

286 	mad_agent_priv->agent.mr = ib_get_dma_mr(port_priv->qp_info[qpn].qp->pd,  in ib_register_mad_agent()
288 if (IS_ERR(mad_agent_priv->agent.mr)) { in ib_register_mad_agent()
304 mad_agent_priv->agent.rmpp_version = rmpp_version; in ib_register_mad_agent()
305 mad_agent_priv->agent.device = device; in ib_register_mad_agent()
306 mad_agent_priv->agent.recv_handler = recv_handler; in ib_register_mad_agent()
307 mad_agent_priv->agent.send_handler = send_handler; in ib_register_mad_agent()
308 mad_agent_priv->agent.context = context; in ib_register_mad_agent()
309 mad_agent_priv->agent.qp = port_priv->qp_info[qpn].qp; in ib_register_mad_agent()
310 mad_agent_priv->agent.port_num = port_num; in ib_register_mad_agent()
323 mad_agent_priv->agent.hi_tid = ++ib_mad_client_id; in ib_register_mad_agent()
370 return &mad_agent_priv->agent; in ib_register_mad_agent()
376 ib_dereg_mr(mad_agent_priv->agent.mr); in ib_register_mad_agent()
472 mad_snoop_priv->agent.device = device; in ib_register_mad_snoop()
473 mad_snoop_priv->agent.recv_handler = recv_handler; in ib_register_mad_snoop()
474 mad_snoop_priv->agent.snoop_handler = snoop_handler; in ib_register_mad_snoop()
475 mad_snoop_priv->agent.context = context; in ib_register_mad_snoop()
476 mad_snoop_priv->agent.qp = port_priv->qp_info[qpn].qp; in ib_register_mad_snoop()
477 mad_snoop_priv->agent.port_num = port_num; in ib_register_mad_snoop()
489 return &mad_snoop_priv->agent; in ib_register_mad_snoop()
537 ib_dereg_mr(mad_agent_priv->agent.mr); in unregister_mad_agent()
570 agent); in ib_unregister_mad_agent()
575 agent); in ib_unregister_mad_agent()
613 mad_snoop_priv->agent.snoop_handler(&mad_snoop_priv->agent, in snoop_send()
638 mad_snoop_priv->agent.recv_handler(&mad_snoop_priv->agent, in snoop_recv()
679 struct ib_device *device = mad_agent_priv->agent.device; in handle_outgoing_dr_smp()
688 port_num = mad_agent_priv->agent.port_num; in handle_outgoing_dr_smp()
726 build_smp_wc(mad_agent_priv->agent.qp, in handle_outgoing_dr_smp()
739 mad_agent_priv->agent.recv_handler) { in handle_outgoing_dr_smp()
755 port_priv = ib_get_mad_port(mad_agent_priv->agent.device, in handle_outgoing_dr_smp()
756 mad_agent_priv->agent.port_num); in handle_outgoing_dr_smp()
847 agent.rmpp_version; in alloc_send_rmpp_list()
869 agent); in ib_create_send_mad()
986 struct ib_mad_agent_private, agent); in ib_free_send_mad()
1080 if (mad_agent_priv->agent.rmpp_version) { in ib_post_send_mad()
1121 if (mad_agent_priv->agent.rmpp_version) { in ib_post_send_mad()
1196 if ((*method)->agent[i]) { in method_in_use()
1225 if (method->agent[i]) in check_method_table()
1278 struct ib_mad_agent_private *agent) in remove_methods_mad_agent() argument
1284 if (method->agent[i] == agent) { in remove_methods_mad_agent()
1285 method->agent[i] = NULL; in remove_methods_mad_agent()
1330 (*method)->agent[i] = agent_priv; in add_nonoui_reg_req()
1425 (*method)->agent[i] = agent_priv; in add_oui_reg_req()
1568 if (entry->agent.hi_tid == hi_tid) { in find_mad_agent()
1595 mad_agent = method->agent[mad->mad_hdr.method & in find_mad_agent()
1613 mad_agent = method->agent[mad->mad_hdr.method & in find_mad_agent()
1620 if (mad_agent->agent.recv_handler) in find_mad_agent()
1625 &mad_agent->agent, port_priv->port_num); in find_mad_agent()
1667 return !mad_agent_priv->agent.rmpp_version || in is_data_mad()
1687 struct ib_device *device = mad_agent_priv->agent.device; in rcv_has_same_gid()
1688 u8 port_num = mad_agent_priv->agent.port_num; in rcv_has_same_gid()
1795 if (mad_agent_priv->agent.rmpp_version) { in ib_mad_complete_recv()
1819 mad_agent_priv->agent.recv_handler(&mad_agent_priv->agent, in ib_mad_complete_recv()
1828 mad_agent_priv->agent.recv_handler(&mad_agent_priv->agent, in ib_mad_complete_recv()
2047 if (mad_agent_priv->agent.rmpp_version) { in ib_mad_complete_send_wr()
2078 mad_agent_priv->agent.send_handler(&mad_agent_priv->agent, in ib_mad_complete_send_wr()
2280 mad_agent_priv->agent.send_handler(&mad_agent_priv->agent, in cancel_mads()
2316 agent); in ib_modify_mad()
2381 build_smp_wc(recv_mad_agent->agent.qp, in local_completions()
2384 0, recv_mad_agent->agent.port_num, &wc); in local_completions()
2399 recv_mad_agent->agent.recv_handler( in local_completions()
2400 &recv_mad_agent->agent, in local_completions()
2416 mad_agent_priv->agent.send_handler(&mad_agent_priv->agent, in local_completions()
2440 if (mad_send_wr->mad_agent_priv->agent.rmpp_version) { in retry_send()
2503 mad_agent_priv->agent.send_handler(&mad_agent_priv->agent, in timeout_sends()