| /openbmc/phosphor-power/phosphor-power-supply/ |
| H A D | util_base.hpp | 23 const std::string& invpath) const = 0; 25 virtual void setPresence(sdbusplus::bus_t& bus, const std::string& invpath, 28 virtual void setAvailable(sdbusplus::bus_t& bus, const std::string& invpath, 32 const std::string& invpath, 41 inline bool getPresence(sdbusplus::bus_t& bus, const std::string& invpath) in getPresence() argument 43 return getUtils().getPresence(bus, invpath); in getPresence() 46 inline void setPresence(sdbusplus::bus_t& bus, const std::string& invpath, in setPresence() argument 49 return getUtils().setPresence(bus, invpath, present, name); in setPresence() 52 inline void setAvailable(sdbusplus::bus_t& bus, const std::string& invpath, in setAvailable() argument 55 getUtils().setAvailable(bus, invpath, available); in setAvailable() [all …]
|
| H A D | util.hpp | 30 const std::string& invpath) const override in getPresence() 35 util::getProperty(INVENTORY_IFACE, PRESENT_PROP, invpath, in getPresence() 41 void setPresence(sdbusplus::bus_t& bus, const std::string& invpath, in setPresence() argument 46 "PRESENT", present, "INVPATH", invpath, "NAME", name); in setPresence() 64 invObj.emplace(std::move(invpath), std::move(invIntf)); in setPresence() 87 void setAvailable(sdbusplus::bus_t& bus, const std::string& invpath, in setAvailable() argument 97 invObj.emplace(std::move(invpath), std::move(invIntf)); in setAvailable() 120 const std::string& invpath, in handleChassisHealthRollup() argument 128 auto chassisPath = getChassis(bus, invpath); in handleChassisHealthRollup() 131 invpath, ASSOC_DEF_IFACE, bus); in handleChassisHealthRollup() [all …]
|
| H A D | chassis.cpp | 125 std::string invpath = basePSUInvPath; in getPSUProperties() local 126 invpath.push_back(psuname->back()); in getPSUProperties() 129 lg2::debug("Inventory Path: {INVPATH}", "INVPATH", invpath); in getPSUProperties() 137 std::find_if(psus.begin(), psus.end(), [&invpath](auto& psu) { in getPSUProperties() 138 return psu->getInventoryPath() == invpath; in getPSUProperties() 157 bus, invpath, *i2cbus, *i2caddr, driverName, presline, in getPSUProperties() 164 sdbusplus::bus::match::rules::propertiesChanged(invpath, in getPSUProperties()
|
| H A D | new_power_supply.cpp | 28 sdbusplus::bus_t& bus, const std::string& invpath, std::uint8_t i2cbus, in PowerSupply() argument 32 bus(bus), inventoryPath(invpath), in PowerSupply() 103 sdbusplus::bus_t& bus, const std::string& invpath, std::uint8_t i2cbus, in PowerSupply() argument 106 PowerSupply(bus, invpath, i2cbus, i2caddr, driver, gpioLineName, in PowerSupply() 216 auto invpath = inventoryPath.substr(strlen(INVENTORY_OBJ_PATH)); in updatePresenceGPIO() local 227 setPresence(bus, invpath, present, shortName); in updatePresenceGPIO() 1240 auto invpath = inventoryPath.substr(strlen(INVENTORY_OBJ_PATH)); in checkAvailability() local 1241 phosphor::power::psu::setAvailable(bus, invpath, available); in checkAvailability()
|
| H A D | psu_manager.cpp | 219 std::string invpath = basePSUInvPath; in getPSUProperties() local 220 invpath.push_back(psuname->back()); in getPSUProperties() 223 lg2::debug("Inventory Path: {INVPATH}", "INVPATH", invpath); in getPSUProperties() 231 std::find_if(psus.begin(), psus.end(), [&invpath](auto& psu) { in getPSUProperties() 232 return psu->getInventoryPath() == invpath; in getPSUProperties() 250 bus, invpath, *i2cbus, *i2caddr, driverName, presline, in getPSUProperties() 259 sdbusplus::bus::match::rules::propertiesChanged(invpath, in getPSUProperties()
|
| H A D | power_supply.cpp | 28 sdbusplus::bus_t& bus, const std::string& invpath, std::uint8_t i2cbus, in PowerSupply() argument 31 bus(bus), inventoryPath(invpath), in PowerSupply() 201 auto invpath = inventoryPath.substr(strlen(INVENTORY_OBJ_PATH)); in updatePresenceGPIO() local 212 setPresence(bus, invpath, present, shortName); in updatePresenceGPIO() 1226 auto invpath = inventoryPath.substr(strlen(INVENTORY_OBJ_PATH)); in checkAvailability() local 1227 phosphor::power::psu::setAvailable(bus, invpath, available); in checkAvailability()
|
| H A D | new_power_supply.hpp | 93 PowerSupply(sdbusplus::bus_t& bus, const std::string& invpath, 108 PowerSupply(sdbusplus::bus_t& bus, const std::string& invpath,
|
| H A D | power_supply.hpp | 93 PowerSupply(sdbusplus::bus_t& bus, const std::string& invpath,
|
| /openbmc/phosphor-power/phosphor-power-supply/test/ |
| H A D | mock.hpp | 55 (sdbusplus::bus_t & bus, const std::string& invpath), 58 (sdbusplus::bus_t & bus, const std::string& invpath, 62 (sdbusplus::bus_t & bus, const std::string& invpath, 66 (sdbusplus::bus_t & bus, const std::string& invpath,
|
| /openbmc/witherspoon-pfault-analysis/power-supply/ |
| H A D | main.cpp | 36 auto invpath = (options)["inventory"]; in main() local 56 if (invpath == ArgumentParser::emptyString) in main() 85 objname, std::move(instance), std::move(objpath), std::move(invpath), in main()
|
| H A D | power_supply.hpp | 54 const std::string& objpath, const std::string& invpath,
|
| H A D | power_supply.cpp | 72 const std::string& objpath, const std::string& invpath, in PowerSupply() argument 76 inventoryPath(INVENTORY_OBJ_PATH + invpath), bus(bus), presentInterval(p), in PowerSupply()
|
| /openbmc/phosphor-power/power-supply/ |
| H A D | main.cpp | 34 std::string invpath{}; in main() local 44 app.add_option("-i,--inventory", invpath, in main() 91 objname, std::move(instance), std::move(objpath), std::move(invpath), in main()
|
| H A D | power_supply.hpp | 54 const std::string& objpath, const std::string& invpath,
|
| H A D | power_supply.cpp | 49 const std::string& objpath, const std::string& invpath, in PowerSupply() argument 53 inventoryPath(INVENTORY_OBJ_PATH + invpath), bus(bus), presentInterval(p), in PowerSupply()
|