Lines Matching refs:smp
745 struct ib_smp *smp = mad_send_wr->send_buf.mad; in handle_outgoing_dr_smp() local
746 struct opa_smp *opa_smp = (struct opa_smp *)smp; in handle_outgoing_dr_smp()
763 smp->mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) in handle_outgoing_dr_smp()
774 if (opa && smp->class_version == OPA_SMP_CLASS_VERSION) { in handle_outgoing_dr_smp()
802 if ((ib_get_smp_direction(smp) ? smp->dr_dlid : smp->dr_slid) == in handle_outgoing_dr_smp()
804 smi_handle_dr_smp_send(smp, rdma_cap_ib_switch(device), port_num) == in handle_outgoing_dr_smp()
810 drslid = be16_to_cpu(smp->dr_slid); in handle_outgoing_dr_smp()
813 if (smi_check_local_smp(smp, device) == IB_SMI_DISCARD && in handle_outgoing_dr_smp()
814 smi_check_local_returning_smp(smp, device) == IB_SMI_DISCARD) in handle_outgoing_dr_smp()
839 if (opa && smp->base_version == OPA_MGMT_BASE_VERSION) { in handle_outgoing_dr_smp()
847 (const struct ib_mad_hdr *)smp, mad_size, in handle_outgoing_dr_smp()
873 memcpy(mad_priv->mad, smp, mad_priv->mad_size); in handle_outgoing_dr_smp()
2029 struct ib_smp *smp = (struct ib_smp *)recv->mad; in handle_ib_smi() local
2031 if (smi_handle_dr_smp_recv(smp, in handle_ib_smi()
2038 retsmi = smi_check_forward_dr_smp(smp); in handle_ib_smi()
2043 if (smi_handle_dr_smp_send(smp, in handle_ib_smi()
2048 if (smi_check_local_smp(smp, port_priv->device) == IB_SMI_DISCARD) in handle_ib_smi()
2060 smi_get_fwd_port(smp), in handle_ib_smi()
2114 struct opa_smp *smp = (struct opa_smp *)recv->mad; in handle_opa_smi() local
2116 if (opa_smi_handle_dr_smp_recv(smp, in handle_opa_smi()
2123 retsmi = opa_smi_check_forward_dr_smp(smp); in handle_opa_smi()
2128 if (opa_smi_handle_dr_smp_send(smp, in handle_opa_smi()
2133 if (opa_smi_check_local_smp(smp, port_priv->device) == in handle_opa_smi()
2148 opa_smi_get_fwd_port(smp), in handle_opa_smi()