Lines Matching defs:asyncResp

56     const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,
73 [pcieDevicePath, asyncResp,
79 messages::internalError(asyncResp->res);
88 messages::resourceNotFound(asyncResp->res, "PCIeDevice", pcieDeviceId);
93 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,
99 [pcieDeviceId, asyncResp,
106 messages::internalError(asyncResp->res);
109 handlePCIeDevicePath(pcieDeviceId, asyncResp, pcieDevicePaths,
117 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,
120 if (!redfish::setUpRedfishRoute(app, req, asyncResp))
127 messages::resourceNotFound(asyncResp->res, "ComputerSystem",
133 messages::resourceNotFound(asyncResp->res, "ComputerSystem",
138 asyncResp->res.addHeader(boost::beast::http::field::link,
141 asyncResp->res.jsonValue["@odata.type"] =
143 asyncResp->res.jsonValue["@odata.id"] = std::format(
145 asyncResp->res.jsonValue["Name"] = "PCIe Device Collection";
146 asyncResp->res.jsonValue["Description"] = "Collection of PCIe Devices";
148 pcie_util::getPCIeDeviceList(asyncResp,
230 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,
237 [callback = std::move(callback), asyncResp, pcieDevicePath](
250 messages::internalError(asyncResp->res);
262 messages::internalError(asyncResp->res);
277 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,
285 messages::internalError(asyncResp->res);
291 [asyncResp](
294 addPCIeSlotProperties(asyncResp->res, ec2, pcieSlotProperties);
299 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,
304 [asyncResp,
307 afterGetDbusObject(asyncResp, pcieDeviceSlot, ec, object);
312 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,
318 [asyncResp](const boost::system::error_code& ec, const bool value) {
325 messages::internalError(asyncResp->res);
332 asyncResp->res.jsonValue["Status"]["Health"] =
339 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,
345 [asyncResp](const boost::system::error_code& ec, bool value) {
351 messages::internalError(asyncResp->res);
358 asyncResp->res.jsonValue["Status"]["State"] =
365 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,
371 [pcieDevicePath, asyncResp{asyncResp}](
380 messages::internalError(asyncResp->res);
399 messages::internalError(asyncResp->res);
405 asyncResp->res.jsonValue["Manufacturer"] = *manufacturer;
409 asyncResp->res.jsonValue["Model"] = *model;
414 asyncResp->res.jsonValue["PartNumber"] = *partNumber;
419 asyncResp->res.jsonValue["SerialNumber"] = *serialNumber;
424 asyncResp->res.jsonValue["SparePartNumber"] = *sparePartNumber;
430 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,
446 messages::internalError(asyncResp->res);
466 messages::internalError(asyncResp->res);
469 asyncResp->res.jsonValue["PCIeInterface"]["PCIeType"] =
490 messages::internalError(asyncResp->res);
493 asyncResp->res.jsonValue["PCIeInterface"]["MaxPCIeType"] =
504 asyncResp->res.jsonValue["PCIeInterface"]["LanesInUse"] = nullptr;
508 asyncResp->res.jsonValue["PCIeInterface"]["LanesInUse"] =
516 asyncResp->res.jsonValue["PCIeInterface"]["MaxLanes"] = *maxLanes;
519 asyncResp->res.jsonValue["PCIeFunctions"]["@odata.id"] =
526 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,
534 [asyncResp,
542 messages::internalError(asyncResp->res);
551 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,
554 asyncResp->res.addHeader(
557 asyncResp->res.jsonValue["@odata.type"] = "#PCIeDevice.v1_9_0.PCIeDevice";
558 asyncResp->res.jsonValue["@odata.id"] =
561 asyncResp->res.jsonValue["Name"] = "PCIe Device";
562 asyncResp->res.jsonValue["Id"] = pcieDeviceId;
563 asyncResp->res.jsonValue["Status"]["State"] = resource::State::Enabled;
564 asyncResp->res.jsonValue["Status"]["Health"] = resource::Health::OK;
568 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,
572 addPCIeDeviceCommonProperties(asyncResp, pcieDeviceId);
573 getPCIeDeviceAsset(asyncResp, pcieDevicePath, service);
574 getPCIeDeviceState(asyncResp, pcieDevicePath, service);
575 getPCIeDeviceHealth(asyncResp, pcieDevicePath, service);
577 asyncResp, pcieDevicePath, service,
578 std::bind_front(addPCIeDeviceProperties, asyncResp, pcieDeviceId));
580 pcieDevicePath, asyncResp,
581 std::bind_front(afterGetPCIeDeviceSlotPath, asyncResp));
586 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,
589 if (!redfish::setUpRedfishRoute(app, req, asyncResp))
596 messages::resourceNotFound(asyncResp->res, "ComputerSystem",
602 messages::resourceNotFound(asyncResp->res, "ComputerSystem",
608 pcieDeviceId, asyncResp,
609 std::bind_front(afterGetValidPcieDevicePath, asyncResp, pcieDeviceId));
660 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,
663 if (!redfish::setUpRedfishRoute(app, req, asyncResp))
670 messages::resourceNotFound(asyncResp->res, "ComputerSystem",
676 pcieDeviceId, asyncResp,
677 [asyncResp, pcieDeviceId](const std::string& pcieDevicePath,
679 asyncResp->res.addHeader(
682 asyncResp->res.jsonValue["@odata.type"] =
684 asyncResp->res.jsonValue["@odata.id"] = boost::urls::format(
687 asyncResp->res.jsonValue["Name"] = "PCIe Function Collection";
688 asyncResp->res.jsonValue["Description"] =
691 asyncResp, pcieDevicePath, service,
692 [asyncResp, pcieDeviceId](
694 addPCIeFunctionList(asyncResp->res, pcieDeviceId,
810 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,
814 if (!redfish::setUpRedfishRoute(app, req, asyncResp))
821 messages::resourceNotFound(asyncResp->res, "ComputerSystem",
827 messages::resourceNotFound(asyncResp->res, "ComputerSystem",
838 messages::resourceNotFound(asyncResp->res, "PCIeFunction",
844 pcieDeviceId, asyncResp,
845 [asyncResp, pcieDeviceId, pcieFunctionId](
848 asyncResp, pcieDevicePath, service,
849 [asyncResp, pcieDeviceId, pcieFunctionId](
852 asyncResp->res, pcieDeviceId, pcieFunctionId);
853 addPCIeFunctionProperties(asyncResp->res, pcieFunctionId,