Home
last modified time | relevance | path

Searched refs:deviceBlockSize (Results 1 – 2 of 2) sorted by relevance

/ohos5.0/base/update/updater/services/ptable_parse/
H A Dufs_ptable.cpp111 uint32_t deviceBlockSize = GetDeviceBlockSize(); in ParseGptHeaderByUfsLun() local
112 if (deviceBlockSize == 0) { in ParseGptHeaderByUfsLun()
185 deviceBlockSize == 0) { in UfsPatchGptHeader()
275 if (memcpy_s(newLunPtnDataInfo.data + deviceBlockSize, TMP_DATA_SIZE - deviceBlockSize, in ParsePartitionFromBuffer()
280 … if (memcpy_s(newLunPtnDataInfo.data + 2 * deviceBlockSize, TMP_DATA_SIZE - 2 * deviceBlockSize, in ParsePartitionFromBuffer()
439 if (deviceBlockSize == 0) { in WriteBackupPartitionTable()
447 deviceBlockSize, deviceBlockSize) != EOK) { in WriteBackupPartitionTable()
451 …PatchBackUpGptHeader(backUpHeader.get(), deviceBlockSize, deviceBackGptEntryOffset / deviceBlockSi… in WriteBackupPartitionTable()
459deviceBlockSize * 2, (GPT_PTABLE_BACKUP_SIZE - 1) * deviceBlockSize)) { // 2 : pmbr(1) + gpt heade… in WriteBackupPartitionTable()
565 curDevOffset += deviceBlockSize; in GetPtableImageBuffer()
[all …]
H A Demmc_ptable.cpp187 uint32_t deviceBlockSize = EMMC_BLOCK_SIZE; in UpdateCommInitializeGptPartition() local
203 if (memcpy_s(emmcPtnDataInfo_.data + deviceBlockSize, GPT_PARTITION_SIZE - deviceBlockSize, in UpdateCommInitializeGptPartition()
209 …if (memcpy_s(emmcPtnDataInfo_.data + 2 * deviceBlockSize, GPT_PARTITION_SIZE - 2 * deviceBlockSize, in UpdateCommInitializeGptPartition()
210 ptableData, GPT_PARTITION_SIZE - 2 * deviceBlockSize) != EOK) { in UpdateCommInitializeGptPartition()
215 EmmcPatchGptHeader(emmcPtnDataInfo_, deviceBlockSize); in UpdateCommInitializeGptPartition()
218 …return EmmcReadGpt(emmcPtnDataInfo_.data + 2 * deviceBlockSize, len); // 2:skip 2 lba length to se… in UpdateCommInitializeGptPartition()
231 uint32_t deviceBlockSize = EMMC_BLOCK_SIZE; in ReadEmmcGptImageToRam() local
242 deviceBlockSize = ptableData_.lbaLen; in ReadEmmcGptImageToRam()
244 …uint8_t *gptHeaderStart = buffer + deviceBlockSize; // if image imgBlockSize, if device deviceBloc… in ReadEmmcGptImageToRam()
245 …if (!CheckProtectiveMbr(buffer, deviceBlockSize) || !CheckIfValidGpt(gptHeaderStart, deviceBlockSi… in ReadEmmcGptImageToRam()
[all …]