Lines Matching refs:mtget
5544 struct mtget mtget; in idetape_chrdev_ioctl() local
5569 memset(&mtget, 0, sizeof (struct mtget)); in idetape_chrdev_ioctl()
5570 mtget.mt_type = MT_ISSCSI2; in idetape_chrdev_ioctl()
5572 mtget.mt_blkno = position / tape->user_bs_factor - block_offset; in idetape_chrdev_ioctl()
5575 mtget.mt_blkno = -1; in idetape_chrdev_ioctl()
5577 mtget.mt_blkno = tape->logical_blk_num; in idetape_chrdev_ioctl()
5579 …mtget.mt_dsreg = ((tape->tape_block_size * tape->user_bs_factor) << MT_ST_BLKSIZE_SHIFT) & MT_ST_B… in idetape_chrdev_ioctl()
5581 mtget.mt_gstat |= GMT_ONLINE(0xffffffff); in idetape_chrdev_ioctl()
5583 mtget.mt_gstat |= GMT_EOD(0xffffffff); in idetape_chrdev_ioctl()
5585 mtget.mt_gstat |= GMT_BOT(0xffffffff); in idetape_chrdev_ioctl()
5587 if (copy_to_user ((char *) arg,(char *) &mtget, sizeof (struct mtget))) in idetape_chrdev_ioctl()