Lines Matching defs:smp

129 enum smi_action smi_handle_dr_smp_send(struct ib_smp *smp,
133 &smp->hop_ptr, smp->hop_cnt,
134 smp->initial_path,
135 smp->return_path,
136 ib_get_smp_direction(smp),
137 smp->dr_dlid == IB_LID_PERMISSIVE,
138 smp->dr_slid == IB_LID_PERMISSIVE);
141 enum smi_action opa_smi_handle_dr_smp_send(struct opa_smp *smp,
145 &smp->hop_ptr, smp->hop_cnt,
146 smp->route.dr.initial_path,
147 smp->route.dr.return_path,
148 opa_get_smp_direction(smp),
149 smp->route.dr.dr_dlid ==
151 smp->route.dr.dr_slid ==
240 enum smi_action smi_handle_dr_smp_recv(struct ib_smp *smp, bool is_switch,
244 &smp->hop_ptr, smp->hop_cnt,
245 smp->initial_path,
246 smp->return_path,
247 ib_get_smp_direction(smp),
248 smp->dr_dlid == IB_LID_PERMISSIVE,
249 smp->dr_slid == IB_LID_PERMISSIVE);
256 enum smi_action opa_smi_handle_dr_smp_recv(struct opa_smp *smp, bool is_switch,
260 &smp->hop_ptr, smp->hop_cnt,
261 smp->route.dr.initial_path,
262 smp->route.dr.return_path,
263 opa_get_smp_direction(smp),
264 smp->route.dr.dr_dlid ==
266 smp->route.dr.dr_slid ==
302 enum smi_forward_action smi_check_forward_dr_smp(struct ib_smp *smp)
304 return __smi_check_forward_dr_smp(smp->hop_ptr, smp->hop_cnt,
305 ib_get_smp_direction(smp),
306 smp->dr_dlid == IB_LID_PERMISSIVE,
307 smp->dr_slid == IB_LID_PERMISSIVE);
310 enum smi_forward_action opa_smi_check_forward_dr_smp(struct opa_smp *smp)
312 return __smi_check_forward_dr_smp(smp->hop_ptr, smp->hop_cnt,
313 opa_get_smp_direction(smp),
314 smp->route.dr.dr_dlid ==
316 smp->route.dr.dr_slid ==
324 int smi_get_fwd_port(struct ib_smp *smp)
326 return (!ib_get_smp_direction(smp) ? smp->initial_path[smp->hop_ptr+1] :
327 smp->return_path[smp->hop_ptr-1]);
334 int opa_smi_get_fwd_port(struct opa_smp *smp)
336 return !opa_get_smp_direction(smp) ? smp->route.dr.initial_path[smp->hop_ptr+1] :
337 smp->route.dr.return_path[smp->hop_ptr-1];