Home
last modified time | relevance | path

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

/linux-2.4.37.9/drivers/char/ftape/zftape/
Dzftape-ctl.c902 static int mtiocget(struct mtget *mtget, int arg_size) in mtiocget() argument
908 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 …]
/linux-2.4.37.9/include/linux/
Dmtio.h70 struct mtget { struct
287 #define MTIOCGET _IOR('m', 2, struct mtget) /* get tape status */
/linux-2.4.37.9/drivers/ide/
Dide-tape.c5544 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()
5579mtget.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 …]
/linux-2.4.37.9/drivers/s390/char/
Dtapechar.c550 struct mtget get; in tape_ioctl()
644 if (copy_to_user ((char *) arg, &get, sizeof (struct mtget))) in tape_ioctl()
/linux-2.4.37.9/drivers/char/
Dtpqic02.c136 static volatile struct mtget ioctl_status; /* current generic status */
2655 CHECK_IOC_SIZE(mtget); in qic02_tape_ioctl()
/linux-2.4.37.9/drivers/scsi/
Dst.c3309 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()
DREADME.st371 The following ioctl uses the structure mtget to return the status:
Dosst.c5016 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()
/linux-2.4.37.9/arch/mips64/kernel/
Dioctl32.c960 struct mtget get; in mt_ioctl_trans()
/linux-2.4.37.9/arch/parisc/kernel/
Dioctl32.c1162 struct mtget get; in mt_ioctl_trans()
/linux-2.4.37.9/arch/x86_64/ia32/
Dia32_ioctl.c1702 struct mtget get; in mt_ioctl_trans()
/linux-2.4.37.9/arch/ppc64/kernel/
Dioctl32.c1598 struct mtget get; in mt_ioctl_trans()
/linux-2.4.37.9/arch/sparc64/kernel/
Dioctl32.c1777 struct mtget get; in mt_ioctl_trans()