Home
last modified time | relevance | path

Searched refs:mtget (Results 1 – 6 of 6) sorted by relevance

/Linux-v5.4/include/uapi/linux/
Dmtio.h71 struct mtget { struct
130 #define MTIOCGET _IOR('m', 2, struct mtget) /* get tape status */
/Linux-v5.4/drivers/ide/
Dide-tape.c1376 struct mtget mtget; in do_idetape_chrdev_ioctl() local
1400 memset(&mtget, 0, sizeof(struct mtget)); in do_idetape_chrdev_ioctl()
1401 mtget.mt_type = MT_ISSCSI2; in do_idetape_chrdev_ioctl()
1402 mtget.mt_blkno = position / tape->user_bs_factor - block_offset; in do_idetape_chrdev_ioctl()
1403 mtget.mt_dsreg = in do_idetape_chrdev_ioctl()
1408 mtget.mt_gstat |= GMT_WR_PROT(0xffffffff); in do_idetape_chrdev_ioctl()
1410 if (copy_to_user(argp, &mtget, sizeof(struct mtget))) in do_idetape_chrdev_ioctl()
/Linux-v5.4/drivers/s390/char/
Dtape_char.c401 struct mtget get; in __tapechar_ioctl()
/Linux-v5.4/fs/
Dcompat_ioctl.c386 struct mtget __user *get = NULL; in mt_ioctl_trans()
/Linux-v5.4/drivers/scsi/
Dst.c3746 struct mtget mt_status; in st_ioctl()
3748 if (_IOC_SIZE(cmd_in) != sizeof(struct mtget)) { in st_ioctl()
3803 i = copy_to_user(p, &mt_status, sizeof(struct mtget)); in st_ioctl()
/Linux-v5.4/Documentation/scsi/
Dst.txt525 The following ioctl uses the structure mtget to return the status: