Lines Matching refs:STm

3375 	struct st_modedef   * STm;  in osst_write()  local
3402 STm = &(STp->modes[STp->current_mode]); in osst_write()
3403 if (!STm->defined) { in osst_write()
3553 if (!STm->do_buffer_writes) { in osst_write()
3558 if (!STm->do_async_writes) in osst_write()
3660 if (STm->do_async_writes && ((STp->buffer)->buffer_bytes >= STp->write_threshold)) { in osst_write()
3695 struct st_modedef * STm; in osst_read() local
3723 STm = &(STp->modes[STp->current_mode]); in osst_read()
3724 if (!STm->defined) { in osst_read()
3875 static void osst_log_options(struct osst_tape *STp, struct st_modedef *STm, char *name) in osst_log_options() argument
3879 name, STp->current_mode, STm->do_buffer_writes, STm->do_async_writes, in osst_log_options()
3880 STm->do_read_ahead); in osst_log_options()
3886 name, STm->defaults_for_writes, STp->omit_blklims, STp->can_partitions, in osst_log_options()
3889 "%s:I: sysv: %d\n", name, STm->sysv); in osst_log_options()
3902 struct st_modedef * STm; in osst_set_options() local
3905 STm = &(STp->modes[STp->current_mode]); in osst_set_options()
3906 if (!STm->defined) { in osst_set_options()
3907 memcpy(STm, &(STp->modes[0]), sizeof(*STm)); in osst_set_options()
3918 STm->do_buffer_writes = (options & MT_ST_BUFFER_WRITES) != 0; in osst_set_options()
3919 STm->do_async_writes = (options & MT_ST_ASYNC_WRITES) != 0; in osst_set_options()
3920 STm->defaults_for_writes = (options & MT_ST_DEF_WRITES) != 0; in osst_set_options()
3921 STm->do_read_ahead = (options & MT_ST_READ_AHEAD) != 0; in osst_set_options()
3930 STm->sysv = (options & MT_ST_SYSV) != 0; in osst_set_options()
3934 osst_log_options(STp, STm, name); in osst_set_options()
3939 STm->do_buffer_writes = value; in osst_set_options()
3941 STm->do_async_writes = value; in osst_set_options()
3943 STm->defaults_for_writes = value; in osst_set_options()
3945 STm->do_read_ahead = value; in osst_set_options()
3962 STm->sysv = value; in osst_set_options()
3967 osst_log_options(STp, STm, name); in osst_set_options()
3983 STm->default_blksize = (-1); in osst_set_options()
3992 STm->default_blksize = value; in osst_set_options()
3994 name, STm->default_blksize); in osst_set_options()
4014 STm->default_density = (-1); in osst_set_options()
4018 STm->default_density = value & 0xff; in osst_set_options()
4020 name, STm->default_density); in osst_set_options()
4036 STm->default_compression = ST_DONT_TOUCH; in osst_set_options()
4040 STm->default_compression = (value & 1 ? ST_YES : ST_NO); in osst_set_options()
4447 struct st_modedef * STm; in __os_scsi_tape_open() local
4501 STm = &(STp->modes[STp->current_mode]); in __os_scsi_tape_open()
4647 STp->block_size = (STm->default_blksize > 0) ? in __os_scsi_tape_open()
4648 STm->default_blksize : OS_DATA_SIZE; in __os_scsi_tape_open()
4746 (STm->default_blksize > 0) ? STm->default_blksize : OS_DATA_SIZE); in __os_scsi_tape_open()
4826 struct st_modedef * STm = &(STp->modes[STp->current_mode]); in os_scsi_tape_flush() local
4859 if (!STm->sysv || STps->rw != ST_READING) { in os_scsi_tape_flush()
4942 struct st_modedef * STm; in osst_ioctl() local
4962 STm = &(STp->modes[STp->current_mode]); in osst_ioctl()
5003 if (!STm->defined && (mtc.mt_op != MTSETDRVBUFFER && (mtc.mt_count & MT_ST_OPTIONS) == 0)) { in osst_ioctl()
5166 if (!STm->defined) { in osst_ioctl()
5225 if (STm->do_async_writes || (STm->do_buffer_writes && STp->block_size != 0) || in osst_ioctl()
5838 struct st_modedef * STm; in osst_probe() local
5938 STm = &(tpnt->modes[i]); in osst_probe()
5939 STm->defined = 0; in osst_probe()
5940 STm->sysv = OSST_SYSV; in osst_probe()
5941 STm->defaults_for_writes = 0; in osst_probe()
5942 STm->do_async_writes = OSST_ASYNC_WRITES; in osst_probe()
5943 STm->do_buffer_writes = OSST_BUFFER_WRITES; in osst_probe()
5944 STm->do_read_ahead = OSST_READ_AHEAD; in osst_probe()
5945 STm->default_compression = ST_DONT_TOUCH; in osst_probe()
5946 STm->default_blksize = 512; in osst_probe()
5947 STm->default_density = (-1); /* No forced density */ in osst_probe()