Home
last modified time | relevance | path

Searched refs:mtdblk (Results 1 – 1 of 1) sorted by relevance

/linux-2.4.37.9/drivers/mtd/
Dmtdblock.c136 static int write_cached_data (struct mtdblk_dev *mtdblk) in write_cached_data() argument
138 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() argument
168 struct mtd_info *mtd = mtdblk->mtd; in do_cached_write()
169 unsigned int sect_size = mtdblk->cache_size; in do_cached_write()
[all …]