| /openbmc/openpower-vpd-parser/vpd-manager/src/ |
| H A D | worker.cpp | 36 uint16_t l_errCode = 0; in Worker() local 37 m_parsedJson = jsonUtility::getParsedJson(m_configJsonPath, l_errCode); in Worker() 39 if (l_errCode) in Worker() 42 commonUtility::getErrCodeMsg(l_errCode), in Worker() 143 uint16_t l_errCode = 0; in populateKwdVPDpropertyMap() local 146 l_errCode); in populateKwdVPDpropertyMap() 148 if (l_errCode) in populateKwdVPDpropertyMap() 152 commonUtility::getErrCodeMsg(l_errCode)); in populateKwdVPDpropertyMap() 166 uint16_t l_errCode = 0; in populateInterfaces() local 185 parsedVpdMap, l_errCode); in populateInterfaces() [all …]
|
| H A D | gpio_monitor.cpp | 48 uint16_t l_errCode = 0; in handleChangeInGpioPin() local 50 m_worker->getSysCfgJsonObj(), m_fruPath, l_errCode); in handleChangeInGpioPin() 52 if (l_errCode) in handleChangeInGpioPin() 56 commonUtility::getErrCodeMsg(l_errCode)); in handleChangeInGpioPin() 85 uint16_t l_errCode = 0; in handleTimerExpiry() local 88 "hotPlugging", l_errCode); in handleTimerExpiry() 90 if (l_errCode && l_errCode != error_code::DEVICE_NOT_PRESENT) in handleTimerExpiry() 94 commonUtility::getErrCodeMsg(l_errCode)); in handleTimerExpiry() 113 uint16_t l_errCode = 0; in setEventHandlerForGpioPresence() local 116 "hotPlugging", l_errCode); in setEventHandlerForGpioPresence() [all …]
|
| H A D | parser.cpp | 21 std::error_code l_errCode; in Parser() local 36 if (!std::filesystem::exists(m_vpdModeBasedFruPath, l_errCode)) in Parser() 41 if (l_errCode) in Parser() 43 l_message += " Error message: " + l_errCode.message(); in Parser() 67 uint16_t l_errCode = 0; in getVpdParserInstance() local 69 m_vpdStartOffset, l_errCode); in getVpdParserInstance() 71 if (l_errCode) in getVpdParserInstance() 74 commonUtility::getErrCodeMsg(l_errCode)); in getVpdParserInstance() 156 uint16_t l_errCode = 0; in updateVpdKeyword() local 160 l_errCode); in updateVpdKeyword() [all …]
|
| H A D | backup_restore.cpp | 25 uint16_t l_errCode = 0; in BackupAndRestore() local 27 jsonUtility::getParsedJson(l_backupAndRestoreCfgFilePath, l_errCode); in BackupAndRestore() 29 if (l_errCode) in BackupAndRestore() 33 "], error : " + commonUtility::getErrCodeMsg(l_errCode), in BackupAndRestore() 83 uint16_t l_errCode{0}; in getFruAndInvPaths() local 85 m_sysCfgJsonObj, l_fruPath, l_errCode); in getFruAndInvPaths() 92 if (l_errCode) in getFruAndInvPaths() 95 " Error: " + commonUtility::getErrCodeMsg(l_errCode)); in getFruAndInvPaths() 107 uint16_t l_errCode{0}; in getFruAndInvPaths() local 109 l_invObjPath, l_errCode); in getFruAndInvPaths() [all …]
|
| H A D | listener.cpp | 198 uint16_t l_errCode = 0; in registerPresenceChangeCallback() local 201 m_worker->getSysCfgJsonObj(), l_errCode); in registerPresenceChangeCallback() 203 if (l_errCode) in registerPresenceChangeCallback() 207 commonUtility::getErrCodeMsg(l_errCode)); in registerPresenceChangeCallback() 292 uint16_t l_errCode = 0; in registerCorrPropCallBack() local 294 jsonUtility::getParsedJson(i_correlatedPropJsonFile, l_errCode); in registerCorrPropCallBack() 296 if (l_errCode) in registerCorrPropCallBack() 300 commonUtility::getErrCodeMsg(l_errCode), in registerCorrPropCallBack() 529 uint16_t l_errCode = 0; in updateCorrelatedProperty() local 534 commonUtility::convertToBinary(*l_val, l_errCode); in updateCorrelatedProperty() [all …]
|
| H A D | manager.cpp | 172 uint16_t l_errCode{0}; in readVpdCollectionMode() local 174 if (!commonUtility::isFieldModeEnabled(l_errCode)) in readVpdCollectionMode() 176 if (l_errCode) in readVpdCollectionMode() 180 commonUtility::getErrCodeMsg(l_errCode)); in readVpdCollectionMode() 185 m_vpdCollectionMode = commonUtility::getVpdCollectionMode(l_errCode); in readVpdCollectionMode() 187 if (l_errCode) in readVpdCollectionMode() 191 commonUtility::getErrCodeMsg(l_errCode)); in readVpdCollectionMode() 205 uint16_t l_errCode = 0; in updateKeyword() local 217 i_vpdPath, l_errCode); in updateKeyword() 223 if (l_errCode) in updateKeyword() [all …]
|
| H A D | single_fab.cpp | 27 uint16_t l_errCode = 0; in getImFromPersistedLocation() local 29 jsonUtility::getParsedJson(pimPersistVsbpPath, l_errCode); in getImFromPersistedLocation() 31 if (l_errCode) in getImFromPersistedLocation() 36 " ], error : " + commonUtility::getErrCodeMsg(l_errCode), in getImFromPersistedLocation() 164 uint16_t l_errCode = 0; in singleFabImOverride() local 168 commonUtility::isFieldModeEnabled(l_errCode); in singleFabImOverride() 170 if (l_errCode) in singleFabImOverride() 174 commonUtility::getErrCodeMsg(l_errCode)); in singleFabImOverride()
|
| H A D | ipz_parser.cpp | 862 uint16_t l_errCode = 0; in processInvalidRecords() local 866 m_vpdFilePath, m_vpdVector, l_errCode)) in processInvalidRecords() 868 if (l_errCode) in processInvalidRecords() 871 commonUtility::getErrCodeMsg(l_errCode)); in processInvalidRecords()
|
| H A D | bios_handler.cpp | 107 uint16_t l_errCode = 0; in IbmBiosHandler() local 109 jsonUtility::getParsedJson(l_biosHandlerJsonCfgFilePath, l_errCode); in IbmBiosHandler() 110 if (l_errCode) in IbmBiosHandler() 113 commonUtility::getErrCodeMsg(l_errCode), in IbmBiosHandler()
|
| /openbmc/openpower-vpd-parser/test/ |
| H A D | utest_json_utility.cpp | 14 uint16_t l_errCode = 0; in TEST() local 18 jsonUtility::getParsedJson(l_jsonPath, l_errCode); in TEST() 20 if (l_errCode) in TEST() 24 "], error : " + commonUtility::getErrCodeMsg(l_errCode)); in TEST() 28 jsonUtility::isFruPowerOffOnly(l_parsedJson, l_vpdPath, l_errCode); in TEST() 30 if (l_errCode) in TEST() 34 "], error : " + commonUtility::getErrCodeMsg(l_errCode)); in TEST() 42 uint16_t l_errCode = 0; in TEST() local 46 jsonUtility::getParsedJson(l_jsonPath, l_errCode); in TEST() 48 if (l_errCode) in TEST() [all …]
|
| H A D | utest_utils.cpp | 14 uint16_t l_errCode = 0; in TEST() local 19 vpdSpecificUtility::encodeKeyword(key, encoding, l_errCode)); in TEST() 20 if (l_errCode) in TEST() 24 ", error : " + commonUtility::getErrCodeMsg(l_errCode)); in TEST()
|
| /openbmc/openpower-vpd-parser/wait-vpd-parser/src/ |
| H A D | prime_inventory.cpp | 17 uint16_t l_errCode = 0; in PrimeInventory() local 19 vpd::jsonUtility::getParsedJson(INVENTORY_JSON_SYM_LINK, l_errCode); in PrimeInventory() 21 if (l_errCode) in PrimeInventory() 26 " ], error : " + vpd::commonUtility::getErrCodeMsg(l_errCode)); in PrimeInventory() 177 uint16_t l_errCode = 0; in primeInventory() local 180 i_fruJsonObj.value("handlePresence", true), l_errCode); in primeInventory() 182 if (l_errCode) in primeInventory() 187 "], error : " + vpd::commonUtility::getErrCodeMsg(l_errCode)); in primeInventory() 216 uint16_t l_errCode = 0; in primeInventory() local 220 move(l_propertyValueMap), l_errCode); in primeInventory() [all …]
|
| H A D | wait_vpd_parser.cpp | 126 uint16_t l_errCode{0}; in checkAndHandleInventoryBackup() local 133 if (!l_inventoryBackupHandler.restoreInventoryBackupData(l_errCode)) in checkAndHandleInventoryBackup() 140 if (l_inventoryBackupHandler.restartInventoryManagerService(l_errCode)) in checkAndHandleInventoryBackup() 143 l_inventoryBackupHandler.clearInventoryBackupData(l_errCode); in checkAndHandleInventoryBackup()
|
| /openbmc/openpower-vpd-parser/vpd-manager/oem-handler/ |
| H A D | ibm_handler.cpp | 135 uint16_t l_errCode = 0; in initBackupAndRestore() local 152 l_errCode)) in initBackupAndRestore() 154 if (l_errCode) in initBackupAndRestore() 161 commonUtility::getErrCodeMsg(l_errCode)); in initBackupAndRestore() 312 uint16_t l_errCode = 0; in checkAndUpdatePowerVsVpd() local 314 l_sysCfgJsonObj, l_fruPath, l_errCode); in checkAndUpdatePowerVsVpd() 319 if (l_errCode) in checkAndUpdatePowerVsVpd() 324 "], error : " + commonUtility::getErrCodeMsg(l_errCode)); in checkAndUpdatePowerVsVpd() 344 vpdSpecificUtility::getCcinFromDbus(l_inventoryPath, l_errCode); in checkAndUpdatePowerVsVpd() 349 if (l_errCode) in checkAndUpdatePowerVsVpd() [all …]
|
| /openbmc/openpower-vpd-parser/vpd-manager/include/utility/ |
| H A D | event_logger_utility.hpp | 605 uint16_t l_errCode = 0; in createSyncPelWithInvCallOut() local 620 INVENTORY_JSON_SYM_LINK, l_errCode); in createSyncPelWithInvCallOut() 622 if (l_errCode) in createSyncPelWithInvCallOut() 628 commonUtility::getErrCodeMsg(l_errCode)); in createSyncPelWithInvCallOut() 632 l_parsedJson, std::get<0>(i_callouts[0]), l_errCode); in createSyncPelWithInvCallOut() 646 if (l_errCode) in createSyncPelWithInvCallOut() 651 "], error : " + commonUtility::getErrCodeMsg(l_errCode)); in createSyncPelWithInvCallOut()
|