Home
last modified time | relevance | path

Searched refs:versionId (Results 1 – 25 of 36) sorted by relevance

12

/openbmc/openpower-pnor-code-mgmt/ubi/
H A Dserialize.cpp18 void storeToFile(const std::string& versionId, uint8_t priority) in storeToFile() argument
28 auto varPath = PERSIST_DIR + versionId; in storeToFile()
33 if (std::filesystem::is_directory(PNOR_RW_PREFIX + versionId)) in storeToFile()
36 auto rwPath = PNOR_RW_PREFIX + versionId + "/" + versionId; in storeToFile()
51 bool restoreFromFile(const std::string& versionId, uint8_t& priority) in restoreFromFile() argument
53 auto varPath = PERSIST_DIR + versionId; in restoreFromFile()
69 auto rwPath = PNOR_RW_PREFIX + versionId + "/" + versionId; in restoreFromFile()
95 std::string versionVar = "pnor-" + versionId + "="; in restoreFromFile()
114 void removeFile(const std::string& versionId) in removeFile() argument
120 "obmc-flash-bmc-setenv@pnor\\x2d" + versionId + ".service"; in removeFile()
[all …]
H A Ditem_updater_ubi.hpp45 void freePriority(uint8_t value, const std::string& versionId) override;
55 bool isVersionFunctional(const std::string& versionId) override;
67 const std::string& path, const std::string& versionId,
74 const std::string& objPath, const std::string& versionId,
100 void removeReadOnlyPartition(const std::string& versionId);
107 void removeReadWritePartition(const std::string& versionId);
H A Ditem_updater_ubi.cpp34 const std::string& path, const std::string& versionId, in createActivationObject() argument
41 bus, path, *this, versionId, extVersion, activationStatus, assocs); in createActivationObject()
45 const std::string& objPath, const std::string& versionId, in createVersionObject() argument
191 void ItemUpdaterUbi::removeReadOnlyPartition(const std::string& versionId) in removeReadOnlyPartition() argument
202 void ItemUpdaterUbi::removeReadWritePartition(const std::string& versionId) in removeReadWritePartition() argument
257 bool ItemUpdaterUbi::isVersionFunctional(const std::string& versionId) in isVersionFunctional() argument
272 if (activeRO.string().find(versionId) == std::string::npos) in isVersionFunctional()
295 intf.second->versionId)); in freePriority()
302 versionsPQ.top().second != versionId) in freePriority()
378 isVersionFunctional(iter.second->versionId)) in freeSpace()
[all …]
H A Dserialize.hpp17 void storeToFile(const std::string& versionId, uint8_t priority);
24 bool restoreFromFile(const std::string& versionId, uint8_t& priority);
29 void removeFile(const std::string& versionId);
H A Dactivation_ubi.cpp21 storeToFile(parent.versionId, value); in priority()
65 (std::filesystem::is_directory(PNOR_RW_PREFIX + versionId)) && in activation()
66 (std::filesystem::is_directory(PNOR_RO_PREFIX + versionId))) in activation()
122 std::string(ubimountService) + versionId + ".service"; in startActivation()
142 "obmc-flash-bios-ubimount@" + versionId + ".service"; in unitStateChange()
/openbmc/phosphor-psu-code-mgmt/src/
H A Ditem_updater.cpp100 auto versionId = path.substr(pos + 1); in createActivation() local
131 auto it = versions.find(versionId); in erase()
146 auto ita = activations.find(versionId); in erase()
156 activations.erase(versionId); in erase()
211 auto it = activations.find(versionId); in onUpdateDone()
232 auto it = activations.find(versionId); in createPsuObject()
544 std::optional<std::string> versionId; in getLatestVersionId() local
549 versionId = v.first; in getLatestVersionId()
553 assert(versionId.has_value()); in getLatestVersionId()
554 return versionId; in getLatestVersionId()
[all …]
H A Dversion.hpp76 const std::string& versionId, const std::string& versionString, in Version() argument
81 versionId(versionId), versionStr(versionString) in Version()
98 return versionId; in getVersionId()
152 const std::string versionId; member in phosphor::software::updater::Version
H A Dactivation.hpp126 const std::string& versionId, const std::string& extVersion, in Activation() argument
133 bus(bus), objPath(objPath), versionId(versionId), in Activation()
187 return versionId; in getVersionId()
254 std::string versionId; member in phosphor::software::updater::Activation
H A Ditem_updater.hpp74 void erase(const std::string& versionId);
108 void onUpdateDone(const std::string& versionId,
140 const std::string& path, const std::string& versionId,
146 const std::string& objPath, const std::string& versionId,
/openbmc/phosphor-psu-code-mgmt/test/
H A Dtest_activation.cpp74 std::string versionId = "abcdefgh"; member in TestActivation
85 mockedBus, dBusPath, versionId, extVersion, status, associations, in TEST_F()
93 mockedBus, dBusPath, versionId, extVersion, status, associations, in TEST_F()
102 versionId = "12345678"; in TEST_F()
106 mockedBus, dBusPath, versionId, extVersion, status, associations, in TEST_F()
153 onUpdateDone(StrEq(versionId), StrEq(psu0))) in TEST_F()
177 onUpdateDone(StrEq(versionId), StrEq(psu0))) in TEST_F()
184 onUpdateDone(StrEq(versionId), StrEq(psu1))) in TEST_F()
191 onUpdateDone(StrEq(versionId), StrEq(psu2))) in TEST_F()
205 onUpdateDone(StrEq(versionId), StrEq(psu3))) in TEST_F()
[all …]
/openbmc/libpldm/tests/oem/ibm/
H A Dhost.cpp18 uint8_t versionId = 0x0; in TEST() local
20 auto rc = encode_get_alert_status_req(0, versionId, request, in TEST()
23 EXPECT_EQ(versionId, request->payload[0]); in TEST()
117 uint8_t versionId = 0x0; in TEST() local
121 req->payload[0] = versionId; in TEST()
127 EXPECT_EQ(retVersionId, versionId); in TEST()
132 uint8_t versionId = 0x0; in TEST() local
136 req->payload[0] = versionId; in TEST()
/openbmc/phosphor-bmc-code-mgmt/
H A Dactivation.cpp95 if (!verifySignature(uploadDir / versionId, SIGNED_IMAGE_CONF_PATH)) in activation()
109 auto versionStr = parent.versions.find(versionId)->second->version(); in activation()
130 auto purpose = parent.versions.find(versionId)->second->purpose(); in activation()
190 auto flashId = parent.versions.find(versionId)->second->path(); in onFlashWriteSuccess()
223 parent.createUpdateObject(versionId, path); in onFlashWriteSuccess()
299 parent.parent.savePriority(parent.versionId, value); in priority()
300 parent.parent.freePriority(value, parent.versionId); in priority()
306 parent.parent.savePriority(parent.versionId, value); in sdbusPriority()
319 auto purpose = parent.versions.find(versionId)->second->purpose(); in unitStateChange()
448 parent.versions.find(versionId)->second->version()); in onStateChangesBios()
[all …]
H A Ditem_updater.cpp131 auto versionId = path.substr(pos + 1); in createActivation() local
133 if (activations.find(versionId) == activations.end()) in createActivation()
609 priorityMap.insert(std::make_pair(versionId, value)); in freePriority()
637 if (element.first == versionId) in freePriority()
652 lowestVersion = versionId; in freePriority()
812 auto it = versions.find(versionId); in updateUbootEnvVars()
855 versionIDtoErase = iter.second->versionId; in freeSpace()
888 if ((versions.find(iter.second->versionId) in freeSpace()
891 (iter.second->versionId == caller.versionId)) in freeSpace()
962 auto versionId = path.substr(pos + 1); in createBIOSObject() local
[all …]
/openbmc/openpower-pnor-code-mgmt/static/
H A Ditem_updater_static.hpp45 void freePriority(uint8_t value, const std::string& versionId) override;
53 void updateFunctionalAssociation(const std::string& versionId) override;
55 bool isVersionFunctional(const std::string& versionId) override;
60 const std::string& path, const std::string& versionId,
68 const std::string& objPath, const std::string& versionId,
H A Ditem_updater_static.cpp205 const std::string& path, const std::string& versionId, in createActivationObject() argument
212 bus, path, *this, versionId, extVersion, activationStatus, assocs); in createActivationObject()
216 const std::string& objPath, const std::string& versionId, in createVersionObject() argument
223 bus, objPath, *this, versionId, versionString, versionPurpose, filePath, in createVersionObject()
324 bool ItemUpdaterStatic::isVersionFunctional(const std::string& versionId) in isVersionFunctional() argument
326 return versionId == functionalVersionId; in isVersionFunctional()
346 return erase(iter.second->versionId); in freeSpace()
354 const std::string& versionId) in updateFunctionalAssociation() argument
356 functionalVersionId = versionId; in updateFunctionalAssociation()
357 ItemUpdater::updateFunctionalAssociation(versionId); in updateFunctionalAssociation()
/openbmc/openpower-pnor-code-mgmt/mmc/
H A Ditem_updater_mmc.hpp64 void freePriority(uint8_t value, const std::string& versionId) override;
72 void updateFunctionalAssociation(const std::string& versionId) override;
74 bool isVersionFunctional(const std::string& versionId) override;
79 const std::string& path, const std::string& versionId,
87 const std::string& objPath, const std::string& versionId,
H A Ditem_updater_mmc.cpp31 const std::string& path, const std::string& versionId, in createActivationObject() argument
38 bus, path, *this, versionId, extVersion, activationStatus, assocs); in createActivationObject()
42 const std::string& objPath, const std::string& versionId, in createVersionObject() argument
49 bus, objPath, *this, versionId, versionString, versionPurpose, filePath, in createVersionObject()
132 bool ItemUpdaterMMC::isVersionFunctional(const std::string& versionId) in isVersionFunctional() argument
134 return versionId == functionalVersionId; in isVersionFunctional()
/openbmc/phosphor-bmc-code-mgmt/static/
H A Dflash.cpp39 versionId); in flashWrite()
42 auto serviceFile = FLASH_ALT_SERVICE_TMPL + versionId + ".service"; in flashWrite()
57 fs::copy_file(uploadDir / versionId / bmcImage, toPath / bmcImage, in flashWrite()
66 auto serviceFile = FLASH_ALT_SERVICE_TMPL + versionId + ".service"; in onStateChanges()
/openbmc/openpower-pnor-code-mgmt/
H A Ditem_updater.cpp88 auto versionId = path.substr(pos + 1); in createActivation() local
90 if (activations.find(versionId) == activations.end()) in createActivation()
114 path, versionId, extendedVersion, activationState, associations); in createActivation()
115 activations.emplace(versionId, std::move(activation)); in createActivation()
118 createVersionObject(path, versionId, version, purpose, filePath); in createActivation()
119 versions.emplace(versionId, std::move(versionPtr)); in createActivation()
138 void ItemUpdater::updateFunctionalAssociation(const std::string& versionId) in updateFunctionalAssociation() argument
140 std::string path = std::string{SOFTWARE_OBJPATH} + '/' + versionId; in updateFunctionalAssociation()
H A Ditem_updater.hpp102 virtual void freePriority(uint8_t value, const std::string& versionId) = 0;
152 virtual void updateFunctionalAssociation(const std::string& versionId);
169 virtual bool isVersionFunctional(const std::string& versionId) = 0;
184 const std::string& path, const std::string& versionId,
192 const std::string& objPath, const std::string& versionId,
H A Dversion.hpp86 ItemUpdater& parent, const std::string& versionId, in Version() argument
92 versionId(versionId), versionStr(versionString), in Version()
174 const std::string versionId; member in openpower::software::updater::Version
H A Dactivation.hpp155 ItemUpdater& parent, const std::string& versionId, in Activation() argument
162 bus(bus), path(path), parent(parent), versionId(versionId), in Activation()
218 std::string versionId; member in openpower::software::updater::Activation
/openbmc/phosphor-bmc-code-mgmt/mmc/
H A Dflash.cpp21 auto serviceFile = "obmc-flash-mmc@" + versionId + ".service"; in flashWrite()
36 auto mmcServiceFile = "obmc-flash-mmc@" + versionId + ".service"; in onStateChanges()
37 auto flashId = parent.versions.find(versionId)->second->path(); in onStateChanges()
/openbmc/openpower-pnor-code-mgmt/vpnor/
H A Dobmc-vpnor-util75 versionId="${element#"${PNOR_RO_PREFIX}"}"
78 if [[ -f "${PERSISTENCE_PATH}${versionId}" ]]; then
79 data="$(grep -r "priority" "${PERSISTENCE_PATH}${versionId}")"
83 currentVersion=${versionId}
/openbmc/phosphor-bmc-code-mgmt/ubi/
H A Dflash.cpp22 auto roServiceFile = "obmc-flash-bmc-ubiro@" + versionId + ".service"; in flashWrite()
42 auto roServiceFile = "obmc-flash-bmc-ubiro@" + versionId + ".service"; in onStateChanges()
43 auto flashId = parent.versions.find(versionId)->second->path(); in onStateChanges()

12