Lines Matching refs:STm
3378 struct st_modedef * STm; in osst_write() local
3405 STm = &(STp->modes[STp->current_mode]); in osst_write()
3406 if (!STm->defined) { in osst_write()
3556 if (!STm->do_buffer_writes) { in osst_write()
3561 if (!STm->do_async_writes) in osst_write()
3663 if (STm->do_async_writes && ((STp->buffer)->buffer_bytes >= STp->write_threshold)) { in osst_write()
3698 struct st_modedef * STm; in osst_read() local
3726 STm = &(STp->modes[STp->current_mode]); in osst_read()
3727 if (!STm->defined) { in osst_read()
3878 static void osst_log_options(struct osst_tape *STp, struct st_modedef *STm, char *name) in osst_log_options() argument
3882 name, STp->current_mode, STm->do_buffer_writes, STm->do_async_writes, in osst_log_options()
3883 STm->do_read_ahead); in osst_log_options()
3889 name, STm->defaults_for_writes, STp->omit_blklims, STp->can_partitions, in osst_log_options()
3892 "%s:I: sysv: %d\n", name, STm->sysv); in osst_log_options()
3905 struct st_modedef * STm; in osst_set_options() local
3908 STm = &(STp->modes[STp->current_mode]); in osst_set_options()
3909 if (!STm->defined) { in osst_set_options()
3910 memcpy(STm, &(STp->modes[0]), sizeof(*STm)); in osst_set_options()
3921 STm->do_buffer_writes = (options & MT_ST_BUFFER_WRITES) != 0; in osst_set_options()
3922 STm->do_async_writes = (options & MT_ST_ASYNC_WRITES) != 0; in osst_set_options()
3923 STm->defaults_for_writes = (options & MT_ST_DEF_WRITES) != 0; in osst_set_options()
3924 STm->do_read_ahead = (options & MT_ST_READ_AHEAD) != 0; in osst_set_options()
3933 STm->sysv = (options & MT_ST_SYSV) != 0; in osst_set_options()
3937 osst_log_options(STp, STm, name); in osst_set_options()
3942 STm->do_buffer_writes = value; in osst_set_options()
3944 STm->do_async_writes = value; in osst_set_options()
3946 STm->defaults_for_writes = value; in osst_set_options()
3948 STm->do_read_ahead = value; in osst_set_options()
3965 STm->sysv = value; in osst_set_options()
3970 osst_log_options(STp, STm, name); in osst_set_options()
3986 STm->default_blksize = (-1); in osst_set_options()
3995 STm->default_blksize = value; in osst_set_options()
3997 name, STm->default_blksize); in osst_set_options()
4017 STm->default_density = (-1); in osst_set_options()
4021 STm->default_density = value & 0xff; in osst_set_options()
4023 name, STm->default_density); in osst_set_options()
4039 STm->default_compression = ST_DONT_TOUCH; in osst_set_options()
4043 STm->default_compression = (value & 1 ? ST_YES : ST_NO); in osst_set_options()
4450 struct st_modedef * STm; in __os_scsi_tape_open() local
4504 STm = &(STp->modes[STp->current_mode]); in __os_scsi_tape_open()
4650 STp->block_size = (STm->default_blksize > 0) ? in __os_scsi_tape_open()
4651 STm->default_blksize : OS_DATA_SIZE; in __os_scsi_tape_open()
4749 (STm->default_blksize > 0) ? STm->default_blksize : OS_DATA_SIZE); in __os_scsi_tape_open()
4829 struct st_modedef * STm = &(STp->modes[STp->current_mode]); in os_scsi_tape_flush() local
4862 if (!STm->sysv || STps->rw != ST_READING) { in os_scsi_tape_flush()
4945 struct st_modedef * STm; in osst_ioctl() local
4965 STm = &(STp->modes[STp->current_mode]); in osst_ioctl()
5006 if (!STm->defined && (mtc.mt_op != MTSETDRVBUFFER && (mtc.mt_count & MT_ST_OPTIONS) == 0)) { in osst_ioctl()
5169 if (!STm->defined) { in osst_ioctl()
5228 if (STm->do_async_writes || (STm->do_buffer_writes && STp->block_size != 0) || in osst_ioctl()
5841 struct st_modedef * STm; in osst_probe() local
5943 STm = &(tpnt->modes[i]); in osst_probe()
5944 STm->defined = 0; in osst_probe()
5945 STm->sysv = OSST_SYSV; in osst_probe()
5946 STm->defaults_for_writes = 0; in osst_probe()
5947 STm->do_async_writes = OSST_ASYNC_WRITES; in osst_probe()
5948 STm->do_buffer_writes = OSST_BUFFER_WRITES; in osst_probe()
5949 STm->do_read_ahead = OSST_READ_AHEAD; in osst_probe()
5950 STm->default_compression = ST_DONT_TOUCH; in osst_probe()
5951 STm->default_blksize = 512; in osst_probe()
5952 STm->default_density = (-1); /* No forced density */ in osst_probe()