Lines Matching +full:power +full:- +full:manager
8 * http://www.apache.org/licenses/LICENSE-2.0
17 #include "manager.hpp"
37 namespace phosphor::power::regulators namespace
42 constexpr auto busName = "xyz.openbmc_project.Power.Regulators";
43 constexpr auto managerObjPath = "/xyz/openbmc_project/power/regulators/manager";
54 * implement the D-Bus compatible interface.
62 const fs::path standardConfigFileDir{"/usr/share/phosphor-regulators"};
68 const fs::path testConfigFileDir{"/etc/phosphor-regulators"};
70 Manager::Manager(sdbusplus::bus_t& bus, const sdeventplus::Event& event) : in Manager() function in phosphor::power::regulators::Manager
73 phaseFaultTimer{event, std::bind(&Manager::phaseFaultTimerExpired, this)},
74 sensorTimer{event, std::bind(&Manager::sensorTimerExpired, this)}
79 bus, std::bind_front(&Manager::compatibleSystemTypesFound, this));
87 // Obtain D-Bus service name
97 void Manager::configure() in configure()
109 system->configure(services); in configure()
122 // Throw InternalFailure to propogate error status to D-Bus client in configure()
127 void Manager::monitor(bool enable) in monitor()
167 system->closeDevices(services); in monitor()
172 void Manager::compatibleSystemTypesFound(const std::vector<std::string>& types) in compatibleSystemTypesFound()
189 void Manager::phaseFaultTimerExpired() in phaseFaultTimerExpired()
195 system->detectPhaseFaults(services); in phaseFaultTimerExpired()
199 void Manager::sensorTimerExpired() in sensorTimerExpired()
208 system->monitorSensors(services); in sensorTimerExpired()
215 void Manager::sighupHandler(sdeventplus::source::Signal& /*sigSrc*/, in sighupHandler()
222 void Manager::clearHardwareData() in clearHardwareData()
232 system->clearCache(); in clearHardwareData()
235 system->clearErrorHistory(); in clearHardwareData()
239 fs::path Manager::findConfigFile() in findConfigFile()
254 if ((pos != std::string::npos) && ((systemType.size() - pos) > 1)) in findConfigFile()
285 bool Manager::isSystemPoweredOn() in isSystemPoweredOn()
291 // Get D-Bus property that contains the current power state for in isSystemPoweredOn()
293 using namespace phosphor::power::util; in isSystemPoweredOn()
308 // Current power state might not be available yet. The regulators in isSystemPoweredOn()
309 // application can start before the power state is published on D-Bus. in isSystemPoweredOn()
315 void Manager::loadConfigFile() in loadConfigFile()
350 void Manager::waitUntilConfigFileLoaded() in waitUntilConfigFileLoaded()
362 // to re-find system types on D-Bus because we are not receiving in waitUntilConfigFileLoaded()
364 compatSysTypesFinder->refind(); in waitUntilConfigFileLoaded()
371 timeWaited = std::chrono::system_clock::now() - start; in waitUntilConfigFileLoaded()
376 } // namespace phosphor::power::regulators