Home
last modified time | relevance | path

Searched refs:gptInfo (Results 1 – 4 of 4) sorted by relevance

/ohos5.0/base/update/updater/services/ptable_parse/
H A Dptable.cpp562 bool Ptable::ChangeGpt(uint8_t *gptBuf, uint64_t gptSize, GptParseInfo gptInfo, PtnInfo &modifyInfo) in ChangeGpt() argument
564 …if (gptBuf == nullptr || gptSize == 0 || gptSize <= gptInfo.imgBlockSize || gptInfo.devBlockSize =… in ChangeGpt()
569 uint8_t *gptHead = gptBuf + gptInfo.imgBlockSize; // skip pmbr in ChangeGpt()
572 uint64_t readSize = ptnStart * gptInfo.imgBlockSize; in ChangeGpt()
575 uint64_t lastPtnLastLBA = gptInfo.devDensity / gptInfo.devBlockSize - 1; in ChangeGpt()
596 uint64_t firstLBA = modifyInfo.startAddr / gptInfo.devBlockSize; in ChangeGpt()
597 uint64_t lastLBA = firstLBA + modifyInfo.partitionSize / gptInfo.devBlockSize - 1; in ChangeGpt()
H A Demmc_ptable.cpp306 struct GptParseInfo gptInfo(imgBlockSize, devBlockSize, devDensity); in EditPartitionBuf() local
308 if (!ChangeGpt(gptImage, gptSize, gptInfo, t)) { in EditPartitionBuf()
H A Dufs_ptable.cpp520 struct GptParseInfo gptInfo(imgBlockSize, deviceBlockSize, newLunPtnDataInfo.lunSize - in EditPartitionBuf() local
523 … if (static_cast<uint32_t>(t.lun) == i + startLu && !ChangeGpt(curGptBuf, gptSize, gptInfo, t)) { in EditPartitionBuf()
H A Dptable.h180 bool ChangeGpt(uint8_t *gptBuf, uint64_t gptSize, GptParseInfo gptInfo, PtnInfo &modifyInfo);