/ohos5.0/base/update/updater/services/ptable_parse/ |
H A D | composite_ptable.cpp | 73 bool CompositePtable::GetPtableImageBuffer(uint8_t *imageBuf, const uint32_t imgBufSize) in GetPtableImageBuffer() argument 75 if (!CheckBuff(imageBuf, static_cast<const uint64_t>(imgBufSize))) { in GetPtableImageBuffer() 84 if (!iter->GetPtableImageBuffer(imageBuf, imgBufSize)) { in GetPtableImageBuffer() 92 bool CompositePtable::EditPartitionBuf(uint8_t *imageBuf, uint64_t imgBufSize, std::vector<PtnInfo>… in EditPartitionBuf() argument 94 if (!CheckBuff(imageBuf, imgBufSize)) { in EditPartitionBuf() 103 if (!iter->EditPartitionBuf(imageBuf, imgBufSize, modifyList)) { in EditPartitionBuf()
|
H A D | ufs_ptable.h | 32 …bool EditPartitionBuf(uint8_t *imageBuf, uint64_t imgBufSize, std::vector<PtnInfo> &modifyList) ov… 33 bool GetPtableImageBuffer(uint8_t *imageBuf, const uint32_t imgBufSize) override; 77 uint8_t *GetPtableImageUfsLunPmbrStart(uint8_t *imageBuf, const uint32_t lunIndex); 78 uint8_t *GetPtableImageUfsLunGptHeaderStart(uint8_t *imageBuf, const uint32_t lunIndex); 79 uint8_t *GetPtableImageUfsLunEntryStart(uint8_t *imageBuf, const uint32_t lunIndex);
|
H A D | ufs_ptable.cpp | 468 uint8_t *UfsPtable::GetPtableImageUfsLunPmbrStart(uint8_t *imageBuf, const uint32_t lunIndex) in GetPtableImageUfsLunPmbrStart() argument 472 return imageBuf + pmbrStart; in GetPtableImageUfsLunPmbrStart() 475 uint8_t *UfsPtable::GetPtableImageUfsLunGptHeaderStart(uint8_t *imageBuf, const uint32_t lunIndex) in GetPtableImageUfsLunGptHeaderStart() argument 480 return imageBuf + gptHeaderStart; in GetPtableImageUfsLunGptHeaderStart() 483 uint8_t *UfsPtable::GetPtableImageUfsLunEntryStart(uint8_t *imageBuf, const uint32_t lunIndex) in GetPtableImageUfsLunEntryStart() argument 488 return imageBuf + entryStart; in GetPtableImageUfsLunEntryStart() 493 … if (imageBuf == nullptr || imgBufSize == 0 || modifyList.empty() || ptableData_.blockSize == 0) { in EditPartitionBuf() 516 uint8_t *curGptBuf = GetPtableImageUfsLunPmbrStart(imageBuf, i + startLu); in EditPartitionBuf() 538 bool UfsPtable::GetPtableImageBuffer(uint8_t *imageBuf, const uint32_t imgBufSize) in GetPtableImageBuffer() argument 543 if (imageBuf == nullptr || imgBufSize == 0 || in GetPtableImageBuffer() [all …]
|
H A D | ptable_manager.cpp | 307 uint8_t *imageBuf = new(std::nothrow) uint8_t[imgBufSize](); variable 309 if (imageBuf == nullptr) { 313 if (!GetPtableBufferFromPkg(pkgManager, imageBuf, imgBufSize)) { 315 delete [] imageBuf; 319 if (!pPtable_->ParsePartitionFromBuffer(imageBuf, imgBufSize)) { 321 delete [] imageBuf; 324 delete [] imageBuf; 330 bool PackagePtable::GetPtableBufferFromPkg(Hpackage::PkgManager *pkgManager, uint8_t *&imageBuf, ui… in GetPtableBufferFromPkg() argument 363 if (memcpy_s(imageBuf, size, buffer, std::min(static_cast<size_t>(size), bufSize))) { in GetPtableBufferFromPkg()
|
H A D | emmc_ptable.cpp | 274 bool EmmcPtable::GetPtableImageBuffer(uint8_t *imageBuf, const uint32_t imgBufSize) in GetPtableImageBuffer() argument 276 if (imageBuf == nullptr || imgBufSize == 0) { in GetPtableImageBuffer() 280 if (memcpy_s(imageBuf, imgBufSize, emmcPtnDataInfo_.data, GPT_PARTITION_SIZE) != EOK) { in GetPtableImageBuffer() 287 bool EmmcPtable::EditPartitionBuf(uint8_t *imageBuf, uint64_t imgBufSize, std::vector<PtnInfo> &mod… in EditPartitionBuf() argument 289 if (imageBuf == nullptr || imgBufSize == 0 || modifyList.empty()) { in EditPartitionBuf() 293 uint8_t *gptImage = imageBuf; in EditPartitionBuf() 316 … if (memcpy_s(newEmmcPartitionDataInfo.data, GPT_PARTITION_SIZE, imageBuf, imgBlockSize) != EOK) { in EditPartitionBuf()
|
H A D | composite_ptable.h | 31 …bool EditPartitionBuf(uint8_t *imageBuf, uint64_t imgBufSize, std::vector<PtnInfo> &modifyList) ov… 32 bool GetPtableImageBuffer(uint8_t *imageBuf, const uint32_t imgBufSize) override;
|
H A D | emmc_ptable.h | 32 …bool EditPartitionBuf(uint8_t *imageBuf, uint64_t imgBufSize, std::vector<PtnInfo> &modifyList) ov… 33 bool GetPtableImageBuffer(uint8_t *imageBuf, const uint32_t imgBufSize) override;
|
H A D | ptable.h | 64 …virtual bool EditPartitionBuf(uint8_t *imageBuf, uint64_t imgBufSize, std::vector<PtnInfo> &modify… 65 virtual bool GetPtableImageBuffer(uint8_t *imageBuf, const uint32_t imgBufSize) = 0;
|
H A D | ptable_manager.h | 85 … bool GetPtableBufferFromPkg(Hpackage::PkgManager *pkgManager, uint8_t *&imageBuf, uint32_t size);
|