Searched refs:mtc (Results 1 – 6 of 6) sorted by relevance
304 struct class *mtc; in mt_init() local306 mtc = class_create(THIS_MODULE, "mt"); in mt_init()307 if (IS_ERR(mtc)) in mt_init()308 return PTR_ERR(mtc); in mt_init()310 mt_class = mtc; in mt_init()
3387 struct mtop mtc; in st_ioctl() local3389 if (_IOC_SIZE(cmd_in) != sizeof(mtc)) { in st_ioctl()3394 i = copy_from_user(&mtc, p, sizeof(struct mtop)); in st_ioctl()3400 if (mtc.mt_op == MTSETDRVBUFFER && !capable(CAP_SYS_ADMIN)) { in st_ioctl()3407 (mtc.mt_op != MTSETDRVBUFFER && in st_ioctl()3408 (mtc.mt_count & MT_ST_OPTIONS) == 0)) { in st_ioctl()3416 if (mtc.mt_op == MTFSF || mtc.mt_op == MTFSFM || in st_ioctl()3417 mtc.mt_op == MTEOM) { in st_ioctl()3418 mtc.mt_count -= 1; in st_ioctl()3421 } else if (mtc.mt_op == MTBSF || mtc.mt_op == MTBSFM) { in st_ioctl()[all …]
4983 struct mtop mtc; in osst_ioctl() local4986 if (_IOC_SIZE(cmd_in) != sizeof(mtc)) { in osst_ioctl()4991 i = copy_from_user((char *) &mtc, p, sizeof(struct mtop)); in osst_ioctl()4997 if (mtc.mt_op == MTSETDRVBUFFER && !capable(CAP_SYS_ADMIN)) { in osst_ioctl()5003 if (!STm->defined && (mtc.mt_op != MTSETDRVBUFFER && (mtc.mt_count & MT_ST_OPTIONS) == 0)) { in osst_ioctl()5011 if (mtc.mt_op == MTFSF || mtc.mt_op == MTFSFM|| mtc.mt_op == MTEOM) { in osst_ioctl()5012 mtc.mt_count -= 1; in osst_ioctl()5016 else if (mtc.mt_op == MTBSF || mtc.mt_op == MTBSFM) { in osst_ioctl()5017 mtc.mt_count += 1; in osst_ioctl()5023 if (mtc.mt_op == MTSEEK) { in osst_ioctl()[all …]
20 model = "intercontrol,digsy-mtc";21 compatible = "intercontrol,digsy-mtc";
25 intercontrol,digsy-mtc
197 Jun'ichi Nomura [mailto:jnomura@mtc.biglobe.ne.jp]