• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/drivers/block/

Lines Matching refs:track

27  *   - Initialize track register when testing presence of floppy
50 * - increase gap size at start of track for HD/ED disks
89 unsigned spt; /* sectors per track */
92 unsigned stretch; /* track doubling ? */
213 int track; /* current head position or -1 if
256 * operations. Second, a track buffer is used to cache a whole track
258 * because that allows write operations without clearing the track buffer.
273 static int UseTrackbuffer = -1; /* Do track buffering? */
282 #define IS_BUFFERED(drive,side,track) \
283 (BufferDrive == (drive) && BufferSide == (side) && BufferTrack == (track))
417 /* Select a drive, update the FDC's track register and set the correct
437 /* restore track register to saved value */
438 FDC_WRITE( FDCREG_TRACK, UD.track );
507 * as possible) and keep track of the current state of the write protection.
620 SUD.track = -1;
645 drive, desc->track, desc->head, desc->sect_offset ));
664 if (!UDT || desc->track >= UDT->blocks/UDT->spt/2 || desc->head >= 2) {
671 /* The track buffer is used for the raw track data, so its
682 *p++ = desc->track;
699 ReqTrack = desc->track;
711 * required parameter settings (drive select, side select, track
743 /* cmd == WRITE, pay attention to track buffer
753 if (UD.track == -1)
755 else if (UD.track != ReqTrack << UDT->stretch)
764 /* Seek to track 0 if the current track is unknown */
768 if (SUD.track >= 0) {
800 SUD.track = 0;
806 /* Seek the drive to the requested track. The drive must have been
812 if (SUD.track == ReqTrack << SUDT->stretch) {
822 DPRINT(("fd_seek() to track %d\n",ReqTrack));
844 printk(KERN_ERR "fd%d: seek error (to track %d)\n",
846 /* we don't know exactly which track we are on now! */
847 SUD.track = -1;
851 SUD.track = ReqTrack << SUDT->stretch;
862 * over the correct track.
872 unsigned int track;
900 /* Cheat for track if stretch != 0 */
902 track = FDC_READ( FDCREG_TRACK);
904 FDC_WRITE( FDCREG_TRACK, track >> SUDT->stretch);
950 /* If reading a whole track, wait about one disk rotation and
1037 unsigned int track;
1041 /* Correct the track if stretch != 0 */
1043 track = FDC_READ( FDCREG_TRACK);
1045 FDC_WRITE( FDCREG_TRACK, track << SUDT->stretch);
1102 printk(KERN_ERR "fd%d: sector %d not found (side %d, track %d)\n",
1107 printk(KERN_ERR "fd%d: CRC error (side %d, track %d, sector %d)\n",
1112 printk(KERN_ERR "fd%d: lost data (side %d, track %d, sector %d)\n",
1158 unsigned int track;
1167 /* Cheat for track if stretch != 0 */
1169 track = FDC_READ( FDCREG_TRACK);
1171 FDC_WRITE(FDCREG_TRACK,track >> SUDT->stretch);
1225 printk(KERN_ERR "fd%d: lost data (side %d, track %d)\n",
1261 * no matter what :-( To save time, the seek goes to the track we're
1272 FDC_WRITE (FDCREG_DATA, SUD.track);
1523 getprm.track = dtp->blocks/dtp->spt/2;
1628 if (!dtp || setprm.track != dtp->blocks/dtp->spt/2 ||
1661 /* invalidate the buffer track to force a reread */
1683 UD.track = 0;
1900 track buffering off for all Medusas, though it
1924 unit[i].track = -1;