Lines Matching refs:mtc
4983 struct mtop mtc; in osst_ioctl() local
4986 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()
5028 i = mtc.mt_op == MTREW || mtc.mt_op == MTOFFL || in osst_ioctl()
5029 mtc.mt_op == MTRETEN || mtc.mt_op == MTEOM || in osst_ioctl()
5030 mtc.mt_op == MTLOCK || mtc.mt_op == MTLOAD || in osst_ioctl()
5031 mtc.mt_op == MTFSF || mtc.mt_op == MTFSFM || in osst_ioctl()
5032 mtc.mt_op == MTBSF || mtc.mt_op == MTBSFM || in osst_ioctl()
5033 mtc.mt_op == MTCOMPRESSION; in osst_ioctl()
5047 if(mtc.mt_op != MTREW && in osst_ioctl()
5048 mtc.mt_op != MTOFFL && in osst_ioctl()
5049 mtc.mt_op != MTRETEN && in osst_ioctl()
5050 mtc.mt_op != MTERASE && in osst_ioctl()
5051 mtc.mt_op != MTSEEK && in osst_ioctl()
5052 mtc.mt_op != MTEOM) { in osst_ioctl()
5061 if (mtc.mt_op != MTCOMPRESSION && mtc.mt_op != MTLOCK && in osst_ioctl()
5062 mtc.mt_op != MTNOP && mtc.mt_op != MTSETBLK && in osst_ioctl()
5063 mtc.mt_op != MTSETDENSITY && mtc.mt_op != MTSETDRVBUFFER && in osst_ioctl()
5064 mtc.mt_op != MTMKPART && mtc.mt_op != MTSETPART && in osst_ioctl()
5065 mtc.mt_op != MTWEOF && mtc.mt_op != MTWSM ) { in osst_ioctl()
5081 !(mtc.mt_op == MTREW || mtc.mt_op == MTOFFL)); in osst_ioctl()
5083 !(mtc.mt_op == MTREW || mtc.mt_op == MTOFFL)); in osst_ioctl()
5097 if (mtc.mt_op == MTOFFL && STp->door_locked != ST_UNLOCKED) in osst_ioctl()
5100 if (mtc.mt_op == MTSETDRVBUFFER && in osst_ioctl()
5101 (mtc.mt_count & MT_ST_OPTIONS) != 0) { in osst_ioctl()
5102 retval = osst_set_options(STp, mtc.mt_count); in osst_ioctl()
5106 if (mtc.mt_op == MTSETPART) { in osst_ioctl()
5107 if (mtc.mt_count >= STp->nbr_partitions) in osst_ioctl()
5110 STp->new_partition = mtc.mt_count; in osst_ioctl()
5116 if (mtc.mt_op == MTMKPART) { in osst_ioctl()
5138 if (mtc.mt_op == MTSEEK) { in osst_ioctl()
5140 i = osst_set_frame_position(STp, &SRpnt, mtc.mt_count, 0); in osst_ioctl()
5142 i = osst_seek_sector(STp, &SRpnt, mtc.mt_count); in osst_ioctl()
5149 if (mtc.mt_op == MTLOCK || mtc.mt_op == MTUNLOCK) { in osst_ioctl()
5150 retval = do_door_lock(STp, (mtc.mt_op == MTLOCK)); in osst_ioctl()
5157 if (mtc.mt_op == MTCOMPRESSION) in osst_ioctl()
5162 retval = osst_int_ioctl(STp, &SRpnt, mtc.mt_op, mtc.mt_count); in osst_ioctl()