Lines Matching refs:asyncResp

64 inline void getProcessorUUID(std::shared_ptr<bmcweb::AsyncResp> asyncResp,  in getProcessorUUID()  argument
71 [objPath, asyncResp{std::move(asyncResp)}]( in getProcessorUUID()
76 messages::internalError(asyncResp->res); in getProcessorUUID()
79 asyncResp->res.jsonValue["UUID"] = property; in getProcessorUUID()
84 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp, in getCpuDataByInterface() argument
90 asyncResp->res.jsonValue["Status"]["State"] = resource::State::Enabled; in getCpuDataByInterface()
91 asyncResp->res.jsonValue["Status"]["Health"] = resource::Health::OK; in getCpuDataByInterface()
103 messages::internalError(asyncResp->res); in getCpuDataByInterface()
109 asyncResp->res.jsonValue["Status"]["State"] = in getCpuDataByInterface()
118 messages::internalError(asyncResp->res); in getCpuDataByInterface()
123 asyncResp->res.jsonValue["Status"]["Health"] = in getCpuDataByInterface()
133 messages::internalError(asyncResp->res); in getCpuDataByInterface()
136 asyncResp->res.jsonValue["TotalCores"] = *coresCount; in getCpuDataByInterface()
143 asyncResp->res.jsonValue["MaxSpeedMHz"] = *value; in getCpuDataByInterface()
152 asyncResp->res.jsonValue["Socket"] = *value; in getCpuDataByInterface()
160 asyncResp->res.jsonValue["TotalThreads"] = *value; in getCpuDataByInterface()
168 asyncResp->res.jsonValue["ProcessorId"]["EffectiveFamily"] = in getCpuDataByInterface()
178 messages::internalError(asyncResp->res); in getCpuDataByInterface()
183 asyncResp->res.jsonValue["ProcessorId"]["EffectiveModel"] = in getCpuDataByInterface()
192 asyncResp->res in getCpuDataByInterface()
202 messages::internalError(asyncResp->res); in getCpuDataByInterface()
207 asyncResp->res.jsonValue["ProcessorId"]["MicrocodeInfo"] = in getCpuDataByInterface()
216 messages::internalError(asyncResp->res); in getCpuDataByInterface()
221 asyncResp->res.jsonValue["ProcessorId"]["Step"] = in getCpuDataByInterface()
230 std::shared_ptr<bmcweb::AsyncResp> asyncResp, const std::string& cpuId, in getCpuDataByService() argument
238 [cpuId, service, objPath, asyncResp{std::move(asyncResp)}]( in getCpuDataByService()
244 messages::internalError(asyncResp->res); in getCpuDataByService()
247 asyncResp->res.jsonValue["Id"] = cpuId; in getCpuDataByService()
248 asyncResp->res.jsonValue["Name"] = "Processor"; in getCpuDataByService()
249 asyncResp->res.jsonValue["ProcessorType"] = in getCpuDataByService()
256 getCpuDataByInterface(asyncResp, object.second); in getCpuDataByService()
303 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp, in readThrottleProperties() argument
310 messages::internalError(asyncResp->res); in readThrottleProperties()
321 messages::internalError(asyncResp->res); in readThrottleProperties()
325 asyncResp->res.jsonValue["Throttled"] = *status; in readThrottleProperties()
332 messages::internalError(asyncResp->res); in readThrottleProperties()
338 asyncResp->res.jsonValue["ThrottleCauses"] = std::move(rCauses); in readThrottleProperties()
342 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp, in getThrottleProperties() argument
349 [asyncResp](const boost::system::error_code& ec, in getThrottleProperties()
351 readThrottleProperties(asyncResp, ec, properties); in getThrottleProperties()
355 inline void getCpuAssetData(std::shared_ptr<bmcweb::AsyncResp> asyncResp, in getCpuAssetData() argument
362 [objPath, asyncResp{std::move(asyncResp)}]( in getCpuAssetData()
368 messages::internalError(asyncResp->res); in getCpuAssetData()
385 messages::internalError(asyncResp->res); in getCpuAssetData()
391 asyncResp->res.jsonValue["SerialNumber"] = *serialNumber; in getCpuAssetData()
396 asyncResp->res.jsonValue["Model"] = *model; in getCpuAssetData()
401 asyncResp->res.jsonValue["Manufacturer"] = *manufacturer; in getCpuAssetData()
406 asyncResp->res.jsonValue["ProcessorArchitecture"] = "x86"; in getCpuAssetData()
407 asyncResp->res.jsonValue["InstructionSet"] = "x86-64"; in getCpuAssetData()
411 asyncResp->res.jsonValue["ProcessorArchitecture"] = "Power"; in getCpuAssetData()
412 asyncResp->res.jsonValue["InstructionSet"] = "PowerISA"; in getCpuAssetData()
416 asyncResp->res.jsonValue["ProcessorArchitecture"] = "ARM"; in getCpuAssetData()
417 asyncResp->res.jsonValue["InstructionSet"] = "ARM-A64"; in getCpuAssetData()
423 asyncResp->res.jsonValue["PartNumber"] = *partNumber; in getCpuAssetData()
428 asyncResp->res.jsonValue["SparePartNumber"] = *sparePartNumber; in getCpuAssetData()
433 inline void getCpuRevisionData(std::shared_ptr<bmcweb::AsyncResp> asyncResp, in getCpuRevisionData() argument
440 [objPath, asyncResp{std::move(asyncResp)}]( in getCpuRevisionData()
446 messages::internalError(asyncResp->res); in getCpuRevisionData()
458 messages::internalError(asyncResp->res); in getCpuRevisionData()
464 asyncResp->res.jsonValue["Version"] = *version; in getCpuRevisionData()
470 std::shared_ptr<bmcweb::AsyncResp> asyncResp, const std::string& acclrtrId, in getAcceleratorDataByService() argument
476 [acclrtrId, asyncResp{std::move(asyncResp)}]( in getAcceleratorDataByService()
482 messages::internalError(asyncResp->res); in getAcceleratorDataByService()
495 messages::internalError(asyncResp->res); in getAcceleratorDataByService()
515 asyncResp->res.jsonValue["Id"] = acclrtrId; in getAcceleratorDataByService()
516 asyncResp->res.jsonValue["Name"] = "Processor"; in getAcceleratorDataByService()
517 asyncResp->res.jsonValue["Status"]["State"] = state; in getAcceleratorDataByService()
518 asyncResp->res.jsonValue["Status"]["Health"] = health; in getAcceleratorDataByService()
519 asyncResp->res.jsonValue["ProcessorType"] = in getAcceleratorDataByService()
541 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp, in highSpeedCoreIdsHandler() argument
560 nlohmann::json& jsonCoreIds = asyncResp->res.jsonValue["HighSpeedCoreIDs"]; in highSpeedCoreIdsHandler()
581 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp, in getCpuConfigData() argument
591 [asyncResp, cpuId, in getCpuConfigData()
597 messages::internalError(asyncResp->res); in getCpuConfigData()
601 nlohmann::json& json = asyncResp->res.jsonValue; in getCpuConfigData()
613 messages::internalError(asyncResp->res); in getCpuConfigData()
635 messages::internalError(asyncResp->res); in getCpuConfigData()
654 [asyncResp](const boost::system::error_code& ec2, in getCpuConfigData()
661 messages::internalError(asyncResp->res); in getCpuConfigData()
665 highSpeedCoreIdsHandler(asyncResp, baseSpeedList); in getCpuConfigData()
685 inline void getCpuLocationCode(std::shared_ptr<bmcweb::AsyncResp> asyncResp, in getCpuLocationCode() argument
693 [objPath, asyncResp{std::move(asyncResp)}]( in getCpuLocationCode()
698 messages::internalError(asyncResp->res); in getCpuLocationCode()
702 asyncResp->res in getCpuLocationCode()
716 inline void getCpuUniqueId(const std::shared_ptr<bmcweb::AsyncResp>& asyncResp, in getCpuUniqueId() argument
725 [asyncResp](const boost::system::error_code& ec, in getCpuUniqueId()
730 messages::internalError(asyncResp->res); in getCpuUniqueId()
733 asyncResp->res in getCpuUniqueId()
739 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp, in handleProcessorSubtree() argument
750 messages::internalError(asyncResp->res); in handleProcessorSubtree()
779 messages::resourceNotFound(asyncResp->res, "Processor", processorId); in handleProcessorSubtree()
793 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp, in getProcessorObject() argument
814 [asyncResp, processorId, callback{std::move(callback)}]( in getProcessorObject()
817 handleProcessorSubtree(asyncResp, processorId, callback, ec, in getProcessorObject()
823 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp, in getProcessorData() argument
827 asyncResp->res.addHeader( in getProcessorData()
830 asyncResp->res.jsonValue["@odata.type"] = "#Processor.v1_18_0.Processor"; in getProcessorData()
831 asyncResp->res.jsonValue["@odata.id"] = in getProcessorData()
841 getCpuAssetData(asyncResp, serviceName, objectPath); in getProcessorData()
846 getCpuRevisionData(asyncResp, serviceName, objectPath); in getProcessorData()
850 getCpuDataByService(asyncResp, processorId, serviceName, in getProcessorData()
856 getAcceleratorDataByService(asyncResp, processorId, serviceName, in getProcessorData()
863 getCpuConfigData(asyncResp, processorId, serviceName, in getProcessorData()
869 getCpuLocationCode(asyncResp, serviceName, objectPath); in getProcessorData()
873 getProcessorUUID(asyncResp, serviceName, objectPath); in getProcessorData()
878 getCpuUniqueId(asyncResp, serviceName, objectPath); in getProcessorData()
882 getThrottleProperties(asyncResp, serviceName, objectPath); in getProcessorData()
886 getLocationIndicatorActive(asyncResp, objectPath); in getProcessorData()
959 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp, in handleProcessorHead() argument
962 if (!redfish::setUpRedfishRoute(app, req, asyncResp)) in handleProcessorHead()
966 asyncResp->res.addHeader( in handleProcessorHead()
973 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp, in handleProcessorCollectionHead() argument
976 if (!redfish::setUpRedfishRoute(app, req, asyncResp)) in handleProcessorCollectionHead()
980 asyncResp->res.addHeader( in handleProcessorCollectionHead()
987 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp, in handleProcessorGet() argument
990 if (!redfish::setUpRedfishRoute(app, req, asyncResp)) in handleProcessorGet()
997 messages::resourceNotFound(asyncResp->res, "ComputerSystem", in handleProcessorGet()
1003 messages::resourceNotFound(asyncResp->res, "ComputerSystem", in handleProcessorGet()
1009 asyncResp, processorId, in handleProcessorGet()
1010 std::bind_front(getProcessorData, asyncResp, processorId)); in handleProcessorGet()
1014 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp, in doPatchProcessor() argument
1022 patchAppliedOperatingConfig(asyncResp, processorId, *appliedConfigUri, in doPatchProcessor()
1029 setLocationIndicatorActive(asyncResp, objectPath, in doPatchProcessor()
1036 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp, in handleProcessorPatch() argument
1039 if (!redfish::setUpRedfishRoute(app, req, asyncResp)) in handleProcessorPatch()
1046 messages::resourceNotFound(asyncResp->res, "ComputerSystem", in handleProcessorPatch()
1052 messages::resourceNotFound(asyncResp->res, "ComputerSystem", in handleProcessorPatch()
1060 req, asyncResp->res, // in handleProcessorPatch()
1075 asyncResp->res, "AppliedOperatingConfig", *appliedConfigStr); in handleProcessorPatch()
1084 asyncResp, processorId, in handleProcessorPatch()
1085 std::bind_front(doPatchProcessor, asyncResp, processorId, in handleProcessorPatch()
1091 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp, in handleProcessorCollectionGet() argument
1094 if (!redfish::setUpRedfishRoute(app, req, asyncResp)) in handleProcessorCollectionGet()
1101 messages::resourceNotFound(asyncResp->res, "ComputerSystem", in handleProcessorCollectionGet()
1108 messages::resourceNotFound(asyncResp->res, "ComputerSystem", in handleProcessorCollectionGet()
1113 asyncResp->res.addHeader( in handleProcessorCollectionGet()
1117 asyncResp->res.jsonValue["@odata.type"] = in handleProcessorCollectionGet()
1119 asyncResp->res.jsonValue["Name"] = "Processor Collection"; in handleProcessorCollectionGet()
1121 asyncResp->res.jsonValue["@odata.id"] = std::format( in handleProcessorCollectionGet()
1125 asyncResp, in handleProcessorCollectionGet()