Lines Matching refs:cache_state
44 enum { STATE_EMPTY, STATE_CLEAN, STATE_DIRTY } cache_state;
119 if (mtdblk->cache_state != STATE_DIRTY)
138 mtdblk->cache_state = STATE_EMPTY;
176 if (mtdblk->cache_state == STATE_DIRTY &&
183 if (mtdblk->cache_state == STATE_EMPTY ||
186 mtdblk->cache_state = STATE_EMPTY;
196 mtdblk->cache_state = STATE_CLEAN;
201 mtdblk->cache_state = STATE_DIRTY;
240 if (mtdblk->cache_state != STATE_EMPTY &&
298 mtdblk->cache_state = STATE_EMPTY;