/AliOS-Things-master/components/genie_service/genie_port/hal/ |
A D | genie_hal_flash.c | 52 if (off_set + in_buf_len > OTP_TOTAL_DATA_SIZE) in hal_flash_write_otp() 78 int32_t hal_flash_write_xtalcap_params(const void *in_buf, uint32_t in_buf_len) in hal_flash_write_xtalcap_params() argument 80 if (in_buf_len != sizeof(uint32_t)) { in hal_flash_write_xtalcap_params() 92 int32_t hal_flash_write_sn_params(const void *in_buf, uint32_t in_buf_len) in hal_flash_write_sn_params() argument 94 return hal_flash_write_otp(SN_PARAMS_OFFSET, in_buf, in_buf_len); in hal_flash_write_sn_params() 105 int32_t hal_flash_write_mac_params(const void *in_buf, uint32_t in_buf_len) in hal_flash_write_mac_params() argument 107 if (!in_buf || in_buf_len != 6) in hal_flash_write_mac_params() 118 int32_t hal_flash_write_triples(const void *in_buf, uint32_t in_buf_len) in hal_flash_write_triples() argument 120 return hal_flash_write_otp(TRIPLE_OFFSET, in_buf, in_buf_len); in hal_flash_write_triples() 128 int32_t hal_flash_write_group_addr(const void *in_buf, uint32_t in_buf_len) in hal_flash_write_group_addr() argument [all …]
|
A D | flash.h | 16 int32_t hal_flash_write_triples(const void *in_buf, uint32_t in_buf_len); 36 int32_t hal_flash_write_group_addr(const void *in_buf, uint32_t in_buf_len); 48 int32_t hal_flash_write_xtalcap_params(const void *in_buf, uint32_t in_buf_len); 54 int32_t hal_flash_write_mac_params(const void *in_buf, uint32_t in_buf_len); 64 int32_t hal_flash_write_sn_params(const void *in_buf, uint32_t in_buf_len);
|
/AliOS-Things-master/components/ota/hal/ |
A D | ota_hal_plat.c | 72 OTA_WEAK int ota_hal_write(unsigned int *off, char *in_buf, unsigned int in_buf_len) in ota_hal_write() argument 76 if(off == NULL || in_buf_len > OTA_FLASH_WRITE_CACHE_SIZE) { in ota_hal_write() 79 if (in_buf_len <= OTA_FLASH_WRITE_CACHE_SIZE - ota_cache_len) { in ota_hal_write() 80 tocopy = in_buf_len; in ota_hal_write() 96 if (in_buf_len - tocopy > 0) { in ota_hal_write() 98 memcpy(ota_cache, in_buf + tocopy, in_buf_len - tocopy); in ota_hal_write() 99 ota_cache_len = in_buf_len - tocopy; in ota_hal_write() 101 ota_receive_total_len += in_buf_len; in ota_hal_write()
|
A D | ota_hal_vfs_plat.c | 113 OTA_WEAK int ota_hal_write(unsigned int *off, char *in_buf, unsigned int in_buf_len) in ota_hal_write() argument 118 if (off == NULL || in_buf_len > OTA_FLASH_WRITE_CACHE_SIZE) { in ota_hal_write() 121 if (in_buf_len <= OTA_FLASH_WRITE_CACHE_SIZE - ota_cache_len) { in ota_hal_write() 122 tocopy = in_buf_len; in ota_hal_write() 143 if (in_buf_len - tocopy > 0) { in ota_hal_write() 145 memcpy(ota_cache, in_buf + tocopy, in_buf_len - tocopy); in ota_hal_write() 146 ota_cache_len = in_buf_len - tocopy; in ota_hal_write() 148 ota_receive_total_len += in_buf_len; in ota_hal_write()
|
A D | ota_hal_ctrl.c | 46 int ota_write(unsigned int *off, char *in_buf, unsigned int in_buf_len) in ota_write() argument 59 ret = ota_hal_write(off, in_buf, in_buf_len); in ota_write() 65 ((calculated_len + in_buf_len) <= valid_image_len) ? (tmp_len = in_buf_len) : in ota_write() 69 calculated_len += in_buf_len; in ota_write() 75 ret = ota_hash_update(&hash_ctx, (const unsigned char *)in_buf, in_buf_len); in ota_write()
|
/AliOS-Things-master/hardware/chip/haas1000/hal/ |
A D | flash.c | 523 const void *in_buf, uint32_t in_buf_len) in hal_flash_write() argument 547 if((start_addr + in_buf_len) > partition_end){ in hal_flash_write() 548 in_buf_len = partition_end - start_addr; in hal_flash_write() 549 TRACEME("flash over write, new len is %d\r\n", in_buf_len); in hal_flash_write() 554 *off_set += in_buf_len; in hal_flash_write() 599 if((start_addr + in_buf_len) > partition_end){ in hal_flash_erase_write() 600 in_buf_len = partition_end - start_addr; in hal_flash_erase_write() 601 TRACEME("flash over write, new len is %d\r\n", in_buf_len); in hal_flash_erase_write() 613 *off_set += in_buf_len; in hal_flash_erase_write() 635 void *out_buf, uint32_t in_buf_len) in hal_flash_read() argument [all …]
|
/AliOS-Things-master/hardware/chip/rtl872xd/hal/ |
A D | flash.c | 54 …sh_write(hal_partition_t in_partition, uint32_t *off_set, const void *in_buf , uint32_t in_buf_len) in hal_flash_write() argument 62 … if(off_set == NULL || in_buf == NULL || *off_set + in_buf_len > partition_info->partition_length){ in hal_flash_write() 63 … offset 0x%x, size 0x%x\r\n", in_partition, partition_info->partition_length, off_set, in_buf_len); in hal_flash_write() 67 ret = flash_stream_write(&flash_obj, start_addr, in_buf_len, (uint8_t *)in_buf); in hal_flash_write() 69 *off_set += in_buf_len; in hal_flash_write()
|
/AliOS-Things-master/components/amp_adapter/include/peripheral/ |
A D | aos_hal_flash.h | 152 const void *in_buf, uint32_t in_buf_len); 168 const void *in_buf, uint32_t in_buf_len); 184 void *out_buf, uint32_t in_buf_len);
|
/AliOS-Things-master/components/drivers/peripheral/flash/include/aos/hal/ |
A D | flash.h | 154 const void *in_buf, uint32_t in_buf_len); 170 const void *in_buf, uint32_t in_buf_len); 186 void *out_buf, uint32_t in_buf_len);
|
/AliOS-Things-master/components/ota/include/ |
A D | ota_import.h | 127 int ota_write(unsigned int *off, char *in_buf, unsigned int in_buf_len);
|