• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/scsi/

Lines Matching defs:tape

11   Rewritten from Dwayne Forsyth's SCSI tape driver by Kai Makisara.
192 static inline char *tape_name(struct osst_tape *tape)
194 return tape->drive->disk_name;
274 SRpnt->cmd[0] != TEST_UNIT_READY)) { /* Abnormal conditions for tape */
534 * Verify that we have the correct tape frame
733 * Wait for a tape to be inserted in the unit
949 * Read the next OnStream tape frame at the current location
972 printk(OSST_DEB_MSG "%s:D: Reading frame from OnStream tape\n", name);
1016 printk(OSST_DEB_MSG "%s:D: Exit read frame from OnStream tape with code %d\n", name, retval);
1048 printk(OSST_DEB_MSG "%s:D: Start Read Ahead on OnStream tape\n", name);
1080 * Search and wait for the next logical tape frame
1089 printk(OSST_DEB_MSG "%s:D: Repositioning tape to bad frame %d\n",
1118 printk(OSST_DEB_MSG "%s:D: Bad frame detected, positioning tape to block %d\n",
1180 "%s:D: Exit get logical frame (%d=>%d) from OnStream tape with code %d\n",
1477 printk(KERN_ERR "%s:E: Failed to find writable tape media\n", name);
1560 return (-EIO); /* hit end of tape = fail */
1572 printk(OSST_DEB_MSG "%s:D: reported frame positions: host = %d, tape = %d, buffer = %d\n",
1621 printk(OSST_DEB_MSG "%s:D: Addl error, host %d, tape %d, buffer %d\n",
1650 break; /* hit end of tape = fail */
1680 printk(KERN_ERR "%s:E: Failed to find valid tape media\n", name);
1688 * Error recovery algorithm for the OnStream tape.
1722 printk(OSST_DEB_MSG "%s:D: reported frame positions: host = %d, tape = %d\n",
1756 printk(OSST_DEB_MSG "%s:D: Positioning complete, cur_frames %d, pos %d, tape pos %d\n",
2095 printk(OSST_DEB_MSG "%s:D: Setting number of retries on OnStream tape to %d\n", name, retries);
2216 printk(OSST_DEB_MSG "%s:D: Writing tape header\n", name);
2310 printk(KERN_WARNING "%s:W: Couldn't position tape\n", name);
2432 printk(OSST_DEB_MSG "%s:D: first data frame on tape = %d, last = %d, eod frame = %d\n", name,
2436 printk(OSST_DEB_MSG "%s:D: first mark on tape = %d, last = %d, eod frame = %d\n",
2540 printk(OSST_DEB_MSG "%s:D: Verify that the tape is really the one we think before writing\n", name);
2602 * Configure the OnStream SCII tape drive for default operation
2646 printk (KERN_ERR "%s:E: Can't get tape block size mode page\n", name);
2677 printk (KERN_ERR "%s:E: Couldn't set tape block size mode page\n", name);
2753 printk (KERN_ERR "%s:E: Can't get tape parameter page\n", name);
2764 printk(OSST_DEB_MSG "%s:D: Density %d, tape length: %dMB, drive buffer size: %dKB\n",
2802 /* Get the tape position. */
2835 printk(KERN_ERR "%s:E: Can't read tape position.\n", name);
2866 printk(OSST_DEB_MSG "%s:D: Drive Positions: host %d, tape %d%s, buffer %d\n", name,
2887 /* Set the tape block */
3102 /* Flush the tape buffer. The tape will be positioned correctly unless
3358 printk(KERN_ERR "%s:E: Write (%Zd bytes) not multiple of tape block size (%d%c).\n",
3388 /* Are we totally rewriting this tape? */
3400 /* Do we know where we'll be writing on the tape? */
3409 /* We have no idea where the tape is positioned - give up */
3470 the problems after some tape movement. */
3678 "%s:W: Read (%Zd bytes) not multiple of tape block size (%d%c).\n", name, count,
3698 /* Check the buffer writability before any tape movement. Don't alter
3737 "%s:W: Nothing can be transfered, requested %Zd, tape block size (%d%c).\n",
3766 /* Change the eof state if no data from tape or buffer */
4063 printk(OSST_DEB_MSG "%s:D: Spacing tape forward %d setmarks.\n", name,
4083 printk(OSST_DEB_MSG "%s:D: Spacing tape backward %ld setmarks.\n",
4151 printk(OSST_DEB_MSG "%s:D: Unloading tape.\n", name);
4154 printk(OSST_DEB_MSG "%s:D: Loading tape.\n", name);
4157 printk(OSST_DEB_MSG "%s:D: Retensioning tape.\n", name);
4160 printk(OSST_DEB_MSG "%s:D: Ejecting tape.\n", name);
4170 printk(OSST_DEB_MSG "%s:D: No-op on tape.\n", name);
4212 printk(OSST_DEB_MSG "%s:D: Rewinding tape, Immed=%d.\n", name, cmd[1]);
4235 case MTSETDENSITY: /* Set tape density */
4433 /* Allocate data segments for this device's tape buffer */
4435 printk(KERN_ERR "%s:E: Unable to allocate memory segments for tape buffer.\n", name);
4533 * if we have valid headers from before, and the drive/tape seem untouched,
4702 * properly position the tape and check the ADR headers
4730 /* Flush the tape buffer before close */
4950 * to this device. If the user wants to rewind the tape,
4974 * The user tells us to move to another position on the tape.
4975 * If we were appending to the tape content, that would leave
4976 * the tape without proper end, in that case write EOD and
5201 /* Try to allocate a new tape buffer skeleton. Caller must not hold os_scsi_tapes_lock */
5216 printk(KERN_NOTICE "osst :I: Can't allocate new tape buffer.\n");
5228 "osst :D: Allocated tape buffer skeleton (%d bytes, %d segments, dma: %d).\n",
5234 /* Try to allocate a temporary (while a user has the device open) enlarged tape buffer */
5268 printk(KERN_NOTICE "osst :I: Can't allocate tape buffer main segment.\n");
5299 "osst :D: Expanded tape buffer (%d bytes, %d->%d segments, dma: %d, at: %p).\n",
5335 /* Move data from the user buffer to the tape buffer. Returns zero (success) or
5368 /* Move data from the tape buffer to the user buffer. Returns zero (success) or
5772 printk(KERN_ERR "osst :E: Too many tape devices (max. %d).\n", osst_max_dev);
5797 printk(KERN_ERR "osst :E: Unable to allocate a tape buffer, device not attached.\n");
5890 "osst :I: Attached OnStream %.5s tape as %s\n",