Lines Matching refs:mt_status

3742 		struct mtget mt_status;  in st_ioctl()  local
3749 mt_status.mt_type = STp->tape_type; in st_ioctl()
3750 mt_status.mt_dsreg = in st_ioctl()
3753 mt_status.mt_blkno = STps->drv_block; in st_ioctl()
3754 mt_status.mt_fileno = STps->drv_file; in st_ioctl()
3757 mt_status.mt_blkno += in st_ioctl()
3760 mt_status.mt_blkno -= in st_ioctl()
3765 mt_status.mt_gstat = 0; in st_ioctl()
3767 mt_status.mt_gstat |= GMT_WR_PROT(0xffffffff); in st_ioctl()
3768 if (mt_status.mt_blkno == 0) { in st_ioctl()
3769 if (mt_status.mt_fileno == 0) in st_ioctl()
3770 mt_status.mt_gstat |= GMT_BOT(0xffffffff); in st_ioctl()
3772 mt_status.mt_gstat |= GMT_EOF(0xffffffff); in st_ioctl()
3774 mt_status.mt_erreg = (STp->recover_reg << MT_ST_SOFTERR_SHIFT); in st_ioctl()
3775 mt_status.mt_resid = STp->partition; in st_ioctl()
3777 mt_status.mt_gstat |= GMT_EOT(0xffffffff); in st_ioctl()
3779 mt_status.mt_gstat |= GMT_EOD(0xffffffff); in st_ioctl()
3781 mt_status.mt_gstat |= GMT_D_800(0xffffffff); in st_ioctl()
3783 mt_status.mt_gstat |= GMT_D_1600(0xffffffff); in st_ioctl()
3785 mt_status.mt_gstat |= GMT_D_6250(0xffffffff); in st_ioctl()
3787 mt_status.mt_gstat |= GMT_ONLINE(0xffffffff); in st_ioctl()
3789 mt_status.mt_gstat |= GMT_DR_OPEN(0xffffffff); in st_ioctl()
3791 mt_status.mt_gstat |= GMT_SM(0xffffffff); in st_ioctl()
3795 mt_status.mt_gstat |= GMT_IM_REP_EN(0xffffffff); in st_ioctl()
3797 mt_status.mt_gstat |= GMT_CLN(0xffffffff); in st_ioctl()
3799 i = copy_to_user(p, &mt_status, sizeof(struct mtget)); in st_ioctl()