Lines Matching refs:oldstate
835 if (mode == FL_SYNCING && chip->oldstate != FL_READY) in chip_ready()
889 chip->oldstate = FL_ERASING; in chip_ready()
919 chip->oldstate = chip->state; in chip_ready()
928 if (mode == FL_READY && chip->oldstate == FL_READY) in chip_ready()
1015 && shared->erasing->oldstate == FL_ERASING) { in get_chip()
1046 if (shared->writing == chip && chip->oldstate == FL_READY) { in put_chip()
1078 switch(chip->oldstate) { in put_chip()
1091 chip->oldstate = FL_READY; in put_chip()
1096 chip->state = chip->oldstate; in put_chip()
1097 chip->oldstate = FL_READY; in put_chip()
1105 printk(KERN_ERR "%s: put_chip() called with oldstate %d!!\n", map->name, chip->oldstate); in put_chip()
1165 flstate_t oldstate, newstate; in xip_wait_for_operation() local
1178 (cfi_interleave_is_1(cfi) || chip->oldstate == FL_READY)) { in xip_wait_for_operation()
1207 oldstate = chip->state; in xip_wait_for_operation()
1208 if (oldstate == FL_ERASING) { in xip_wait_for_operation()
1250 chip->state = oldstate; in xip_wait_for_operation()
2062 chip->oldstate = chip->state; in cfi_intelext_sync()
2080 chip->state = chip->oldstate; in cfi_intelext_sync()
2081 chip->oldstate = FL_READY; in cfi_intelext_sync()
2547 if (chip->oldstate == FL_READY) { in cfi_intelext_suspend()
2550 chip->oldstate = chip->state; in cfi_intelext_suspend()
2558 …RN_NOTICE "Flash device refused suspend due to pending operation (oldstate %d)\n", chip->oldstate); in cfi_intelext_suspend()
2588 chip->state = chip->oldstate; in cfi_intelext_suspend()
2589 chip->oldstate = FL_READY; in cfi_intelext_suspend()
2638 chip->oldstate = chip->state = FL_READY; in cfi_intelext_resume()