Home
last modified time | relevance | path

Searched refs:SECTOR_SIZE (Results 1 – 11 of 11) sorted by relevance

/AliOS-Things-master/components/fatfs/src/ram_disk/
A Dram_disk.c44 #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 Dnbpatch_io.c14 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 Dxzupdater.c10 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 Dota_nbpatch.c48 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 Dnbpatch.c111 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 Dxz_export.c17 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 Dspiflash.c57 #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 Dflash.c29 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 Drec_hal.h13 #define SECTOR_SIZE 0x1000 macro
/AliOS-Things-master/components/ota/tools/xz/include/
A Dxz_hal_plat.h11 #define SECTOR_SIZE 0x1000 /* flash sector size */ macro
/AliOS-Things-master/components/ota/2ndboot/include/
A D2ndboot.h9 #define SECTOR_SIZE 0x1000 /* flash sector size */ macro

Completed in 21 milliseconds