/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 47 present, invpath, name) in setPresence() 66 invObj.emplace(std::move(invpath), std::move(invIntf)); in setPresence() 91 void setAvailable(sdbusplus::bus_t& bus, const std::string& invpath, in setAvailable() argument 101 invObj.emplace(std::move(invpath), std::move(invIntf)); in setAvailable() 127 const std::string& invpath, in handleChassisHealthRollup() argument 135 auto chassisPath = getChassis(bus, invpath); in handleChassisHealthRollup() 138 invpath, ASSOC_DEF_IFACE, bus); in handleChassisHealthRollup() [all …]
|
H A D | psu_manager.cpp | 224 std::string invpath = basePSUInvPath; in getPSUProperties() local 225 invpath.push_back(psuname->back()); in getPSUProperties() 228 log<level::DEBUG>(std::format("Inventory Path: {}", invpath).c_str()); in getPSUProperties() 236 std::find_if(psus.begin(), psus.end(), [&invpath](auto& psu) { in getPSUProperties() 237 return psu->getInventoryPath() == invpath; in getPSUProperties() 256 bus, invpath, *i2cbus, *i2caddr, driverName, presline, in getPSUProperties() 265 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() 209 auto invpath = inventoryPath.substr(strlen(INVENTORY_OBJ_PATH)); in updatePresenceGPIO() local 220 setPresence(bus, invpath, present, shortName); in updatePresenceGPIO() 1222 auto invpath = inventoryPath.substr(strlen(INVENTORY_OBJ_PATH)); in checkAvailability() local 1223 phosphor::power::psu::setAvailable(bus, invpath, available); in checkAvailability()
|
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 | 36 std::string invpath{}; in main() local 46 app.add_option("-i,--inventory", invpath, in main() 93 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()
|