• Home
  • Raw
  • Download

Lines Matching refs:track

193 	int track;			/* current track (-1 == unknown) */  member
406 if (unit[drive].track % 2 != 0) in fd_select()
553 unit[drive].track = -1; in fd_calibrate()
558 unit[drive].track = 0; in fd_calibrate()
566 static int fd_seek(int drive, int track) in fd_seek() argument
572 printk("seeking drive %d to track %d\n",drive,track); in fd_seek()
576 if (unit[drive].track == track) { in fd_seek()
584 if (unit[drive].track < 0 && !fd_calibrate(drive)) { in fd_seek()
590 cnt = unit[drive].track/2 - track/2; in fd_seek()
593 if (track % 2 != 0) in fd_seek()
600 if (track % 2 != unit[drive].track % 2) in fd_seek()
602 unit[drive].track = track; in fd_seek()
733 if ((ulong)unit[drive].track >= unit[drive].type->precomp2) in raw_write()
735 else if ((ulong)unit[drive].track >= unit[drive].type->precomp1) in raw_write()
827 unsigned char track; member
862 hdr.magic, hdr.track, hdr.sect, hdr.ord, in amiga_read()
874 if (hdr.track != unit[drive].track) { in amiga_read()
875 printk(KERN_INFO "MFM_TRACK: %d, %d\n", hdr.track, unit[drive].track); in amiga_read()
885 hdr.magic, hdr.track, hdr.sect, hdr.ord, scnt, in amiga_read()
942 hdr.track = unit[disk].track; in putsec()
983 unsigned char track, /* 0-80 */ member
1108 return dos_crc(&(hdr->track), 0xb2, 0x30, 3); /* precomputed magic */ in dos_hdr_crc()
1167 unit[drive].track,drive,scnt); in dos_read()
1179 printk("(%3d,%d,%2d,%d) %x\n", hdr.track, hdr.side, in dos_read()
1188 if (hdr.track != unit[drive].track/unit[drive].type->heads) { in dos_read()
1190 hdr.track, in dos_read()
1191 unit[drive].track/unit[drive].type->heads); in dos_read()
1195 if (hdr.side != unit[drive].track%unit[drive].type->heads) { in dos_read()
1198 unit[drive].track%unit[drive].type->heads); in dos_read()
1213 unit[drive].track, drive, scnt, hdr.sec); in dos_read()
1223 hdr.track,hdr.side,hdr.sec,hdr.len_desc,scnt); in dos_read()
1234 "sc=%d, %x %x\n", hdr.track, hdr.side, in dos_read()
1288 hdr.track=unit[drive].track/unit[drive].type->heads; in ms_putsec()
1289 hdr.side=unit[drive].track%unit[drive].type->heads; in ms_putsec()
1294 dos_encode_block((ushort *)raw,(unsigned char *) &hdr.track,28); in ms_putsec()
1423 static int get_track(int drive, int track) in get_track() argument
1428 if (unit[drive].track == track) in get_track()
1442 if (!fd_seek(drive, track)) in get_track()
1451 unit[drive].track = -1; in get_track()
1462 unsigned int cnt, block, track, sector; in amiflop_rw_cur_segment() local
1472 track = block / (floppy->dtype->sects * floppy->type->sect_mult); in amiflop_rw_cur_segment()
1477 "0x%08lx\n", track, sector, data); in amiflop_rw_cur_segment()
1480 if (get_track(drive, track) == -1) in amiflop_rw_cur_segment()
1582 getprm.track=p->type->tracks; in fd_locked_ioctl()
1643 unit[drive].track = -1; in fd_probe()
1755 p->track = -1; in amiga_check_events()
1904 unit[i].track = -1; in amiga_floppy_probe()