Searched refs:aos_mtd_t (Results 1 – 10 of 10) sorted by relevance
/AliOS-Things-master/components/drivers/peripheral/flash/include/aos/ |
A D | mtd.h | 94 } aos_mtd_t; typedef 115 int(*markbad) (aos_mtd_t *mtd, uint32_t block); /* return 0 if success */ 142 aos_mtd_t* aos_mtd_open(const char *name); 151 aos_status_t aos_mtd_close(aos_mtd_t *mtd); 163 ssize_t aos_mtd_read(aos_mtd_t *mtd, off_t offset, void *buf, size_t size); 174 ssize_t aos_mtd_oob_read(aos_mtd_t *mtd, off_t offset, struct mtd_io_desc *info); 208 aos_status_t aos_mtd_erase(aos_mtd_t *mtd, off_t offset, size_t size); 218 aos_status_t aos_mtd_block_erase(aos_mtd_t *mtd, uint32_t block); 228 aos_status_t aos_mtd_block_mark_bad(aos_mtd_t *mtd, uint32_t block); 238 aos_status_t aos_mtd_block_is_bad(aos_mtd_t *mtd, uint32_t block); [all …]
|
A D | mtdnor.h | 10 int aos_mtd_nor_init(aos_mtd_t *nor, int blksize, int sector_size);
|
A D | mtdnand.h | 63 aos_mtd_t parent;
|
/AliOS-Things-master/components/drivers/peripheral/flash/src/ |
A D | mtd.c | 19 aos_mtd_t *mtd; 29 static aos_mtd_t* mtd_part_alloc(aos_mtd_t *master, const struct mtd_part *part) in mtd_part_alloc() 31 aos_mtd_t *slave; in mtd_part_alloc() 33 slave = malloc(sizeof(aos_mtd_t)); in mtd_part_alloc() 106 aos_mtd_t *mtd; in aos_mtd_get_by_device() 108 mtd = (aos_mtd_t *)aos_device_find(device_name); in aos_mtd_get_by_device() 178 aos_mtd_t *mtd = (aos_mtd_t *)dev; in mtd_ioctl() 205 aos_mtd_t *slave; in aos_mtd_register() 287 aos_mtd_t* aos_mtd_open(const char *name) in aos_mtd_open() 289 aos_mtd_t *mtd_dev = NULL; in aos_mtd_open() [all …]
|
A D | mtdnor.c | 8 static int _nor_erase(aos_mtd_t *mtd, off_t addr, size_t len) in _nor_erase() 15 static int _nor_read(aos_mtd_t *mtd, off_t from, struct mtd_io_desc *desc) in _nor_read() 29 static int _nor_write(aos_mtd_t *mtd, off_t to, struct mtd_io_desc *desc) in _nor_write() 52 int aos_mtd_nor_init(aos_mtd_t *nor, int blksize, int sector_size) in aos_mtd_nor_init()
|
A D | mtdnand.c | 460 static int nand_erase(aos_mtd_t *mtd, off_t addr, size_t size) in nand_erase() 485 static int nand_read(aos_mtd_t *mtd, off_t from, struct mtd_io_desc *desc) in nand_read() 513 static int nand_write(aos_mtd_t *mtd, off_t to, struct mtd_io_desc *desc) in nand_write() 541 static int nand_block_isbad(aos_mtd_t *mtd, uint32_t blk) in nand_block_isbad() 562 static int nand_block_markbad(aos_mtd_t *mtd, uint32_t blk) in nand_block_markbad()
|
/AliOS-Things-master/components/drivers/peripheral/flash/example/ |
A D | mtd_example.c | 14 aos_mtd_t *mtd; in mtd_unit_test()
|
/AliOS-Things-master/components/littlefs/src/ |
A D | littlefs_vfs.c | 174 aos_mtd_t *mtd = c->context; in littlefs_mtd_get_block_cnt() 195 aos_mtd_t *mtd = c->context; in littlefs_mtd_get_read_size() 216 aos_mtd_t *mtd = c->context; in littlefs_mtd_get_prog_size() 237 aos_mtd_t *mtd = c->context; in littlefs_mtd_get_block_size() 275 aos_mtd_t *mtd = c->context; in littlefs_block_read() 316 aos_mtd_t *mtd = c->context; in littlefs_block_write() 357 aos_mtd_t *mtd = c->context; in littlefs_block_erase()
|
/AliOS-Things-master/hardware/chip/haas1000/csi/ |
A D | flash.c | 171 static aos_mtd_t g_mtd_nor_dev;
|
/AliOS-Things-master/hardware/chip/rtl872xd/csi_driver/spiflash/ |
A D | spiflash.c | 217 static aos_mtd_t g_mtd_nor_dev;
|
Completed in 13 milliseconds