Lines Matching refs:response
117 ocp::accelerator_management::CommonNonSuccessResponse response{}; in TEST_F() local
118 response.command = 0x42; in TEST_F()
119 response.completion_code = static_cast<uint8_t>( in TEST_F()
121 response.reason_code = htole16(0x1234); in TEST_F()
126 std::array<uint8_t, sizeof(response)> buf{}; in TEST_F()
127 std::memcpy(buf.data(), &response, sizeof(response)); in TEST_F()
139 ocp::accelerator_management::CommonNonSuccessResponse response{}; in TEST_F() local
140 response.command = 0x42; in TEST_F()
141 response.completion_code = static_cast<uint8_t>( in TEST_F()
143 response.reason_code = htole16(0x5678); in TEST_F()
148 std::array<uint8_t, sizeof(response)> buf{}; in TEST_F()
149 std::memcpy(buf.data(), &response, sizeof(response)); in TEST_F()
232 gpu::QueryDeviceIdentificationResponse response{}; in TEST_F() local
240 gpu::packHeader(headerInfo, response.hdr.msgHdr.hdr); in TEST_F()
243 response.hdr.command = static_cast<uint8_t>( in TEST_F()
245 response.hdr.completion_code = static_cast<uint8_t>( in TEST_F()
247 response.hdr.reserved = 0; in TEST_F()
248 response.hdr.data_size = in TEST_F()
250 response.device_identification = in TEST_F()
252 response.instance_id = 7; in TEST_F()
254 std::memcpy(buf.data(), &response, sizeof(response)); in TEST_F()
279 ocp::accelerator_management::CommonNonSuccessResponse response{}; in TEST_F() local
287 gpu::packHeader(headerInfo, response.msgHdr.hdr); in TEST_F()
290 response.command = static_cast<uint8_t>( in TEST_F()
292 response.command = static_cast<uint8_t>( in TEST_F()
294 response.completion_code = static_cast<uint8_t>( in TEST_F()
296 response.reason_code = htole16(0x1234); in TEST_F()
298 std::memcpy(buf.data(), &response, sizeof(response)); in TEST_F()
384 gpu::GetTemperatureReadingResponse response{}; in TEST_F() local
392 gpu::packHeader(headerInfo, response.hdr.msgHdr.hdr); in TEST_F()
395 response.hdr.command = static_cast<uint8_t>( in TEST_F()
397 response.hdr.completion_code = static_cast<uint8_t>( in TEST_F()
399 response.hdr.reserved = 0; in TEST_F()
400 response.hdr.data_size = htole16(sizeof(int32_t)); in TEST_F()
403 response.reading = htole32(19328); in TEST_F()
405 std::memcpy(buf.data(), &response, sizeof(response)); in TEST_F()
463 gpu::GetTemperatureReadingResponse response{}; in TEST_F() local
471 gpu::packHeader(headerInfo, response.hdr.msgHdr.hdr); in TEST_F()
473 response.hdr.command = static_cast<uint8_t>( in TEST_F()
475 response.hdr.completion_code = static_cast<uint8_t>( in TEST_F()
477 response.hdr.reserved = 0; in TEST_F()
478 response.hdr.data_size = htole16(1); // Invalid - should be sizeof(int32_t) in TEST_F()
479 response.reading = htole32(19328); in TEST_F()
481 std::memcpy(buf.data(), &response, sizeof(response)); in TEST_F()
534 gpu::ReadThermalParametersResponse response{}; in TEST_F() local
542 gpu::packHeader(headerInfo, response.hdr.msgHdr.hdr); in TEST_F()
545 response.hdr.command = static_cast<uint8_t>( in TEST_F()
547 response.hdr.completion_code = static_cast<uint8_t>( in TEST_F()
549 response.hdr.reserved = 0; in TEST_F()
550 response.hdr.data_size = htole16(sizeof(int32_t)); in TEST_F()
553 response.threshold = htole32(21760); in TEST_F()
555 std::memcpy(buf.data(), &response, sizeof(response)); in TEST_F()
614 gpu::ReadThermalParametersResponse response{}; in TEST_F() local
622 gpu::packHeader(headerInfo, response.hdr.msgHdr.hdr); in TEST_F()
624 response.hdr.command = static_cast<uint8_t>( in TEST_F()
626 response.hdr.completion_code = static_cast<uint8_t>( in TEST_F()
628 response.hdr.reserved = 0; in TEST_F()
629 response.hdr.data_size = htole16(2); // Invalid - should be sizeof(int32_t) in TEST_F()
630 response.threshold = htole32(21760); in TEST_F()
632 std::memcpy(buf.data(), &response, sizeof(response)); in TEST_F()
688 gpu::GetPowerDrawResponse response{}; in TEST_F() local
696 gpu::packHeader(headerInfo, response.hdr.msgHdr.hdr); in TEST_F()
699 response.hdr.command = static_cast<uint8_t>( in TEST_F()
701 response.hdr.completion_code = static_cast<uint8_t>( in TEST_F()
703 response.hdr.reserved = 0; in TEST_F()
704 response.hdr.data_size = htole16(sizeof(uint32_t)); in TEST_F()
707 response.power = htole32(250); in TEST_F()
709 std::memcpy(buf.data(), &response, sizeof(response)); in TEST_F()
766 gpu::GetPowerDrawResponse response{}; in TEST_F() local
774 gpu::packHeader(headerInfo, response.hdr.msgHdr.hdr); in TEST_F()
776 response.hdr.command = static_cast<uint8_t>( in TEST_F()
778 response.hdr.completion_code = static_cast<uint8_t>( in TEST_F()
780 response.hdr.reserved = 0; in TEST_F()
781 response.hdr.data_size = htole16(2); // Invalid - should be sizeof(uint32_t) in TEST_F()
782 response.power = htole32(250); in TEST_F()
784 std::memcpy(buf.data(), &response, sizeof(response)); in TEST_F()
837 gpu::GetCurrentEnergyCounterResponse response{}; in TEST_F() local
845 gpu::packHeader(headerInfo, response.hdr.msgHdr.hdr); in TEST_F()
848 response.hdr.command = static_cast<uint8_t>( in TEST_F()
850 response.hdr.completion_code = static_cast<uint8_t>( in TEST_F()
852 response.hdr.reserved = 0; in TEST_F()
853 response.hdr.data_size = htole16(sizeof(uint64_t)); in TEST_F()
856 response.energy = htole64(3600000); in TEST_F()
858 std::memcpy(buf.data(), &response, sizeof(response)); in TEST_F()
917 gpu::GetCurrentEnergyCounterResponse response{}; in TEST_F() local
925 gpu::packHeader(headerInfo, response.hdr.msgHdr.hdr); in TEST_F()
927 response.hdr.command = static_cast<uint8_t>( in TEST_F()
929 response.hdr.completion_code = static_cast<uint8_t>( in TEST_F()
931 response.hdr.reserved = 0; in TEST_F()
932 response.hdr.data_size = htole16(4); // Invalid - should be sizeof(uint64_t) in TEST_F()
933 response.energy = htole64(3600000); in TEST_F()
935 std::memcpy(buf.data(), &response, sizeof(response)); in TEST_F()
987 gpu::GetVoltageResponse response{}; in TEST_F() local
995 gpu::packHeader(headerInfo, response.hdr.msgHdr.hdr); in TEST_F()
998 response.hdr.command = in TEST_F()
1000 response.hdr.completion_code = static_cast<uint8_t>( in TEST_F()
1002 response.hdr.reserved = 0; in TEST_F()
1003 response.hdr.data_size = htole16(sizeof(uint32_t)); in TEST_F()
1006 response.voltage = htole32(12500); in TEST_F()
1008 std::memcpy(buf.data(), &response, sizeof(response)); in TEST_F()
1065 gpu::GetVoltageResponse response{}; in TEST_F() local
1073 gpu::packHeader(headerInfo, response.hdr.msgHdr.hdr); in TEST_F()
1075 response.hdr.command = in TEST_F()
1077 response.hdr.completion_code = static_cast<uint8_t>( in TEST_F()
1079 response.hdr.reserved = 0; in TEST_F()
1080 response.hdr.data_size = htole16(2); // Invalid - should be sizeof(uint32_t) in TEST_F()
1081 response.voltage = htole32(12500); in TEST_F()
1083 std::memcpy(buf.data(), &response, sizeof(response)); in TEST_F()
1141 ocp::accelerator_management::CommonResponse* response = in TEST_F() local
1150 gpu::packHeader(headerInfo, response->msgHdr.hdr); in TEST_F()
1152 response->command = static_cast<uint8_t>( in TEST_F()
1154 response->completion_code = static_cast<uint8_t>( in TEST_F()
1156 response->reserved = 0; in TEST_F()
1157 response->data_size = htole16(numValues * sizeof(uint32_t)); in TEST_F()
1284 ocp::accelerator_management::CommonResponse* response = in TEST_F() local
1293 gpu::packHeader(headerInfo, response->msgHdr.hdr); in TEST_F()
1295 response->command = in TEST_F()
1297 response->completion_code = static_cast<uint8_t>( in TEST_F()
1299 response->reserved = 0; in TEST_F()
1300 response->data_size = in TEST_F()
1373 ocp::accelerator_management::CommonResponse* response = in TEST_F() local
1382 gpu::packHeader(headerInfo, response->msgHdr.hdr); in TEST_F()
1384 response->command = in TEST_F()
1386 response->completion_code = static_cast<uint8_t>( in TEST_F()
1388 response->reserved = 0; in TEST_F()
1389 response->data_size = htole16(1); in TEST_F()