Lines Matching defs:mtop

514 static int st_do_mtioctop(struct scsi_tape *un, struct mtlop *mtop);
5567 struct mtop passed;
5681 st_do_mtioctop(struct scsi_tape *un, struct mtlop *mtop)
5690 "st_do_mtioctop(): mt_op=%x\n", mtop->mt_op);
5704 switch (mtop->mt_op) {
5743 switch (mtop->mt_op) {
5775 switch (mtop->mt_op) {
5783 un->un_err_resid = mtop->mt_count;
5792 mtop->mt_count = mtop->mt_count ? 1 : 0;
5795 st_cmd(un, SCMD_ERASE, mtop->mt_count, SYNC_CMD)) {
5815 un->un_err_resid = mtop->mt_count;
5824 if (mtop->mt_count < 0) {
5842 rval = st_write_fm(dev, (int)mtop->mt_count);
5976 mtop->mt_count = MTUNIT(dev);
6060 MAX_SPACE_CNT(mtop->mt_count);
6061 rval = st_mtfsf_ioctl(un, mtop->mt_count);
6065 MAX_SPACE_CNT(mtop->mt_count);
6066 rval = st_mtfsr_ioctl(un, mtop->mt_count);
6070 MAX_SPACE_CNT(mtop->mt_count);
6071 rval = st_mtbsf_ioctl(un, mtop->mt_count);
6075 MAX_SPACE_CNT(mtop->mt_count);
6076 rval = st_mtnbsf_ioctl(un, mtop->mt_count);
6080 MAX_SPACE_CNT(mtop->mt_count);
6081 rval = st_mtbsr_ioctl(un, mtop->mt_count);
6085 MAX_SPACE_CNT(mtop->mt_count);
6086 rval = st_mtbsfm_ioctl(un, mtop->mt_count);
6090 MAX_SPACE_CNT(mtop->mt_count);
6091 rval = st_mtfsfm_ioctl(un, mtop->mt_count);
6103 if ((mtop->mt_count == 0) &&
6112 if ((mtop->mt_count != 0) &&
6113 (mtop->mt_count < un->un_minbsize)) {
6118 if ((mtop->mt_count > min(un->un_maxbsize, un->un_maxdma)) &&
6124 if ((mtop->mt_count % un->un_data_mod) != 0) {
6128 if (st_change_block_size(un, (uint32_t)mtop->mt_count) != 0) {
6140 mtop->mt_count = un->un_bsize;
6146 mtop->mt_count = un->un_pos.lgclblkno;
6151 (uint64_t)mtop->mt_count, un->un_pos.partition);
6158 if ((uint64_t)mtop->mt_count != un->un_pos.lgclblkno) {
6159 mtop->mt_op = MTTELL;
6160 mtop->mt_count = un->un_pos.lgclblkno;