/openbmc/openpower-vpd-parser/vpd-tool/src/ |
H A D | vpd_tool_main.cpp | 81 const std::string& i_vpdPath, const std::string& i_recordName, in writeKeyword() argument 87 if (!i_hardwareFlag->empty() && !std::filesystem::exists(i_vpdPath, l_ec)) in writeKeyword() 89 std::cerr << "Given EEPROM file path doesn't exist[" + i_vpdPath << "]." in writeKeyword() 117 return l_vpdToolObj.writeKeyword(i_vpdPath, i_recordName, i_keywordName, in writeKeyword() 132 int readKeyword(const auto& i_hardwareFlag, const std::string& i_vpdPath, in readKeyword() argument 138 if (!i_hardwareFlag->empty() && !std::filesystem::exists(i_vpdPath, l_ec)) in readKeyword() 141 "Given EEPROM file path doesn't exist : " + i_vpdPath}; in readKeyword() 156 return l_vpdToolObj.readKeyword(i_vpdPath, i_recordName, i_keywordName, in readKeyword() 178 int checkOptionValuePair(const auto& i_objectOption, const auto& i_vpdPath, in checkOptionValuePair() argument 183 if (!i_objectOption->empty() && i_vpdPath.empty()) in checkOptionValuePair()
|
H A D | vpd_tool.cpp | 16 const std::string& i_vpdPath, const std::string& i_recordName, in readKeyword() argument 27 i_vpdPath, std::make_tuple(i_recordName, i_keywordName)); in readKeyword() 32 constants::baseInventoryPath + i_vpdPath); in readKeyword() 49 utils::displayOnConsole(i_vpdPath, i_keywordName, in readKeyword() 69 utils::displayOnConsole(i_vpdPath, i_keywordName, in readKeyword() 84 std::cerr << "Read keyword's value failed for path: " << i_vpdPath in readKeyword() 396 std::string i_vpdPath, const std::string& i_recordName, in writeKeyword() argument 403 if (i_vpdPath.empty() || i_recordName.empty() || in writeKeyword() 415 l_rc = utils::writeKeywordOnHardware(i_vpdPath, l_paramsToWrite); in writeKeyword() 419 i_vpdPath = constants::baseInventoryPath + i_vpdPath; in writeKeyword() [all …]
|
/openbmc/openpower-vpd-parser/vpd-manager/include/utility/ |
H A D | json_utility.hpp | 136 * @param[in] i_vpdPath - Path to where VPD is stored. 145 const std::string& i_vpdPath) noexcept in getInventoryObjPathFromJson() argument 149 if (i_vpdPath.empty()) in getInventoryObjPathFromJson() 160 if (i_sysCfgJsonObj["frus"].contains(i_vpdPath)) in getInventoryObjPathFromJson() 162 return i_sysCfgJsonObj["frus"][i_vpdPath].at(0).value( in getInventoryObjPathFromJson() 177 if (i_vpdPath == i_sysCfgJsonObj["frus"][l_fruPath].at(0).value( in getInventoryObjPathFromJson() 179 (i_vpdPath == l_invObjPath)) in getInventoryObjPathFromJson() 556 * @param[in] i_vpdPath - Path to where VPD is stored. 562 const std::string& i_vpdPath) noexcept in getRedundantEepromPathFromJson() argument 566 if (i_vpdPath in getRedundantEepromPathFromJson() 623 getFruPathFromJson(const nlohmann::json & i_sysCfgJsonObj,const std::string & i_vpdPath) getFruPathFromJson() argument [all...] |
/openbmc/openpower-vpd-parser/vpd-tool/include/ |
H A D | vpd_tool.hpp | 241 int readKeyword(const std::string& i_vpdPath, 299 int writeKeyword(std::string i_vpdPath, const std::string& i_recordName,
|
H A D | tool_utils.hpp | 320 inline int writeKeyword(const std::string& i_vpdPath, in writeKeyword() argument 323 if (i_vpdPath.empty()) in writeKeyword() 335 l_method.append(i_vpdPath, i_paramsToWriteData); in writeKeyword()
|
/openbmc/openpower-vpd-parser/vpd-manager/src/ |
H A D | manager.cpp | 78 [this](const types::Path i_vpdPath, in Manager() 80 return this->updateKeyword(i_vpdPath, i_paramsToWriteData); in Manager() 510 int Manager::updateKeyword(const types::Path i_vpdPath, in updateKeyword() 513 if (i_vpdPath.empty()) in updateKeyword() 530 jsonUtility::getFruPathFromJson(l_sysCfgJsonObj, i_vpdPath); in updateKeyword() 536 l_fruPath = i_vpdPath; in updateKeyword() 548 logging::logMessage("Update keyword failed for file[" + i_vpdPath + in updateKeywordOnHardware() 79 __anon46d8d0750202(const types::Path i_vpdPath, const types::WriteVpdParams i_paramsToWriteData) Manager() argument 497 updateKeyword(const types::Path i_vpdPath,const types::WriteVpdParams i_paramsToWriteData) updateKeyword() argument
|
H A D | worker.cpp | 1820 void Worker::setPresentProperty(const std::string& i_vpdPath, in setPresentProperty() argument 1825 if (i_vpdPath.empty()) in setPresentProperty() 1834 if (m_parsedJson["frus"].contains(i_vpdPath)) in setPresentProperty() 1836 for (const auto& l_Fru : m_parsedJson["frus"][i_vpdPath]) in setPresentProperty() 1856 if (i_vpdPath.find(constants::pimPath) != constants::VALUE_0) in setPresentProperty() 1859 "Invalid inventory path: " + i_vpdPath); in setPresentProperty() 1870 l_objectInterfaceMap.emplace(i_vpdPath, std::move(l_interfaces)); in setPresentProperty() 1878 i_vpdPath); in setPresentProperty()
|
/openbmc/openpower-vpd-parser/vpd-manager/include/ |
H A D | manager.hpp | 63 int updateKeyword(const types::Path i_vpdPath,
|