Lines Matching refs:packet

47 static void decode_link_packet(struct link_packet *packet, size_t length,
152 sa = malloc(sizeof *sa - sizeof sa->packet + length); in subaction_create()
157 memcpy(&sa->packet, data, length); in subaction_create()
243 decode_link_packet(&t->request->packet, t->request->length, in handle_transaction()
246 decode_link_packet(&t->response->packet, t->request->length, in handle_transaction()
253 print_packet((uint32_t *) &sa->packet, sa->length); in handle_transaction()
255 print_packet((uint32_t *) &sa->packet, sa->length); in handle_transaction()
519 if (prev->packet.common.tcode != sa->packet.common.tcode || in handle_request_packet()
520 prev->packet.common.tlabel != sa->packet.common.tlabel) { in handle_request_packet()
585 if (prev->packet.common.tcode != sa->packet.common.tcode || in handle_response_packet()
586 prev->packet.common.tlabel != sa->packet.common.tlabel) { in handle_response_packet()
599 if (packet_info[prev->packet.common.tcode].response_tcode != in handle_response_packet()
600 sa->packet.common.tcode) { in handle_response_packet()
657 get_bits(struct link_packet *packet, int offset, int width) in get_bits() argument
659 uint32_t *data = (uint32_t *) packet; in get_bits()
697 decode_link_packet(struct link_packet *packet, size_t length, in decode_link_packet() argument
704 pi = &packet_info[packet->common.tcode]; in decode_link_packet()
723 bits = get_bits(packet, offset, f->width); in decode_link_packet()
727 dump_data((unsigned char *) packet + (offset / 8 + 4), data_length); in decode_link_packet()
738 bits = get_bits(packet, offset, high_width); in decode_link_packet()
740 get_bits(packet, offset + high_width, low_width); in decode_link_packet()
742 bits = get_bits(packet, offset, f->width); in decode_link_packet()
820 struct link_packet *packet = (struct link_packet *) data; in print_packet() local
822 decode_link_packet(packet, length, 0, in print_packet()
855 struct link_packet *packet = (struct link_packet *) data; in print_stats() local
856 tcode_count[packet->common.tcode]++; in print_stats()