Lines Matching refs:tape_state
124 "OFFLINE" : tape_state_verbose[tdev->tape_state]); in tape_state_show()
187 tape_state_set(struct tape_device *device, enum tape_state newstate) in tape_state_set()
191 if (device->tape_state == TS_NOT_OPER) { in tape_state_set()
197 if (device->tape_state < TS_SIZE && device->tape_state >=0 ) in tape_state_set()
198 str = tape_state_verbose[device->tape_state]; in tape_state_set()
208 device->tape_state = newstate; in tape_state_set()
380 if (device->tape_state != TS_INIT) { in tape_generic_online()
381 DBF_LH(3, "Tapestate not INIT (%d)\n", device->tape_state); in tape_generic_online()
451 switch (device->tape_state) { in tape_generic_offline()
497 device->tape_state = TS_INIT; in tape_alloc_device()
628 switch (device->tape_state) { in tape_generic_remove()
900 if (device->tape_state == TS_INIT) in __tape_start_request()
902 if (device->tape_state == TS_UNUSED) in __tape_start_request()
906 if (device->tape_state == TS_BLKUSE) in __tape_start_request()
908 if (device->tape_state != TS_IN_USE) in __tape_start_request()
1135 if (device->tape_state == TS_NOT_OPER) { in __tape_do_irq()
1202 if (device->tape_state == TS_NOT_OPER) { in tape_open()
1205 } else if (device->tape_state == TS_IN_USE) { in tape_open()
1208 } else if (device->tape_state == TS_BLKUSE) { in tape_open()
1230 if (device->tape_state == TS_IN_USE) in tape_release()