/device/soc/hisilicon/hi3861v100/sdk_liteos/include/ |
D | hi_flash.h | 45 hi_u32 hi_flash_read(const hi_u32 flash_offset, const hi_u32 size, hi_u8 *ram_data); 80 hi_u32 hi_flash_write(const hi_u32 flash_offset, hi_u32 size, const hi_u8 *ram_data, hi_bool do_era… 107 hi_u32 hi_flash_erase(const hi_u32 flash_offset, const hi_u32 size);
|
/device/soc/bestechnic/bes2600/liteos_m/components/drivers/flash/ |
D | flash.c | 959 uint32_t flash_offset = 0; in ota_flash_read() local 971 flash_offset = addr + partitionInfo.partition_start_addr; in ota_flash_read() 976 ret = NORFLASH_API_WRAP(hal_norflash_read)(HAL_FLASH_ID_0, flash_offset, dst, size); in ota_flash_read() 1085 uint32_t flash_offset = partition_info.partition_start_addr; in ota_partition_check_magic() local 1091 …ret = ota_partition_read_erase_write(partition, flash_offset, read_buf, sizeof(read_buf), 0, magic… in ota_partition_check_magic() 1105 uint32_t left_len = 0, align_len = 0, fill_len = 0, flash_offset = 0, lengthToBurn = size; in ota_flash_write() local 1114 flash_offset = addr + partitionInfo.partition_start_addr; in ota_flash_write() 1127 if (flash_offset % OTA_MALLOC_BUF_SIZE != 0) { in ota_flash_write() 1128 left_len = OTA_MALLOC_BUF_SIZE - flash_offset % OTA_MALLOC_BUF_SIZE; in ota_flash_write() 1130 align_len = flash_offset - flash_offset % OTA_MALLOC_BUF_SIZE; in ota_flash_write() [all …]
|
/device/soc/esp/esp32/components/bootloader_support/src/esp32/ |
D | secure_boot.c | 237 static esp_err_t secure_boot_v2_digest_generate(uint32_t flash_offset, uint32_t flash_size, uint8_t… in secure_boot_v2_digest_generate() argument 242 size_t sig_block_addr = flash_offset + ALIGN_UP(flash_size, FLASH_SECTOR_SIZE); in secure_boot_v2_digest_generate() 243 … ret = bootloader_sha256_flash_contents(flash_offset, sig_block_addr - flash_offset, image_digest); in secure_boot_v2_digest_generate()
|
/device/soc/hisilicon/hi3861v100/sdk_liteos/boot/loaderboot/common/ |
D | transfer.c | 121 hi_u32 download_to_flash(hi_u32 flash_offset, hi_u32 erase_size, hi_u32 flash_size) in download_to_flash() argument 142 boot_msg2("erase flash ", flash_offset, erase_size); in download_to_flash() 144 ret = g_flash_cmd_funcs.erase(flash_offset, erase_size); in download_to_flash() 154 ret = loader_serial_ymodem(flash_offset, erase_size, 0, flash_size); in download_to_flash()
|
/device/soc/esp/esp32/components/bootloader_support/include_bootloader/ |
D | bootloader_utility.h | 129 esp_err_t bootloader_sha256_flash_contents(uint32_t flash_offset, uint32_t len, uint8_t *digest);
|
/device/soc/hisilicon/hi3861v100/sdk_liteos/platform/drivers/flash/ |
D | flash_prv.h | 147 hi_u32 flash_offset; member 402 hi_u32 flash_protect(hi_u32 flash_offset, hi_u32 size, hi_u32 timeout, hi_bool is_volatile); 413 hi_u32 hi_flash_write_fs(const hi_u32 flash_offset, hi_u32 size, const hi_u8 *ram_data, hi_bool do_…
|
/device/soc/hisilicon/hi3861v100/sdk_liteos/boot/flashboot/drivers/flash/ |
D | hi_flashboot_flash.c | 245 hi_u32 flash_protect_cancel(hi_u32 flash_offset) in flash_protect_cancel() argument 251 if (flash_offset >= g_flash_current_addr) { in flash_protect_cancel() 254 if (flash_offset < FLASH_PROTECT_32K_ADDR) { in flash_protect_cancel()
|
/device/soc/esp/esp32/components/bootloader_support/src/ |
D | bootloader_utility.c | 865 esp_err_t bootloader_sha256_flash_contents(uint32_t flash_offset, uint32_t len, uint8_t *digest) argument 882 …uint32_t mmu_page_offset = ((flash_offset & MMAP_ALIGNED_MASK) != 0) ? 1 : 0; /* Skip 1st MMU Page… 885 const void * image = bootloader_mmap(flash_offset, partial_image_len); 893 flash_offset += partial_image_len;
|
/device/soc/hisilicon/hi3861v100/sdk_liteos/boot/loaderboot/secure/ |
D | load_crypto.c | 124 hi_u32 flash_offset = 0; in boot_get_crypto_kernel_start() local 125 loaderboot_get_start_addr_offset(file_addr, &flash_offset); in boot_get_crypto_kernel_start() 127 return flash_offset; in boot_get_crypto_kernel_start()
|
/device/soc/hisilicon/hi3861v100/sdk_liteos/boot/flashboot/secure/ |
D | crypto.c | 80 hi_u32 boot_get_crypto_kernel_start(hi_u32 *flash_offset) in boot_get_crypto_kernel_start() argument 87 boot_get_start_addr_offset(cfg->addr_start, flash_offset); in boot_get_crypto_kernel_start() 517 hi_u32 flash_offset = 0; in crypto_load_flash_raw() local 528 boot_get_start_addr_offset(addr_start, &flash_offset); in crypto_load_flash_raw() 530 ret = g_flash_cmd_funcs.read(flash_offset, ram_size, (hi_u8 *)ram_addr); in crypto_load_flash_raw()
|