Lines Matching refs:hop_cnt

45 						u8 *hop_ptr, u8 hop_cnt,  in __smi_handle_dr_smp_send()  argument
54 if (hop_cnt >= IB_SMP_MAX_PATH_HOPS) in __smi_handle_dr_smp_send()
59 if (hop_cnt && *hop_ptr == 0) { in __smi_handle_dr_smp_send()
66 if (*hop_ptr && *hop_ptr < hop_cnt) { in __smi_handle_dr_smp_send()
77 if (*hop_ptr == hop_cnt) { in __smi_handle_dr_smp_send()
87 return (*hop_ptr == hop_cnt + 1 ? IB_SMI_HANDLE : IB_SMI_DISCARD); in __smi_handle_dr_smp_send()
91 if (hop_cnt && *hop_ptr == hop_cnt + 1) { in __smi_handle_dr_smp_send()
98 if (2 <= *hop_ptr && *hop_ptr <= hop_cnt) { in __smi_handle_dr_smp_send()
133 &smp->hop_ptr, smp->hop_cnt, in smi_handle_dr_smp_send()
145 &smp->hop_ptr, smp->hop_cnt, in opa_smi_handle_dr_smp_send()
157 u8 *hop_ptr, u8 hop_cnt, in __smi_handle_dr_smp_recv() argument
166 if (hop_cnt >= IB_SMP_MAX_PATH_HOPS) in __smi_handle_dr_smp_recv()
171 if (hop_cnt && *hop_ptr == 0) in __smi_handle_dr_smp_recv()
175 if (*hop_ptr && *hop_ptr < hop_cnt) { in __smi_handle_dr_smp_recv()
186 if (*hop_ptr == hop_cnt) { in __smi_handle_dr_smp_recv()
187 if (hop_cnt) in __smi_handle_dr_smp_recv()
198 return (*hop_ptr == hop_cnt + 1 ? IB_SMI_HANDLE : IB_SMI_DISCARD); in __smi_handle_dr_smp_recv()
203 if (hop_cnt && *hop_ptr == hop_cnt + 1) { in __smi_handle_dr_smp_recv()
210 if (2 <= *hop_ptr && *hop_ptr <= hop_cnt) { in __smi_handle_dr_smp_recv()
244 &smp->hop_ptr, smp->hop_cnt, in smi_handle_dr_smp_recv()
260 &smp->hop_ptr, smp->hop_cnt, in opa_smi_handle_dr_smp_recv()
270 static enum smi_forward_action __smi_check_forward_dr_smp(u8 hop_ptr, u8 hop_cnt, in __smi_check_forward_dr_smp() argument
277 if (hop_ptr && hop_ptr < hop_cnt) in __smi_check_forward_dr_smp()
281 if (hop_ptr == hop_cnt) in __smi_check_forward_dr_smp()
286 if (hop_ptr == hop_cnt + 1) in __smi_check_forward_dr_smp()
290 if (2 <= hop_ptr && hop_ptr <= hop_cnt) in __smi_check_forward_dr_smp()
304 return __smi_check_forward_dr_smp(smp->hop_ptr, smp->hop_cnt, in smi_check_forward_dr_smp()
312 return __smi_check_forward_dr_smp(smp->hop_ptr, smp->hop_cnt, in opa_smi_check_forward_dr_smp()