| /openbmc/openpower-vpd-parser/vpd-tool/src/ |
| H A D | vpd_tool_main.cpp | 85 const std::string& i_vpdPath, const std::string& i_recordName, in writeKeyword() argument 91 if (!i_hardwareFlag->empty() && !std::filesystem::exists(i_vpdPath, l_ec)) in writeKeyword() 93 std::cerr << "Given EEPROM file path doesn't exist[" + i_vpdPath << "]." in writeKeyword() 141 return l_vpdToolObj.writeKeyword(i_vpdPath, i_recordName, i_keywordName, in writeKeyword() 156 int readKeyword(const auto& i_hardwareFlag, const std::string& i_vpdPath, in readKeyword() argument 162 if (!i_hardwareFlag->empty() && !std::filesystem::exists(i_vpdPath, l_ec)) in readKeyword() 165 "Given EEPROM file path doesn't exist : " + i_vpdPath}; in readKeyword() 180 return l_vpdToolObj.readKeyword(i_vpdPath, i_recordName, i_keywordName, in readKeyword() 202 int checkOptionValuePair(const auto& i_objectOption, const auto& i_vpdPath, in checkOptionValuePair() argument 207 if (!i_objectOption->empty() && i_vpdPath.empty()) in checkOptionValuePair()
|
| H A D | vpd_tool.cpp | 34 const std::string& i_vpdPath, const std::string& i_recordName, in readKeyword() argument 45 i_vpdPath, std::make_tuple(i_recordName, i_keywordName)); in readKeyword() 50 constants::baseInventoryPath + i_vpdPath); in readKeyword() 76 utils::displayOnConsole(i_vpdPath, i_keywordName, in readKeyword() 96 utils::displayOnConsole(i_vpdPath, i_keywordName, in readKeyword() 111 std::cerr << "Read keyword's value failed for path: " << i_vpdPath in readKeyword() 423 std::string i_vpdPath, const std::string& i_recordName, in writeKeyword() argument 430 if (i_vpdPath.empty() || i_recordName.empty() || in writeKeyword() 442 l_rc = utils::writeKeywordOnHardware(i_vpdPath, l_paramsToWrite); in writeKeyword() 446 i_vpdPath = constants::baseInventoryPath + i_vpdPath; in writeKeyword() [all …]
|
| /openbmc/openpower-vpd-parser/vpd-manager/include/utility/ |
| H A D | json_utility.hpp | 159 const nlohmann::json& i_sysCfgJsonObj, const std::string& i_vpdPath, in getInventoryObjPathFromJson() argument 163 if (i_vpdPath.empty()) in getInventoryObjPathFromJson() 176 if (i_sysCfgJsonObj["frus"].contains(i_vpdPath)) in getInventoryObjPathFromJson() 178 return i_sysCfgJsonObj["frus"][i_vpdPath].at(0).value( in getInventoryObjPathFromJson() 192 if (i_vpdPath == i_sysCfgJsonObj["frus"][l_fruPath].at(0).value( in getInventoryObjPathFromJson() 194 (i_vpdPath == l_invObjPath)) in getInventoryObjPathFromJson() 612 const nlohmann::json& i_sysCfgJsonObj, const std::string& i_vpdPath, in getRedundantEepromPathFromJson() argument 616 if (i_vpdPath.empty()) in getRedundantEepromPathFromJson() 629 if (i_sysCfgJsonObj["frus"].contains(i_vpdPath)) in getRedundantEepromPathFromJson() 631 return i_sysCfgJsonObj["frus"][i_vpdPath].at(0).value( in getRedundantEepromPathFromJson() [all …]
|
| H A D | vpd_specific_utility.hpp | 1403 const std::string& i_vpdPath, const types::VpdCollectionStatus& i_value, in setCollectionStatusProperty() argument 1407 if (i_vpdPath.empty()) in setCollectionStatusProperty() 1442 jsonUtility::getFruPathFromJson(i_sysCfgJsonObj, i_vpdPath, o_errCode); in setCollectionStatusProperty() 1496 inline void resetObjTreeVpd(const std::string& i_vpdPath, in resetObjTreeVpd() argument 1501 if (i_vpdPath.empty() || i_sysCfgJsonObj.empty()) in resetObjTreeVpd() 1510 i_sysCfgJsonObj, i_vpdPath, o_errCode); in resetObjTreeVpd() 1557 "Failed to reset FRU data on DBus for FRU [" + i_vpdPath + in resetObjTreeVpd()
|
| /openbmc/openpower-vpd-parser/vpd-manager/src/ |
| H A D | manager.cpp | 60 [this](const types::Path i_vpdPath, in Manager() 62 return this->updateKeyword(i_vpdPath, i_paramsToWriteData); in Manager() 193 int Manager::updateKeyword(const types::Path i_vpdPath, in updateKeyword() argument 196 if (i_vpdPath.empty()) in updateKeyword() 214 i_vpdPath, l_errCode); in updateKeyword() 223 "Failed to get FRU path from JSON for [" + i_vpdPath + in updateKeyword() 227 l_fruPath = i_vpdPath; in updateKeyword() 322 " on path[" + i_vpdPath + "] : " + in updateKeyword() 332 logging::logMessage("Update keyword failed for file[" + i_vpdPath + in updateKeyword() 61 __anon46d8d0750202(const types::Path i_vpdPath, const types::WriteVpdParams i_paramsToWriteData) Manager() argument
|
| H A D | worker.cpp | 1285 void Worker::setPresentProperty(const std::string& i_vpdPath, in setPresentProperty() argument 1290 if (i_vpdPath.empty()) in setPresentProperty() 1299 if (m_parsedJson["frus"].contains(i_vpdPath)) in setPresentProperty() 1301 for (const auto& l_Fru : m_parsedJson["frus"][i_vpdPath]) in setPresentProperty() 1329 if (i_vpdPath.find(constants::pimPath) != constants::VALUE_0) in setPresentProperty() 1332 "Invalid inventory path: " + i_vpdPath); in setPresentProperty() 1351 l_objectInterfaceMap.emplace(i_vpdPath, std::move(l_interfaces)); in setPresentProperty() 1360 i_vpdPath); in setPresentProperty()
|
| /openbmc/openpower-vpd-parser/vpd-tool/include/ |
| H A D | vpd_tool.hpp | 252 int readKeyword(const std::string& i_vpdPath, 310 int writeKeyword(std::string i_vpdPath, const std::string& i_recordName,
|
| H A D | tool_utils.hpp | 321 inline int writeKeyword(const std::string& i_vpdPath, in writeKeyword() argument 324 if (i_vpdPath.empty()) in writeKeyword() 336 l_method.append(i_vpdPath, i_paramsToWriteData); in writeKeyword()
|
| /openbmc/openpower-vpd-parser/vpd-manager/include/ |
| H A D | manager.hpp | 69 int updateKeyword(const types::Path i_vpdPath,
|