taglinefilesource code
scsi_tapes81kernel/blk_drv/scsi/st.cstatic Scsi_Tape * scsi_tapes;
scsi_tapes97kernel/blk_drv/scsi/st.cif (scsi_tapes[st_nbr].buffer->writing &&
scsi_tapes100kernel/blk_drv/scsi/st.cscsi_tapes[st_nbr].buffer->last_result = 0x7fffffff;
scsi_tapes102kernel/blk_drv/scsi/st.cscsi_tapes[st_nbr].buffer->last_result = SCpnt->result;
scsi_tapes103kernel/blk_drv/scsi/st.cif (scsi_tapes[st_nbr].buffer->writing)
scsi_tapes107kernel/blk_drv/scsi/st.cif (scsi_tapes[st_nbr].buffer->writing <= 0)
scsi_tapes108kernel/blk_drv/scsi/st.cwake_up( &scsi_tapes[st_nbr].waiting );
scsi_tapes167kernel/blk_drv/scsi/st.cif (scsi_tapes[dev].buffer->last_result < 0) {
scsi_tapes168kernel/blk_drv/scsi/st.cscsi_tapes[dev].buffer->writing = (- scsi_tapes[dev].buffer->writing);
scsi_tapes169kernel/blk_drv/scsi/st.csleep_on( &scsi_tapes[dev].waiting );
scsi_tapes170kernel/blk_drv/scsi/st.cscsi_tapes[dev].buffer->writing = (- scsi_tapes[dev].buffer->writing);
scsi_tapes174kernel/blk_drv/scsi/st.cif (scsi_tapes[dev].buffer->writing < scsi_tapes[dev].buffer->buffer_bytes)
scsi_tapes175kernel/blk_drv/scsi/st.cmemcpy(scsi_tapes[dev].buffer->b_data,
scsi_tapes176kernel/blk_drv/scsi/st.cscsi_tapes[dev].buffer->b_data + scsi_tapes[dev].buffer->writing,
scsi_tapes177kernel/blk_drv/scsi/st.cscsi_tapes[dev].buffer->buffer_bytes -
scsi_tapes178kernel/blk_drv/scsi/st.cscsi_tapes[dev].buffer->writing);
scsi_tapes179kernel/blk_drv/scsi/st.cscsi_tapes[dev].buffer->buffer_bytes -= scsi_tapes[dev].buffer->writing;
scsi_tapes180kernel/blk_drv/scsi/st.cscsi_tapes[dev].buffer->writing = 0;
scsi_tapes196kernel/blk_drv/scsi/st.cif (scsi_tapes[dev].buffer->writing) {
scsi_tapes198kernel/blk_drv/scsi/st.cif (scsi_tapes[dev].buffer->last_result) {
scsi_tapes201kernel/blk_drv/scsi/st.cscsi_tapes[dev].buffer->last_result);
scsi_tapes209kernel/blk_drv/scsi/st.cif (scsi_tapes[dev].dirty==1) {
scsi_tapes210kernel/blk_drv/scsi/st.cSCpnt = allocate_device(NULL, scsi_tapes[dev].device->index, 1);
scsi_tapes212kernel/blk_drv/scsi/st.coffset = scsi_tapes[dev].buffer->buffer_bytes;
scsi_tapes213kernel/blk_drv/scsi/st.ctransfer = ((offset + scsi_tapes[dev].block_size - 1) /
scsi_tapes214kernel/blk_drv/scsi/st.cscsi_tapes[dev].block_size) * scsi_tapes[dev].block_size;
scsi_tapes218kernel/blk_drv/scsi/st.cmemset(scsi_tapes[dev].buffer->b_data + offset, 0, transfer - offset);
scsi_tapes224kernel/blk_drv/scsi/st.cblks = transfer / scsi_tapes[dev].block_size;
scsi_tapes230kernel/blk_drv/scsi/st.c(void *) cmd, scsi_tapes[dev].buffer->b_data, transfer,
scsi_tapes233kernel/blk_drv/scsi/st.cif (SCpnt->request.dev == dev) sleep_on( &scsi_tapes[dev].waiting );
scsi_tapes243kernel/blk_drv/scsi/st.cscsi_tapes[dev].dirty = 0;
scsi_tapes244kernel/blk_drv/scsi/st.cscsi_tapes[dev].buffer->buffer_bytes = 0;
scsi_tapes262kernel/blk_drv/scsi/st.cif (scsi_tapes[dev].rw == 2)  /* Writing */
scsi_tapes265kernel/blk_drv/scsi/st.cbackspace = (scsi_tapes[dev].buffer->buffer_bytes +
scsi_tapes266kernel/blk_drv/scsi/st.cscsi_tapes[dev].buffer->read_pointer) / scsi_tapes[dev].block_size -
scsi_tapes267kernel/blk_drv/scsi/st.c(scsi_tapes[dev].buffer->read_pointer + scsi_tapes[dev].block_size - 1) /
scsi_tapes268kernel/blk_drv/scsi/st.cscsi_tapes[dev].block_size;
scsi_tapes269kernel/blk_drv/scsi/st.cscsi_tapes[dev].buffer->buffer_bytes = 0;
scsi_tapes270kernel/blk_drv/scsi/st.cscsi_tapes[dev].buffer->read_pointer = 0;
scsi_tapes275kernel/blk_drv/scsi/st.cscsi_tapes[dev].eof = 0;
scsi_tapes276kernel/blk_drv/scsi/st.cscsi_tapes[dev].eof_hit = 0;
scsi_tapes296kernel/blk_drv/scsi/st.cif (scsi_tapes[dev].in_use) {
scsi_tapes311kernel/blk_drv/scsi/st.cscsi_tapes[dev].buffer = st_buffers[i];
scsi_tapes312kernel/blk_drv/scsi/st.cscsi_tapes[dev].in_use = 1;
scsi_tapes315kernel/blk_drv/scsi/st.cscsi_tapes[dev].write_prot = ((flags & O_ACCMODE) == O_RDONLY);
scsi_tapes317kernel/blk_drv/scsi/st.cscsi_tapes[dev].dirty = 0;
scsi_tapes318kernel/blk_drv/scsi/st.cscsi_tapes[dev].rw = 0;
scsi_tapes319kernel/blk_drv/scsi/st.cscsi_tapes[dev].eof = 0;
scsi_tapes320kernel/blk_drv/scsi/st.cscsi_tapes[dev].eof_hit = 0;
scsi_tapes322kernel/blk_drv/scsi/st.cSCpnt = allocate_device(NULL, scsi_tapes[dev].device->index, 1);
scsi_tapes333kernel/blk_drv/scsi/st.c(void *) cmd, (void *) scsi_tapes[dev].buffer->b_data,
scsi_tapes336kernel/blk_drv/scsi/st.cif (SCpnt->request.dev == dev) sleep_on( &scsi_tapes[dev].waiting );
scsi_tapes348kernel/blk_drv/scsi/st.c(void *) cmd, (void *) scsi_tapes[dev].buffer->b_data,
scsi_tapes351kernel/blk_drv/scsi/st.cif (SCpnt->request.dev == dev) sleep_on( &scsi_tapes[dev].waiting );
scsi_tapes363kernel/blk_drv/scsi/st.cscsi_tapes[dev].buffer->in_use = 0;
scsi_tapes364kernel/blk_drv/scsi/st.cscsi_tapes[dev].in_use = 0;
scsi_tapes374kernel/blk_drv/scsi/st.c(void *) cmd, (void *) scsi_tapes[dev].buffer->b_data,
scsi_tapes377kernel/blk_drv/scsi/st.cif (SCpnt->request.dev == dev) sleep_on( &scsi_tapes[dev].waiting );
scsi_tapes380kernel/blk_drv/scsi/st.cscsi_tapes[dev].max_block = (scsi_tapes[dev].buffer->b_data[1] << 16) |
scsi_tapes381kernel/blk_drv/scsi/st.c(scsi_tapes[dev].buffer->b_data[2] << 8) | scsi_tapes[dev].buffer->b_data[3];
scsi_tapes382kernel/blk_drv/scsi/st.cscsi_tapes[dev].min_block = (scsi_tapes[dev].buffer->b_data[4] << 8) |
scsi_tapes383kernel/blk_drv/scsi/st.cscsi_tapes[dev].buffer->b_data[5];
scsi_tapes385kernel/blk_drv/scsi/st.cprintk("st%d: Block limits %d - %d bytes.\n", dev, scsi_tapes[dev].min_block,
scsi_tapes386kernel/blk_drv/scsi/st.cscsi_tapes[dev].max_block);
scsi_tapes390kernel/blk_drv/scsi/st.cscsi_tapes[dev].min_block = scsi_tapes[dev].max_block = (-1);
scsi_tapes402kernel/blk_drv/scsi/st.c(void *) cmd, (void *) scsi_tapes[dev].buffer->b_data,
scsi_tapes405kernel/blk_drv/scsi/st.cif (SCpnt->request.dev == dev) sleep_on( &scsi_tapes[dev].waiting );
scsi_tapes412kernel/blk_drv/scsi/st.cscsi_tapes[dev].buffer->b_data[2] =
scsi_tapes413kernel/blk_drv/scsi/st.cscsi_tapes[dev].buffer->b_data[3] = 0;
scsi_tapes419kernel/blk_drv/scsi/st.cscsi_tapes[dev].buffer->b_data[0], scsi_tapes[dev].buffer->b_data[1],
scsi_tapes420kernel/blk_drv/scsi/st.cscsi_tapes[dev].buffer->b_data[2], scsi_tapes[dev].buffer->b_data[3]);
scsi_tapes423kernel/blk_drv/scsi/st.cif (scsi_tapes[dev].buffer->b_data[3] >= 8) {
scsi_tapes424kernel/blk_drv/scsi/st.cscsi_tapes[dev].block_size = scsi_tapes[dev].buffer->b_data[9] * 65536 +
scsi_tapes425kernel/blk_drv/scsi/st.cscsi_tapes[dev].buffer->b_data[10] * 256 + scsi_tapes[dev].buffer->b_data[11];
scsi_tapes428kernel/blk_drv/scsi/st.cscsi_tapes[dev].buffer->b_data[4], scsi_tapes[dev].buffer->b_data[5] *
scsi_tapes429kernel/blk_drv/scsi/st.c65536 + scsi_tapes[dev].buffer->b_data[6] * 256 +
scsi_tapes430kernel/blk_drv/scsi/st.cscsi_tapes[dev].buffer->b_data[7], scsi_tapes[dev].buffer->b_data[9] *
scsi_tapes431kernel/blk_drv/scsi/st.c65536 + scsi_tapes[dev].buffer->b_data[10] * 256 +
scsi_tapes432kernel/blk_drv/scsi/st.cscsi_tapes[dev].buffer->b_data[11]);
scsi_tapes434kernel/blk_drv/scsi/st.cif (scsi_tapes[dev].block_size > ST_BUFFER_SIZE) {
scsi_tapes436kernel/blk_drv/scsi/st.cscsi_tapes[dev].block_size);
scsi_tapes437kernel/blk_drv/scsi/st.cscsi_tapes[dev].buffer->in_use = 0;
scsi_tapes438kernel/blk_drv/scsi/st.cscsi_tapes[dev].in_use = 0;
scsi_tapes442kernel/blk_drv/scsi/st.cif (scsi_tapes[dev].block_size == 0) {
scsi_tapes446kernel/blk_drv/scsi/st.cscsi_tapes[dev].buffer->in_use = 0;
scsi_tapes447kernel/blk_drv/scsi/st.cscsi_tapes[dev].in_use = 0;
scsi_tapes450kernel/blk_drv/scsi/st.cscsi_tapes[dev].block_size = ST_BLOCK_SIZE;
scsi_tapes454kernel/blk_drv/scsi/st.cscsi_tapes[dev].block_size = ST_BLOCK_SIZE;
scsi_tapes456kernel/blk_drv/scsi/st.cscsi_tapes[dev].buffer->buffer_blocks =
scsi_tapes457kernel/blk_drv/scsi/st.cST_BUFFER_SIZE / scsi_tapes[dev].block_size;
scsi_tapes458kernel/blk_drv/scsi/st.cscsi_tapes[dev].buffer->buffer_size =
scsi_tapes459kernel/blk_drv/scsi/st.cscsi_tapes[dev].buffer->buffer_blocks * scsi_tapes[dev].block_size;
scsi_tapes460kernel/blk_drv/scsi/st.cscsi_tapes[dev].buffer->buffer_bytes = scsi_tapes[dev].buffer->read_pointer = 0;
scsi_tapes464kernel/blk_drv/scsi/st.cscsi_tapes[dev].block_size, scsi_tapes[dev].buffer->buffer_size,
scsi_tapes465kernel/blk_drv/scsi/st.cscsi_tapes[dev].buffer->buffer_blocks);
scsi_tapes468kernel/blk_drv/scsi/st.cif (scsi_tapes[dev].buffer->b_data[2] & 0x80) {
scsi_tapes469kernel/blk_drv/scsi/st.cscsi_tapes[dev].write_prot = 1;
scsi_tapes492kernel/blk_drv/scsi/st.cif ( scsi_tapes[dev].rw == 2) {
scsi_tapes501kernel/blk_drv/scsi/st.cSCpnt = allocate_device(NULL, scsi_tapes[dev].device->index, 1);
scsi_tapes509kernel/blk_drv/scsi/st.c(void *) cmd, (void *) scsi_tapes[dev].buffer->b_data,
scsi_tapes512kernel/blk_drv/scsi/st.cif (SCpnt->request.dev == dev) sleep_on( &scsi_tapes[dev].waiting );
scsi_tapes528kernel/blk_drv/scsi/st.cif ((scsi_tapes[dev].eof == 1) && !scsi_tapes[dev].eof_hit)
scsi_tapes538kernel/blk_drv/scsi/st.cscsi_tapes[dev].buffer->in_use = 0;
scsi_tapes539kernel/blk_drv/scsi/st.cscsi_tapes[dev].in_use = 0;
scsi_tapes556kernel/blk_drv/scsi/st.cif (!scsi_tapes[dev].in_use) {
scsi_tapes562kernel/blk_drv/scsi/st.cif (scsi_tapes[dev].write_prot)
scsi_tapes565kernel/blk_drv/scsi/st.cif (scsi_tapes[dev].rw == 1) {
scsi_tapes569kernel/blk_drv/scsi/st.cscsi_tapes[dev].rw = 2;
scsi_tapes573kernel/blk_drv/scsi/st.cif (scsi_tapes[dev].buffer->writing) {
scsi_tapes575kernel/blk_drv/scsi/st.cif (scsi_tapes[dev].buffer->last_result) {
scsi_tapes578kernel/blk_drv/scsi/st.cscsi_tapes[dev].buffer->last_result);
scsi_tapes589kernel/blk_drv/scsi/st.cSCpnt = allocate_device(NULL, scsi_tapes[dev].device->index, 1);
scsi_tapes597kernel/blk_drv/scsi/st.cscsi_tapes[dev].rw = 2;
scsi_tapes600kernel/blk_drv/scsi/st.cwhile((scsi_tapes[dev].buffer->buffer_bytes + count) >=
scsi_tapes601kernel/blk_drv/scsi/st.cscsi_tapes[dev].buffer->buffer_size) {
scsi_tapes602kernel/blk_drv/scsi/st.cdo_count = scsi_tapes[dev].buffer->buffer_size -
scsi_tapes603kernel/blk_drv/scsi/st.cscsi_tapes[dev].buffer->buffer_bytes;
scsi_tapes604kernel/blk_drv/scsi/st.cmemcpy_fromfs(scsi_tapes[dev].buffer->b_data +
scsi_tapes605kernel/blk_drv/scsi/st.cscsi_tapes[dev].buffer->buffer_bytes,b_point,do_count);
scsi_tapes607kernel/blk_drv/scsi/st.cblks = scsi_tapes[dev].buffer->buffer_blocks;
scsi_tapes614kernel/blk_drv/scsi/st.c(void *) cmd, scsi_tapes[dev].buffer->b_data,
scsi_tapes615kernel/blk_drv/scsi/st.cscsi_tapes[dev].buffer->buffer_size,
scsi_tapes618kernel/blk_drv/scsi/st.cif (SCpnt->request.dev == dev) sleep_on( &scsi_tapes[dev].waiting );
scsi_tapes639kernel/blk_drv/scsi/st.cscsi_tapes[dev].buffer->buffer_bytes = 0;
scsi_tapes640kernel/blk_drv/scsi/st.cscsi_tapes[dev].dirty = 0;
scsi_tapes643kernel/blk_drv/scsi/st.cscsi_tapes[dev].dirty = 1;
scsi_tapes644kernel/blk_drv/scsi/st.cmemcpy_fromfs(scsi_tapes[dev].buffer->b_data +
scsi_tapes645kernel/blk_drv/scsi/st.cscsi_tapes[dev].buffer->buffer_bytes,b_point,count);
scsi_tapes647kernel/blk_drv/scsi/st.cscsi_tapes[dev].buffer->buffer_bytes += count;
scsi_tapes658kernel/blk_drv/scsi/st.cif (scsi_tapes[dev].buffer->buffer_bytes >= ST_WRITE_THRESHOLD) {
scsi_tapes660kernel/blk_drv/scsi/st.cscsi_tapes[dev].buffer->writing = (scsi_tapes[dev].buffer->buffer_bytes /
scsi_tapes661kernel/blk_drv/scsi/st.cscsi_tapes[dev].block_size) * scsi_tapes[dev].block_size;
scsi_tapes662kernel/blk_drv/scsi/st.cscsi_tapes[dev].dirty = 0;
scsi_tapes664kernel/blk_drv/scsi/st.cblks = scsi_tapes[dev].buffer->writing / scsi_tapes[dev].block_size;
scsi_tapes668kernel/blk_drv/scsi/st.cSCpnt->result = scsi_tapes[dev].buffer->last_result = -1;
scsi_tapes672kernel/blk_drv/scsi/st.c(void *) cmd, scsi_tapes[dev].buffer->b_data,
scsi_tapes673kernel/blk_drv/scsi/st.cscsi_tapes[dev].buffer->writing,
scsi_tapes695kernel/blk_drv/scsi/st.cif (!scsi_tapes[dev].in_use) {
scsi_tapes701kernel/blk_drv/scsi/st.cif (scsi_tapes[dev].rw == 2) {
scsi_tapes705kernel/blk_drv/scsi/st.cscsi_tapes[dev].rw = 1;
scsi_tapes709kernel/blk_drv/scsi/st.cif (scsi_tapes[dev].eof)
scsi_tapes711kernel/blk_drv/scsi/st.cscsi_tapes[dev].buffer->buffer_bytes);
scsi_tapes713kernel/blk_drv/scsi/st.cif ((scsi_tapes[dev].buffer->buffer_bytes == 0) &&
scsi_tapes714kernel/blk_drv/scsi/st.cscsi_tapes[dev].eof == 2)  /* EOM or Blank Check */
scsi_tapes717kernel/blk_drv/scsi/st.cscsi_tapes[dev].rw = 1;
scsi_tapes719kernel/blk_drv/scsi/st.cSCpnt = allocate_device(NULL, scsi_tapes[dev].device->index, 1);
scsi_tapes723kernel/blk_drv/scsi/st.cif (scsi_tapes[dev].buffer->buffer_bytes == 0 &&
scsi_tapes724kernel/blk_drv/scsi/st.cscsi_tapes[dev].eof == 0) {
scsi_tapes729kernel/blk_drv/scsi/st.cblks = scsi_tapes[dev].buffer->buffer_blocks;
scsi_tapes737kernel/blk_drv/scsi/st.c(void *) cmd, scsi_tapes[dev].buffer->b_data,
scsi_tapes738kernel/blk_drv/scsi/st.cscsi_tapes[dev].buffer->buffer_size,
scsi_tapes741kernel/blk_drv/scsi/st.cif (SCpnt->request.dev == dev) sleep_on( &scsi_tapes[dev].waiting );
scsi_tapes743kernel/blk_drv/scsi/st.cscsi_tapes[dev].buffer->read_pointer = 0;
scsi_tapes744kernel/blk_drv/scsi/st.cscsi_tapes[dev].eof_hit = 0;
scsi_tapes767kernel/blk_drv/scsi/st.cscsi_tapes[dev].eof = 2; /* What should be done at EOM ? */
scsi_tapes768kernel/blk_drv/scsi/st.cscsi_tapes[dev].buffer->buffer_bytes =
scsi_tapes769kernel/blk_drv/scsi/st.c(scsi_tapes[dev].buffer->buffer_blocks - transfer) *
scsi_tapes770kernel/blk_drv/scsi/st.cscsi_tapes[dev].block_size;
scsi_tapes773kernel/blk_drv/scsi/st.cscsi_tapes[dev].buffer->buffer_blocks - transfer);
scsi_tapes777kernel/blk_drv/scsi/st.cscsi_tapes[dev].eof = 1;
scsi_tapes778kernel/blk_drv/scsi/st.cscsi_tapes[dev].buffer->buffer_bytes =
scsi_tapes779kernel/blk_drv/scsi/st.c(scsi_tapes[dev].buffer->buffer_blocks - transfer) *
scsi_tapes780kernel/blk_drv/scsi/st.cscsi_tapes[dev].block_size;
scsi_tapes783kernel/blk_drv/scsi/st.cdev, scsi_tapes[dev].buffer->buffer_blocks - transfer, total);
scsi_tapes807kernel/blk_drv/scsi/st.cscsi_tapes[dev].buffer->buffer_bytes =
scsi_tapes808kernel/blk_drv/scsi/st.cscsi_tapes[dev].buffer->buffer_size;
scsi_tapes812kernel/blk_drv/scsi/st.cif (scsi_tapes[dev].buffer->buffer_bytes > 0) {
scsi_tapes814kernel/blk_drv/scsi/st.cif (scsi_tapes[dev].eof)
scsi_tapes816kernel/blk_drv/scsi/st.cscsi_tapes[dev].buffer->buffer_bytes, count - total);
scsi_tapes818kernel/blk_drv/scsi/st.ctransfer = scsi_tapes[dev].buffer->buffer_bytes < count - total ?
scsi_tapes819kernel/blk_drv/scsi/st.cscsi_tapes[dev].buffer->buffer_bytes : count - total;
scsi_tapes820kernel/blk_drv/scsi/st.cmemcpy_tofs(buf, scsi_tapes[dev].buffer->b_data +
scsi_tapes821kernel/blk_drv/scsi/st.cscsi_tapes[dev].buffer->read_pointer,transfer);
scsi_tapes825kernel/blk_drv/scsi/st.cscsi_tapes[dev].buffer->buffer_bytes -= transfer;
scsi_tapes826kernel/blk_drv/scsi/st.cscsi_tapes[dev].buffer->read_pointer += transfer;
scsi_tapes828kernel/blk_drv/scsi/st.celse if (scsi_tapes[dev].eof) {
scsi_tapes829kernel/blk_drv/scsi/st.cscsi_tapes[dev].eof_hit = 1;
scsi_tapes831kernel/blk_drv/scsi/st.cif (total == 0 && scsi_tapes[dev].eof == 1)
scsi_tapes832kernel/blk_drv/scsi/st.cscsi_tapes[dev].eof = 0;
scsi_tapes833kernel/blk_drv/scsi/st.cif (total == 0 && scsi_tapes[dev].eof == 2)
scsi_tapes914kernel/blk_drv/scsi/st.cif (scsi_tapes[dev].write_prot)
scsi_tapes971kernel/blk_drv/scsi/st.cif (scsi_tapes[dev].write_prot)
scsi_tapes980kernel/blk_drv/scsi/st.cif (scsi_tapes[dev].device->scsi_level < SCSI_2) {
scsi_tapes1005kernel/blk_drv/scsi/st.cif (scsi_tapes[dev].dirty || scsi_tapes[dev].buffer->buffer_bytes != 0)
scsi_tapes1008kernel/blk_drv/scsi/st.c(arg < scsi_tapes[dev].min_block || arg > scsi_tapes[dev].max_block ||
scsi_tapes1016kernel/blk_drv/scsi/st.cmemset(scsi_tapes[dev].buffer->b_data, 0, 12);
scsi_tapes1017kernel/blk_drv/scsi/st.cscsi_tapes[dev].buffer->b_data[2] = 0x10;  /* buffered mode */
scsi_tapes1018kernel/blk_drv/scsi/st.cscsi_tapes[dev].buffer->b_data[3] = 8;     /* block descriptor length */
scsi_tapes1022kernel/blk_drv/scsi/st.cscsi_tapes[dev].buffer->b_data[4] = arg;
scsi_tapes1023kernel/blk_drv/scsi/st.cltmp = scsi_tapes[dev].block_size;
scsi_tapes1025kernel/blk_drv/scsi/st.cscsi_tapes[dev].buffer->b_data[9] = (ltmp >> 16);
scsi_tapes1026kernel/blk_drv/scsi/st.cscsi_tapes[dev].buffer->b_data[10] = (ltmp >> 8);
scsi_tapes1027kernel/blk_drv/scsi/st.cscsi_tapes[dev].buffer->b_data[11] = ltmp;
scsi_tapes1032kernel/blk_drv/scsi/st.cscsi_tapes[dev].buffer->b_data[9] * 65536 +
scsi_tapes1033kernel/blk_drv/scsi/st.cscsi_tapes[dev].buffer->b_data[10] * 256 +
scsi_tapes1034kernel/blk_drv/scsi/st.cscsi_tapes[dev].buffer->b_data[11]);
scsi_tapes1037kernel/blk_drv/scsi/st.cscsi_tapes[dev].buffer->b_data[4]);
scsi_tapes1045kernel/blk_drv/scsi/st.cSCpnt = allocate_device(NULL, scsi_tapes[dev].device->index, 1);
scsi_tapes1049kernel/blk_drv/scsi/st.c(void *) cmd, (void *) scsi_tapes[dev].buffer->b_data, ST_BLOCK_SIZE,
scsi_tapes1052kernel/blk_drv/scsi/st.cif (SCpnt->request.dev == dev) sleep_on( &scsi_tapes[dev].waiting );
scsi_tapes1064kernel/blk_drv/scsi/st.cscsi_tapes[dev].block_size = arg;
scsi_tapes1065kernel/blk_drv/scsi/st.cscsi_tapes[dev].buffer->buffer_blocks =
scsi_tapes1066kernel/blk_drv/scsi/st.cST_BUFFER_SIZE / scsi_tapes[dev].block_size;
scsi_tapes1067kernel/blk_drv/scsi/st.cscsi_tapes[dev].buffer->buffer_size =
scsi_tapes1068kernel/blk_drv/scsi/st.cscsi_tapes[dev].buffer->buffer_blocks * scsi_tapes[dev].block_size;
scsi_tapes1069kernel/blk_drv/scsi/st.cscsi_tapes[dev].buffer->buffer_bytes =
scsi_tapes1070kernel/blk_drv/scsi/st.cscsi_tapes[dev].buffer->read_pointer = 0;
scsi_tapes1073kernel/blk_drv/scsi/st.cscsi_tapes[dev].eof = 2;
scsi_tapes1074kernel/blk_drv/scsi/st.cscsi_tapes[dev].eof_hit = 0;
scsi_tapes1077kernel/blk_drv/scsi/st.cscsi_tapes[dev].eof = 0;
scsi_tapes1078kernel/blk_drv/scsi/st.cscsi_tapes[dev].eof_hit = 0;
scsi_tapes1100kernel/blk_drv/scsi/st.cif (!scsi_tapes[dev].in_use) {
scsi_tapes1130kernel/blk_drv/scsi/st.cmemcpy_tofs((char *)arg, (char *)scsi_tapes[dev].buffer->mt_status,
scsi_tapes1147kernel/blk_drv/scsi/st.cSCpnt = allocate_device(NULL, scsi_tapes[dev].device->index, 1);
scsi_tapes1151kernel/blk_drv/scsi/st.cif (scsi_tapes[dev].device->scsi_level < SCSI_2) {
scsi_tapes1162kernel/blk_drv/scsi/st.c(void *) scmd, (void *) scsi_tapes[dev].buffer->b_data,
scsi_tapes1165kernel/blk_drv/scsi/st.cif (SCpnt->request.dev == dev) sleep_on( &scsi_tapes[dev].waiting );
scsi_tapes1176kernel/blk_drv/scsi/st.cif (scsi_tapes[dev].device->scsi_level < SCSI_2)
scsi_tapes1177kernel/blk_drv/scsi/st.cmt_pos.mt_blkno = (scsi_tapes[dev].buffer->b_data[0] << 16) 
scsi_tapes1178kernel/blk_drv/scsi/st.c+ (scsi_tapes[dev].buffer->b_data[1] << 8) 
scsi_tapes1179kernel/blk_drv/scsi/st.c+ scsi_tapes[dev].buffer->b_data[2];
scsi_tapes1181kernel/blk_drv/scsi/st.cmt_pos.mt_blkno = (scsi_tapes[dev].buffer->b_data[4] << 24)
scsi_tapes1182kernel/blk_drv/scsi/st.c+ (scsi_tapes[dev].buffer->b_data[5] << 16) 
scsi_tapes1183kernel/blk_drv/scsi/st.c+ (scsi_tapes[dev].buffer->b_data[6] << 8) 
scsi_tapes1184kernel/blk_drv/scsi/st.c+ scsi_tapes[dev].buffer->b_data[7];
scsi_tapes1212kernel/blk_drv/scsi/st.cscsi_tapes[NR_ST++].device = SDp;
scsi_tapes1217kernel/blk_drv/scsi/st.cscsi_tapes = (Scsi_Tape *) mem_start;
scsi_tapes1235kernel/blk_drv/scsi/st.cscsi_tapes[i].capacity = 0xfffff;
scsi_tapes1236kernel/blk_drv/scsi/st.cscsi_tapes[i].dirty = 0;
scsi_tapes1237kernel/blk_drv/scsi/st.cscsi_tapes[i].rw = 0;
scsi_tapes1238kernel/blk_drv/scsi/st.cscsi_tapes[i].eof = 0;
scsi_tapes1239kernel/blk_drv/scsi/st.cscsi_tapes[i].waiting = NULL;
scsi_tapes1240kernel/blk_drv/scsi/st.cscsi_tapes[i].in_use = 0;