Lines Matching refs:request_packet
47 const PacketStreamType &request_packet) { in SendRequestPacket() argument
49 return SendRequestPacketNoLock(request_packet); in SendRequestPacket()
53 PacketStreamType &request_packet, in MakeRequestPacketHeader() argument
55 request_packet.Clear(); in MakeRequestPacketHeader()
56 request_packet.PutHex8(request_type | in MakeRequestPacketHeader()
58 request_packet.PutHex8(m_request_sequence_id++); // Sequence number in MakeRequestPacketHeader()
59 request_packet.PutHex16( in MakeRequestPacketHeader()
61 request_packet.PutHex32(m_session_key); // Session key in MakeRequestPacketHeader()
65 const CommandType command, const PacketStreamType &request_packet, in SendRequestAndGetReply() argument
71 DumpPacket(log_strm, request_packet.GetData(), request_packet.GetSize()); in SendRequestAndGetReply()
80 assert(request_packet.GetSize() == in SendRequestAndGetReply()
81 *((const uint16_t *)(request_packet.GetData() + 2))); in SendRequestAndGetReply()
85 if (SendRequestPacketNoLock(request_packet)) { in SendRequestAndGetReply()
86 const uint8_t request_sequence_id = (uint8_t)request_packet.GetData()[1]; in SendRequestAndGetReply()
131 const PacketStreamType &request_packet) { in SendRequestPacketNoLock() argument
133 const char *packet_data = request_packet.GetData(); in SendRequestPacketNoLock()
134 const size_t packet_size = request_packet.GetSize(); in SendRequestPacketNoLock()
337 PacketStreamType request_packet(Stream::eBinary, m_addr_byte_size, in SendRequestConnect() local
346 MakeRequestPacketHeader(command, request_packet, command_length); in SendRequestConnect()
348 request_packet.SetByteOrder(eByteOrderLittle); in SendRequestConnect()
349 request_packet.PutHex16(htons(reply_port)); in SendRequestConnect()
350 request_packet.PutHex16(htons(exc_port)); in SendRequestConnect()
351 request_packet.SetByteOrder(m_byte_order); in SendRequestConnect()
352 request_packet.PutCString(greeting); in SendRequestConnect()
354 return SendRequestAndGetReply(command, request_packet, reply_packet); in SendRequestConnect()
367 PacketStreamType request_packet(Stream::eBinary, m_addr_byte_size, in SendRequestReattach() local
372 MakeRequestPacketHeader(command, request_packet, command_length); in SendRequestReattach()
374 request_packet.SetByteOrder(eByteOrderLittle); in SendRequestReattach()
375 request_packet.PutHex16(htons(reply_port)); in SendRequestReattach()
376 request_packet.SetByteOrder(m_byte_order); in SendRequestReattach()
378 if (SendRequestAndGetReply(command, request_packet, reply_packet)) { in SendRequestReattach()
401 PacketStreamType request_packet(Stream::eBinary, m_addr_byte_size, in SendRequestVersion() local
405 MakeRequestPacketHeader(command, request_packet, command_length); in SendRequestVersion()
407 if (SendRequestAndGetReply(command, request_packet, reply_packet)) { in SendRequestVersion()
487 PacketStreamType request_packet(Stream::eBinary, m_addr_byte_size, in SendRequestHostInfo() local
491 MakeRequestPacketHeader(command, request_packet, command_length); in SendRequestHostInfo()
493 if (SendRequestAndGetReply(command, request_packet, reply_packet)) { in SendRequestHostInfo()
517 PacketStreamType request_packet(Stream::eBinary, m_addr_byte_size, in SendRequestKernelVersion() local
521 MakeRequestPacketHeader(command, request_packet, command_length); in SendRequestKernelVersion()
523 if (SendRequestAndGetReply(command, request_packet, reply_packet)) { in SendRequestKernelVersion()
533 PacketStreamType request_packet(Stream::eBinary, m_addr_byte_size, in SendRequestDisconnect() local
537 MakeRequestPacketHeader(command, request_packet, command_length); in SendRequestDisconnect()
539 if (SendRequestAndGetReply(command, request_packet, reply_packet)) { in SendRequestDisconnect()
549 PacketStreamType request_packet(Stream::eBinary, m_addr_byte_size, in SendRequestReadMemory() local
556 MakeRequestPacketHeader(command, request_packet, command_length); in SendRequestReadMemory()
557 request_packet.PutMaxHex64(addr, command_addr_byte_size); in SendRequestReadMemory()
558 request_packet.PutHex32(dst_len); in SendRequestReadMemory()
560 if (SendRequestAndGetReply(command, request_packet, reply_packet)) { in SendRequestReadMemory()
588 PacketStreamType request_packet(Stream::eBinary, m_addr_byte_size, in SendRequestWriteMemory() local
595 MakeRequestPacketHeader(command, request_packet, command_length); in SendRequestWriteMemory()
596 request_packet.PutMaxHex64(addr, command_addr_byte_size); in SendRequestWriteMemory()
597 request_packet.PutHex32(src_len); in SendRequestWriteMemory()
598 request_packet.PutRawBytes(src, src_len); in SendRequestWriteMemory()
601 if (SendRequestAndGetReply(command, request_packet, reply_packet)) { in SendRequestWriteMemory()
622 PacketStreamType request_packet(Stream::eBinary, m_addr_byte_size, in SendRawRequest() local
627 MakeRequestPacketHeader(command, request_packet, command_length); in SendRawRequest()
628 request_packet.PutRawBytes(src, src_len); in SendRawRequest()
630 if (SendRequestAndGetReply(command, request_packet, reply_packet)) { in SendRawRequest()
1171 PacketStreamType request_packet(Stream::eBinary, m_addr_byte_size, in SendRequestReadRegisters() local
1176 MakeRequestPacketHeader(command, request_packet, command_length); in SendRequestReadRegisters()
1177 request_packet.PutHex32(cpu); in SendRequestReadRegisters()
1178 request_packet.PutHex32(flavor); in SendRequestReadRegisters()
1180 if (SendRequestAndGetReply(command, request_packet, reply_packet)) { in SendRequestReadRegisters()
1214 PacketStreamType request_packet(Stream::eBinary, m_addr_byte_size, in SendRequestWriteRegisters() local
1219 MakeRequestPacketHeader(command, request_packet, command_length); in SendRequestWriteRegisters()
1220 request_packet.PutHex32(cpu); in SendRequestWriteRegisters()
1221 request_packet.PutHex32(flavor); in SendRequestWriteRegisters()
1222 request_packet.Write(src, src_len); in SendRequestWriteRegisters()
1224 if (SendRequestAndGetReply(command, request_packet, reply_packet)) { in SendRequestWriteRegisters()
1239 PacketStreamType request_packet(Stream::eBinary, m_addr_byte_size, in SendRequestResume() local
1243 MakeRequestPacketHeader(command, request_packet, command_length); in SendRequestResume()
1244 request_packet.PutHex32(GetCPUMask()); in SendRequestResume()
1247 return SendRequestAndGetReply(command, request_packet, reply_packet); in SendRequestResume()
1251 PacketStreamType request_packet(Stream::eBinary, m_addr_byte_size, in SendRequestBreakpoint() local
1260 MakeRequestPacketHeader(command, request_packet, command_length); in SendRequestBreakpoint()
1261 request_packet.PutMaxHex64(addr, command_addr_byte_size); in SendRequestBreakpoint()
1264 if (SendRequestAndGetReply(command, request_packet, reply_packet)) { in SendRequestBreakpoint()
1274 PacketStreamType request_packet(Stream::eBinary, m_addr_byte_size, in SendRequestSuspend() local
1278 MakeRequestPacketHeader(command, request_packet, command_length); in SendRequestSuspend()
1280 return SendRequestAndGetReply(command, request_packet, reply_packet); in SendRequestSuspend()