Lines Matching refs:gpu
183 int result = gpu::packHeader(hdr, msg); in TEST_F()
186 EXPECT_EQ(msg.pci_vendor_id, htobe16(gpu::nvidiaPciVendorId)); in TEST_F()
203 int result = gpu::encodeQueryDeviceIdentificationRequest(instanceId, buf); in TEST_F()
207 gpu::QueryDeviceIdentificationRequest request{}; in TEST_F()
211 htobe16(gpu::nvidiaPciVendorId)); in TEST_F()
220 static_cast<uint8_t>(gpu::DeviceCapabilityDiscoveryCommands:: in TEST_F()
229 std::vector<uint8_t> buf(sizeof(gpu::QueryDeviceIdentificationResponse)); in TEST_F()
231 gpu::QueryDeviceIdentificationResponse response{}; in TEST_F()
237 static_cast<uint8_t>(gpu::MessageType::DEVICE_CAPABILITY_DISCOVERY); in TEST_F()
239 gpu::packHeader(headerInfo, response.hdr.msgHdr.hdr); in TEST_F()
243 gpu::DeviceCapabilityDiscoveryCommands::QUERY_DEVICE_IDENTIFICATION); in TEST_F()
250 static_cast<uint8_t>(gpu::DeviceIdentification::DEVICE_GPU); in TEST_F()
261 int result = gpu::decodeQueryDeviceIdentificationResponse( in TEST_F()
268 static_cast<uint8_t>(gpu::DeviceIdentification::DEVICE_GPU)); in TEST_F()
284 static_cast<uint8_t>(gpu::MessageType::DEVICE_CAPABILITY_DISCOVERY); in TEST_F()
286 gpu::packHeader(headerInfo, response.msgHdr.hdr); in TEST_F()
290 gpu::DeviceCapabilityDiscoveryCommands::QUERY_DEVICE_IDENTIFICATION); in TEST_F()
292 gpu::DeviceCapabilityDiscoveryCommands::QUERY_DEVICE_IDENTIFICATION); in TEST_F()
305 int result = gpu::decodeQueryDeviceIdentificationResponse( in TEST_F()
326 static_cast<uint8_t>(gpu::MessageType::DEVICE_CAPABILITY_DISCOVERY); in TEST_F()
328 gpu::packHeader(headerInfo, msg.hdr); in TEST_F()
337 int result = gpu::decodeQueryDeviceIdentificationResponse( in TEST_F()
351 gpu::encodeGetTemperatureReadingRequest(instanceId, sensorId, buf); in TEST_F()
355 gpu::GetTemperatureReadingRequest request{}; in TEST_F()
359 htobe16(gpu::nvidiaPciVendorId)); in TEST_F()
367 static_cast<uint8_t>(gpu::MessageType::PLATFORM_ENVIRONMENTAL)); in TEST_F()
372 gpu::PlatformEnvironmentalCommands::GET_TEMPERATURE_READING)); in TEST_F()
381 std::vector<uint8_t> buf(sizeof(gpu::GetTemperatureReadingResponse)); in TEST_F()
383 gpu::GetTemperatureReadingResponse response{}; in TEST_F()
389 static_cast<uint8_t>(gpu::MessageType::PLATFORM_ENVIRONMENTAL); in TEST_F()
391 gpu::packHeader(headerInfo, response.hdr.msgHdr.hdr); in TEST_F()
395 gpu::PlatformEnvironmentalCommands::GET_TEMPERATURE_READING); in TEST_F()
411 int result = gpu::decodeGetTemperatureReadingResponse( in TEST_F()
432 static_cast<uint8_t>(gpu::MessageType::DEVICE_CAPABILITY_DISCOVERY); in TEST_F()
434 gpu::packHeader(headerInfo, errorResponse.msgHdr.hdr); in TEST_F()
437 gpu::PlatformEnvironmentalCommands::GET_TEMPERATURE_READING); in TEST_F()
449 int result = gpu::decodeGetTemperatureReadingResponse( in TEST_F()
460 std::vector<uint8_t> buf(sizeof(gpu::GetTemperatureReadingResponse)); in TEST_F()
462 gpu::GetTemperatureReadingResponse response{}; in TEST_F()
468 static_cast<uint8_t>(gpu::MessageType::PLATFORM_ENVIRONMENTAL); in TEST_F()
470 gpu::packHeader(headerInfo, response.hdr.msgHdr.hdr); in TEST_F()
473 gpu::PlatformEnvironmentalCommands::GET_TEMPERATURE_READING); in TEST_F()
487 int result = gpu::decodeGetTemperatureReadingResponse( in TEST_F()
498 std::array<uint8_t, sizeof(gpu::ReadThermalParametersRequest)> buf{}; in TEST_F()
501 gpu::encodeReadThermalParametersRequest(instanceId, sensorId, buf); in TEST_F()
505 gpu::ReadThermalParametersRequest request{}; in TEST_F()
509 htobe16(gpu::nvidiaPciVendorId)); in TEST_F()
517 static_cast<uint8_t>(gpu::MessageType::PLATFORM_ENVIRONMENTAL)); in TEST_F()
522 gpu::PlatformEnvironmentalCommands::READ_THERMAL_PARAMETERS)); in TEST_F()
531 std::array<uint8_t, sizeof(gpu::ReadThermalParametersResponse)> buf{}; in TEST_F()
533 gpu::ReadThermalParametersResponse response{}; in TEST_F()
539 static_cast<uint8_t>(gpu::MessageType::PLATFORM_ENVIRONMENTAL); in TEST_F()
541 gpu::packHeader(headerInfo, response.hdr.msgHdr.hdr); in TEST_F()
545 gpu::PlatformEnvironmentalCommands::READ_THERMAL_PARAMETERS); in TEST_F()
561 int result = gpu::decodeReadThermalParametersResponse( in TEST_F()
583 static_cast<uint8_t>(gpu::MessageType::PLATFORM_ENVIRONMENTAL); in TEST_F()
585 gpu::packHeader(headerInfo, errorResponse.msgHdr.hdr); in TEST_F()
588 gpu::PlatformEnvironmentalCommands::READ_THERMAL_PARAMETERS); in TEST_F()
600 int result = gpu::decodeReadThermalParametersResponse( in TEST_F()
611 std::array<uint8_t, sizeof(gpu::ReadThermalParametersResponse)> buf{}; in TEST_F()
613 gpu::ReadThermalParametersResponse response{}; in TEST_F()
619 static_cast<uint8_t>(gpu::MessageType::PLATFORM_ENVIRONMENTAL); in TEST_F()
621 gpu::packHeader(headerInfo, response.hdr.msgHdr.hdr); in TEST_F()
624 gpu::PlatformEnvironmentalCommands::READ_THERMAL_PARAMETERS); in TEST_F()
638 int result = gpu::decodeReadThermalParametersResponse( in TEST_F()
650 gpu::PlatformEnvironmentalCommands commandCode = in TEST_F()
651 gpu::PlatformEnvironmentalCommands::GET_CURRENT_POWER_DRAW; in TEST_F()
652 std::array<uint8_t, sizeof(gpu::GetPowerDrawRequest)> buf{}; in TEST_F()
654 int result = gpu::encodeGetPowerDrawRequest( in TEST_F()
659 gpu::GetPowerDrawRequest request{}; in TEST_F()
663 htobe16(gpu::nvidiaPciVendorId)); in TEST_F()
671 static_cast<uint8_t>(gpu::MessageType::PLATFORM_ENVIRONMENTAL)); in TEST_F()
685 std::array<uint8_t, sizeof(gpu::GetPowerDrawResponse)> buf{}; in TEST_F()
687 gpu::GetPowerDrawResponse response{}; in TEST_F()
693 static_cast<uint8_t>(gpu::MessageType::PLATFORM_ENVIRONMENTAL); in TEST_F()
695 gpu::packHeader(headerInfo, response.hdr.msgHdr.hdr); in TEST_F()
699 gpu::PlatformEnvironmentalCommands::GET_CURRENT_POWER_DRAW); in TEST_F()
715 int result = gpu::decodeGetPowerDrawResponse(buf, cc, reasonCode, power); in TEST_F()
736 static_cast<uint8_t>(gpu::MessageType::PLATFORM_ENVIRONMENTAL); in TEST_F()
738 gpu::packHeader(headerInfo, errorResponse.msgHdr.hdr); in TEST_F()
741 gpu::PlatformEnvironmentalCommands::GET_CURRENT_POWER_DRAW); in TEST_F()
753 int result = gpu::decodeGetPowerDrawResponse(buf, cc, reasonCode, power); in TEST_F()
763 std::array<uint8_t, sizeof(gpu::GetPowerDrawResponse)> buf{}; in TEST_F()
765 gpu::GetPowerDrawResponse response{}; in TEST_F()
771 static_cast<uint8_t>(gpu::MessageType::PLATFORM_ENVIRONMENTAL); in TEST_F()
773 gpu::packHeader(headerInfo, response.hdr.msgHdr.hdr); in TEST_F()
776 gpu::PlatformEnvironmentalCommands::GET_CURRENT_POWER_DRAW); in TEST_F()
790 int result = gpu::decodeGetPowerDrawResponse(buf, cc, reasonCode, power); in TEST_F()
800 std::array<uint8_t, sizeof(gpu::GetCurrentEnergyCounterRequest)> buf{}; in TEST_F()
803 gpu::encodeGetCurrentEnergyCounterRequest(instanceId, sensorId, buf); in TEST_F()
807 gpu::GetCurrentEnergyCounterRequest request{}; in TEST_F()
811 htobe16(gpu::nvidiaPciVendorId)); in TEST_F()
819 static_cast<uint8_t>(gpu::MessageType::PLATFORM_ENVIRONMENTAL)); in TEST_F()
825 gpu::PlatformEnvironmentalCommands::GET_CURRENT_ENERGY_COUNTER)); in TEST_F()
834 std::array<uint8_t, sizeof(gpu::GetCurrentEnergyCounterResponse)> buf{}; in TEST_F()
836 gpu::GetCurrentEnergyCounterResponse response{}; in TEST_F()
842 static_cast<uint8_t>(gpu::MessageType::PLATFORM_ENVIRONMENTAL); in TEST_F()
844 gpu::packHeader(headerInfo, response.hdr.msgHdr.hdr); in TEST_F()
848 gpu::PlatformEnvironmentalCommands::GET_CURRENT_ENERGY_COUNTER); in TEST_F()
865 gpu::decodeGetCurrentEnergyCounterResponse(buf, cc, reasonCode, energy); in TEST_F()
886 static_cast<uint8_t>(gpu::MessageType::PLATFORM_ENVIRONMENTAL); in TEST_F()
888 gpu::packHeader(headerInfo, errorResponse.msgHdr.hdr); in TEST_F()
891 gpu::PlatformEnvironmentalCommands::GET_CURRENT_ENERGY_COUNTER); in TEST_F()
904 gpu::decodeGetCurrentEnergyCounterResponse(buf, cc, reasonCode, energy); in TEST_F()
914 std::array<uint8_t, sizeof(gpu::GetCurrentEnergyCounterResponse)> buf{}; in TEST_F()
916 gpu::GetCurrentEnergyCounterResponse response{}; in TEST_F()
922 static_cast<uint8_t>(gpu::MessageType::PLATFORM_ENVIRONMENTAL); in TEST_F()
924 gpu::packHeader(headerInfo, response.hdr.msgHdr.hdr); in TEST_F()
927 gpu::PlatformEnvironmentalCommands::GET_CURRENT_ENERGY_COUNTER); in TEST_F()
942 gpu::decodeGetCurrentEnergyCounterResponse(buf, cc, reasonCode, energy); in TEST_F()
952 std::array<uint8_t, sizeof(gpu::GetVoltageRequest)> buf{}; in TEST_F()
954 int result = gpu::encodeGetVoltageRequest(instanceId, sensorId, buf); in TEST_F()
958 gpu::GetVoltageRequest request{}; in TEST_F()
962 htobe16(gpu::nvidiaPciVendorId)); in TEST_F()
970 static_cast<uint8_t>(gpu::MessageType::PLATFORM_ENVIRONMENTAL)); in TEST_F()
975 static_cast<uint8_t>(gpu::PlatformEnvironmentalCommands::GET_VOLTAGE)); in TEST_F()
984 std::array<uint8_t, sizeof(gpu::GetVoltageResponse)> buf{}; in TEST_F()
986 gpu::GetVoltageResponse response{}; in TEST_F()
992 static_cast<uint8_t>(gpu::MessageType::PLATFORM_ENVIRONMENTAL); in TEST_F()
994 gpu::packHeader(headerInfo, response.hdr.msgHdr.hdr); in TEST_F()
998 static_cast<uint8_t>(gpu::PlatformEnvironmentalCommands::GET_VOLTAGE); in TEST_F()
1014 int result = gpu::decodeGetVoltageResponse(buf, cc, reasonCode, voltage); in TEST_F()
1035 static_cast<uint8_t>(gpu::MessageType::PLATFORM_ENVIRONMENTAL); in TEST_F()
1037 gpu::packHeader(headerInfo, errorResponse.msgHdr.hdr); in TEST_F()
1040 static_cast<uint8_t>(gpu::PlatformEnvironmentalCommands::GET_VOLTAGE); in TEST_F()
1052 int result = gpu::decodeGetVoltageResponse(buf, cc, reasonCode, voltage); in TEST_F()
1062 std::array<uint8_t, sizeof(gpu::GetVoltageResponse)> buf{}; in TEST_F()
1064 gpu::GetVoltageResponse response{}; in TEST_F()
1070 static_cast<uint8_t>(gpu::MessageType::PLATFORM_ENVIRONMENTAL); in TEST_F()
1072 gpu::packHeader(headerInfo, response.hdr.msgHdr.hdr); in TEST_F()
1075 static_cast<uint8_t>(gpu::PlatformEnvironmentalCommands::GET_VOLTAGE); in TEST_F()
1089 int result = gpu::decodeGetVoltageResponse(buf, cc, reasonCode, voltage); in TEST_F()