tag | line | file | source code |
mtc | 1733 | drivers/scsi/st.c | struct mtop mtc; |
mtc | 1752 | drivers/scsi/st.c | if (((cmd_in & IOCSIZE_MASK) >> IOCSIZE_SHIFT) != sizeof(mtc)) |
mtc | 1755 | drivers/scsi/st.c | i = verify_area(VERIFY_WRITE, (void *)arg, sizeof(mtc)); |
mtc | 1759 | drivers/scsi/st.c | memcpy_fromfs((char *) &mtc, (char *)arg, sizeof(struct mtop)); |
mtc | 1761 | drivers/scsi/st.c | i = flush_buffer(inode, file, mtc.mt_op == MTSEEK || |
mtc | 1762 | drivers/scsi/st.c | mtc.mt_op == MTREW || mtc.mt_op == MTOFFL || |
mtc | 1763 | drivers/scsi/st.c | mtc.mt_op == MTRETEN || mtc.mt_op == MTEOM); |
mtc | 1766 | drivers/scsi/st.c | if (mtc.mt_op != MTNOP && mtc.mt_op != MTSETBLK && |
mtc | 1767 | drivers/scsi/st.c | mtc.mt_op != MTSETDENSITY && mtc.mt_op != MTWSM && |
mtc | 1768 | drivers/scsi/st.c | mtc.mt_op != MTSETDRVBUFFER) |
mtc | 1771 | drivers/scsi/st.c | if (mtc.mt_op == MTSETDRVBUFFER && |
mtc | 1772 | drivers/scsi/st.c | (mtc.mt_count & MT_ST_OPTIONS) != 0) |
mtc | 1773 | drivers/scsi/st.c | return st_set_options(inode, mtc.mt_count); |
mtc | 1775 | drivers/scsi/st.c | return st_int_ioctl(inode, file, mtc.mt_op, mtc.mt_count); |