Lines Matching defs:track
139 int nsectors; /* number of sectors/track */
142 int curtrk; /* track head positioned on */
169 int nsectors; /* sectors per track */
833 int track, sector, hbit;
836 head = track = 0;
840 * Calculate head/track values
842 track = sc->sector / sc->nsectors;
843 head = track % sc->nheads;
844 track = track / sc->nheads;
846 printf("fd_xfer: sector:%d,head:%d,track:%d\n",
847 sc->sector, head, track);
868 * Recalibrate, since we lost track of head positioning.
870 * absolute arm position (track). Instead, it steps the
871 * arm a track at a time and keeps track of where it
875 * a recalibration is done, which forces the arm to track 0.
893 * already positioned on the correct track.
895 if (track != sc->curtrk) {
896 sc->curtrk = track; /* be optimistic */
897 write_fdreg(FDC_DR, track);
903 printf("fd_xfer:Seek to track %d on drive %d\n",
904 track, sc->unit);
910 * The drive is now on the proper track. Read or write 1 block.
1199 * min byte count to whats left of the track in question
1258 * is 'RESTORE' command and check if the 'track-0' bit is set. This also works