Home
last modified time | relevance | path

Searched refs:this_size (Results 1 - 3 of 3) sorted by relevance

/device/soc/hisilicon/hi3861v100/sdk_liteos/platform/system/upg/
H A Dupg_check_secure.c48 uintptr_t this_size; in upg_hash_one_content() local
60 this_size = ((total_size - offset) > HI_BLOCK_SIZE) ? HI_BLOCK_SIZE : (total_size - offset); in upg_hash_one_content()
62 ret = (hi_u32)memcpy_s(block, this_size, (hi_u8 *)(HI_FLASH_BASE + flash_addr + offset), this_size); in upg_hash_one_content()
69 ret = hi_cipher_hash_update((uintptr_t)block, this_size); in upg_hash_one_content()
74 offset += this_size; in upg_hash_one_content()
83 uintptr_t this_size; in upg_hash_more_content() local
97 this_size = ((size - offset) > HI_BLOCK_SIZE) ? HI_BLOCK_SIZE : (size - offset); in upg_hash_more_content()
99 ret = (hi_u32)memcpy_s(block, this_size, (hi_u8 *)(HI_FLASH_BASE + param->flash_addr[i] + offset), in upg_hash_more_content()
100 this_size); in upg_hash_more_content()
[all...]
H A Dupg_common.c896 hi_u32 this_size; in upg_refresh_boot() local
926 this_size = (total_size - offset > UPG_FLASH_BLOCK_SIZE) ? UPG_FLASH_BLOCK_SIZE : (total_size - offset); in upg_refresh_boot()
927 ret = hi_flash_read(addr + section_head.section0_offset + offset, this_size, buf); in upg_refresh_boot()
932 ret = hi_flash_write(boot_addr + offset, this_size, buf, HI_FALSE); in upg_refresh_boot()
937 offset += this_size; in upg_refresh_boot()
/device/soc/hisilicon/hi3861v100/sdk_liteos/boot/flashboot/upg/
H A Dboot_upg_tool.c137 uintptr_t this_size = (total_size - offset > HI_BLOCK_SIZE) ? HI_BLOCK_SIZE : (total_size - offset); in boot_upg_hash_one_content() local
138 ret = hi_flash_read(flash_addr + offset, this_size, block); in boot_upg_hash_one_content()
144 ret = hi_cipher_hash_update((uintptr_t)block, this_size); in boot_upg_hash_one_content()
149 offset += this_size; in boot_upg_hash_one_content()
168 uintptr_t this_size = ((size - offset) > HI_BLOCK_SIZE) ? HI_BLOCK_SIZE : (size - offset); in boot_upg_hash_more_content() local
170 ret = hi_flash_read(param->flash_addr[i] + offset, this_size, block); in boot_upg_hash_more_content()
172 cs = (uintptr_t)block ^ HI_BLOCK_SIZE ^ (uintptr_t)(param->flash_addr[i] + offset) ^ this_size; in boot_upg_hash_more_content()
173 ret = (hi_u32)memcpy_s(block, HI_BLOCK_SIZE, (hi_u8 *)(param->flash_addr[i] + offset), this_size, cs); in boot_upg_hash_more_content()
180 ret = hi_cipher_hash_update((uintptr_t)block, this_size); in boot_upg_hash_more_content()
185 offset += this_size; in boot_upg_hash_more_content()
[all...]

Completed in 4 milliseconds