Lines Matching refs:STm

3374 	struct st_modedef   * STm;  in osst_write()  local
3401 STm = &(STp->modes[STp->current_mode]); in osst_write()
3402 if (!STm->defined) { in osst_write()
3552 if (!STm->do_buffer_writes) { in osst_write()
3557 if (!STm->do_async_writes) in osst_write()
3659 if (STm->do_async_writes && ((STp->buffer)->buffer_bytes >= STp->write_threshold)) { in osst_write()
3694 struct st_modedef * STm; in osst_read() local
3722 STm = &(STp->modes[STp->current_mode]); in osst_read()
3723 if (!STm->defined) { in osst_read()
3874 static void osst_log_options(struct osst_tape *STp, struct st_modedef *STm, char *name) in osst_log_options() argument
3878 name, STp->current_mode, STm->do_buffer_writes, STm->do_async_writes, in osst_log_options()
3879 STm->do_read_ahead); in osst_log_options()
3885 name, STm->defaults_for_writes, STp->omit_blklims, STp->can_partitions, in osst_log_options()
3888 "%s:I: sysv: %d\n", name, STm->sysv); in osst_log_options()
3901 struct st_modedef * STm; in osst_set_options() local
3904 STm = &(STp->modes[STp->current_mode]); in osst_set_options()
3905 if (!STm->defined) { in osst_set_options()
3906 memcpy(STm, &(STp->modes[0]), sizeof(*STm)); in osst_set_options()
3917 STm->do_buffer_writes = (options & MT_ST_BUFFER_WRITES) != 0; in osst_set_options()
3918 STm->do_async_writes = (options & MT_ST_ASYNC_WRITES) != 0; in osst_set_options()
3919 STm->defaults_for_writes = (options & MT_ST_DEF_WRITES) != 0; in osst_set_options()
3920 STm->do_read_ahead = (options & MT_ST_READ_AHEAD) != 0; in osst_set_options()
3929 STm->sysv = (options & MT_ST_SYSV) != 0; in osst_set_options()
3933 osst_log_options(STp, STm, name); in osst_set_options()
3938 STm->do_buffer_writes = value; in osst_set_options()
3940 STm->do_async_writes = value; in osst_set_options()
3942 STm->defaults_for_writes = value; in osst_set_options()
3944 STm->do_read_ahead = value; in osst_set_options()
3961 STm->sysv = value; in osst_set_options()
3966 osst_log_options(STp, STm, name); in osst_set_options()
3982 STm->default_blksize = (-1); in osst_set_options()
3991 STm->default_blksize = value; in osst_set_options()
3993 name, STm->default_blksize); in osst_set_options()
4013 STm->default_density = (-1); in osst_set_options()
4017 STm->default_density = value & 0xff; in osst_set_options()
4019 name, STm->default_density); in osst_set_options()
4035 STm->default_compression = ST_DONT_TOUCH; in osst_set_options()
4039 STm->default_compression = (value & 1 ? ST_YES : ST_NO); in osst_set_options()
4446 struct st_modedef * STm; in __os_scsi_tape_open() local
4500 STm = &(STp->modes[STp->current_mode]); in __os_scsi_tape_open()
4646 STp->block_size = (STm->default_blksize > 0) ? in __os_scsi_tape_open()
4647 STm->default_blksize : OS_DATA_SIZE; in __os_scsi_tape_open()
4745 (STm->default_blksize > 0) ? STm->default_blksize : OS_DATA_SIZE); in __os_scsi_tape_open()
4825 struct st_modedef * STm = &(STp->modes[STp->current_mode]); in os_scsi_tape_flush() local
4858 if (!STm->sysv || STps->rw != ST_READING) { in os_scsi_tape_flush()
4941 struct st_modedef * STm; in osst_ioctl() local
4961 STm = &(STp->modes[STp->current_mode]); in osst_ioctl()
5002 if (!STm->defined && (mtc.mt_op != MTSETDRVBUFFER && (mtc.mt_count & MT_ST_OPTIONS) == 0)) { in osst_ioctl()
5165 if (!STm->defined) { in osst_ioctl()
5224 if (STm->do_async_writes || (STm->do_buffer_writes && STp->block_size != 0) || in osst_ioctl()
5837 struct st_modedef * STm; in osst_probe() local
5937 STm = &(tpnt->modes[i]); in osst_probe()
5938 STm->defined = 0; in osst_probe()
5939 STm->sysv = OSST_SYSV; in osst_probe()
5940 STm->defaults_for_writes = 0; in osst_probe()
5941 STm->do_async_writes = OSST_ASYNC_WRITES; in osst_probe()
5942 STm->do_buffer_writes = OSST_BUFFER_WRITES; in osst_probe()
5943 STm->do_read_ahead = OSST_READ_AHEAD; in osst_probe()
5944 STm->default_compression = ST_DONT_TOUCH; in osst_probe()
5945 STm->default_blksize = 512; in osst_probe()
5946 STm->default_density = (-1); /* No forced density */ in osst_probe()