Lines Matching refs:mtget

4975 		struct mtget mtg_local;  in st_ioctl()
4976 struct mtget *mtget = &mtg_local; in st_ioctl() local
4980 bzero((caddr_t)mtget, sizeof (struct mtget)); in st_ioctl()
4981 mtget->mt_erreg = un->un_status; in st_ioctl()
4982 mtget->mt_resid = un->un_err_resid; in st_ioctl()
4983 mtget->mt_dsreg = un->un_retry_ct; in st_ioctl()
4985 mtget->mt_fileno = un->un_err_pos.fileno; in st_ioctl()
4987 mtget->mt_fileno = -1; in st_ioctl()
4995 mtget->mt_blkno = un->un_err_pos.blkno; in st_ioctl()
4997 mtget->mt_blkno = INF + 1 - (-un->un_err_pos.blkno); in st_ioctl()
4999 mtget->mt_type = un->un_dp->type; in st_ioctl()
5000 mtget->mt_flags = MTF_SCSI | MTF_ASF; in st_ioctl()
5002 mtget->mt_flags |= MTF_LOGICAL_BLOCK; in st_ioctl()
5005 mtget->mt_flags |= MTF_REEL; in st_ioctl()
5006 mtget->mt_bf = 20; in st_ioctl()
5008 switch (mtget->mt_type) { in st_ioctl()
5011 mtget->mt_bf = 40; in st_ioctl()
5014 mtget->mt_bf = 126; in st_ioctl()
5026 mtget->mt_bf = min(un->un_maxbsize, in st_ioctl()
5032 mtget->mt_flags |= MTF_WORM_MEDIA; in st_ioctl()
5053 mtget->mt_flags |= MTF_TAPE_CLN_SUPPORTED; in st_ioctl()
5057 mtget->mt_flags |= MTF_TAPE_HEAD_DIRTY; in st_ioctl()
5060 mtget->mt_flags |= (ushort_t)rval; in st_ioctl()
5066 tmp = sizeof (struct mtget); in st_ioctl()
5076 mtget_32->mt_erreg = mtget->mt_erreg; in st_ioctl()
5077 mtget_32->mt_resid = mtget->mt_resid; in st_ioctl()
5078 mtget_32->mt_dsreg = mtget->mt_dsreg; in st_ioctl()
5079 mtget_32->mt_fileno = (daddr32_t)mtget->mt_fileno; in st_ioctl()
5080 mtget_32->mt_blkno = (daddr32_t)mtget->mt_blkno; in st_ioctl()
5081 mtget_32->mt_type = mtget->mt_type; in st_ioctl()
5082 mtget_32->mt_flags = mtget->mt_flags; in st_ioctl()
5083 mtget_32->mt_bf = mtget->mt_bf; in st_ioctl()
5092 if (ddi_copyout(mtget, (void *)arg, tmp, flag)) { in st_ioctl()
5098 if (ddi_copyout(mtget, (void *)arg, tmp, flag)) { in st_ioctl()