Lines Matching refs:recv_mad_agent
751 struct ib_mad_agent_private *recv_mad_agent = NULL; in handle_outgoing_dr_smp() local
825 local->recv_mad_agent = NULL; in handle_outgoing_dr_smp()
856 local->recv_mad_agent = mad_agent_priv; in handle_outgoing_dr_smp()
874 recv_mad_agent = find_mad_agent(port_priv, in handle_outgoing_dr_smp()
877 if (!port_priv || !recv_mad_agent) { in handle_outgoing_dr_smp()
886 local->recv_mad_agent = recv_mad_agent; in handle_outgoing_dr_smp()
2686 struct ib_mad_agent_private *recv_mad_agent; in local_completions() local
2709 recv_mad_agent = local->recv_mad_agent; in local_completions()
2710 if (!recv_mad_agent) { in local_completions()
2721 build_smp_wc(recv_mad_agent->agent.qp, in local_completions()
2725 recv_mad_agent->agent.port_num, &wc); in local_completions()
2744 if (atomic_read(&recv_mad_agent->qp_info->snoop_count)) in local_completions()
2745 snoop_recv(recv_mad_agent->qp_info, in local_completions()
2748 recv_mad_agent->agent.recv_handler( in local_completions()
2749 &recv_mad_agent->agent, in local_completions()
2751 spin_lock_irqsave(&recv_mad_agent->lock, flags); in local_completions()
2752 atomic_dec(&recv_mad_agent->refcount); in local_completions()
2753 spin_unlock_irqrestore(&recv_mad_agent->lock, flags); in local_completions()