mtop
static struct mtop bsr = { MTBSR, 1 };
static struct mtop eom = { MTEOM, 1 };
static struct mtop fsf = { MTFSF, 1 };
static struct mtop offl = { MTOFFL, 0 };
static struct mtop bsf = { MTBSF, 2 };
static struct mtop fsf = { MTFSF, 1 };
static struct mtop nbsf = { MTNBSF, 1 };
static struct mtop rew = { MTREW, 1 };
static struct mtop fsf = { MTFSF, 1 };
static struct mtop mtop = { MTOFFL, 0 };
(void) ioctl(mt, MTIOCTOP, &mtop);
struct mtop tcom;
struct mtop tapeop;
struct mtop mp;
mtop.mt_op = atoi(op);
mtop.mt_count = atoi(count);
switch (mtop.mt_op) {
mtop.mt_op = MTRETEN;
mtop.mt_op = MTERASE;
mtop.mt_op = MTEOM;
mtop.mt_op = MTNBSF;
if (mtop.mt_op == RMTIVERSION) {
mtop.mt_count = RMT_VERSION;
rval = (offset_t)mtop.mt_count;
(char *)&mtop);
rval : (offset_t)mtop.mt_count,
static struct mtop mtop;
struct mtop mtcmd;
struct mtop op;
mblk_t *mtop = NULL;
if (mtop == NULL)
mtop = m;
*bp = mtop;
if (m == mtop) {
freemsg(mtop);
smb_t2_placedata(mblk_t *mtop, u_int16_t offset, u_int16_t count,
n = m_copym(mtop, offset, count, M_WAITOK);
static int st_do_mtioctop(struct scsi_tape *un, struct mtlop *mtop);
struct mtop passed;
st_do_mtioctop(struct scsi_tape *un, struct mtlop *mtop)
"st_do_mtioctop(): mt_op=%x\n", mtop->mt_op);
switch (mtop->mt_op) {
switch (mtop->mt_op) {
switch (mtop->mt_op) {
un->un_err_resid = mtop->mt_count;
mtop->mt_count = mtop->mt_count ? 1 : 0;
st_cmd(un, SCMD_ERASE, mtop->mt_count, SYNC_CMD)) {
un->un_err_resid = mtop->mt_count;
if (mtop->mt_count < 0) {
rval = st_write_fm(dev, (int)mtop->mt_count);
mtop->mt_count = MTUNIT(dev);
MAX_SPACE_CNT(mtop->mt_count);
rval = st_mtfsf_ioctl(un, mtop->mt_count);
MAX_SPACE_CNT(mtop->mt_count);
rval = st_mtfsr_ioctl(un, mtop->mt_count);
MAX_SPACE_CNT(mtop->mt_count);
rval = st_mtbsf_ioctl(un, mtop->mt_count);
MAX_SPACE_CNT(mtop->mt_count);
rval = st_mtnbsf_ioctl(un, mtop->mt_count);
MAX_SPACE_CNT(mtop->mt_count);
rval = st_mtbsr_ioctl(un, mtop->mt_count);
MAX_SPACE_CNT(mtop->mt_count);
rval = st_mtbsfm_ioctl(un, mtop->mt_count);
MAX_SPACE_CNT(mtop->mt_count);
rval = st_mtfsfm_ioctl(un, mtop->mt_count);
if ((mtop->mt_count == 0) &&
if ((mtop->mt_count != 0) &&
(mtop->mt_count < un->un_minbsize)) {
if ((mtop->mt_count > min(un->un_maxbsize, un->un_maxdma)) &&
if ((mtop->mt_count % un->un_data_mod) != 0) {
if (st_change_block_size(un, (uint32_t)mtop->mt_count) != 0) {
mtop->mt_count = un->un_bsize;
mtop->mt_count = un->un_pos.lgclblkno;
(uint64_t)mtop->mt_count, un->un_pos.partition);
if ((uint64_t)mtop->mt_count != un->un_pos.lgclblkno) {
mtop->mt_op = MTTELL;
mtop->mt_count = un->un_pos.lgclblkno;