Home
last modified time | relevance | path

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

/linux-2.4.37.9/drivers/mtd/
Dmtdblock.c55 enum { STATE_EMPTY, STATE_CLEAN, STATE_DIRTY } cache_state; member
141 if (mtdblk->cache_state != STATE_DIRTY) in write_cached_data()
160 mtdblk->cache_state = STATE_EMPTY; in write_cached_data()
198 if (mtdblk->cache_state == STATE_DIRTY && in do_cached_write()
205 if (mtdblk->cache_state == STATE_EMPTY || in do_cached_write()
208 mtdblk->cache_state = STATE_EMPTY; in do_cached_write()
217 mtdblk->cache_state = STATE_CLEAN; in do_cached_write()
222 mtdblk->cache_state = STATE_DIRTY; in do_cached_write()
261 if (mtdblk->cache_state != STATE_EMPTY && in do_cached_read()
336 mtdblk->cache_state = STATE_EMPTY; in mtdblock_open()