Lines Matching defs:packet
47 static void decode_link_packet(struct link_packet *packet, size_t length,
53 static char *option_view = "packet";
81 .descrip = "Specify view of bus traffic: packet, transaction or stats.",
89 .descrip = "Print each packet in hex.",
108 .descrip = "Verbose packet view.",
152 sa = malloc(sizeof *sa - sizeof sa->packet + length);
155 memcpy(&sa->packet, data, length);
239 decode_link_packet(&t->request->packet, t->request->length,
242 decode_link_packet(&t->response->packet, t->request->length,
249 print_packet((uint32_t *) &sa->packet, sa->length);
251 print_packet((uint32_t *) &sa->packet, sa->length);
324 /* negative means from end of packet. */
515 if (prev->packet.common.tcode != sa->packet.common.tcode ||
516 prev->packet.common.tlabel != sa->packet.common.tlabel) {
581 if (prev->packet.common.tcode != sa->packet.common.tcode ||
582 prev->packet.common.tlabel != sa->packet.common.tlabel) {
595 if (packet_info[prev->packet.common.tcode].response_tcode !=
596 sa->packet.common.tcode) {
653 get_bits(struct link_packet *packet, int offset, int width)
655 uint32_t *data = (uint32_t *) packet;
693 decode_link_packet(struct link_packet *packet, size_t length,
700 pi = &packet_info[packet->common.tcode];
719 bits = get_bits(packet, offset, f->width);
723 dump_data((unsigned char *) packet + (offset / 8 + 4), data_length);
734 bits = get_bits(packet, offset, high_width);
736 get_bits(packet, offset + high_width, low_width);
738 bits = get_bits(packet, offset, f->width);
762 printf("short packet: ");
770 /* phy packet are 3 quadlets: the 1 quadlet payload,
788 printf("link-on packet, phy_id=%02x", pp->link_on.phy_id);
809 printf("unknown phy packet: ");
816 struct link_packet *packet = (struct link_packet *) data;
818 decode_link_packet(packet, length, 0,
851 struct link_packet *packet = (struct link_packet *) data;
852 tcode_count[packet->common.tcode]++;