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