Searched refs:SECTOR_SIZE (Results 1 – 11 of 11) sorted by relevance
/AliOS-Things-master/components/fatfs/src/ram_disk/ |
A D | ram_disk.c | 44 #define SECTOR_SIZE _MIN_SS /* usualy 512 B */ macro 89 memcpy(buff, disk_space + sector * SECTOR_SIZE, SECTOR_SIZE * count); in ram_disk_read() 102 memcpy(disk_space + sector * SECTOR_SIZE, buff, SECTOR_SIZE * count); in ram_disk_write() 117 *(uint32_t *)buff = DISK_SIZE / SECTOR_SIZE; in ram_disk_ioctl() 122 *(uint32_t *)buff = SECTOR_SIZE; in ram_disk_ioctl()
|
/AliOS-Things-master/components/ota/2ndboot/updater/ |
A D | nbpatch_io.c | 14 read_size = size > SECTOR_SIZE ? SECTOR_SIZE : size; in ota_patch_read() 32 write_size = size > SECTOR_SIZE? SECTOR_SIZE:size; in ota_patch_write() 59 bsize = size > SECTOR_SIZE ? SECTOR_SIZE : size; in ota_patch_new_data() 74 unsigned char tmp[SECTOR_SIZE]; in ota_load_new_data() 87 bsize = size > SECTOR_SIZE ? SECTOR_SIZE : size; in ota_load_new_data() 88 memset(tmp, 0, SECTOR_SIZE); in ota_load_new_data()
|
A D | xzupdater.c | 10 unsigned char data_buf[SECTOR_SIZE] = {0}; in ota_image_check() 17 read_size = size >= SECTOR_SIZE ? SECTOR_SIZE : size; in ota_image_check() 18 memset(data_buf, 0, SECTOR_SIZE); in ota_image_check() 36 unsigned char data_buf[SECTOR_SIZE] = {0}; in ota_image_copy() 44 read_size = size >= SECTOR_SIZE ? SECTOR_SIZE : size; in ota_image_copy() 45 memset(data_buf, 0, SECTOR_SIZE); in ota_image_copy() 87 err = flash_erase(erase_addr, SECTOR_SIZE); in ota_copy_xz() 131 erase_addr += SECTOR_SIZE; in ota_copy_xz() 132 err = flash_erase(erase_addr, SECTOR_SIZE); in ota_copy_xz() 148 erase_addr += SECTOR_SIZE; in ota_copy_xz() [all …]
|
A D | ota_nbpatch.c | 48 read_size = size > SECTOR_SIZE ? SECTOR_SIZE : size; in ota_patch_init() 81 read_size = size > SECTOR_SIZE ? SECTOR_SIZE:size; in ota_patch_init()
|
A D | nbpatch.c | 111 old_buf = malloc(SECTOR_SIZE); in ota_nbpatch() 220 if (!(i % SECTOR_SIZE)) { in ota_nbpatch() 221 base_pos = (idx++) * SECTOR_SIZE; in ota_nbpatch() 222 long osize = cp_size > SECTOR_SIZE ? SECTOR_SIZE : cp_size; in ota_nbpatch()
|
/AliOS-Things-master/components/ota/tools/xz/src/ |
A D | xz_export.c | 17 data_buf = ota_malloc(SECTOR_SIZE); in xz_check_file_crc() 23 memset(data_buf, 0x00, SECTOR_SIZE); in xz_check_file_crc() 26 read_size = size >= SECTOR_SIZE ? SECTOR_SIZE : size; in xz_check_file_crc() 27 memset(data_buf, 0, SECTOR_SIZE); in xz_check_file_crc() 82 err = xz_flash_erase(des_partition, erase_offset, SECTOR_SIZE); in copy_xz() 127 erase_offset += SECTOR_SIZE; in copy_xz() 142 if(write_offset + b.out_pos >= erase_offset + SECTOR_SIZE) { in copy_xz() 143 erase_offset += SECTOR_SIZE; in copy_xz() 217 data_buf = ota_malloc(SECTOR_SIZE); in xz_verify_uncompress_file() 222 memset(data_buf, 0x00, SECTOR_SIZE); in xz_verify_uncompress_file() [all …]
|
/AliOS-Things-master/components/py_engine/engine/drivers/memory/ |
A D | spiflash.c | 57 #define SECTOR_SIZE MP_SPIFLASH_ERASE_BLOCK_SIZE macro 299 uint32_t bis = addr / SECTOR_SIZE; in mp_spiflash_cached_read() 313 rest = SECTOR_SIZE - offset; in mp_spiflash_cached_read() 372 if (offset + len > SECTOR_SIZE) { in mp_spiflash_cached_write_part() 445 uint32_t bis = addr / SECTOR_SIZE; in mp_spiflash_cached_write() 466 if (len_in_buf > SECTOR_SIZE - offset) { in mp_spiflash_cached_write() 468 len_in_buf = SECTOR_SIZE - offset; in mp_spiflash_cached_write() 475 int rest = pre & (SECTOR_SIZE - 1); in mp_spiflash_cached_write() 477 rest = SECTOR_SIZE; in mp_spiflash_cached_write() 494 uint32_t offset = addr & (SECTOR_SIZE - 1); in mp_spiflash_cached_write() [all …]
|
/AliOS-Things-master/hardware/chip/haas1000/hal/2ndboot/ |
A D | flash.c | 29 start_addr = ROUND_DOWN(offset, SECTOR_SIZE); in flash_erase() 30 end_addr = ROUND_DOWN((offset + len - 1), SECTOR_SIZE); in flash_erase() 32 for (addr = start_addr; addr <= end_addr; addr += SECTOR_SIZE) { in flash_erase() 36 ret = hal_norflash_erase(HAL_NORFLASH_ID_0, addr, SECTOR_SIZE); in flash_erase()
|
/AliOS-Things-master/hardware/chip/rtl872xd/2nd_boot/ |
A D | rec_hal.h | 13 #define SECTOR_SIZE 0x1000 macro
|
/AliOS-Things-master/components/ota/tools/xz/include/ |
A D | xz_hal_plat.h | 11 #define SECTOR_SIZE 0x1000 /* flash sector size */ macro
|
/AliOS-Things-master/components/ota/2ndboot/include/ |
A D | 2ndboot.h | 9 #define SECTOR_SIZE 0x1000 /* flash sector size */ macro
|
Completed in 21 milliseconds