Searched refs:mtdblk (Results 1 – 1 of 1) sorted by relevance
78 static int write_cached_data (struct mtdblk_dev *mtdblk) in write_cached_data() argument80 struct mtd_info *mtd = mtdblk->mbd.mtd; in write_cached_data()83 if (mtdblk->cache_state != STATE_DIRTY) in write_cached_data()88 mtdblk->cache_offset, mtdblk->cache_size); in write_cached_data()90 ret = erase_write (mtd, mtdblk->cache_offset, in write_cached_data()91 mtdblk->cache_size, mtdblk->cache_data); in write_cached_data()105 mtdblk->cache_state = STATE_EMPTY; in write_cached_data()110 static int do_cached_write (struct mtdblk_dev *mtdblk, unsigned long pos, in do_cached_write() argument113 struct mtd_info *mtd = mtdblk->mbd.mtd; in do_cached_write()114 unsigned int sect_size = mtdblk->cache_size; in do_cached_write()[all …]