Lines Matching refs:STm
3378 struct st_modedef * STm;
3405 STm = &(STp->modes[STp->current_mode]);
3406 if (!STm->defined) {
3556 if (!STm->do_buffer_writes) {
3561 if (!STm->do_async_writes)
3663 if (STm->do_async_writes && ((STp->buffer)->buffer_bytes >= STp->write_threshold)) {
3698 struct st_modedef * STm;
3726 STm = &(STp->modes[STp->current_mode]);
3727 if (!STm->defined) {
3877 static void osst_log_options(struct osst_tape *STp, struct st_modedef *STm, char *name)
3881 name, STp->current_mode, STm->do_buffer_writes, STm->do_async_writes,
3882 STm->do_read_ahead);
3888 name, STm->defaults_for_writes, STp->omit_blklims, STp->can_partitions,
3891 "%s:I: sysv: %d\n", name, STm->sysv);
3904 struct st_modedef * STm;
3907 STm = &(STp->modes[STp->current_mode]);
3908 if (!STm->defined) {
3909 memcpy(STm, &(STp->modes[0]), sizeof(*STm));
3920 STm->do_buffer_writes = (options & MT_ST_BUFFER_WRITES) != 0;
3921 STm->do_async_writes = (options & MT_ST_ASYNC_WRITES) != 0;
3922 STm->defaults_for_writes = (options & MT_ST_DEF_WRITES) != 0;
3923 STm->do_read_ahead = (options & MT_ST_READ_AHEAD) != 0;
3932 STm->sysv = (options & MT_ST_SYSV) != 0;
3936 osst_log_options(STp, STm, name);
3941 STm->do_buffer_writes = value;
3943 STm->do_async_writes = value;
3945 STm->defaults_for_writes = value;
3947 STm->do_read_ahead = value;
3964 STm->sysv = value;
3969 osst_log_options(STp, STm, name);
3985 STm->default_blksize = (-1);
3994 STm->default_blksize = value;
3996 name, STm->default_blksize);
4016 STm->default_density = (-1);
4020 STm->default_density = value & 0xff;
4022 name, STm->default_density);
4038 STm->default_compression = ST_DONT_TOUCH;
4042 STm->default_compression = (value & 1 ? ST_YES : ST_NO);
4449 struct st_modedef * STm;
4503 STm = &(STp->modes[STp->current_mode]);
4649 STp->block_size = (STm->default_blksize > 0) ?
4650 STm->default_blksize : OS_DATA_SIZE;
4746 (STm->default_blksize > 0) ? STm->default_blksize : OS_DATA_SIZE);
4826 struct st_modedef * STm = &(STp->modes[STp->current_mode]);
4859 if (!STm->sysv || STps->rw != ST_READING) {
4942 struct st_modedef * STm;
4962 STm = &(STp->modes[STp->current_mode]);
5003 if (!STm->defined && (mtc.mt_op != MTSETDRVBUFFER && (mtc.mt_count & MT_ST_OPTIONS) == 0)) {
5166 if (!STm->defined) {
5225 if (STm->do_async_writes || (STm->do_buffer_writes && STp->block_size != 0) ||
5836 struct st_modedef * STm;
5938 STm = &(tpnt->modes[i]);
5939 STm->defined = 0;
5940 STm->sysv = OSST_SYSV;
5941 STm->defaults_for_writes = 0;
5942 STm->do_async_writes = OSST_ASYNC_WRITES;
5943 STm->do_buffer_writes = OSST_BUFFER_WRITES;
5944 STm->do_read_ahead = OSST_READ_AHEAD;
5945 STm->default_compression = ST_DONT_TOUCH;
5946 STm->default_blksize = 512;
5947 STm->default_density = (-1); /* No forced density */