Searched refs:mtget (Results 1 – 13 of 13) sorted by relevance
902 static int mtiocget(struct mtget *mtget, int arg_size) in mtiocget() argument908 if (arg_size != sizeof(struct mtget)) { in mtiocget()912 mtget->mt_type = ft_drive_type.vendor_id + 0x800000; in mtiocget()913 mtget->mt_dsreg = ft_last_status.space; in mtiocget()914 mtget->mt_erreg = ft_last_error.space; /* error register */ in mtiocget()915 mtget->mt_resid = zft_resid; /* residuum of writes, reads and in mtiocget()919 mtget->mt_gstat = GMT_ONLINE(~0UL); in mtiocget()925 mtget->mt_gstat |= GMT_WR_PROT(~0UL); in mtiocget()929 mtget->mt_fileno = volume->count; in mtiocget()935 mtget->mt_gstat |= GMT_EOD(~0UL); in mtiocget()[all …]
70 struct mtget { struct287 #define MTIOCGET _IOR('m', 2, struct mtget) /* get tape status */
5544 struct mtget mtget; in idetape_chrdev_ioctl() local5569 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()[all …]
550 struct mtget get; in tape_ioctl()644 if (copy_to_user ((char *) arg, &get, sizeof (struct mtget))) in tape_ioctl()
136 static volatile struct mtget ioctl_status; /* current generic status */2655 CHECK_IOC_SIZE(mtget); in qic02_tape_ioctl()
3309 struct mtget mt_status; in st_ioctl()3311 if (_IOC_SIZE(cmd_in) != sizeof(struct mtget)) { in st_ioctl()3367 sizeof(struct mtget)); in st_ioctl()
371 The following ioctl uses the structure mtget to return the status:
5016 struct mtget mt_status; in osst_ioctl()5018 if (_IOC_SIZE(cmd_in) != sizeof(struct mtget)) { in osst_ioctl()5069 sizeof(struct mtget)); in osst_ioctl()
960 struct mtget get; in mt_ioctl_trans()
1162 struct mtget get; in mt_ioctl_trans()
1702 struct mtget get; in mt_ioctl_trans()
1598 struct mtget get; in mt_ioctl_trans()
1777 struct mtget get; in mt_ioctl_trans()