Lines Matching refs:cmd_in

2696 static int st_int_ioctl(struct scsi_tape *STp, unsigned int cmd_in, unsigned long arg)  in st_int_ioctl()  argument
2722 switch (cmd_in) { in st_int_ioctl()
2808 if (cmd_in == MTWSM) in st_int_ioctl()
2810 if (cmd_in == MTWEOFI || in st_int_ioctl()
2811 (cmd_in == MTWEOF && STp->immediate_filemark)) in st_int_ioctl()
2818 if (cmd_in != MTWSM) in st_int_ioctl()
2834 at_sm = (cmd_in == MTWSM); in st_int_ioctl()
2899 if ((cmd_in == MTSETBLK || cmd_in == SET_DENS_AND_BLK) && in st_int_ioctl()
2914 if (cmd_in == MTSETDRVBUFFER) in st_int_ioctl()
2920 if (cmd_in == MTSETDENSITY) { in st_int_ioctl()
2923 } else if (cmd_in == SET_DENS_AND_BLK) in st_int_ioctl()
2927 if (cmd_in == MTSETBLK || cmd_in == SET_DENS_AND_BLK) { in st_int_ioctl()
2929 if (cmd_in == MTSETBLK) in st_int_ioctl()
2938 if (cmd_in == MTSETBLK || cmd_in == SET_DENS_AND_BLK) in st_int_ioctl()
2944 if (cmd_in == MTSETDENSITY || cmd_in == SET_DENS_AND_BLK) in st_int_ioctl()
2948 if (cmd_in == MTSETDRVBUFFER) in st_int_ioctl()
2972 if (cmd_in == MTBSFM) in st_int_ioctl()
2974 else if (cmd_in == MTFSFM) in st_int_ioctl()
2977 if (cmd_in == MTSETBLK || cmd_in == SET_DENS_AND_BLK) { in st_int_ioctl()
2984 if (cmd_in == SET_DENS_AND_BLK) in st_int_ioctl()
2986 } else if (cmd_in == MTSETDRVBUFFER) in st_int_ioctl()
2988 else if (cmd_in == MTSETDENSITY) in st_int_ioctl()
2991 if (cmd_in == MTEOM) in st_int_ioctl()
2993 else if (cmd_in == MTFSF) in st_int_ioctl()
2998 if (cmd_in == MTWEOF || cmd_in == MTWEOFI) in st_int_ioctl()
3005 if (cmd_in != MTBSF && cmd_in != MTBSFM && in st_int_ioctl()
3006 cmd_in != MTBSR && cmd_in != MTBSS) in st_int_ioctl()
3016 if ((cmd_in == MTWEOF || cmd_in == MTWEOFI) && in st_int_ioctl()
3030 } else if ((cmd_in == MTFSF) || (cmd_in == MTFSFM)) { in st_int_ioctl()
3037 } else if ((cmd_in == MTBSF) || (cmd_in == MTBSFM)) { in st_int_ioctl()
3044 } else if (cmd_in == MTFSR) { in st_int_ioctl()
3057 } else if (cmd_in == MTBSR) { in st_int_ioctl()
3068 } else if (cmd_in == MTEOM) { in st_int_ioctl()
3072 } else if (cmd_in == MTSETBLK || in st_int_ioctl()
3073 cmd_in == MTSETDENSITY || in st_int_ioctl()
3074 cmd_in == MTSETDRVBUFFER || in st_int_ioctl()
3075 cmd_in == SET_DENS_AND_BLK) { in st_int_ioctl()
3083 return st_int_ioctl(STp, cmd_in, arg); in st_int_ioctl()
3501 static long st_ioctl(struct file *file, unsigned int cmd_in, unsigned long arg) in st_ioctl() argument
3530 retval = scsi_ioctl_block_when_processing_errors(STp->device, cmd_in, in st_ioctl()
3535 cmd_type = _IOC_TYPE(cmd_in); in st_ioctl()
3536 cmd_nr = _IOC_NR(cmd_in); in st_ioctl()
3541 if (_IOC_SIZE(cmd_in) != sizeof(mtc)) { in st_ioctl()
3746 if (_IOC_SIZE(cmd_in) != sizeof(struct mtget)) { in st_ioctl()
3810 if (_IOC_SIZE(cmd_in) != sizeof(struct mtpos)) { in st_ioctl()
3824 switch (cmd_in) { in st_ioctl()
3835 retval = scsi_ioctl(STp->device, file->f_mode, cmd_in, p); in st_ioctl()
3836 if (!retval && cmd_in == SCSI_IOCTL_STOP_UNIT) { in st_ioctl()
3849 static long st_compat_ioctl(struct file *file, unsigned int cmd_in, unsigned long arg) in st_compat_ioctl() argument
3852 switch (cmd_in) { in st_compat_ioctl()
3854 cmd_in = MTIOCPOS; in st_compat_ioctl()
3857 cmd_in = MTIOCGET; in st_compat_ioctl()
3861 return st_ioctl(file, cmd_in, arg); in st_compat_ioctl()