Lines Matching refs:mt_status
3309 struct mtget mt_status; in st_ioctl() local
3316 mt_status.mt_type = STp->tape_type; in st_ioctl()
3317 mt_status.mt_dsreg = in st_ioctl()
3320 mt_status.mt_blkno = STps->drv_block; in st_ioctl()
3321 mt_status.mt_fileno = STps->drv_file; in st_ioctl()
3324 mt_status.mt_blkno += in st_ioctl()
3327 mt_status.mt_blkno -= in st_ioctl()
3332 mt_status.mt_gstat = 0; in st_ioctl()
3334 mt_status.mt_gstat |= GMT_WR_PROT(0xffffffff); in st_ioctl()
3335 if (mt_status.mt_blkno == 0) { in st_ioctl()
3336 if (mt_status.mt_fileno == 0) in st_ioctl()
3337 mt_status.mt_gstat |= GMT_BOT(0xffffffff); in st_ioctl()
3339 mt_status.mt_gstat |= GMT_EOF(0xffffffff); in st_ioctl()
3341 mt_status.mt_erreg = (STp->recover_reg << MT_ST_SOFTERR_SHIFT); in st_ioctl()
3342 mt_status.mt_resid = STp->partition; in st_ioctl()
3344 mt_status.mt_gstat |= GMT_EOT(0xffffffff); in st_ioctl()
3346 mt_status.mt_gstat |= GMT_EOD(0xffffffff); in st_ioctl()
3348 mt_status.mt_gstat |= GMT_D_800(0xffffffff); in st_ioctl()
3350 mt_status.mt_gstat |= GMT_D_1600(0xffffffff); in st_ioctl()
3352 mt_status.mt_gstat |= GMT_D_6250(0xffffffff); in st_ioctl()
3354 mt_status.mt_gstat |= GMT_ONLINE(0xffffffff); in st_ioctl()
3356 mt_status.mt_gstat |= GMT_DR_OPEN(0xffffffff); in st_ioctl()
3358 mt_status.mt_gstat |= GMT_SM(0xffffffff); in st_ioctl()
3362 mt_status.mt_gstat |= GMT_IM_REP_EN(0xffffffff); in st_ioctl()
3364 mt_status.mt_gstat |= GMT_CLN(0xffffffff); in st_ioctl()
3366 i = copy_to_user((char *) arg, (char *) &(mt_status), in st_ioctl()