Lines Matching refs:mt_status
3744 struct mtget mt_status; in st_ioctl() local
3751 mt_status.mt_type = STp->tape_type; in st_ioctl()
3752 mt_status.mt_dsreg = in st_ioctl()
3755 mt_status.mt_blkno = STps->drv_block; in st_ioctl()
3756 mt_status.mt_fileno = STps->drv_file; in st_ioctl()
3759 mt_status.mt_blkno += in st_ioctl()
3762 mt_status.mt_blkno -= in st_ioctl()
3767 mt_status.mt_gstat = 0; in st_ioctl()
3769 mt_status.mt_gstat |= GMT_WR_PROT(0xffffffff); in st_ioctl()
3770 if (mt_status.mt_blkno == 0) { in st_ioctl()
3771 if (mt_status.mt_fileno == 0) in st_ioctl()
3772 mt_status.mt_gstat |= GMT_BOT(0xffffffff); in st_ioctl()
3774 mt_status.mt_gstat |= GMT_EOF(0xffffffff); in st_ioctl()
3776 mt_status.mt_erreg = (STp->recover_reg << MT_ST_SOFTERR_SHIFT); in st_ioctl()
3777 mt_status.mt_resid = STp->partition; in st_ioctl()
3779 mt_status.mt_gstat |= GMT_EOT(0xffffffff); in st_ioctl()
3781 mt_status.mt_gstat |= GMT_EOD(0xffffffff); in st_ioctl()
3783 mt_status.mt_gstat |= GMT_D_800(0xffffffff); in st_ioctl()
3785 mt_status.mt_gstat |= GMT_D_1600(0xffffffff); in st_ioctl()
3787 mt_status.mt_gstat |= GMT_D_6250(0xffffffff); in st_ioctl()
3789 mt_status.mt_gstat |= GMT_ONLINE(0xffffffff); in st_ioctl()
3791 mt_status.mt_gstat |= GMT_DR_OPEN(0xffffffff); in st_ioctl()
3793 mt_status.mt_gstat |= GMT_SM(0xffffffff); in st_ioctl()
3797 mt_status.mt_gstat |= GMT_IM_REP_EN(0xffffffff); in st_ioctl()
3799 mt_status.mt_gstat |= GMT_CLN(0xffffffff); in st_ioctl()
3801 retval = put_user_mtget(p, &mt_status); in st_ioctl()