Lines Matching defs:byte
364 case 0xC3: /* 3-byte header */
387 static int intel_pt_get_short_tnt(unsigned int byte,
393 if (byte & BIT(7))
395 byte <<= 1;
400 packet->payload = (uint64_t)byte << 57;
405 static int intel_pt_get_cyc(unsigned int byte, const unsigned char *buf,
409 uint64_t payload = byte >> 3;
411 byte >>= 2;
413 for (shift = 5; byte & 1; shift += 7) {
418 byte = buf[offs++];
419 payload |= ((uint64_t)byte >> 1) << shift;
427 static int intel_pt_get_ip(enum intel_pt_pkt_type type, unsigned int byte,
433 packet->count = byte >> 5;
533 unsigned int byte;
540 byte = buf[0];
546 if ((byte & 0x7) == 4)
550 if ((byte & 0x7) == 4)
557 if (!(byte & BIT(0))) {
558 if (byte == 0)
560 if (byte == 2)
562 return intel_pt_get_short_tnt(byte, packet);
565 if ((byte & 2))
566 return intel_pt_get_cyc(byte, buf, len, packet);
568 switch (byte & 0x1f) {
570 return intel_pt_get_ip(INTEL_PT_TIP, byte, buf, len, packet);
572 return intel_pt_get_ip(INTEL_PT_TIP_PGE, byte, buf, len,
575 return intel_pt_get_ip(INTEL_PT_TIP_PGD, byte, buf, len,
578 return intel_pt_get_ip(INTEL_PT_FUP, byte, buf, len, packet);
580 switch (byte) {
753 return snprintf(buf, buf_len, "%s SZ %s-byte Type 0x%llx",