Lines Matching refs:hop_cnt

49 	u8 hop_ptr, hop_cnt;  in smi_handle_dr_smp_send()  local
52 hop_cnt = smp->hop_cnt; in smi_handle_dr_smp_send()
56 if (hop_cnt >= IB_SMP_MAX_PATH_HOPS) in smi_handle_dr_smp_send()
61 if (hop_cnt && hop_ptr == 0) { in smi_handle_dr_smp_send()
68 if (hop_ptr && hop_ptr < hop_cnt) { in smi_handle_dr_smp_send()
79 if (hop_ptr == hop_cnt) { in smi_handle_dr_smp_send()
89 return (hop_ptr == hop_cnt + 1 ? IB_SMI_HANDLE : IB_SMI_DISCARD); in smi_handle_dr_smp_send()
93 if (hop_cnt && hop_ptr == hop_cnt + 1) { in smi_handle_dr_smp_send()
100 if (2 <= hop_ptr && hop_ptr <= hop_cnt) { in smi_handle_dr_smp_send()
134 u8 hop_ptr, hop_cnt; in smi_handle_dr_smp_recv() local
137 hop_cnt = smp->hop_cnt; in smi_handle_dr_smp_recv()
141 if (hop_cnt >= IB_SMP_MAX_PATH_HOPS) in smi_handle_dr_smp_recv()
146 if (hop_cnt && hop_ptr == 0) in smi_handle_dr_smp_recv()
150 if (hop_ptr && hop_ptr < hop_cnt) { in smi_handle_dr_smp_recv()
161 if (hop_ptr == hop_cnt) { in smi_handle_dr_smp_recv()
162 if (hop_cnt) in smi_handle_dr_smp_recv()
173 return (hop_ptr == hop_cnt + 1 ? IB_SMI_HANDLE : IB_SMI_DISCARD); in smi_handle_dr_smp_recv()
178 if (hop_cnt && hop_ptr == hop_cnt + 1) { in smi_handle_dr_smp_recv()
185 if (2 <= hop_ptr && hop_ptr <= hop_cnt) { in smi_handle_dr_smp_recv()
214 u8 hop_ptr, hop_cnt; in smi_check_forward_dr_smp() local
217 hop_cnt = smp->hop_cnt; in smi_check_forward_dr_smp()
221 if (hop_ptr && hop_ptr < hop_cnt) in smi_check_forward_dr_smp()
225 if (hop_ptr == hop_cnt) in smi_check_forward_dr_smp()
230 if (hop_ptr == hop_cnt + 1) in smi_check_forward_dr_smp()
234 if (2 <= hop_ptr && hop_ptr <= hop_cnt) in smi_check_forward_dr_smp()