Lines Matching defs:byte
385 case 0xC3: /* 3-byte header */
412 static int intel_pt_get_short_tnt(unsigned int byte,
418 if (byte & BIT(7))
420 byte <<= 1;
425 packet->payload = (uint64_t)byte << 57;
430 static int intel_pt_get_cyc(unsigned int byte, const unsigned char *buf,
434 uint64_t payload = byte >> 3;
436 byte >>= 2;
438 for (shift = 5; byte & 1; shift += 7) {
443 byte = buf[offs++];
444 payload |= ((uint64_t)byte >> 1) << shift;
452 static int intel_pt_get_ip(enum intel_pt_pkt_type type, unsigned int byte,
458 packet->count = byte >> 5;
559 unsigned int byte;
566 byte = buf[0];
572 if ((byte & 0x7) == 4)
576 if ((byte & 0x7) == 4)
583 if (!(byte & BIT(0))) {
584 if (byte == 0)
586 if (byte == 2)
588 return intel_pt_get_short_tnt(byte, packet);
591 if ((byte & 2))
592 return intel_pt_get_cyc(byte, buf, len, packet);
594 switch (byte & 0x1f) {
596 return intel_pt_get_ip(INTEL_PT_TIP, byte, buf, len, packet);
598 return intel_pt_get_ip(INTEL_PT_TIP_PGE, byte, buf, len,
601 return intel_pt_get_ip(INTEL_PT_TIP_PGD, byte, buf, len,
604 return intel_pt_get_ip(INTEL_PT_FUP, byte, buf, len, packet);
606 switch (byte) {
783 return snprintf(buf, buf_len, "%s SZ %s-byte Type 0x%llx",