/openbmc/openpower-vpd-parser/ |
H A D | impl.hpp | 76 const std::string& vpdFilePath, uint32_t vpdStartOffset) : in Impl() argument 77 vpd(vpdBuffer), inventoryPath(path), vpdFilePath(vpdFilePath), in Impl() 86 vpdFileStream.open(vpdFilePath, 91 std::cerr << "Exception in file handling [" << vpdFilePath 197 inventory::Path vpdFilePath; member in openpower::vpd::parser::Impl
|
H A D | ibm_vpd_app.cpp | 931 parseVpdFile(const std::string& vpdFilePath, const nlohmann::json& js) in parseVpdFile() argument 934 for (const auto& item : js["frus"][vpdFilePath]) in parseVpdFile() 943 Binary vpdVector = getVpdDataInVector(js, vpdFilePath); in parseVpdFile() 947 (pimPath + js["frus"][vpdFilePath][0]["inventoryPath"] in parseVpdFile() 949 vpdFilePath, vpdStartOffset); in parseVpdFile() 1004 void updateVpdDataOnHw(const std::string& vpdFilePath, nlohmann::json& js, in updateVpdDataOnHw() argument 1009 js["frus"][vpdFilePath][0]["inventoryPath"] in updateVpdDataOnHw() 1012 EditorImpl edit(vpdFilePath, js, recName, kwName, fruInvPath); in updateVpdDataOnHw() 1016 for (const auto& item : js["frus"][vpdFilePath]) in updateVpdDataOnHw()
|
/openbmc/openpower-vpd-parser/vpd-parser/ |
H A D | ipz_parser.hpp | 40 const std::string& vpdFilePath, uint32_t vpdStartOffset) : in IpzVpdParser() argument 41 vpd(VpdVector), inventoryPath(path), vpdFilePath(vpdFilePath), in IpzVpdParser() 73 const std::string vpdFilePath; member in openpower::vpd::ipz::parser::IpzVpdParser
|
H A D | ipz_parser.cpp | 18 Impl p(vpd, inventoryPath, vpdFilePath, vpdStartOffset); in parse() 25 Impl p(vpd, inventoryPath, vpdFilePath, vpdStartOffset); in processHeader()
|
H A D | parser_factory.cpp | 29 const std::string& vpdFilePath, uint32_t vpdStartOffset) in getParser() argument 37 return new IpzVpdParser(vpdVector, inventoryPath, vpdFilePath, in getParser()
|
H A D | parser_factory.hpp | 40 const std::string& vpdFilePath, uint32_t vpdStartOffset);
|
/openbmc/openpower-vpd-parser/vpd-manager/ |
H A D | manager.cpp | 474 EditorImpl edit(vpdFilePath, jsonFile, recordName, keyword, objPath); in writeKeyword() 478 for (const auto& item : jsonFile["frus"][vpdFilePath]) in writeKeyword() 694 inventory::Path vpdFilePath = std::get<0>(frus.find(objPath)->second); in collectFRUVPD() local 715 if ((jsonFile["frus"][vpdFilePath].at(0)).find("preAction") != in collectFRUVPD() 716 jsonFile["frus"][vpdFilePath].at(0).end()) in collectFRUVPD() 718 if (!executePreAction(jsonFile, vpdFilePath)) in collectFRUVPD() 738 if (!filesystem::exists(vpdFilePath)) in collectFRUVPD() 743 executePostFailAction(jsonFile, vpdFilePath); in collectFRUVPD() 756 string chipAddr = jsonFile["frus"][vpdFilePath].at(0).value( in collectFRUVPD() 861 inventory::Path& vpdFilePath = std::get<0>(frus.find(objPath)->second); in deleteFRUVPD() local [all …]
|
H A D | editor_impl.hpp | 54 vpdFilePath(path), objPath(inventoryPath), startOffset(0), in EditorImpl() 67 vpdFilePath(path), jsonFile(json), thisRecord(record, kwd) in EditorImpl() 171 inventory::Path vpdFilePath; member in openpower::vpd::manager::editor::EditorImpl
|
H A D | editor_impl.cpp | 406 jsonFile["frus"][vpdFilePath].get_ref<const nlohmann::json::array_t&>(); in updateCache() 608 vpdFileStream.open(vpdFilePath, in updateKeyword() 612 std::min(std::filesystem::file_size(vpdFilePath), MAX_VPD_SIZE); in updateKeyword() 615 std::cerr << "File size is 0 for " << vpdFilePath << std::endl; in updateKeyword() 627 std::cerr << "Exception in file handling [" << vpdFilePath in updateKeyword() 636 jsonFile["frus"].find(vpdFilePath) != jsonFile["frus"].end()) in updateKeyword() 638 objPath = jsonFile["frus"][vpdFilePath][0]["inventoryPath"] in updateKeyword() 659 completeVPDFile, objPath, vpdFilePath, startOffset); in updateKeyword() 716 "Could not find start tag in VPD " + vpdFilePath); in updateKeyword()
|