Lines Matching refs:hop_cnt
49 u8 *hop_ptr, u8 hop_cnt,
57 /* C14-6 -- valid hop_cnt values are from 0 to 63 */
58 if (hop_cnt >= IB_SMP_MAX_PATH_HOPS)
63 if (hop_cnt && *hop_ptr == 0) {
70 if (*hop_ptr && *hop_ptr < hop_cnt) {
81 if (*hop_ptr == hop_cnt) {
89 /* C14-9:4 -- hop_ptr = hop_cnt + 1 -> give to SMA/SM */
91 return (*hop_ptr == hop_cnt + 1 ? IB_SMI_HANDLE : IB_SMI_DISCARD);
95 if (hop_cnt && *hop_ptr == hop_cnt + 1) {
102 if (2 <= *hop_ptr && *hop_ptr <= hop_cnt) {
137 &smp->hop_ptr, smp->hop_cnt,
149 &smp->hop_ptr, smp->hop_cnt,
161 u8 *hop_ptr, u8 hop_cnt,
169 /* C14-6 -- valid hop_cnt values are from 0 to 63 */
170 if (hop_cnt >= IB_SMP_MAX_PATH_HOPS)
175 if (hop_cnt && *hop_ptr == 0)
179 if (*hop_ptr && *hop_ptr < hop_cnt) {
190 if (*hop_ptr == hop_cnt) {
191 if (hop_cnt)
200 /* C14-9:4 -- hop_ptr = hop_cnt + 1 -> give to SMA/SM */
202 return (*hop_ptr == hop_cnt + 1 ? IB_SMI_HANDLE : IB_SMI_DISCARD);
207 if (hop_cnt && *hop_ptr == hop_cnt + 1) {
214 if (2 <= *hop_ptr && *hop_ptr <= hop_cnt) {
248 &smp->hop_ptr, smp->hop_cnt,
264 &smp->hop_ptr, smp->hop_cnt,
274 static enum smi_forward_action __smi_check_forward_dr_smp(u8 hop_ptr, u8 hop_cnt,
281 if (hop_ptr && hop_ptr < hop_cnt)
285 if (hop_ptr == hop_cnt)
289 /* C14-9:4 -- hop_ptr = hop_cnt + 1 -> give to SMA/SM */
290 if (hop_ptr == hop_cnt + 1)
294 if (2 <= hop_ptr && hop_ptr <= hop_cnt)
308 return __smi_check_forward_dr_smp(smp->hop_ptr, smp->hop_cnt,
316 return __smi_check_forward_dr_smp(smp->hop_ptr, smp->hop_cnt,