Lines Matching refs:adpfs

340     std::vector<std::shared_ptr<AdpfConfig>> adpfs = HintManager::ParseAdpfConfigs(json_doc);  in GetFromJSON()  local
341 if (adpfs.empty()) { in GetFromJSON()
355 sInstance = std::make_unique<HintManager>(std::move(nm), actions, adpfs, gpu_sysfs_node); in GetFromJSON()
665 static_assert(std::is_same<decltype(adpfs[i][ENTRY].as##TYPE()), decltype(VARIABLE)>::value, \
667 if (adpfs[i][ENTRY].empty() || !adpfs[i][ENTRY].is##TYPE()) { \
672 VARIABLE = adpfs[i][ENTRY].as##TYPE()
675 static_assert(std::is_same<decltype(adpfs[i][ENTRY].as##TYPE()), \
678 if (!adpfs[i][ENTRY].empty() && adpfs[i][ENTRY].is##TYPE()) { \
679 VARIABLE = adpfs[i][ENTRY].as##TYPE(); \
715 Json::Value adpfs = root["AdpfConfig"]; in ParseAdpfConfigs() local
716 for (Json::Value::ArrayIndex i = 0; i < adpfs.size(); ++i) { in ParseAdpfConfigs()
720 std::string name = adpfs[i]["Name"].asString(); in ParseAdpfConfigs()
784 if (!adpfs[i]["GpuBoost"].empty() && adpfs[i]["GpuBoost"].isBool()) { in ParseAdpfConfigs()
785 gpuBoost = adpfs[i]["GpuBoost"].asBool(); in ParseAdpfConfigs()
787 if (!adpfs[i]["GpuCapacityBoostMax"].empty() && in ParseAdpfConfigs()
788 adpfs[i]["GpuCapacityBoostMax"].isUInt64()) { in ParseAdpfConfigs()
789 gpuBoostCapacityMax = adpfs[i]["GpuCapacityBoostMax"].asUInt64(); in ParseAdpfConfigs()
791 if (!adpfs[i]["GpuCapacityLoadUpHeadroom"].empty() && in ParseAdpfConfigs()
792 adpfs[i]["GpuCapacityLoadUpHeadroom"].isUInt64()) { in ParseAdpfConfigs()
793 gpuCapacityLoadUpHeadroom = adpfs[i]["GpuCapacityLoadUpHeadroom"].asUInt64(); in ParseAdpfConfigs()