Lines Matching refs:packet
170 CommunicationKDP::WaitForPacketWithTimeoutMicroSeconds(DataExtractor &packet, in WaitForPacketWithTimeoutMicroSeconds() argument
173 return WaitForPacketWithTimeoutMicroSecondsNoLock(packet, timeout_usec); in WaitForPacketWithTimeoutMicroSeconds()
177 DataExtractor &packet, uint32_t timeout_usec) { in WaitForPacketWithTimeoutMicroSecondsNoLock() argument
184 if (CheckForPacket(NULL, 0, packet)) in WaitForPacketWithTimeoutMicroSecondsNoLock()
185 return packet.GetByteSize(); in WaitForPacketWithTimeoutMicroSecondsNoLock()
203 if (CheckForPacket(buffer, bytes_read, packet)) in WaitForPacketWithTimeoutMicroSecondsNoLock()
204 return packet.GetByteSize(); in WaitForPacketWithTimeoutMicroSecondsNoLock()
225 packet.Clear(); in WaitForPacketWithTimeoutMicroSecondsNoLock()
230 DataExtractor &packet) { in CheckForPacket() argument
250 packet.SetData(&m_bytes[0], bytes_available, m_byte_order); in CheckForPacket()
252 uint8_t reply_command = packet.GetU8(&offset); in CheckForPacket()
262 request_ack_packet.PutHex8(packet.GetU8(&offset)); in CheckForPacket()
263 request_ack_packet.PutHex16(packet.GetU16(&offset)); in CheckForPacket()
264 request_ack_packet.PutHex32(packet.GetU32(&offset)); in CheckForPacket()
302 const uint16_t length = packet.GetU16(&offset); in CheckForPacket()
307 packet.SetData(DataBufferSP(new DataBufferHeap(&m_bytes[0], length))); in CheckForPacket()
312 DumpPacket(log_strm, packet); in CheckForPacket()
330 packet.Clear(); in CheckForPacket()
722 void CommunicationKDP::DumpPacket(Stream &s, const DataExtractor &packet) { in DumpPacket() argument
724 if (packet.GetByteSize() < 8) { in DumpPacket()
728 const uint8_t first_packet_byte = packet.GetU8(&offset); in DumpPacket()
729 const uint8_t sequence_id = packet.GetU8(&offset); in DumpPacket()
730 const uint16_t length = packet.GetU16(&offset); in DumpPacket()
731 const uint32_t key = packet.GetU32(&offset); in DumpPacket()
755 const uint32_t error = packet.GetU32(&offset); in DumpPacket()
771 const uint32_t cpu_mask = packet.GetU32(&offset); in DumpPacket()
772 const uint32_t cpu_type = packet.GetU32(&offset); in DumpPacket()
773 const uint32_t cpu_subtype = packet.GetU32(&offset); in DumpPacket()
779 const uint32_t version = packet.GetU32(&offset); in DumpPacket()
780 const uint32_t feature = packet.GetU32(&offset); in DumpPacket()
785 const uint32_t region_count = packet.GetU32(&offset); in DumpPacket()
788 const addr_t region_addr = packet.GetAddress(&offset); in DumpPacket()
789 const uint32_t region_size = packet.GetU32(&offset); in DumpPacket()
790 const uint32_t region_prot = packet.GetU32(&offset); in DumpPacket()
801 const uint32_t error = packet.GetU32(&offset); in DumpPacket()
802 const uint32_t count = packet.GetByteSize() - offset; in DumpPacket()
805 DumpDataExtractor(packet, in DumpPacket()
819 const uint32_t error = packet.GetU32(&offset); in DumpPacket()
820 const uint32_t count = packet.GetByteSize() - offset; in DumpPacket()
823 DumpDataExtractor(packet, in DumpPacket()
839 const char *kernel_version = packet.PeekCStr(8); in DumpPacket()
844 const uint32_t max_bytes = packet.GetU32(&offset); in DumpPacket()
848 const char *path = packet.GetCStr(&offset); in DumpPacket()
854 const uint32_t error = packet.GetU32(&offset); in DumpPacket()
855 const uint32_t count = packet.GetByteSize() - offset; in DumpPacket()
858 DumpDataExtractor(packet, in DumpPacket()
870 const uint32_t count = packet.GetByteSize() - offset; in DumpPacket()
873 DumpDataExtractor(packet, in DumpPacket()
895 const uint16_t reply_port = ntohs(packet.GetU16(&offset)); in DumpPacket()
896 const uint16_t exc_port = ntohs(packet.GetU16(&offset)); in DumpPacket()
898 reply_port, exc_port, packet.GetCStr(&offset)); in DumpPacket()
915 const uint32_t cpu_mask = packet.GetU32(&offset); in DumpPacket()
920 const uint32_t addr = packet.GetU32(&offset); in DumpPacket()
921 const uint32_t size = packet.GetU32(&offset); in DumpPacket()
927 const uint32_t addr = packet.GetU32(&offset); in DumpPacket()
928 const uint32_t size = packet.GetU32(&offset); in DumpPacket()
931 DumpHexBytes(&s, packet.GetData(&offset, size), size, 32, addr); in DumpPacket()
935 const uint64_t addr = packet.GetU64(&offset); in DumpPacket()
936 const uint32_t size = packet.GetU32(&offset); in DumpPacket()
942 const uint64_t addr = packet.GetU64(&offset); in DumpPacket()
943 const uint32_t size = packet.GetU32(&offset); in DumpPacket()
944 const uint32_t lcpu = packet.GetU16(&offset); in DumpPacket()
951 const uint64_t addr = packet.GetU64(&offset); in DumpPacket()
952 const uint32_t size = packet.GetU32(&offset); in DumpPacket()
956 DumpHexBytes(&s, packet.GetData(&offset, size), size, 32, addr); in DumpPacket()
960 const uint64_t addr = packet.GetU64(&offset); in DumpPacket()
961 const uint32_t size = packet.GetU32(&offset); in DumpPacket()
962 const uint32_t lcpu = packet.GetU16(&offset); in DumpPacket()
966 DumpHexBytes(&s, packet.GetData(&offset, size), size, 32, addr); in DumpPacket()
970 const uint32_t cpu = packet.GetU32(&offset); in DumpPacket()
971 const uint32_t flavor = packet.GetU32(&offset); in DumpPacket()
976 const uint32_t cpu = packet.GetU32(&offset); in DumpPacket()
977 const uint32_t flavor = packet.GetU32(&offset); in DumpPacket()
978 const uint32_t nbytes = packet.GetByteSize() - offset; in DumpPacket()
981 DumpDataExtractor(packet, in DumpPacket()
997 const uint32_t addr = packet.GetU32(&offset); in DumpPacket()
1003 const uint64_t addr = packet.GetU64(&offset); in DumpPacket()
1008 const char *path = packet.GetCStr(&offset); in DumpPacket()
1013 const uint32_t count = packet.GetU32(&offset); in DumpPacket()
1016 const uint32_t cpu = packet.GetU32(&offset); in DumpPacket()
1017 const uint32_t exc = packet.GetU32(&offset); in DumpPacket()
1018 const uint32_t code = packet.GetU32(&offset); in DumpPacket()
1019 const uint32_t subcode = packet.GetU32(&offset); in DumpPacket()
1063 const uint32_t term_code = packet.GetU32(&offset); in DumpPacket()
1064 const uint32_t exit_code = packet.GetU32(&offset); in DumpPacket()
1070 const uint16_t reply_port = ntohs(packet.GetU16(&offset)); in DumpPacket()
1075 const uint32_t address = packet.GetU32(&offset); in DumpPacket()
1076 const uint16_t lcpu = packet.GetU16(&offset); in DumpPacket()
1081 const uint32_t address = packet.GetU32(&offset); in DumpPacket()
1082 const uint16_t lcpu = packet.GetU16(&offset); in DumpPacket()
1083 const uint32_t nbytes = packet.GetByteSize() - offset; in DumpPacket()
1087 DumpDataExtractor(packet, in DumpPacket()
1101 const uint16_t lcpu = packet.GetU16(&offset); in DumpPacket()
1102 const uint16_t address = packet.GetU16(&offset); in DumpPacket()
1103 const uint16_t nbytes = packet.GetU16(&offset); in DumpPacket()
1109 const uint16_t lcpu = packet.GetU16(&offset); in DumpPacket()
1110 const uint16_t address = packet.GetU16(&offset); in DumpPacket()
1111 const uint16_t nbytes = packet.GetU16(&offset); in DumpPacket()
1115 DumpDataExtractor(packet, in DumpPacket()
1129 const uint32_t count = packet.GetByteSize() - offset; in DumpPacket()
1132 DumpDataExtractor(packet, in DumpPacket()
1153 DumpDataExtractor(packet, in DumpPacket()
1159 packet.GetByteSize(), // Number of bytes in DumpPacket()