Lines Matching refs:ioam6h

129 static int check_ioam_header(int tid, struct ioam6_trace_hdr *ioam6h,  in check_ioam_header()  argument
132 if (__be16_to_cpu(ioam6h->namespace_id) != ioam_ns || in check_ioam_header()
133 __be32_to_cpu(ioam6h->type_be32) != (trace_type << 8)) in check_ioam_header()
139 return ioam6h->overflow || in check_ioam_header()
140 ioam6h->nodelen != 1 || in check_ioam_header()
141 ioam6h->remlen != 1; in check_ioam_header()
146 return !ioam6h->overflow || in check_ioam_header()
147 ioam6h->nodelen != 2 || in check_ioam_header()
148 ioam6h->remlen != 1; in check_ioam_header()
168 return ioam6h->overflow || in check_ioam_header()
169 ioam6h->nodelen != 1 || in check_ioam_header()
170 ioam6h->remlen; in check_ioam_header()
178 return ioam6h->overflow || in check_ioam_header()
179 ioam6h->nodelen != 2 || in check_ioam_header()
180 ioam6h->remlen; in check_ioam_header()
184 return ioam6h->overflow || in check_ioam_header()
185 ioam6h->nodelen || in check_ioam_header()
186 ioam6h->remlen; in check_ioam_header()
191 return ioam6h->overflow || in check_ioam_header()
192 ioam6h->nodelen != 15 || in check_ioam_header()
193 ioam6h->remlen; in check_ioam_header()
202 static int check_ioam6_data(__u8 **p, struct ioam6_trace_hdr *ioam6h, in check_ioam6_data() argument
210 if (ioam6h->type.bit0) { in check_ioam6_data()
217 if (ioam6h->type.bit1) { in check_ioam6_data()
225 if (ioam6h->type.bit2) in check_ioam6_data()
228 if (ioam6h->type.bit3) in check_ioam6_data()
231 if (ioam6h->type.bit4) { in check_ioam6_data()
237 if (ioam6h->type.bit5) { in check_ioam6_data()
243 if (ioam6h->type.bit6) in check_ioam6_data()
246 if (ioam6h->type.bit7) { in check_ioam6_data()
252 if (ioam6h->type.bit8) { in check_ioam6_data()
260 if (ioam6h->type.bit9) { in check_ioam6_data()
270 if (ioam6h->type.bit10) { in check_ioam6_data()
276 if (ioam6h->type.bit11) { in check_ioam6_data()
282 if (ioam6h->type.bit12) { in check_ioam6_data()
288 if (ioam6h->type.bit13) { in check_ioam6_data()
294 if (ioam6h->type.bit14) { in check_ioam6_data()
300 if (ioam6h->type.bit15) { in check_ioam6_data()
306 if (ioam6h->type.bit16) { in check_ioam6_data()
312 if (ioam6h->type.bit17) { in check_ioam6_data()
318 if (ioam6h->type.bit18) { in check_ioam6_data()
324 if (ioam6h->type.bit19) { in check_ioam6_data()
330 if (ioam6h->type.bit20) { in check_ioam6_data()
336 if (ioam6h->type.bit21) { in check_ioam6_data()
342 if (ioam6h->type.bit22) { in check_ioam6_data()
370 static int check_ioam_header_and_data(int tid, struct ioam6_trace_hdr *ioam6h, in check_ioam_header_and_data() argument
375 if (check_ioam_header(tid, ioam6h, trace_type, ioam_ns)) in check_ioam_header_and_data()
378 p = ioam6h->data + ioam6h->remlen * 4; in check_ioam_header_and_data()
395 return check_ioam6_data(&p, ioam6h, node1); in check_ioam_header_and_data()
419 res = check_ioam6_data(&p, ioam6h, node2); in check_ioam_header_and_data()
428 if (check_ioam6_data(&p, ioam6h, node3)) in check_ioam_header_and_data()
430 if (check_ioam6_data(&p, ioam6h, node2)) in check_ioam_header_and_data()
432 return check_ioam6_data(&p, ioam6h, node1); in check_ioam_header_and_data()