Home
last modified time | relevance | path

Searched refs:i_vpdPath (Results 1 – 8 of 8) sorted by relevance

/openbmc/openpower-vpd-parser/vpd-tool/src/
H A Dvpd_tool_main.cpp46 * @param[in] i_vpdPath - DBus object path or EEPROM path.
54 const std::string& i_vpdPath, const std::string& i_recordName, in writeKeyword()
60 if (!i_hardwareFlag->empty() && !std::filesystem::exists(i_vpdPath, l_ec)) in writeKeyword()
62 std::cerr << "Given EEPROM file path doesn't exist : " + i_vpdPath in writeKeyword()
69 std::cerr << "filesystem call exists failed for file: " << i_vpdPath in writeKeyword()
93 return l_vpdToolObj.writeKeyword(i_vpdPath, i_recordName, i_keywordName,
101 * @param[in] i_vpdPath - DBus object path or EEPROM path.
108 int readKeyword(const auto& i_hardwareFlag, const std::string& i_vpdPath, in readKeyword()
114 if (!i_hardwareFlag->empty() && !std::filesystem::exists(i_vpdPath, l_ec)) in readKeyword()
117 "Given EEPROM file path doesn't exist : " + i_vpdPath}; in readKeyword()
50 writeKeyword(const auto & i_hardwareFlag,const auto & i_keywordValueOption,const std::string & i_vpdPath,const std::string & i_recordName,const std::string & i_keywordName,const std::string & i_keywordValue) writeKeyword() argument
104 readKeyword(const auto & i_hardwareFlag,const std::string & i_vpdPath,const std::string & i_recordName,const std::string & i_keywordName,const std::string & i_filePath) readKeyword() argument
148 checkOptionValuePair(const auto & i_objectOption,const auto & i_vpdPath,const auto & i_recordOption,const auto & i_recordName,const auto & i_keywordOption,const auto & i_keywordName) checkOptionValuePair() argument
[all...]
H A Dvpd_tool.cpp15 const std::string& i_vpdPath, const std::string& i_recordName, in readKeyword() argument
26 i_vpdPath, std::make_tuple(i_recordName, i_keywordName)); in readKeyword()
31 constants::baseInventoryPath + i_vpdPath); in readKeyword()
48 utils::displayOnConsole(i_vpdPath, i_keywordName, in readKeyword()
68 utils::displayOnConsole(i_vpdPath, i_keywordName, in readKeyword()
83 /*std::cerr << "Read keyword's value for path: " << i_vpdPath in readKeyword()
321 std::string i_vpdPath, const std::string& i_recordName, in writeKeyword() argument
328 if (i_vpdPath.empty() || i_recordName.empty() || in writeKeyword()
340 l_rc = utils::writeKeywordOnHardware(i_vpdPath, l_paramsToWrite); in writeKeyword()
344 i_vpdPath in writeKeyword()
[all...]
/openbmc/openpower-vpd-parser/vpd-manager/include/utility/
H A Djson_utility.hpp140 const nlohmann::json& i_sysCfgJsonObj, const std::string& i_vpdPath) in getInventoryObjPathFromJson() argument
142 if (i_vpdPath.empty()) in getInventoryObjPathFromJson()
153 if (i_sysCfgJsonObj["frus"].contains(i_vpdPath)) in getInventoryObjPathFromJson()
155 return i_sysCfgJsonObj["frus"][i_vpdPath].at(0).value( in getInventoryObjPathFromJson()
169 if (i_vpdPath == i_sysCfgJsonObj["frus"][l_fruPath].at(0).value( in getInventoryObjPathFromJson()
171 (i_vpdPath == l_invObjPath)) in getInventoryObjPathFromJson()
546 const nlohmann::json& i_sysCfgJsonObj, const std::string& i_vpdPath) in getRedundantEepromPathFromJson() argument
548 if (i_vpdPath.empty()) in getRedundantEepromPathFromJson()
559 if (i_sysCfgJsonObj["frus"].contains(i_vpdPath)) in getRedundantEepromPathFromJson()
561 return i_sysCfgJsonObj["frus"][i_vpdPath].at(0).value( in getRedundantEepromPathFromJson()
[all …]
/openbmc/openpower-vpd-parser/vpd-tool/include/
H A Dvpd_tool.hpp179 * @param[in] i_vpdPath - DBus object path or EEPROM path.
182 * @param[in] i_onHardware - True if i_vpdPath is EEPROM path, false
189 int readKeyword(const std::string& i_vpdPath,
228 * If i_onHardware value in true, i_vpdPath is considered has hardware path
238 * @param[in] i_vpdPath - DBus object path or EEPROM path.
242 * @param[in] i_onHardware - True if i_vpdPath is EEPROM path, false
247 int writeKeyword(std::string i_vpdPath, const std::string& i_recordName,
H A Dtool_utils.hpp320 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 Dmanager.cpp78 [this](const types::Path i_vpdPath, in Manager()
80 return this->updateKeyword(i_vpdPath, i_paramsToWriteData); in Manager()
323 int Manager::updateKeyword(const types::Path i_vpdPath, in updateKeyword()
326 if (i_vpdPath.empty()) in updateKeyword()
345 jsonUtility::getFruPathFromJson(l_sysCfgJsonObj, i_vpdPath); in updateKeyword()
350 "Error while getting FRU path, Path: " + i_vpdPath + in updateKeyword()
359 l_fruPath = i_vpdPath; in updateKeyword()
371 logging::logMessage("Update keyword failed for file[" + i_vpdPath + in updateKeywordOnHardware()
68 __anon46d8d0750202(const types::Path i_vpdPath, const types::WriteVpdParams i_paramsToWriteData) Manager() argument
312 updateKeyword(const types::Path i_vpdPath,const types::WriteVpdParams i_paramsToWriteData) updateKeyword() argument
H A Dworker.cpp1709 void Worker::setPresentProperty(const std::string& i_vpdPath, in setPresentProperty()
1714 if (i_vpdPath.empty()) in setPresentProperty()
1723 if (m_parsedJson["frus"].contains(i_vpdPath)) in setPresentProperty()
1725 for (const auto& l_Fru : m_parsedJson["frus"][i_vpdPath]) in setPresentProperty()
1745 if (i_vpdPath.find(constants::pimPath) != constants::VALUE_0) in setPresentProperty()
1748 "Invalid inventory path: " + i_vpdPath);
1759 l_objectInterfaceMap.emplace(i_vpdPath, std::move(l_interfaces));
1767 i_vpdPath);
1681 setPresentProperty(const std::string & i_vpdPath,const bool & i_value) setPresentProperty() argument
/openbmc/openpower-vpd-parser/vpd-manager/include/
H A Dmanager.hpp63 int updateKeyword(const types::Path i_vpdPath,