Lines Matching refs:door_locked
3230 if (STp->do_auto_lock && STp->door_locked == ST_UNLOCKED && in osst_write()
3232 STp->door_locked = ST_LOCKED_AUTO; in osst_write()
3533 if (STp->do_auto_lock && STp->door_locked == ST_UNLOCKED && in osst_read()
3535 STp->door_locked = ST_LOCKED_AUTO; in osst_read()
4182 STp->door_locked = ST_LOCKED_EXPLICIT; in osst_int_ioctl()
4184 STp->door_locked = ST_UNLOCKED; in osst_int_ioctl()
4249 STp->door_locked = ST_LOCK_FAILS; in osst_int_ioctl()
4448 if (STp->door_locked == ST_UNLOCKED) { in os_scsi_tape_open()
4452 STp->door_locked = ST_LOCKED_AUTO; in os_scsi_tape_open()
4545 STp->door_locked = ST_UNLOCKED; in os_scsi_tape_open()
4613 if (STp->door_locked == ST_UNLOCKED) { in os_scsi_tape_open()
4617 STp->door_locked = ST_LOCKED_AUTO; in os_scsi_tape_open()
4756 if (STp->door_locked == ST_LOCKED_AUTO) in os_scsi_tape_close()
4895 if (STp->door_locked != ST_UNLOCKED && in osst_ioctl()
4896 STp->door_locked != ST_LOCK_FAILS) { in osst_ioctl()
4900 STp->door_locked = ST_UNLOCKED; in osst_ioctl()
4941 if (mtc.mt_op == MTOFFL && STp->door_locked != ST_UNLOCKED) in osst_ioctl()