• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/scsi/

Lines Matching refs:tape

11   Rewritten from Dwayne Forsyth's SCSI tape driver by Kai Makisara.
194 static inline char *tape_name(struct osst_tape *tape)
196 return tape->drive->disk_name;
276 SRpnt->cmd[0] != TEST_UNIT_READY)) { /* Abnormal conditions for tape */
611 * Verify that we have the correct tape frame
812 * Wait for a tape to be inserted in the unit
1028 * Read the next OnStream tape frame at the current location
1051 printk(OSST_DEB_MSG "%s:D: Reading frame from OnStream tape\n", name);
1095 printk(OSST_DEB_MSG "%s:D: Exit read frame from OnStream tape with code %d\n", name, retval);
1127 printk(OSST_DEB_MSG "%s:D: Start Read Ahead on OnStream tape\n", name);
1159 * Search and wait for the next logical tape frame
1168 printk(OSST_DEB_MSG "%s:D: Repositioning tape to bad frame %d\n",
1197 printk(OSST_DEB_MSG "%s:D: Bad frame detected, positioning tape to block %d\n",
1259 "%s:D: Exit get logical frame (%d=>%d) from OnStream tape with code %d\n",
1556 printk(KERN_ERR "%s:E: Failed to find writable tape media\n", name);
1639 return (-EIO); /* hit end of tape = fail */
1651 printk(OSST_DEB_MSG "%s:D: reported frame positions: host = %d, tape = %d, buffer = %d\n",
1700 printk(OSST_DEB_MSG "%s:D: Addl error, host %d, tape %d, buffer %d\n",
1729 break; /* hit end of tape = fail */
1759 printk(KERN_ERR "%s:E: Failed to find valid tape media\n", name);
1767 * Error recovery algorithm for the OnStream tape.
1801 printk(OSST_DEB_MSG "%s:D: reported frame positions: host = %d, tape = %d\n",
1835 printk(OSST_DEB_MSG "%s:D: Positioning complete, cur_frames %d, pos %d, tape pos %d\n",
2174 printk(OSST_DEB_MSG "%s:D: Setting number of retries on OnStream tape to %d\n", name, retries);
2295 printk(OSST_DEB_MSG "%s:D: Writing tape header\n", name);
2389 printk(KERN_WARNING "%s:W: Couldn't position tape\n", name);
2511 printk(OSST_DEB_MSG "%s:D: first data frame on tape = %d, last = %d, eod frame = %d\n", name,
2515 printk(OSST_DEB_MSG "%s:D: first mark on tape = %d, last = %d, eod frame = %d\n",
2619 printk(OSST_DEB_MSG "%s:D: Verify that the tape is really the one we think before writing\n", name);
2681 * Configure the OnStream SCII tape drive for default operation
2725 printk (KERN_ERR "%s:E: Can't get tape block size mode page\n", name);
2756 printk (KERN_ERR "%s:E: Couldn't set tape block size mode page\n", name);
2832 printk (KERN_ERR "%s:E: Can't get tape parameter page\n", name);
2843 printk(OSST_DEB_MSG "%s:D: Density %d, tape length: %dMB, drive buffer size: %dKB\n",
2881 /* Get the tape position. */
2914 printk(KERN_ERR "%s:E: Can't read tape position.\n", name);
2945 printk(OSST_DEB_MSG "%s:D: Drive Positions: host %d, tape %d%s, buffer %d\n", name,
2966 /* Set the tape block */
3181 /* Flush the tape buffer. The tape will be positioned correctly unless
3437 printk(KERN_ERR "%s:E: Write (%Zd bytes) not multiple of tape block size (%d%c).\n",
3467 /* Are we totally rewriting this tape? */
3479 /* Do we know where we'll be writing on the tape? */
3488 /* We have no idea where the tape is positioned - give up */
3549 the problems after some tape movement. */
3757 "%s:W: Read (%Zd bytes) not multiple of tape block size (%d%c).\n", name, count,
3777 /* Check the buffer writability before any tape movement. Don't alter
3816 "%s:W: Nothing can be transfered, requested %Zd, tape block size (%d%c).\n",
3845 /* Change the eof state if no data from tape or buffer */
4142 printk(OSST_DEB_MSG "%s:D: Spacing tape forward %d setmarks.\n", name,
4162 printk(OSST_DEB_MSG "%s:D: Spacing tape backward %ld setmarks.\n",
4230 printk(OSST_DEB_MSG "%s:D: Unloading tape.\n", name);
4233 printk(OSST_DEB_MSG "%s:D: Loading tape.\n", name);
4236 printk(OSST_DEB_MSG "%s:D: Retensioning tape.\n", name);
4239 printk(OSST_DEB_MSG "%s:D: Ejecting tape.\n", name);
4249 printk(OSST_DEB_MSG "%s:D: No-op on tape.\n", name);
4291 printk(OSST_DEB_MSG "%s:D: Rewinding tape, Immed=%d.\n", name, cmd[1]);
4314 case MTSETDENSITY: /* Set tape density */
4512 /* Allocate data segments for this device's tape buffer */
4514 printk(KERN_ERR "%s:E: Unable to allocate memory segments for tape buffer.\n", name);
4612 * if we have valid headers from before, and the drive/tape seem untouched,
4781 * properly position the tape and check the ADR headers
4821 /* Flush the tape buffer before close */
5044 * to this device. If the user wants to rewind the tape,
5068 * The user tells us to move to another position on the tape.
5069 * If we were appending to the tape content, that would leave
5070 * the tape without proper end, in that case write EOD and
5298 /* Try to allocate a new tape buffer skeleton. Caller must not hold os_scsi_tapes_lock */
5313 printk(KERN_NOTICE "osst :I: Can't allocate new tape buffer.\n");
5325 "osst :D: Allocated tape buffer skeleton (%d bytes, %d segments, dma: %d).\n",
5331 /* Try to allocate a temporary (while a user has the device open) enlarged tape buffer */
5366 printk(KERN_NOTICE "osst :I: Can't allocate tape buffer main segment.\n");
5391 "osst :D: Expanded tape buffer (%d bytes, %d->%d segments, dma: %d, at: %p).\n",
5427 /* Move data from the user buffer to the tape buffer. Returns zero (success) or
5460 /* Move data from the tape buffer to the user buffer. Returns zero (success) or
5867 printk(KERN_ERR "osst :E: Too many tape devices (max. %d).\n", osst_max_dev);
5892 printk(KERN_ERR "osst :E: Unable to allocate a tape buffer, device not attached.\n");
5985 "osst :I: Attached OnStream %.5s tape as %s\n",