Searched refs:gptImage (Results 1 – 6 of 6) sorted by relevance
/ohos5.0/base/update/updater/services/ptable_parse/ |
H A D | emmc_ptable.cpp | 123 bool EmmcPtable::ParseGptHeaderByEmmc(uint8_t *gptImage, const uint32_t len) in ParseGptHeaderByEmmc() argument 128 if (!GetPartitionGptHeaderInfo(gptImage + blockSize, blockSize, gptHeaderInfo)) { in ParseGptHeaderByEmmc() 138 return PartitionCheckGptHeader(gptImage, len, lbaNum, blockSize, gptHeaderInfo); in ParseGptHeaderByEmmc() 180 bool EmmcPtable::UpdateCommInitializeGptPartition(uint8_t *gptImage, const uint32_t len) in UpdateCommInitializeGptPartition() argument 182 if (gptImage == nullptr || len < GPT_PARTITION_SIZE) { in UpdateCommInitializeGptPartition() 189 uint8_t *gptHeaderStart = gptImage + imgBlockSize; in UpdateCommInitializeGptPartition() 190 uint8_t *ptableData = gptImage + PROTECTIVE_MBR_SIZE + LBA_LENGTH; /* skip MBR and gpt header */ in UpdateCommInitializeGptPartition() 199 if (memcpy_s(emmcPtnDataInfo_.data, GPT_PARTITION_SIZE, gptImage, imgBlockSize) != EOK) { in UpdateCommInitializeGptPartition() 293 uint8_t *gptImage = imageBuf; in EditPartitionBuf() local 295 uint8_t *gptHeader = gptImage + imgBlockSize; in EditPartitionBuf() [all …]
|
H A D | ptable.cpp | 240 bool Ptable::CheckProtectiveMbr(const uint8_t *gptImage, const uint32_t imgLen) in CheckProtectiveMbr() argument 242 if (!VerifyMbrMagicNum(gptImage, imgLen)) { in CheckProtectiveMbr() 255 type = gptImage[MBR_GPT_ENTRY + i * MBR_GPT_ENTRY_SIZE + GPT_TYPE_SIGN_OFFSET]; in CheckProtectiveMbr() 266 bool Ptable::CheckIfValidGpt(const uint8_t *gptImage, const uint32_t gptImageLen) in CheckIfValidGpt() argument 274 uint64_t gptMagic = GET_LLWORD_FROM_BYTE(gptImage); in CheckIfValidGpt() 399 bool Ptable::PartitionCheckGptHeader(const uint8_t *gptImage, const uint32_t len, const uint64_t lb… in PartitionCheckGptHeader() argument 413 if (memcpy_s(buffer, blockSize, gptImage + blockSize, blockSize) != EOK) { in PartitionCheckGptHeader() 429 uint32_t crcVal = CalculateCrc32(gptImage + partition0 * blockSize, in PartitionCheckGptHeader()
|
H A D | ufs_ptable.cpp | 102 bool UfsPtable::ParseGptHeaderByUfsLun(const uint8_t *gptImage, const uint32_t len, in ParseGptHeaderByUfsLun() argument 107 if (!GetPartitionGptHeaderInfo(gptImage + blockSize, blockSize, gptHeaderInfo)) { in ParseGptHeaderByUfsLun() 118 return PartitionCheckGptHeader(gptImage, len, lunLbaNum, blockSize, gptHeaderInfo); in ParseGptHeaderByUfsLun() 121 bool UfsPtable::UfsReadGpt(const uint8_t *gptImage, const uint32_t len, in UfsReadGpt() argument 124 …if (gptImage == nullptr || len < ptableData_.writeDeviceLunSize || lun >= MAX_LUN_NUMBERS || block… in UfsReadGpt() 128 if (!ParseGptHeaderByUfsLun(gptImage, len, lun, blockSize)) { in UfsReadGpt() 143 uint32_t partition0 = GET_LLWORD_FROM_BYTE(gptImage + blockSize + PARTITION_ENTRIES_OFFSET); in UfsReadGpt() 148 data = gptImage + (partition0 + i) * blockSize; in UfsReadGpt()
|
H A D | emmc_ptable.h | 57 bool UpdateCommInitializeGptPartition(uint8_t *gptImage, const uint32_t len); 61 bool ParseGptHeaderByEmmc(uint8_t *gptImage, const uint32_t len);
|
H A D | ufs_ptable.h | 69 …bool UfsReadGpt(const uint8_t *gptImage, const uint32_t len, const uint32_t lun, const uint32_t bl… 70 bool ParseGptHeaderByUfsLun(const uint8_t *gptImage, const uint32_t len, const uint32_t lun,
|
H A D | ptable.h | 167 bool CheckProtectiveMbr(const uint8_t *gptImage, const uint32_t imgLen); 168 bool CheckIfValidGpt(const uint8_t *gptImage, const uint32_t gptImageLen); 172 bool PartitionCheckGptHeader(const uint8_t *gptImage, const uint32_t len, const uint64_t lbaNum,
|