Searched refs:mtc (Results 1 – 2 of 2) sorted by relevance
3121 struct mtop mtc; in st_ioctl() local3123 if (_IOC_SIZE(cmd_in) != sizeof(mtc)) { in st_ioctl()3128 i = copy_from_user((char *) &mtc, (char *) arg, sizeof(struct mtop)); in st_ioctl()3134 if (mtc.mt_op == MTSETDRVBUFFER && !capable(CAP_SYS_ADMIN)) { in st_ioctl()3141 (mtc.mt_op != MTSETDRVBUFFER && in st_ioctl()3142 (mtc.mt_count & MT_ST_OPTIONS) == 0)) { in st_ioctl()3150 if (mtc.mt_op == MTFSF || mtc.mt_op == MTFSFM || in st_ioctl()3151 mtc.mt_op == MTEOM) { in st_ioctl()3152 mtc.mt_count -= 1; in st_ioctl()3155 } else if (mtc.mt_op == MTBSF || mtc.mt_op == MTBSFM) { in st_ioctl()[all …]
4823 struct mtop mtc; in osst_ioctl() local4826 if (_IOC_SIZE(cmd_in) != sizeof(mtc)) { in osst_ioctl()4831 i = copy_from_user((char *) &mtc, (char *)arg, sizeof(struct mtop)); in osst_ioctl()4837 if (mtc.mt_op == MTSETDRVBUFFER && !capable(CAP_SYS_ADMIN)) { in osst_ioctl()4843 if (!STm->defined && (mtc.mt_op != MTSETDRVBUFFER && (mtc.mt_count & MT_ST_OPTIONS) == 0)) { in osst_ioctl()4851 if (mtc.mt_op == MTFSF || mtc.mt_op == MTFSFM|| mtc.mt_op == MTEOM) { in osst_ioctl()4852 mtc.mt_count -= 1; in osst_ioctl()4856 else if (mtc.mt_op == MTBSF || mtc.mt_op == MTBSFM) { in osst_ioctl()4857 mtc.mt_count += 1; in osst_ioctl()4863 if (mtc.mt_op == MTSEEK) { in osst_ioctl()[all …]