Lines Matching refs:mtd
174 aos_mtd_t *mtd = c->context; in littlefs_mtd_get_block_cnt() local
175 if (mtd) ret = (mtd->size / mtd->block_size); in littlefs_mtd_get_block_cnt()
195 aos_mtd_t *mtd = c->context; in littlefs_mtd_get_read_size() local
196 if (mtd) ret = mtd->sector_size; in littlefs_mtd_get_read_size()
216 aos_mtd_t *mtd = c->context; in littlefs_mtd_get_prog_size() local
217 if (mtd) ret = mtd->sector_size; in littlefs_mtd_get_prog_size()
237 aos_mtd_t *mtd = c->context; in littlefs_mtd_get_block_size() local
238 if (mtd) ret = mtd->block_size; in littlefs_mtd_get_block_size()
275 aos_mtd_t *mtd = c->context; in littlefs_block_read() local
276 ret = aos_mtd_read(mtd, c->block_size * block + off, dst, size); in littlefs_block_read()
316 aos_mtd_t *mtd = c->context; in littlefs_block_write() local
317 ret = aos_mtd_write(mtd, c->block_size * block + off, dst, size); in littlefs_block_write()
357 aos_mtd_t *mtd = c->context; in littlefs_block_erase() local
358 ret = aos_mtd_erase(mtd, c->block_size * block, c->block_size); in littlefs_block_erase()