| /openbmc/phosphor-power/phosphor-regulators/test/ |
| H A D | error_logging_utils_tests.cpp | 73 MockServices services{}; in TEST() local 74 MockErrorLogging& errorLogging = services.getMockErrorLogging(); in TEST() 75 MockJournal& journal = services.getMockJournal(); in TEST() 84 error_logging_utils::logError(eptr, Entry::Level::Error, services); in TEST() 94 MockServices services{}; in TEST() local 97 error_logging_utils::logError(eptr, Entry::Level::Error, services, in TEST() 115 MockServices services{}; in TEST() local 116 MockErrorLogging& errorLogging = services.getMockErrorLogging(); in TEST() 117 MockJournal& journal = services.getMockJournal(); in TEST() 125 error_logging_utils::logError(eptr, Entry::Level::Critical, services, in TEST() [all …]
|
| H A D | phase_fault_detection_tests.cpp | 203 auto setExpectations = [](MockServices& services) { in TEST_F() argument 209 MockJournal& journal = services.getMockJournal(); in TEST_F() 236 MockErrorLogging& errorLogging = services.getMockErrorLogging(); in TEST_F() 248 MockServices services{}; in TEST_F() local 249 setExpectations(services); in TEST_F() 254 detection.execute(services, *system, *chassis, *regulator); in TEST_F() 264 MockServices services{}; in TEST_F() local 265 setExpectations(services); in TEST_F() 270 detection.execute(services, *system, *chassis, *regulator); in TEST_F() 296 MockServices services{}; in TEST_F() local [all …]
|
| H A D | sensor_monitoring_tests.cpp | 157 auto setExpectations = [](MockServices& services) { in TEST() argument 159 MockSensors& sensors = services.getMockSensors(); in TEST() 165 MockJournal& journal = services.getMockJournal(); in TEST() 171 MockErrorLogging& errorLogging = services.getMockErrorLogging(); in TEST() 178 MockServices services{}; in TEST() local 179 setExpectations(services); in TEST() 183 monitoring->execute(services, *system, *chassis, *device, *rail); in TEST() 193 MockServices services{}; in TEST() local 194 setExpectations(services); in TEST() 198 monitoring->execute(services, *system, *chassis, *device, *rail); in TEST() [all …]
|
| H A D | presence_detection_tests.cpp | 125 MockServices services{}; in TEST() local 126 EXPECT_TRUE(detection->execute(services, *system, *chassis, *device)); in TEST() 162 MockServices services{}; in TEST() local 164 services.getMockPresenceService(); in TEST() 172 EXPECT_TRUE(detection->execute(services, *system, *chassis, *device)); in TEST() 184 MockServices services{}; in TEST() local 186 services.getMockPresenceService(); in TEST() 190 EXPECT_TRUE(detection->execute(services, *system, *chassis, *device)); in TEST() 201 MockServices services{}; in TEST() local 203 services.getMockPresenceService(); in TEST() [all …]
|
| H A D | chassis_tests.cpp | 169 MockServices services{}; in TEST_F() local 170 presenceDetectionPtr->execute(services, *system, chassis, *devicePtr); in TEST_F() 217 auto setExpectations = [](MockServices& services) { in TEST_F() argument 219 MockSensors& sensors = services.getMockSensors(); in TEST_F() 225 MockJournal& journal = services.getMockJournal(); in TEST_F() 231 MockErrorLogging& errorLogging = services.getMockErrorLogging(); in TEST_F() 238 MockServices services{}; in TEST_F() local 239 setExpectations(services); in TEST_F() 243 chassis.monitorSensors(services, *system); in TEST_F() 253 MockServices services{}; in TEST_F() local [all …]
|
| H A D | device_tests.cpp | 230 MockServices services{}; in TEST_F() local 231 presenceDetectionPtr->execute(services, *system, *chassis, device); in TEST_F() 288 auto setExpectations = [](MockServices& services) { in TEST_F() argument 293 MockJournal& journal = services.getMockJournal(); in TEST_F() 310 MockErrorLogging& errorLogging = services.getMockErrorLogging(); in TEST_F() 316 MockSensors& sensors = services.getMockSensors(); in TEST_F() 324 MockServices services{}; in TEST_F() local 325 setExpectations(services); in TEST_F() 329 device.monitorSensors(services, *system, *chassis); in TEST_F() 330 device.detectPhaseFaults(services, *system, *chassis); in TEST_F() [all …]
|
| /openbmc/phosphor-power/phosphor-regulators/src/ |
| H A D | device.cpp | 66 void Device::close(Services& services) in close() argument 79 services.getJournal().logError(exception_utils::getMessages(e)); in close() 80 services.getJournal().logError("Unable to close device " + id); in close() 84 Entry::Level::Notice, services); in close() 88 void Device::configure(Services& services, System& system, Chassis& chassis) in configure() argument 91 if (isPresent(services, system, chassis)) in configure() 96 configuration->execute(services, system, chassis, *this); in configure() 102 rail->configure(services, system, chassis, *this); in configure() 107 void Device::detectPhaseFaults(Services& services, System& system, in detectPhaseFaults() argument 111 if (isPresent(services, system, chassis)) in detectPhaseFaults() [all …]
|
| H A D | manager.cpp | 72 services{bus}, 109 system->configure(services); in configure() 114 services.getJournal().logError("Unable to configure regulator devices: " in configure() 119 services.getErrorLogging().logConfigFileError(Entry::Level::Critical, in configure() 120 services.getJournal()); in configure() 138 services.getJournal().logDebug("Monitoring enabled"); in monitor() 147 services.getSensors().enable(); in monitor() 151 services.getJournal().logDebug("Monitoring disabled"); in monitor() 158 services.getSensors().disable(); in monitor() 167 system->closeDevices(services); in monitor() [all …]
|
| H A D | phase_fault_detection.cpp | 45 void PhaseFaultDetection::execute(Services& services, System& system, in execute() argument 57 services}; in execute() 63 checkForPhaseFault(PhaseFaultType::n, services, regulator, environment); in execute() 64 checkForPhaseFault(PhaseFaultType::n_plus_1, services, regulator, in execute() 73 services.getJournal().logError(exception_utils::getMessages(e)); in execute() 74 services.getJournal().logError( in execute() 81 Entry::Level::Warning, services, in execute() 87 PhaseFaultType faultType, Services& services, Device& regulator, in checkForPhaseFault() argument 112 services.getJournal().logError( in checkForPhaseFault() 120 logPhaseFault(faultType, services, regulator, environment); in checkForPhaseFault() [all …]
|
| H A D | chassis.cpp | 51 void Chassis::closeDevices(Services& services) in closeDevices() argument 54 services.getJournal().logDebug( in closeDevices() 60 device->close(services); in closeDevices() 64 void Chassis::configure(Services& services, System& system) in configure() argument 67 services.getJournal().logInfo( in configure() 73 device->configure(services, system, *this); in configure() 77 void Chassis::detectPhaseFaults(Services& services, System& system) in detectPhaseFaults() argument 82 device->detectPhaseFaults(services, system, *this); in detectPhaseFaults() 86 void Chassis::monitorSensors(Services& services, System& system) in monitorSensors() argument 91 device->monitorSensors(services, system, *this); in monitorSensors()
|
| H A D | configuration.cpp | 33 void Configuration::execute(Services& services, System& system, in execute() argument 36 execute(services, system, chassis, device, device.getID()); in execute() 39 void Configuration::execute(Services& services, System& system, in execute() argument 42 execute(services, system, chassis, device, rail.getID()); in execute() 45 void Configuration::execute(Services& services, System& system, in execute() argument 57 services.getJournal().logDebug(message); in execute() 61 services}; in execute() 73 services.getJournal().logError(exception_utils::getMessages(e)); in execute() 74 services.getJournal().logError("Unable to configure " + deviceOrRailID); in execute() 78 Entry::Level::Warning, services); in execute()
|
| H A D | system.cpp | 55 void System::closeDevices(Services& services) in closeDevices() argument 60 oneChassis->closeDevices(services); in closeDevices() 64 void System::configure(Services& services) in configure() argument 69 oneChassis->configure(services, *this); in configure() 73 void System::detectPhaseFaults(Services& services) in detectPhaseFaults() argument 78 oneChassis->detectPhaseFaults(services, *this); in detectPhaseFaults() 82 void System::monitorSensors(Services& services) in monitorSensors() argument 87 oneChassis->monitorSensors(services, *this); in monitorSensors()
|
| H A D | sensor_monitoring.cpp | 43 void SensorMonitoring::execute(Services& services, System& system, in execute() argument 47 Sensors& sensors = services.getSensors(); in execute() 56 services}; in execute() 70 services.getJournal().logError(exception_utils::getMessages(e)); in execute() 71 services.getJournal().logError( in execute() 78 Entry::Level::Warning, services, in execute()
|
| /openbmc/phosphor-power/phosphor-power-sequencer/src/ |
| H A D | standard_device.cpp | 30 Services& services, const std::string& powerSupplyError, in findPgoodFault() argument 37 prepareForPgoodFaultDetection(services); in findPgoodFault() 41 std::vector<int> gpioValues = getGPIOValuesIfPossible(services); in findPgoodFault() 45 findRailWithPgoodFault(services, gpioValues, additionalData); in findPgoodFault() 48 services.logErrorMsg(std::format( in findPgoodFault() 64 storePgoodFaultDebugData(services, gpioValues, additionalData); in findPgoodFault() 76 std::vector<int> StandardDevice::getGPIOValuesIfPossible(Services& services) in getGPIOValuesIfPossible() argument 81 values = getGPIOValues(services); in getGPIOValuesIfPossible() 89 Services& services, const std::vector<int>& gpioValues, in findRailWithPgoodFault() argument 100 if (rail->hasPgoodFaultStatusVout(*this, services, additionalData)) in findRailWithPgoodFault() [all …]
|
| H A D | rail.cpp | 29 bool Rail::isPresent(Services& services) in isPresent() argument 40 present = services.isPresent(inventoryPath); in isPresent() 120 bool Rail::hasPgoodFault(PowerSequencerDevice& device, Services& services, in hasPgoodFault() argument 124 return (hasPgoodFaultStatusVout(device, services, additionalData) || in hasPgoodFault() 125 hasPgoodFaultGPIO(device, services, gpioValues, additionalData) || in hasPgoodFault() 126 hasPgoodFaultOutputVoltage(device, services, additionalData)); in hasPgoodFault() 130 PowerSequencerDevice& device, Services& services, in hasPgoodFaultStatusVout() argument 136 if (isPresent(services) && checkStatusVout) in hasPgoodFaultStatusVout() 145 services.logErrorMsg(std::format( in hasPgoodFaultStatusVout() 150 storePgoodFaultDebugData(device, services, additionalData); in hasPgoodFaultStatusVout() [all …]
|
| H A D | power_control.cpp | 47 services{bus}, 78 services.logInfoMsg("After onFailure wait"); in onFailureCallback() 115 services.logError(error, Entry::Level::Critical, additionalData); in onFailure() 119 services.createBMCDump(); in onFailure() 139 powerSequencer->open(services); in findPgoodFault() 142 services, powerSupplyError, additionalData); in findPgoodFault() 152 services.logErrorMsg(e.what()); in findPgoodFault() 167 services.logErrorMsg(std::format( in pollPgood() 180 services.logError(powerOffTimeoutError, Entry::Level::Critical, in pollPgood() 215 services.logErrorMsg("Chassis pgood failure"); in pollPgood() [all …]
|
| /openbmc/phosphor-power/phosphor-regulators/test/actions/ |
| H A D | action_environment_tests.cpp | 42 MockServices services{}; in TEST() local 56 ActionEnvironment env{idMap, "regulator1", services}; in TEST() 73 MockServices services{}; in TEST() local 74 ActionEnvironment env{idMap, "", services}; in TEST() 87 MockServices services{}; in TEST() local 88 ActionEnvironment env{idMap, "", services}; in TEST() 111 MockServices services{}; in TEST() local 112 ActionEnvironment env{idMap, "", services}; in TEST() 128 MockServices services{}; in TEST() local 129 ActionEnvironment env{idMap, "", services}; in TEST() [all …]
|
| H A D | compare_presence_action_tests.cpp | 66 MockServices services{}; in TEST() local 68 services.getMockPresenceService(); in TEST() 74 ActionEnvironment env{idMap, "reg1", services}; in TEST() 112 MockServices services{}; in TEST() local 114 services.getMockPresenceService(); in TEST() 120 ActionEnvironment env{idMap, "reg1", services}; in TEST() 158 MockServices services{}; in TEST() local 160 services.getMockPresenceService(); in TEST() 168 ActionEnvironment env{idMap, "reg1", services}; in TEST()
|
| /openbmc/phosphor-power/phosphor-power-sequencer/test/ |
| H A D | ucd90160_device_tests.cpp | 101 MockServices services; in TEST() local 102 EXPECT_CALL(services, getGPIOValues("ucd90160")) in TEST() 105 EXPECT_CALL(services, logInfoMsg("Device UCD90160 GPIO values:")) in TEST() 107 EXPECT_CALL(services, in TEST() 113 services, in TEST() 118 EXPECT_CALL(services, in TEST() 122 EXPECT_CALL(services, in TEST() 126 EXPECT_CALL(services, in TEST() 130 EXPECT_CALL(services, logInfoMsg("[GPIO3, GPIO4, GPIO13, GPIO16]: " in TEST() 133 EXPECT_CALL(services, logInfoMsg("[GPIO17, GPIO18]: " in TEST() [all …]
|
| H A D | ucd90320_device_tests.cpp | 103 MockServices services; in TEST() local 104 EXPECT_CALL(services, getGPIOValues("ucd90320")) in TEST() 107 EXPECT_CALL(services, logInfoMsg("Device UCD90320 GPIO values:")) in TEST() 109 EXPECT_CALL(services, logInfoMsg("MAR01-24: [" in TEST() 113 EXPECT_CALL(services, logInfoMsg("EN1-32: [" in TEST() 118 EXPECT_CALL(services, logInfoMsg("LGP01-16: [" in TEST() 122 EXPECT_CALL(services, logInfoMsg("DMON1-8: [" in TEST() 125 EXPECT_CALL(services, logInfoMsg("GPIO1-4: [" in TEST() 128 EXPECT_CALL(services, in TEST() 132 services, in TEST() [all …]
|
| H A D | gpios_only_device_tests.cpp | 58 MockServices services{}; in TEST() local 59 device.open(services); in TEST() 60 device.getGPIOValues(services); in TEST() 77 MockServices services{}; in TEST() local 78 device.open(services); in TEST() 96 MockServices services{}; in TEST() local 97 device.open(services); in TEST() 115 MockServices services{}; in TEST() local 116 device.open(services); in TEST() 134 MockServices services{}; in TEST() local [all …]
|
| H A D | standard_device_tests.cpp | 74 MOCK_METHOD(std::vector<int>, getGPIOValues, (Services & services), 82 MOCK_METHOD(void, prepareForPgoodFaultDetection, (Services & services), 239 MockServices services; in TEST() local 240 device.open(services); in TEST() 244 device.findPgoodFault(services, powerSupplyError, additionalData); in TEST() 278 MockServices services; in TEST() local 279 EXPECT_CALL(services, in TEST() 283 services, in TEST() 287 EXPECT_CALL(services, logErrorMsg("Pgood fault detected in rail PSU")) in TEST() 290 services, in TEST() [all …]
|
| H A D | rail_tests.cpp | 357 MockServices services{}; in TEST() local 358 EXPECT_CALL(services, isPresent).Times(0); in TEST() 360 EXPECT_TRUE(rail.isPresent(services)); in TEST() 375 MockServices services{}; in TEST() local 376 EXPECT_CALL(services, isPresent(*presence)) in TEST() 380 EXPECT_FALSE(rail.isPresent(services)); in TEST() 395 MockServices services{}; in TEST() local 396 EXPECT_CALL(services, isPresent(*presence)) in TEST() 400 EXPECT_TRUE(rail.isPresent(services)); in TEST() 415 MockServices services{}; in TEST() local [all …]
|
| H A D | ucd90x_device_tests.cpp | 108 MockServices services; in TEST() local 109 device.open(services); in TEST() 146 MockServices services; in TEST() local 147 device.open(services); in TEST() 173 MockServices services; in TEST() local 175 EXPECT_CALL(services, getGPIOValues("ucd90320")) in TEST() 178 EXPECT_CALL(services, in TEST() 181 EXPECT_CALL(services, in TEST() 185 services, in TEST() 189 EXPECT_CALL(services, logErrorMsg("Pgood fault detected in rail VDD")) in TEST() [all …]
|
| /openbmc/qemu/backends/ |
| H A D | cryptodev-hmp-cmds.c | 27 g_autofree char *services = NULL; in hmp_info_cryptodev() local 35 if (!services) { in hmp_info_cryptodev() 36 services = g_strdup(service); in hmp_info_cryptodev() 38 tmp_services = g_strjoin("|", services, service, NULL); in hmp_info_cryptodev() 39 g_free(services); in hmp_info_cryptodev() 40 services = tmp_services; in hmp_info_cryptodev() 43 monitor_printf(mon, "%s: service=[%s]\n", info->id, services); in hmp_info_cryptodev()
|