Lines Matching refs:mtd
111 int(*erase)(aos_mtd_t *mtd, off_t addr, size_t len); /* return 0 if success */
112 int(*read) (aos_mtd_t *mtd, off_t from, struct mtd_io_desc *ops); /* return 0 if success */
113 int(*write) (aos_mtd_t *mtd, off_t to, struct mtd_io_desc *ops); /* return 0 if success */
114 int(*isbad) (aos_mtd_t *mtd, uint32_t block); /* return 1 if bad, 0 not bad */
115 int(*markbad) (aos_mtd_t *mtd, uint32_t block); /* return 0 if success */
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);
186 ssize_t aos_mtd_write(aos_mtd_t *mtd, off_t offset, const void *buf, size_t size);
197 ssize_t aos_mtd_oob_write(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);