Lines Matching refs:agent
352 mad_agent_priv->agent.rmpp_version = rmpp_version; in ib_register_mad_agent()
353 mad_agent_priv->agent.device = device; in ib_register_mad_agent()
354 mad_agent_priv->agent.recv_handler = recv_handler; in ib_register_mad_agent()
355 mad_agent_priv->agent.send_handler = send_handler; in ib_register_mad_agent()
356 mad_agent_priv->agent.context = context; in ib_register_mad_agent()
357 mad_agent_priv->agent.qp = port_priv->qp_info[qpn].qp; in ib_register_mad_agent()
358 mad_agent_priv->agent.port_num = port_num; in ib_register_mad_agent()
359 mad_agent_priv->agent.flags = registration_flags; in ib_register_mad_agent()
372 mad_agent_priv->agent.hi_tid = ++ib_mad_client_id; in ib_register_mad_agent()
419 return &mad_agent_priv->agent; in ib_register_mad_agent()
519 mad_snoop_priv->agent.device = device; in ib_register_mad_snoop()
520 mad_snoop_priv->agent.recv_handler = recv_handler; in ib_register_mad_snoop()
521 mad_snoop_priv->agent.snoop_handler = snoop_handler; in ib_register_mad_snoop()
522 mad_snoop_priv->agent.context = context; in ib_register_mad_snoop()
523 mad_snoop_priv->agent.qp = port_priv->qp_info[qpn].qp; in ib_register_mad_snoop()
524 mad_snoop_priv->agent.port_num = port_num; in ib_register_mad_snoop()
536 return &mad_snoop_priv->agent; in ib_register_mad_snoop()
616 agent); in ib_unregister_mad_agent()
621 agent); in ib_unregister_mad_agent()
659 mad_snoop_priv->agent.snoop_handler(&mad_snoop_priv->agent, in snoop_send()
684 mad_snoop_priv->agent.recv_handler(&mad_snoop_priv->agent, in snoop_recv()
752 struct ib_device *device = mad_agent_priv->agent.device; in handle_outgoing_dr_smp()
766 port_num = mad_agent_priv->agent.port_num; in handle_outgoing_dr_smp()
834 build_smp_wc(mad_agent_priv->agent.qp, in handle_outgoing_dr_smp()
854 mad_agent_priv->agent.recv_handler) { in handle_outgoing_dr_smp()
870 port_priv = ib_get_mad_port(mad_agent_priv->agent.device, in handle_outgoing_dr_smp()
871 mad_agent_priv->agent.port_num); in handle_outgoing_dr_smp()
967 agent.rmpp_version; in alloc_send_rmpp_list()
977 int ib_mad_kernel_rmpp_agent(const struct ib_mad_agent *agent) in ib_mad_kernel_rmpp_agent() argument
979 return agent->rmpp_version && !(agent->flags & IB_MAD_USER_RMPP); in ib_mad_kernel_rmpp_agent()
998 agent); in ib_create_send_mad()
1132 struct ib_mad_agent_private, agent); in ib_free_send_mad()
1235 if (mad_agent_priv->agent.rmpp_version) { in ib_post_send_mad()
1276 if (ib_mad_kernel_rmpp_agent(&mad_agent_priv->agent)) { in ib_post_send_mad()
1352 if ((*method)->agent[i]) { in method_in_use()
1380 if (method->agent[i]) in check_method_table()
1433 struct ib_mad_agent_private *agent) in remove_methods_mad_agent() argument
1439 if (method->agent[i] == agent) { in remove_methods_mad_agent()
1440 method->agent[i] = NULL; in remove_methods_mad_agent()
1460 dev_err(&agent_priv->agent.device->dev, in add_nonoui_reg_req()
1485 (*method)->agent[i] = agent_priv; in add_nonoui_reg_req()
1527 dev_err(&agent_priv->agent.device->dev, in add_oui_reg_req()
1538 dev_err(&agent_priv->agent.device->dev, in add_oui_reg_req()
1570 dev_err(&agent_priv->agent.device->dev, "All OUI slots in use\n"); in add_oui_reg_req()
1580 (*method)->agent[i] = agent_priv; in add_oui_reg_req()
1723 if (entry->agent.hi_tid == hi_tid) { in find_mad_agent()
1753 mad_agent = method->agent[mad_hdr->method & in find_mad_agent()
1771 mad_agent = method->agent[mad_hdr->method & in find_mad_agent()
1778 if (mad_agent->agent.recv_handler) in find_mad_agent()
1783 &mad_agent->agent, port_priv->port_num); in find_mad_agent()
1834 return !mad_agent_priv->agent.rmpp_version || in is_rmpp_data_mad()
1835 !ib_mad_kernel_rmpp_agent(&mad_agent_priv->agent) || in is_rmpp_data_mad()
1855 struct ib_device *device = mad_agent_priv->agent.device; in rcv_has_same_gid()
1856 u8 port_num = mad_agent_priv->agent.port_num; in rcv_has_same_gid()
1963 if (ib_mad_kernel_rmpp_agent(&mad_agent_priv->agent)) { in ib_mad_complete_recv()
1978 if (!ib_mad_kernel_rmpp_agent(&mad_agent_priv->agent) in ib_mad_complete_recv()
1986 mad_agent_priv->agent.recv_handler(&mad_agent_priv->agent, in ib_mad_complete_recv()
2002 mad_agent_priv->agent.recv_handler(&mad_agent_priv->agent, in ib_mad_complete_recv()
2012 mad_agent_priv->agent.recv_handler(&mad_agent_priv->agent, in ib_mad_complete_recv()
2375 if (ib_mad_kernel_rmpp_agent(&mad_agent_priv->agent)) { in ib_mad_complete_send_wr()
2406 mad_agent_priv->agent.send_handler(&mad_agent_priv->agent, in ib_mad_complete_send_wr()
2610 mad_agent_priv->agent.send_handler(&mad_agent_priv->agent, in cancel_mads()
2647 agent); in ib_modify_mad()
2708 dev_err(&mad_agent_priv->agent.device->dev, in local_completions()
2718 build_smp_wc(recv_mad_agent->agent.qp, in local_completions()
2722 recv_mad_agent->agent.port_num, &wc); in local_completions()
2745 recv_mad_agent->agent.recv_handler( in local_completions()
2746 &recv_mad_agent->agent, in local_completions()
2762 mad_agent_priv->agent.send_handler(&mad_agent_priv->agent, in local_completions()
2786 if (ib_mad_kernel_rmpp_agent(&mad_send_wr->mad_agent_priv->agent)) { in retry_send()
2849 mad_agent_priv->agent.send_handler(&mad_agent_priv->agent, in timeout_sends()