Lines Matching refs:js

59 static void populateDbus(T& vpdMap, nlohmann::json& js, const string& filePath);
148 static auto needsRecollection(const nlohmann::json& js, const string& filePath) in needsRecollection() argument
150 if (js["frus"][filePath].at(0).value("pluggableAtStandby", false) || in needsRecollection()
151 js["frus"][filePath].at(0).value("concurrentlyMaintainable", false)) in needsRecollection()
159 if (!isFruInVpdCache(js["frus"][filePath].at(0).value("inventoryPath", ""))) in needsRecollection()
313 static void populateInterfaces(const nlohmann::json& js, in populateInterfaces() argument
317 for (const auto& ifs : js.items()) in populateInterfaces()
435 static bool isThisPcieOnPass1planar(const nlohmann::json& js, in isThisPcieOnPass1planar() argument
442 if (js["frus"].find(file) != js["frus"].end()) in isThisPcieOnPass1planar()
444 if ((js["frus"][file].at(0).find("extraInterfaces") != in isThisPcieOnPass1planar()
445 js["frus"][file].at(0).end())) in isThisPcieOnPass1planar()
447 if (js["frus"][file].at(0)["extraInterfaces"].find( in isThisPcieOnPass1planar()
449 js["frus"][file].at(0)["extraInterfaces"].end()) in isThisPcieOnPass1planar()
882 parseVpdFile(const std::string& vpdFilePath, const nlohmann::json& js) in parseVpdFile() argument
885 for (const auto& item : js["frus"][vpdFilePath]) in parseVpdFile()
894 Binary vpdVector = getVpdDataInVector(js, vpdFilePath); in parseVpdFile()
898 (pimPath + js["frus"][vpdFilePath][0]["inventoryPath"] in parseVpdFile()
920 const string& backupVpdInvPath, const nlohmann::json& js, in getBackupVpdInMap() argument
941 auto backupVpdParsedResult = parseVpdFile(systemVpdBackupPath, js); in getBackupVpdInMap()
955 void updateVpdDataOnHw(const std::string& vpdFilePath, nlohmann::json& js, in updateVpdDataOnHw() argument
960 js["frus"][vpdFilePath][0]["inventoryPath"] in updateVpdDataOnHw()
963 EditorImpl edit(vpdFilePath, js, recName, kwName, fruInvPath); in updateVpdDataOnHw()
967 for (const auto& item : js["frus"][vpdFilePath]) in updateVpdDataOnHw()
993 nlohmann::json& js, bool isBackupOnCache = true) in restoreSystemVPD() argument
1002 systemVpdBackupPath = js["frus"][systemVpdFilePath].at(0).value( in restoreSystemVPD()
1005 backupVpdInvPath = js["frus"][systemVpdBackupPath][0]["inventoryPath"] in restoreSystemVPD()
1008 getBackupVpdInMap(systemVpdBackupPath, backupVpdInvPath, js, in restoreSystemVPD()
1170 updateVpdDataOnHw(systemVpdFilePath, js, recordName, in restoreSystemVPD()
1197 updateVpdDataOnHw(systemVpdBackupPath, js, in restoreSystemVPD()
1222 bool isThisPrimaryProcessor(nlohmann::json& js, const string& filePath) in isThisPrimaryProcessor() argument
1227 for (const auto& item : js["frus"][filePath]) in isThisPrimaryProcessor()
1258 void doEnableAllDimms(nlohmann::json& js) in doEnableAllDimms() argument
1261 for (const auto& eachFru : js["frus"].items()) in doEnableAllDimms()
1360 void doEnableAllMuxChips(const nlohmann::json& js) in doEnableAllMuxChips() argument
1363 if (js.find("muxes") != js.end()) in doEnableAllMuxChips()
1367 for (const auto& item : js["muxes"]) in doEnableAllMuxChips()
1398 static void populateDbus(T& vpdMap, nlohmann::json& js, const string& filePath) in populateDbus() argument
1415 js["frus"][filePath].at(0).value("inventoryPath", ""); in populateDbus()
1419 js["frus"][filePath].at(0).value("systemVpdBackupPath", ""); in populateDbus()
1433 restoreSystemVPD(vpdMap, mboardPath, js); in populateDbus()
1442 restoreSystemVPD(vpdMap, mboardPath, js, false); in populateDbus()
1448 auto isPrimaryCpu = isThisPrimaryProcessor(js, filePath); in populateDbus()
1458 doEnableAllDimms(js); in populateDbus()
1493 js = json::parse(inventoryJson); in populateDbus()
1500 doEnableAllMuxChips(js); in populateDbus()
1503 for (const auto& item : js["frus"][filePath]) in populateDbus()
1555 if (js.find("commonInterfaces") != js.end()) in populateDbus()
1557 populateInterfaces(js["commonInterfaces"], interfaces, vpdMap, in populateDbus()
1639 inventory::ObjectMap primeObject = primeInventory(js, vpdMap); in populateDbus()
1656 json js{}; in main() local
1735 js = json::parse(inventoryJson); in main()
1743 if (js.find("frus") == js.end()) in main()
1755 if ((js["frus"].find(file) != js["frus"].end()) && in main()
1771 doEnableAllMuxChips(js); in main()
1779 if (js["frus"].find(file) == js["frus"].end()) in main()
1798 baseFruInventoryPath = js["frus"][file][0]["inventoryPath"]; in main()
1808 if (js["frus"][file].at(0).value("powerOffOnly", false) || in main()
1821 if (!needsRecollection(js, file)) in main()
1830 parseResult = parseVpdFile(file, js); in main()
1835 systemVpdBackupPath = js["frus"][systemVpdFilePath].at(0).value( in main()
1841 js["frus"][systemVpdBackupPath][0]["inventoryPath"] in main()
1848 populateDbus(pVal->getVpdMap(), js, file); in main()
1852 populateDbus(*pVal, js, file); in main()
1863 executePostFailAction(js, file); in main()
1893 if (isThisPcieOnPass1planar(js, file)) in main()
1899 else if (!(isPresent(js, file).value_or(true))) in main()