Lines Matching refs:ioam6h
128 static int check_ioam_header(int tid, struct ioam6_trace_hdr *ioam6h, in check_ioam_header() argument
131 if (__be16_to_cpu(ioam6h->namespace_id) != ioam_ns || in check_ioam_header()
132 __be32_to_cpu(ioam6h->type_be32) != (trace_type << 8)) in check_ioam_header()
138 return ioam6h->overflow || in check_ioam_header()
139 ioam6h->nodelen != 1 || in check_ioam_header()
140 ioam6h->remlen != 1; in check_ioam_header()
145 return !ioam6h->overflow || in check_ioam_header()
146 ioam6h->nodelen != 2 || in check_ioam_header()
147 ioam6h->remlen != 1; in check_ioam_header()
167 return ioam6h->overflow || in check_ioam_header()
168 ioam6h->nodelen != 1 || in check_ioam_header()
169 ioam6h->remlen; in check_ioam_header()
177 return ioam6h->overflow || in check_ioam_header()
178 ioam6h->nodelen != 2 || in check_ioam_header()
179 ioam6h->remlen; in check_ioam_header()
183 return ioam6h->overflow || in check_ioam_header()
184 ioam6h->nodelen || in check_ioam_header()
185 ioam6h->remlen; in check_ioam_header()
190 return ioam6h->overflow || in check_ioam_header()
191 ioam6h->nodelen != 15 || in check_ioam_header()
192 ioam6h->remlen; in check_ioam_header()
201 static int check_ioam6_data(__u8 **p, struct ioam6_trace_hdr *ioam6h, in check_ioam6_data() argument
209 if (ioam6h->type.bit0) { in check_ioam6_data()
216 if (ioam6h->type.bit1) { in check_ioam6_data()
224 if (ioam6h->type.bit2) in check_ioam6_data()
227 if (ioam6h->type.bit3) in check_ioam6_data()
230 if (ioam6h->type.bit4) { in check_ioam6_data()
236 if (ioam6h->type.bit5) { in check_ioam6_data()
242 if (ioam6h->type.bit6) in check_ioam6_data()
245 if (ioam6h->type.bit7) { in check_ioam6_data()
251 if (ioam6h->type.bit8) { in check_ioam6_data()
259 if (ioam6h->type.bit9) { in check_ioam6_data()
269 if (ioam6h->type.bit10) { in check_ioam6_data()
275 if (ioam6h->type.bit11) { in check_ioam6_data()
281 if (ioam6h->type.bit12) { in check_ioam6_data()
287 if (ioam6h->type.bit13) { in check_ioam6_data()
293 if (ioam6h->type.bit14) { in check_ioam6_data()
299 if (ioam6h->type.bit15) { in check_ioam6_data()
305 if (ioam6h->type.bit16) { in check_ioam6_data()
311 if (ioam6h->type.bit17) { in check_ioam6_data()
317 if (ioam6h->type.bit18) { in check_ioam6_data()
323 if (ioam6h->type.bit19) { in check_ioam6_data()
329 if (ioam6h->type.bit20) { in check_ioam6_data()
335 if (ioam6h->type.bit21) { in check_ioam6_data()
341 if (ioam6h->type.bit22) { in check_ioam6_data()
369 static int check_ioam_header_and_data(int tid, struct ioam6_trace_hdr *ioam6h, in check_ioam_header_and_data() argument
374 if (check_ioam_header(tid, ioam6h, trace_type, ioam_ns)) in check_ioam_header_and_data()
377 p = ioam6h->data + ioam6h->remlen * 4; in check_ioam_header_and_data()
394 return check_ioam6_data(&p, ioam6h, node1); in check_ioam_header_and_data()
418 res = check_ioam6_data(&p, ioam6h, node2); in check_ioam_header_and_data()
427 if (check_ioam6_data(&p, ioam6h, node3)) in check_ioam_header_and_data()
429 if (check_ioam6_data(&p, ioam6h, node2)) in check_ioam_header_and_data()
431 return check_ioam6_data(&p, ioam6h, node1); in check_ioam_header_and_data()