/AliOS-Things-master/hardware/chip/rtl872xd/hal/ |
A D | flash.c | 30 int32_t hal_flash_erase(hal_partition_t in_partition, uint32_t off_set, uint32_t size) in hal_flash_erase() argument 39 if(size + off_set > partition_info->partition_length){ in hal_flash_erase() 62 … if(off_set == NULL || in_buf == NULL || *off_set + in_buf_len > partition_info->partition_length){ in hal_flash_write() 66 start_addr = partition_info->partition_start_addr + *off_set; in hal_flash_write() 69 *off_set += in_buf_len; in hal_flash_write() 81 …if(off_set == NULL || out_buf == NULL || *off_set + out_buf_len > partition_info->partition_length… in hal_flash_read() 86 start_addr = partition_info->partition_start_addr + *off_set; in hal_flash_read() 89 *off_set += out_buf_len; in hal_flash_read() 95 int32_t hal_flash_enable_secure(hal_partition_t in_partition, uint32_t off_set, uint32_t size) in hal_flash_enable_secure() argument 100 int32_t hal_flash_dis_secure(hal_partition_t in_partition, uint32_t off_set, uint32_t size) in hal_flash_dis_secure() argument [all …]
|
A D | ble_port.c | 142 int32_t hal_flash_enable_secure(hal_partition_t partition, uint32_t off_set, uint32_t size) 147 int32_t hal_flash_dis_secure(hal_partition_t partition, uint32_t off_set, uint32_t size)
|
A D | ota.c | 149 static int rtl8721d_ota_write_ota_cb(int* off_set, char *buffer, int len) in rtl8721d_ota_write_ota_cb() argument 407 static int rtl8721d_ota_read_ota_cb(int* off_set, char* out_buf, int out_buf_len) in rtl8721d_ota_read_ota_cb() argument 410 return hal_flash_read(boot_part, (uint32_t*)off_set, out_buf, out_buf_len); in rtl8721d_ota_read_ota_cb()
|
/AliOS-Things-master/hardware/chip/rtl872xd/hal/hal_test/flash/ |
A D | flash_test.c | 22 uint32_t off_set = 0; in hal_flash_test() local 48 off_set = 0; in hal_flash_test() 52 …ret = hal_flash_read(HAL_PARTITION_TEST, &off_set, flash_test_buffer, (TEST_BUFFER_WORDS * sizeof(… in hal_flash_test() 69 off_set = 0; in hal_flash_test() 77 …ret = hal_flash_write(HAL_PARTITION_TEST, &off_set, flash_test_buffer, (TEST_BUFFER_WORDS * sizeof… in hal_flash_test() 87 off_set = 0; in hal_flash_test() 91 …ret = hal_flash_read(HAL_PARTITION_TEST, &off_set, flash_test_buffer, (TEST_BUFFER_WORDS * sizeof(… in hal_flash_test()
|
/AliOS-Things-master/components/amp_adapter/include/peripheral/ |
A D | aos_hal_flash.h | 136 int32_t aos_hal_flash_erase(hal_partition_t in_partition, uint32_t off_set, uint32_t size); 151 int32_t aos_hal_flash_write(hal_partition_t in_partition, uint32_t *off_set, 167 int32_t aos_hal_flash_erase_write(hal_partition_t in_partition, uint32_t *off_set, 183 int32_t aos_hal_flash_read(hal_partition_t in_partition, uint32_t *off_set, 198 int32_t aos_hal_flash_enable_secure(hal_partition_t partition, uint32_t off_set, uint32_t size); 212 int32_t aos_hal_flash_dis_secure(hal_partition_t partition, uint32_t off_set, uint32_t size); 223 int32_t aos_hal_flash_addr2offset(hal_partition_t *in_partition, uint32_t *off_set, uint32_t addr);
|
/AliOS-Things-master/components/drivers/peripheral/flash/include/aos/hal/ |
A D | flash.h | 138 int32_t hal_flash_erase(hal_partition_t in_partition, uint32_t off_set, uint32_t size); 153 int32_t hal_flash_write(hal_partition_t in_partition, uint32_t *off_set, 169 int32_t hal_flash_erase_write(hal_partition_t in_partition, uint32_t *off_set, 185 int32_t hal_flash_read(hal_partition_t in_partition, uint32_t *off_set, 200 int32_t hal_flash_enable_secure(hal_partition_t partition, uint32_t off_set, uint32_t size); 214 int32_t hal_flash_dis_secure(hal_partition_t partition, uint32_t off_set, uint32_t size); 225 int32_t hal_flash_addr2offset(hal_partition_t *in_partition, uint32_t *off_set, uint32_t addr);
|
/AliOS-Things-master/components/drivers/core/base/include/aos/hal/ |
A D | nand_flash.h | 121 int hal_flash_isbad (hal_partition_t in_partition, uint32_t off_set); 131 int hal_flash_markbad(hal_partition_t in_partition, uint32_t off_set); 162 int32_t hal_flash_write_with_spare(hal_partition_t in_partition, uint32_t *off_set, 181 int32_t hal_flash_read_with_spare(hal_partition_t in_partition, uint32_t *off_set,
|
/AliOS-Things-master/hardware/chip/haas1000/hal/ |
A D | flash.c | 486 int32_t hal_flash_erase(hal_partition_t in_partition, uint32_t off_set, uint32_t size) in hal_flash_erase() argument 499 start_addr = info.partition_start_addr + off_set; in hal_flash_erase() 522 int32_t hal_flash_write(hal_partition_t in_partition, uint32_t *off_set, in hal_flash_write() argument 538 start_addr = info.partition_start_addr + *off_set; in hal_flash_write() 554 *off_set += in_buf_len; in hal_flash_write() 575 int32_t hal_flash_erase_write(hal_partition_t in_partition, uint32_t *off_set, in hal_flash_erase_write() argument 590 start_addr = info.partition_start_addr + *off_set; in hal_flash_erase_write() 613 *off_set += in_buf_len; in hal_flash_erase_write() 634 int32_t hal_flash_read(hal_partition_t in_partition, uint32_t *off_set, in hal_flash_read() argument 647 start_addr = info.partition_start_addr + *off_set; in hal_flash_read() [all …]
|
/AliOS-Things-master/components/genie_service/genie_port/hal/ |
A D | genie_hal_flash.c | 43 int32_t hal_flash_read_otp(uint32_t off_set, void *out_buf, uint32_t out_buf_len) in hal_flash_read_otp() argument 48 int32_t hal_flash_write_otp(uint32_t off_set, const void *in_buf, uint32_t in_buf_len) in hal_flash_write_otp() argument 52 if (off_set + in_buf_len > OTP_TOTAL_DATA_SIZE) in hal_flash_write_otp() 133 int32_t hal_flash_add2offset(hal_partition_t *in_partition, uint32_t *off_set, uint32_t addr) in hal_flash_add2offset() argument 146 *off_set = addr - partition_info.partition_start_addr; in hal_flash_add2offset() 151 *off_set = 0; in hal_flash_add2offset()
|
/AliOS-Things-master/components/ota/ota_agent/verify/ |
A D | ota_verify_hash.c | 178 unsigned int off_set = 0; in ota_get_image_info() local 183 off_set = image_size - sizeof(ota_image_info_t); in ota_get_image_info() 184 OTA_LOG_I("bin size:%d off:%d\r\n", image_size, off_set); in ota_get_image_info() 185 ret = ota_read(&off_set, (char *)tmp_info, sizeof(ota_image_info_t)); in ota_get_image_info()
|