Searched refs:mtdblk (Results 1 – 1 of 1) sorted by relevance
136 static int write_cached_data (struct mtdblk_dev *mtdblk) in write_cached_data() argument138 struct mtd_info *mtd = mtdblk->mtd; in write_cached_data()141 if (mtdblk->cache_state != STATE_DIRTY) in write_cached_data()146 mtdblk->cache_offset, mtdblk->cache_size); in write_cached_data()148 ret = erase_write (mtd, mtdblk->cache_offset, in write_cached_data()149 mtdblk->cache_size, mtdblk->cache_data); in write_cached_data()160 mtdblk->cache_state = STATE_EMPTY; in write_cached_data()165 static int do_cached_write (struct mtdblk_dev *mtdblk, unsigned long pos, in do_cached_write() argument168 struct mtd_info *mtd = mtdblk->mtd; in do_cached_write()169 unsigned int sect_size = mtdblk->cache_size; in do_cached_write()[all …]