| /openbmc/bmcweb/redfish-core/lib/ |
| H A D | thermal_subsystem.hpp | 29 const std::string& chassisId, in doThermalSubsystemCollection() argument 34 BMCWEB_LOG_WARNING("Not a valid chassis ID{}", chassisId); in doThermalSubsystemCollection() 35 messages::resourceNotFound(asyncResp->res, "Chassis", chassisId); in doThermalSubsystemCollection() 48 "/redfish/v1/Chassis/{}/ThermalSubsystem", chassisId); in doThermalSubsystemCollection() 51 "/redfish/v1/Chassis/{}/ThermalSubsystem/Fans", chassisId); in doThermalSubsystemCollection() 56 chassisId); in doThermalSubsystemCollection() 65 const std::string& chassisId) in handleThermalSubsystemCollectionHead() argument 72 auto respHandler = [asyncResp, chassisId]( in handleThermalSubsystemCollectionHead() 76 messages::resourceNotFound(asyncResp->res, "Chassis", chassisId); in handleThermalSubsystemCollectionHead() 83 redfish::chassis_utils::getValidChassisPath(asyncResp, chassisId, in handleThermalSubsystemCollectionHead() [all …]
|
| H A D | thermal_metrics.hpp | 38 const std::string& chassisId, const std::string& path, in afterGetTemperatureValue() argument 59 path, chassisId, sensor_utils::ChassisSubNode::thermalMetricsNode, in afterGetTemperatureValue() 83 const std::string& chassisId, const boost::system::error_code& ec, in handleTemperatureReadingsCelsius() argument 106 [asyncResp, chassisId, in handleTemperatureReadingsCelsius() 109 afterGetTemperatureValue(asyncResp, chassisId, sensorPath, ec1, in handleTemperatureReadingsCelsius() 117 const std::string& validChassisPath, const std::string& chassisId) in getTemperatureReadingsCelsius() argument 126 chassisId)); in getTemperatureReadingsCelsius() 131 const std::string& chassisId, in doThermalMetrics() argument 136 messages::resourceNotFound(asyncResp->res, "Chassis", chassisId); in doThermalMetrics() 146 "/redfish/v1/Chassis/{}/ThermalSubsystem/ThermalMetrics", chassisId); in doThermalMetrics() [all …]
|
| H A D | environment_metrics.hpp | 36 const std::string& chassisId, const std::string& path, in afterGetPowerWatts() argument 56 path, chassisId, in afterGetPowerWatts() 66 const std::string& chassisId, const boost::system::error_code& ec, in handleTotalPowerList() argument 100 [asyncResp, chassisId, in handleTotalPowerList() 103 afterGetPowerWatts(asyncResp, chassisId, sensorPath, ec1, in handleTotalPowerList() 110 const std::string& chassisId, const boost::system::error_code& ec, in getTotalPowerSensor() argument 139 std::bind_front(handleTotalPowerList, asyncResp, chassisId)); in getTotalPowerSensor() 164 const std::string& chassisId) in getPowerWatts() argument 172 std::bind_front(getTotalPowerSensor, asyncResp, chassisId)); in getPowerWatts() 178 const std::string& chassisId) in handleEnvironmentMetricsHead() argument [all …]
|
| H A D | power_subsystem.hpp | 29 const std::string& chassisId, in doPowerSubsystemCollection() argument 34 messages::resourceNotFound(asyncResp->res, "Chassis", chassisId); in doPowerSubsystemCollection() 46 boost::urls::format("/redfish/v1/Chassis/{}/PowerSubsystem", chassisId); in doPowerSubsystemCollection() 51 "/redfish/v1/Chassis/{}/PowerSubsystem/PowerSupplies", chassisId); in doPowerSubsystemCollection() 57 const std::string& chassisId) in handlePowerSubsystemCollectionHead() argument 64 auto respHandler = [asyncResp, chassisId]( in handlePowerSubsystemCollectionHead() 68 messages::resourceNotFound(asyncResp->res, "Chassis", chassisId); in handlePowerSubsystemCollectionHead() 75 redfish::chassis_utils::getValidChassisPath(asyncResp, chassisId, in handlePowerSubsystemCollectionHead() 82 const std::string& chassisId) in handlePowerSubsystemCollectionGet() argument 90 asyncResp, chassisId, in handlePowerSubsystemCollectionGet() [all …]
|
| H A D | fan.hpp | 39 const std::string& chassisId, in updateFanList() argument 54 "/redfish/v1/Chassis/{}/ThermalSubsystem/Fans/{}", chassisId, in updateFanList() 63 const std::string& chassisId, in doFanCollection() argument 68 messages::resourceNotFound(asyncResp->res, "Chassis", chassisId); in doFanCollection() 77 "/redfish/v1/Chassis/{}/ThermalSubsystem/Fans", chassisId); in doFanCollection() 80 "The collection of Fan resource instances " + chassisId; in doFanCollection() 86 std::bind_front(updateFanList, asyncResp, chassisId)); in doFanCollection() 92 const std::string& chassisId) in handleFanCollectionHead() argument 100 asyncResp, chassisId, in handleFanCollectionHead() 102 chassisId](const std::optional<std::string>& validChassisPath) { in handleFanCollectionHead() [all …]
|
| H A D | chassis.hpp | 285 const std::string& chassisId, const boost::system::error_code& ec, in getChassisContainedBy() argument 303 BMCWEB_LOG_ERROR("{} is contained by multiple chassis", chassisId); in getChassisContainedBy() 314 upstreamChassisPath.str, chassisId); in getChassisContainedBy() 324 const std::string& chassisId, const boost::system::error_code& ec, in getChassisContains() argument 353 downstreamChassisPath.str, chassisId); in getChassisContains() 366 const std::string& chassisId, const std::string& chassisPath) in getChassisConnectivity() argument 374 std::bind_front(getChassisContainedBy, asyncResp, chassisId)); in getChassisConnectivity() 380 std::bind_front(getChassisContains, asyncResp, chassisId)); in getChassisConnectivity() 437 const std::string& chassisId, const std::string& path, in handleDecoratorAssetProperties() argument 443 asyncResp->res.jsonValue["Name"] = chassisId; in handleDecoratorAssetProperties() [all …]
|
| H A D | power_supply.hpp | 47 const std::string& chassisId, in updatePowerSupplyList() 62 "/redfish/v1/Chassis/{}/PowerSubsystem/PowerSupplies/{}", chassisId, in updatePowerSupplyList() 72 const std::string& chassisId, const boost::system::error_code& ec, in doPowerSupplyCollection() 80 messages::resourceNotFound(asyncResp->res, "Chassis", chassisId); in doPowerSupplyCollection() 97 "/redfish/v1/Chassis/{}/PowerSubsystem/PowerSupplies", chassisId); in doPowerSupplyCollection() 103 updatePowerSupplyList(asyncResp, chassisId, subtreePaths); in doPowerSupplyCollection() 109 const std::string& chassisId) in handlePowerSupplyCollectionHead() 117 asyncResp, chassisId, in handlePowerSupplyCollectionHead() 119 chassisId](const std::optional<std::string>& validChassisPath) { in handlePowerSupplyCollectionHead() 124 chassisId); in handlePowerSupplyCollectionHead() 46 updatePowerSupplyList(const std::shared_ptr<bmcweb::AsyncResp> & asyncResp,const std::string & chassisId,const dbus::utility::MapperGetSubTreePathsResponse & powerSupplyPaths) updatePowerSupplyList() argument 71 doPowerSupplyCollection(const std::shared_ptr<bmcweb::AsyncResp> & asyncResp,const std::string & chassisId,const boost::system::error_code & ec,const dbus::utility::MapperGetSubTreePathsResponse & subtreePaths) doPowerSupplyCollection() argument 108 handlePowerSupplyCollectionHead(App & app,const crow::Request & req,const std::shared_ptr<bmcweb::AsyncResp> & asyncResp,const std::string & chassisId) handlePowerSupplyCollectionHead() argument 135 handlePowerSupplyCollectionGet(App & app,const crow::Request & req,const std::shared_ptr<bmcweb::AsyncResp> & asyncResp,const std::string & chassisId) handlePowerSupplyCollectionGet() argument 207 getValidPowerSupplyPath(const std::shared_ptr<bmcweb::AsyncResp> & asyncResp,const std::string & chassisId,const std::string & powerSupplyId,std::function<void (const std::string & powerSupplyPath,const std::string & service)> && callback) getValidPowerSupplyPath() argument 480 doPowerSupplyGet(const std::shared_ptr<bmcweb::AsyncResp> & asyncResp,const std::string & chassisId,const std::string & powerSupplyId,const std::string & powerSupplyPath,const std::string & service) doPowerSupplyGet() argument 516 handlePowerSupplyHead(App & app,const crow::Request & req,const std::shared_ptr<bmcweb::AsyncResp> & asyncResp,const std::string & chassisId,const std::string & powerSupplyId) handlePowerSupplyHead() argument 544 handlePowerSupplyGet(App & app,const crow::Request & req,const std::shared_ptr<bmcweb::AsyncResp> & asyncResp,const std::string & chassisId,const std::string & powerSupplyId) handlePowerSupplyGet() argument 567 handlePowerSupplyPatch(App & app,const crow::Request & req,const std::shared_ptr<bmcweb::AsyncResp> & asyncResp,const std::string & chassisId,const std::string & powerSupplyId) handlePowerSupplyPatch() argument [all...] |
| H A D | storage_chassis.hpp | 352 asyncResp, [](const std::string& chassisId, in afterGetSubtreeSystemsStorageDrive() 355 boost::urls::format("/redfish/v1/Chassis/{}", chassisId); in afterGetSubtreeSystemsStorageDrive() 367 const std::string& chassisId, const boost::system::error_code& ec, in afterChassisDriveCollectionSubtreeGet() argument 374 messages::resourceNotFound(asyncResp->res, "Chassis", chassisId); in afterChassisDriveCollectionSubtreeGet() 385 if (objPath.filename() != chassisId) in afterChassisDriveCollectionSubtreeGet() 399 boost::urls::format("/redfish/v1/Chassis/{}/Drives", chassisId); in afterChassisDriveCollectionSubtreeGet() 405 [asyncResp, chassisId](const boost::system::error_code& ec3, in afterChassisDriveCollectionSubtreeGet() 429 chassisId, leafName); in afterChassisDriveCollectionSubtreeGet() 446 const std::string& chassisId) in chassisDriveCollectionGet() argument 457 chassisId)); in chassisDriveCollectionGet() [all …]
|
| H A D | power.hpp | 80 sensorsAsyncResp->chassisId); in afterGetChassisPath() 137 "/redfish/v1/Chassis/" + sensorAsyncResp->chassisId + in afterPowerCapSettingGet() 241 if (interfaceChassisName == sensorAsyncResp->chassisId) in afterGetChassis() 251 sensorAsyncResp->chassisId); in afterGetChassis() 322 sensorAsyncResp->asyncResp, sensorAsyncResp->chassisId, in handleChassisPowerPatch()
|
| H A D | sensors.hpp | 146 asyncResp(asyncRespIn), chassisId(chassisIdIn), types(typesIn), in SensorsAsyncResp() 156 asyncResp(asyncRespIn), chassisId(chassisIdIn), types(typesIn), in SensorsAsyncResp() 167 asyncResp(asyncRespIn), chassisId(chassisIdIn), types(typesIn), in SensorsAsyncResp() 246 const std::string chassisId; member in redfish::SensorsAsyncResp 431 std::string_view chassisId, std::string_view chassisSubNode, in getChassis() argument 441 chassisIdStr{std::string(chassisId)}, in getChassis() 577 sensorsAsyncResp->chassisId) != in populateFanRedundancy() 703 sensorsAsyncResp->chassisId, in populateFanRedundancy() 1795 const std::string& chassisId) in getPowerSupply() argument 1823 boost::urls::format("/redfish/v1/Chassis/{}/Power", chassisId); in getPowerSupply() [all …]
|
| H A D | redfish_util.hpp | 92 std::string chassisId = subtree[0].first.substr(idPos + 1); in getMainChassisId() local 93 BMCWEB_LOG_DEBUG("chassisId = {}", chassisId); in getMainChassisId() 94 callback(chassisId, asyncResp); in getMainChassisId()
|
| H A D | log_services.hpp | 1236 const std::string& chassisId) in handleLogServicesDumpServiceComputerSystemGet() argument 1242 if (chassisId != BMCWEB_REDFISH_SYSTEM_URI_NAME) in handleLogServicesDumpServiceComputerSystemGet() 1244 messages::resourceNotFound(asyncResp->res, "ComputerSystem", chassisId); in handleLogServicesDumpServiceComputerSystemGet() 1271 const std::string& chassisId) in handleLogServicesDumpEntriesCollectionComputerSystemGet() argument 1277 if (chassisId != BMCWEB_REDFISH_SYSTEM_URI_NAME) in handleLogServicesDumpEntriesCollectionComputerSystemGet() 1279 messages::resourceNotFound(asyncResp->res, "ComputerSystem", chassisId); in handleLogServicesDumpEntriesCollectionComputerSystemGet() 1305 const std::string& chassisId, const std::string& dumpId) in handleLogServicesDumpEntryComputerSystemGet() argument 1311 if (chassisId != BMCWEB_REDFISH_SYSTEM_URI_NAME) in handleLogServicesDumpEntryComputerSystemGet() 1313 messages::resourceNotFound(asyncResp->res, "ComputerSystem", chassisId); in handleLogServicesDumpEntryComputerSystemGet() 1340 const std::string& chassisId, const std::string& dumpId) in handleLogServicesDumpEntryComputerSystemDelete() argument [all …]
|
| /openbmc/phosphor-state-manager/ |
| H A D | chassis_state_manager_main.cpp | 24 size_t chassisId = 0; in main() local 35 chassisId = std::stoul(optarg); in main() 46 auto chassisBusName = ChassisState::interface + std::to_string(chassisId); in main() 49 std::to_string(chassisId); in main() 53 if (chassisId == 0) in main() 63 fs::path newPohPath{std::format(POH_COUNTER_PERSIST_PATH, chassisId)}; in main() 65 std::format(CHASSIS_STATE_CHANGE_PERSIST_PATH, chassisId)}; in main() 79 chassisId); in main() 83 if (chassisId == 0) in main()
|
| H A D | chassis_check_power_status.cpp | 28 size_t chassisId = 0; in main() local 41 chassisId = std::stoul(optarg); in main() 49 std::to_string(chassisId); in main()
|
| H A D | utils.hpp | 92 bool checkACLoss(size_t& chassisId);
|
| H A D | bmc_state_manager.cpp | 354 size_t chassisId = 0; in discoverLastRebootCause() local 355 if (phosphor::state::manager::utils::checkACLoss(chassisId)) in discoverLastRebootCause()
|
| H A D | utils.cpp | 233 bool checkACLoss(size_t& chassisId) in checkACLoss() argument 236 std::format(CHASSIS_LOST_POWER_FILE, chassisId); in checkACLoss()
|
| /openbmc/bmcweb/redfish-core/include/utils/ |
| H A D | chassis_utils.hpp | 35 const std::string& chassisId, Callback&& callback) in getValidChassisPath() argument 43 chassisId](const boost::system::error_code& ec, in getValidChassisPath() 65 if (chassisName == chassisId) in getValidChassisPath()
|
| H A D | assembly_utils.hpp | 77 const std::string& chassisId, in getChassisAssembly() argument 85 chassisId, "/xyz/openbmc_project/inventory", chassisInterfaces, in getChassisAssembly()
|
| /openbmc/phosphor-power/ |
| H A D | utility.cpp | 231 uint32_t chassisId; in getChassisInventoryUniqueId() local 233 INVENTORY_MGR_IFACE, bus, chassisId); in getChassisInventoryUniqueId() 234 return static_cast<uint64_t>(chassisId); in getChassisInventoryUniqueId() 240 uint64_t chassisId; in getParentEMUniqueId() local 243 ENTITY_MGR_SERVICE, bus, chassisId); in getParentEMUniqueId() 244 return chassisId; in getParentEMUniqueId()
|
| /openbmc/bmcweb/test/redfish-core/lib/ |
| H A D | thermal_subsystem_test.cpp | 20 constexpr const char* chassisId = "ChassisId"; variable 41 shareAsyncResp, chassisId, in TEST()
|
| H A D | power_subsystem_test.cpp | 20 constexpr const char* chassisId = "ChassisId"; variable 42 shareAsyncResp, chassisId, in TEST()
|
| H A D | chassis_test.cpp | 29 void assertChassisResetActionInfoGet(const std::string& chassisId, in assertChassisResetActionInfoGet() argument 34 "/redfish/v1/Chassis/" + chassisId + "/ResetActionInfo"); in assertChassisResetActionInfoGet()
|
| /openbmc/phosphor-power/phosphor-power-supply/ |
| H A D | chassis_manager.cpp | 102 uint64_t chassisId) in getMatchingChassisPtr() argument 106 if (chassisPtr->getChassisId() == chassisId) in getMatchingChassisPtr() 111 lg2::debug("Chassis ID {ID} not found", "ID", chassisId); in getMatchingChassisPtr()
|
| H A D | chassis_manager.hpp | 124 uint64_t chassisId);
|