tag | line | file | source code |
mtc | 1738 | drivers/scsi/st.c | struct mtop mtc; |
mtc | 1765 | drivers/scsi/st.c | if (_IOC_SIZE(cmd_in) != sizeof(mtc)) |
mtc | 1768 | drivers/scsi/st.c | i = verify_area(VERIFY_READ, (void *)arg, sizeof(mtc)); |
mtc | 1772 | drivers/scsi/st.c | memcpy_fromfs((char *) &mtc, (char *)arg, sizeof(struct mtop)); |
mtc | 1775 | drivers/scsi/st.c | i = flush_buffer(inode, file, mtc.mt_op == MTSEEK || |
mtc | 1776 | drivers/scsi/st.c | mtc.mt_op == MTREW || mtc.mt_op == MTOFFL || |
mtc | 1777 | drivers/scsi/st.c | mtc.mt_op == MTRETEN || mtc.mt_op == MTEOM || |
mtc | 1778 | drivers/scsi/st.c | mtc.mt_op == MTLOCK || mtc.mt_op == MTLOAD); |
mtc | 1788 | drivers/scsi/st.c | if(mtc.mt_op != MTREW && |
mtc | 1789 | drivers/scsi/st.c | mtc.mt_op != MTOFFL && |
mtc | 1790 | drivers/scsi/st.c | mtc.mt_op != MTRETEN && |
mtc | 1791 | drivers/scsi/st.c | mtc.mt_op != MTERASE && |
mtc | 1792 | drivers/scsi/st.c | mtc.mt_op != MTSEEK && |
mtc | 1793 | drivers/scsi/st.c | mtc.mt_op != MTEOM) |
mtc | 1805 | drivers/scsi/st.c | if (mtc.mt_op != MTNOP && mtc.mt_op != MTSETBLK && |
mtc | 1806 | drivers/scsi/st.c | mtc.mt_op != MTSETDENSITY && mtc.mt_op != MTWSM && |
mtc | 1807 | drivers/scsi/st.c | mtc.mt_op != MTSETDRVBUFFER) |
mtc | 1810 | drivers/scsi/st.c | if (mtc.mt_op == MTOFFL && STp->door_locked != ST_UNLOCKED) |
mtc | 1813 | drivers/scsi/st.c | if (mtc.mt_op == MTSETDRVBUFFER && |
mtc | 1814 | drivers/scsi/st.c | (mtc.mt_count & MT_ST_OPTIONS) != 0) |
mtc | 1815 | drivers/scsi/st.c | return st_set_options(inode, mtc.mt_count); |
mtc | 1817 | drivers/scsi/st.c | return st_int_ioctl(inode, file, mtc.mt_op, mtc.mt_count); |