Lines Matching refs:STm

3148 	ST_mode * STm;  in osst_write()  local
3182 STm = &(STp->modes[STp->current_mode]); in osst_write()
3183 if (!STm->defined) { in osst_write()
3335 if (!STm->do_buffer_writes) { in osst_write()
3340 if (!STm->do_async_writes) in osst_write()
3442 if (STm->do_async_writes && ((STp->buffer)->buffer_bytes >= STp->write_threshold)) { in osst_write()
3480 ST_mode * STm; in osst_read() local
3515 STm = &(STp->modes[STp->current_mode]); in osst_read()
3516 if (!STm->defined) { in osst_read()
3669 static void osst_log_options(OS_Scsi_Tape *STp, ST_mode *STm, int dev) in osst_log_options() argument
3673 dev, STp->current_mode, STm->do_buffer_writes, STm->do_async_writes, in osst_log_options()
3674 STm->do_read_ahead); in osst_log_options()
3680 dev, STm->defaults_for_writes, STp->omit_blklims, STp->can_partitions, in osst_log_options()
3683 "osst%d:I: sysv: %d\n", dev, STm->sysv); in osst_log_options()
3696 ST_mode *STm; in osst_set_options() local
3699 STm = &(STp->modes[STp->current_mode]); in osst_set_options()
3700 if (!STm->defined) { in osst_set_options()
3701 memcpy(STm, &(STp->modes[0]), sizeof(ST_mode)); in osst_set_options()
3712 STm->do_buffer_writes = (options & MT_ST_BUFFER_WRITES) != 0; in osst_set_options()
3713 STm->do_async_writes = (options & MT_ST_ASYNC_WRITES) != 0; in osst_set_options()
3714 STm->defaults_for_writes = (options & MT_ST_DEF_WRITES) != 0; in osst_set_options()
3715 STm->do_read_ahead = (options & MT_ST_READ_AHEAD) != 0; in osst_set_options()
3724 STm->sysv = (options & MT_ST_SYSV) != 0; in osst_set_options()
3728 osst_log_options(STp, STm, dev); in osst_set_options()
3733 STm->do_buffer_writes = value; in osst_set_options()
3735 STm->do_async_writes = value; in osst_set_options()
3737 STm->defaults_for_writes = value; in osst_set_options()
3739 STm->do_read_ahead = value; in osst_set_options()
3756 STm->sysv = value; in osst_set_options()
3761 osst_log_options(STp, STm, dev); in osst_set_options()
3777 STm->default_blksize = (-1); in osst_set_options()
3786 STm->default_blksize = value; in osst_set_options()
3788 dev, STm->default_blksize); in osst_set_options()
3808 STm->default_density = (-1); in osst_set_options()
3812 STm->default_density = value & 0xff; in osst_set_options()
3814 dev, STm->default_density); in osst_set_options()
3830 STm->default_compression = ST_DONT_TOUCH; in osst_set_options()
3834 STm->default_compression = (value & 1 ? ST_YES : ST_NO); in osst_set_options()
4273 ST_mode * STm; in os_scsi_tape_open() local
4309 STm = &(STp->modes[STp->current_mode]); in os_scsi_tape_open()
4455 STp->block_size = (STm->default_blksize > 0) ? in os_scsi_tape_open()
4456 STm->default_blksize : OS_DATA_SIZE; in os_scsi_tape_open()
4576 (STm->default_blksize > 0) ? STm->default_blksize : OS_DATA_SIZE); in os_scsi_tape_open()
4652 ST_mode * STm; in os_scsi_tape_flush() local
4665 STm = &(STp->modes[STp->current_mode]); in os_scsi_tape_flush()
4693 if (!STm->sysv || STps->rw != ST_READING) { in os_scsi_tape_flush()
4785 ST_mode *STm; in osst_ioctl() local
4802 STm = &(STp->modes[STp->current_mode]); in osst_ioctl()
4843 if (!STm->defined && (mtc.mt_op != MTSETDRVBUFFER && (mtc.mt_count & MT_ST_OPTIONS) == 0)) { in osst_ioctl()
5005 if (!STm->defined) { in osst_ioctl()
5064 if (STm->do_async_writes || (STm->do_buffer_writes && STp->block_size != 0) || in osst_ioctl()
5610 ST_mode * STm; in osst_attach() local
5704 STm = &(tpnt->modes[i]); in osst_attach()
5705 STm->defined = FALSE; in osst_attach()
5706 STm->sysv = OSST_SYSV; in osst_attach()
5707 STm->defaults_for_writes = 0; in osst_attach()
5708 STm->do_async_writes = OSST_ASYNC_WRITES; in osst_attach()
5709 STm->do_buffer_writes = OSST_BUFFER_WRITES; in osst_attach()
5710 STm->do_read_ahead = OSST_READ_AHEAD; in osst_attach()
5711 STm->default_compression = ST_DONT_TOUCH; in osst_attach()
5712 STm->default_blksize = 512; in osst_attach()
5713 STm->default_density = (-1); /* No forced density */ in osst_attach()