Lines Matching refs:mt_status
5016 struct mtget mt_status; in osst_ioctl() local
5023 mt_status.mt_type = MT_ISONSTREAM_SC; in osst_ioctl()
5024 mt_status.mt_erreg = STp->recover_erreg << MT_ST_SOFTERR_SHIFT; in osst_ioctl()
5025 mt_status.mt_dsreg = in osst_ioctl()
5028 mt_status.mt_blkno = STps->drv_block; in osst_ioctl()
5029 mt_status.mt_fileno = STps->drv_file; in osst_ioctl()
5032 mt_status.mt_blkno += (STp->buffer)->buffer_bytes / STp->block_size; in osst_ioctl()
5034 mt_status.mt_blkno -= ((STp->buffer)->buffer_bytes + in osst_ioctl()
5038 mt_status.mt_gstat = 0; in osst_ioctl()
5040 mt_status.mt_gstat |= GMT_WR_PROT(0xffffffff); in osst_ioctl()
5041 if (mt_status.mt_blkno == 0) { in osst_ioctl()
5042 if (mt_status.mt_fileno == 0) in osst_ioctl()
5043 mt_status.mt_gstat |= GMT_BOT(0xffffffff); in osst_ioctl()
5045 mt_status.mt_gstat |= GMT_EOF(0xffffffff); in osst_ioctl()
5047 mt_status.mt_resid = STp->partition; in osst_ioctl()
5049 mt_status.mt_gstat |= GMT_EOT(0xffffffff); in osst_ioctl()
5051 mt_status.mt_gstat |= GMT_EOD(0xffffffff); in osst_ioctl()
5053 mt_status.mt_gstat |= GMT_D_800(0xffffffff); in osst_ioctl()
5055 mt_status.mt_gstat |= GMT_D_1600(0xffffffff); in osst_ioctl()
5057 mt_status.mt_gstat |= GMT_D_6250(0xffffffff); in osst_ioctl()
5059 mt_status.mt_gstat |= GMT_ONLINE(0xffffffff); in osst_ioctl()
5061 mt_status.mt_gstat |= GMT_DR_OPEN(0xffffffff); in osst_ioctl()
5063 mt_status.mt_gstat |= GMT_SM(0xffffffff); in osst_ioctl()
5066 mt_status.mt_gstat |= GMT_IM_REP_EN(0xffffffff); in osst_ioctl()
5068 i = copy_to_user((char *)arg, (char *)&mt_status, in osst_ioctl()