Lines Matching defs:hop_cnt
45 u8 *hop_ptr, u8 hop_cnt,
53 /* C14-6 -- valid hop_cnt values are from 0 to 63 */
54 if (hop_cnt >= IB_SMP_MAX_PATH_HOPS)
59 if (hop_cnt && *hop_ptr == 0) {
66 if (*hop_ptr && *hop_ptr < hop_cnt) {
77 if (*hop_ptr == hop_cnt) {
85 /* C14-9:4 -- hop_ptr = hop_cnt + 1 -> give to SMA/SM */
87 return (*hop_ptr == hop_cnt + 1 ? IB_SMI_HANDLE : IB_SMI_DISCARD);
91 if (hop_cnt && *hop_ptr == hop_cnt + 1) {
98 if (2 <= *hop_ptr && *hop_ptr <= hop_cnt) {
133 &smp->hop_ptr, smp->hop_cnt,
145 &smp->hop_ptr, smp->hop_cnt,
157 u8 *hop_ptr, u8 hop_cnt,
165 /* C14-6 -- valid hop_cnt values are from 0 to 63 */
166 if (hop_cnt >= IB_SMP_MAX_PATH_HOPS)
171 if (hop_cnt && *hop_ptr == 0)
175 if (*hop_ptr && *hop_ptr < hop_cnt) {
186 if (*hop_ptr == hop_cnt) {
187 if (hop_cnt)
196 /* C14-9:4 -- hop_ptr = hop_cnt + 1 -> give to SMA/SM */
198 return (*hop_ptr == hop_cnt + 1 ? IB_SMI_HANDLE : IB_SMI_DISCARD);
203 if (hop_cnt && *hop_ptr == hop_cnt + 1) {
210 if (2 <= *hop_ptr && *hop_ptr <= hop_cnt) {
244 &smp->hop_ptr, smp->hop_cnt,
260 &smp->hop_ptr, smp->hop_cnt,
270 static enum smi_forward_action __smi_check_forward_dr_smp(u8 hop_ptr, u8 hop_cnt,
277 if (hop_ptr && hop_ptr < hop_cnt)
281 if (hop_ptr == hop_cnt)
285 /* C14-9:4 -- hop_ptr = hop_cnt + 1 -> give to SMA/SM */
286 if (hop_ptr == hop_cnt + 1)
290 if (2 <= hop_ptr && hop_ptr <= hop_cnt)
304 return __smi_check_forward_dr_smp(smp->hop_ptr, smp->hop_cnt,
312 return __smi_check_forward_dr_smp(smp->hop_ptr, smp->hop_cnt,