Lines Matching refs:mtc
4986 struct mtop mtc; in osst_ioctl() local
4989 if (_IOC_SIZE(cmd_in) != sizeof(mtc)) { in osst_ioctl()
4994 i = copy_from_user((char *) &mtc, p, sizeof(struct mtop)); in osst_ioctl()
5000 if (mtc.mt_op == MTSETDRVBUFFER && !capable(CAP_SYS_ADMIN)) { in osst_ioctl()
5006 if (!STm->defined && (mtc.mt_op != MTSETDRVBUFFER && (mtc.mt_count & MT_ST_OPTIONS) == 0)) { in osst_ioctl()
5014 if (mtc.mt_op == MTFSF || mtc.mt_op == MTFSFM|| mtc.mt_op == MTEOM) { in osst_ioctl()
5015 mtc.mt_count -= 1; in osst_ioctl()
5019 else if (mtc.mt_op == MTBSF || mtc.mt_op == MTBSFM) { in osst_ioctl()
5020 mtc.mt_count += 1; in osst_ioctl()
5026 if (mtc.mt_op == MTSEEK) { in osst_ioctl()
5031 i = mtc.mt_op == MTREW || mtc.mt_op == MTOFFL || in osst_ioctl()
5032 mtc.mt_op == MTRETEN || mtc.mt_op == MTEOM || in osst_ioctl()
5033 mtc.mt_op == MTLOCK || mtc.mt_op == MTLOAD || in osst_ioctl()
5034 mtc.mt_op == MTFSF || mtc.mt_op == MTFSFM || in osst_ioctl()
5035 mtc.mt_op == MTBSF || mtc.mt_op == MTBSFM || in osst_ioctl()
5036 mtc.mt_op == MTCOMPRESSION; in osst_ioctl()
5050 if(mtc.mt_op != MTREW && in osst_ioctl()
5051 mtc.mt_op != MTOFFL && in osst_ioctl()
5052 mtc.mt_op != MTRETEN && in osst_ioctl()
5053 mtc.mt_op != MTERASE && in osst_ioctl()
5054 mtc.mt_op != MTSEEK && in osst_ioctl()
5055 mtc.mt_op != MTEOM) { in osst_ioctl()
5064 if (mtc.mt_op != MTCOMPRESSION && mtc.mt_op != MTLOCK && in osst_ioctl()
5065 mtc.mt_op != MTNOP && mtc.mt_op != MTSETBLK && in osst_ioctl()
5066 mtc.mt_op != MTSETDENSITY && mtc.mt_op != MTSETDRVBUFFER && in osst_ioctl()
5067 mtc.mt_op != MTMKPART && mtc.mt_op != MTSETPART && in osst_ioctl()
5068 mtc.mt_op != MTWEOF && mtc.mt_op != MTWSM ) { in osst_ioctl()
5084 !(mtc.mt_op == MTREW || mtc.mt_op == MTOFFL)); in osst_ioctl()
5086 !(mtc.mt_op == MTREW || mtc.mt_op == MTOFFL)); in osst_ioctl()
5100 if (mtc.mt_op == MTOFFL && STp->door_locked != ST_UNLOCKED) in osst_ioctl()
5103 if (mtc.mt_op == MTSETDRVBUFFER && in osst_ioctl()
5104 (mtc.mt_count & MT_ST_OPTIONS) != 0) { in osst_ioctl()
5105 retval = osst_set_options(STp, mtc.mt_count); in osst_ioctl()
5109 if (mtc.mt_op == MTSETPART) { in osst_ioctl()
5110 if (mtc.mt_count >= STp->nbr_partitions) in osst_ioctl()
5113 STp->new_partition = mtc.mt_count; in osst_ioctl()
5119 if (mtc.mt_op == MTMKPART) { in osst_ioctl()
5141 if (mtc.mt_op == MTSEEK) { in osst_ioctl()
5143 i = osst_set_frame_position(STp, &SRpnt, mtc.mt_count, 0); in osst_ioctl()
5145 i = osst_seek_sector(STp, &SRpnt, mtc.mt_count); in osst_ioctl()
5152 if (mtc.mt_op == MTLOCK || mtc.mt_op == MTUNLOCK) { in osst_ioctl()
5153 retval = do_door_lock(STp, (mtc.mt_op == MTLOCK)); in osst_ioctl()
5160 if (mtc.mt_op == MTCOMPRESSION) in osst_ioctl()
5165 retval = osst_int_ioctl(STp, &SRpnt, mtc.mt_op, mtc.mt_count); in osst_ioctl()