Lines Matching defs:oldstate
760 if (mode == FL_SYNCING && chip->oldstate != FL_READY)
805 chip->oldstate = FL_ERASING;
819 chip->oldstate = FL_READY;
838 chip->oldstate = chip->state;
847 if (mode == FL_READY && chip->oldstate == FL_READY)
934 && shared->erasing->oldstate == FL_ERASING) {
965 if (shared->writing == chip && chip->oldstate == FL_READY) {
997 switch(chip->oldstate) {
999 chip->state = chip->oldstate;
1011 chip->oldstate = FL_READY;
1016 chip->state = chip->oldstate;
1017 chip->oldstate = FL_READY;
1027 printk(KERN_ERR "%s: put_chip() called with oldstate %d!!\n", map->name, chip->oldstate);
1087 flstate_t oldstate, newstate;
1100 (cfi_interleave_is_1(cfi) || chip->oldstate == FL_READY)) {
1129 oldstate = chip->state;
1130 if (oldstate == FL_ERASING) {
1172 chip->state = oldstate;
1987 chip->oldstate = chip->state;
2005 chip->state = chip->oldstate;
2006 chip->oldstate = FL_READY;
2468 if (chip->oldstate == FL_READY) {
2471 chip->oldstate = chip->state;
2479 printk(KERN_NOTICE "Flash device refused suspend due to pending operation (oldstate %d)\n", chip->oldstate);
2488 printk(KERN_NOTICE "Flash device refused suspend due to active operation (state %d)\n", chip->oldstate);
2508 chip->state = chip->oldstate;
2509 chip->oldstate = FL_READY;
2558 chip->oldstate = chip->state = FL_READY;