Searched refs:gptHeaderInfo (Results 1 – 3 of 3) sorted by relevance
/base/update/updater/services/ptable_parse/ |
D | ptable.cpp | 303 …rtitionGptHeaderInfo(const uint8_t *buffer, const uint32_t bufferLen, GPTHeaderInfo& gptHeaderInfo) in GetPartitionGptHeaderInfo() argument 315 gptHeaderInfo.headerSize = GET_LWORD_FROM_BYTE(buffer + HEADER_SIZE_OFFSET); in GetPartitionGptHeaderInfo() 316 gptHeaderInfo.firstUsableLba = GET_LLWORD_FROM_BYTE(buffer + FIRST_USABLE_LBA_OFFSET); in GetPartitionGptHeaderInfo() 317 gptHeaderInfo.maxPartitionCount = GET_LWORD_FROM_BYTE(buffer + PARTITION_COUNT_OFFSET); in GetPartitionGptHeaderInfo() 318 gptHeaderInfo.partitionEntrySize = GET_LWORD_FROM_BYTE(buffer + PENTRY_SIZE_OFFSET); in GetPartitionGptHeaderInfo() 319 if (gptHeaderInfo.maxPartitionCount == 0 || gptHeaderInfo.partitionEntrySize == 0) { in GetPartitionGptHeaderInfo() 327 const GPTHeaderInfo& gptHeaderInfo) in CheckGptHeader() argument 334 if (gptHeaderInfo.headerSize < GPT_HEADER_SIZE || gptHeaderInfo.headerSize > bufferLen) { in CheckGptHeader() 341 uint32_t crcVal = CalculateCrc32(buffer, gptHeaderInfo.headerSize); in CheckGptHeader() 354 if (gptHeaderInfo.firstUsableLba > lbaNum || lastUsableLba > lbaNum) { in CheckGptHeader() [all …]
|
D | ptable.h | 149 …titionGptHeaderInfo(const uint8_t *buffer, const uint32_t bufferLen, GPTHeaderInfo& gptHeaderInfo); 151 const uint32_t blockSize, GPTHeaderInfo& gptHeaderInfo); 181 const GPTHeaderInfo& gptHeaderInfo);
|
D | ufs_ptable.cpp | 63 GPTHeaderInfo gptHeaderInfo; in ParseGptHeaderByUfsLun() local 64 (void)memset_s(&gptHeaderInfo, sizeof(GPTHeaderInfo), 0, sizeof(GPTHeaderInfo)); in ParseGptHeaderByUfsLun() 65 if (!GetPartitionGptHeaderInfo(gptImage + blockSize, blockSize, gptHeaderInfo)) { in ParseGptHeaderByUfsLun() 71 return PartitionCheckGptHeader(gptImage, len, lunLbaNum, blockSize, gptHeaderInfo); in ParseGptHeaderByUfsLun()
|