tag | line | file | source code |
track | 229 | drivers/block/amiflop.c | if (unit[drive].track % 2 != 0) |
track | 276 | drivers/block/amiflop.c | if (unit[nr].track % 2 != 0) |
track | 315 | drivers/block/amiflop.c | if (unit[drive].track % 2 != 0) |
track | 390 | drivers/block/amiflop.c | unit[drive].track = -1; |
track | 394 | drivers/block/amiflop.c | unit[drive].track = 0; |
track | 405 | drivers/block/amiflop.c | static int fd_seek(int drive, int track) |
track | 411 | drivers/block/amiflop.c | if (unit[drive].track == track) |
track | 416 | drivers/block/amiflop.c | if (unit[drive].track < 0 && !fd_calibrate(drive)) |
track | 419 | drivers/block/amiflop.c | cnt = unit[drive].track/2 - track/2; |
track | 422 | drivers/block/amiflop.c | if (track % 2 != 0) |
track | 429 | drivers/block/amiflop.c | if (track % 2 != unit[drive].track % 2) |
track | 431 | drivers/block/amiflop.c | unit[drive].track = track; |
track | 493 | drivers/block/amiflop.c | unsigned char track; |
track | 501 | drivers/block/amiflop.c | static unsigned long *putsec(int disk, unsigned long *raw, int track, int cnt, |
track | 516 | drivers/block/amiflop.c | hdr.track = track; |
track | 544 | drivers/block/amiflop.c | int track) |
track | 556 | drivers/block/amiflop.c | ptr = putsec (disk, ptr, track, cnt, data + cnt*512); |
track | 609 | drivers/block/amiflop.c | unsigned long raw, int track) |
track | 634 | drivers/block/amiflop.c | hdr.magic, hdr.track, hdr.sect, hdr.ord, |
track | 646 | drivers/block/amiflop.c | if (hdr.track != track) { |
track | 647 | drivers/block/amiflop.c | printk("MFM_TRACK: %d, %d\n", hdr.track, track); |
track | 657 | drivers/block/amiflop.c | hdr.magic, hdr.track, hdr.sect, hdr.ord, scnt, |
track | 672 | drivers/block/amiflop.c | unsigned char track, /* 0-80 */ |
track | 687 | drivers/block/amiflop.c | return dos_crc(&(hdr->track), 0xb2, 0x30, 3); /* precomputed magic */ |
track | 842 | drivers/block/amiflop.c | unsigned long raw, int track) |
track | 856 | drivers/block/amiflop.c | track,drive,scnt); |
track | 868 | drivers/block/amiflop.c | printk("(%3d,%d,%2d,%d) %x\n", hdr.track, hdr.side, |
track | 876 | drivers/block/amiflop.c | if (hdr.track != track/unit[drive].type->heads) { |
track | 877 | drivers/block/amiflop.c | printk("dos_read: MFM_TRACK %d, %d\n", hdr.track, |
track | 878 | drivers/block/amiflop.c | track/unit[drive].type->heads); |
track | 882 | drivers/block/amiflop.c | if (hdr.side != track%unit[drive].type->heads) { |
track | 884 | drivers/block/amiflop.c | track%unit[drive].type->heads); |
track | 897 | drivers/block/amiflop.c | track, drive, scnt, hdr.sec); |
track | 906 | drivers/block/amiflop.c | hdr.track,hdr.side,hdr.sec,hdr.len_desc,scnt); |
track | 917 | drivers/block/amiflop.c | hdr.track, hdr.side, hdr.sec, hdr.len_desc, |
track | 954 | drivers/block/amiflop.c | static unsigned long *ms_putsec(int drive, unsigned long *raw, int track, int cnt, |
track | 972 | drivers/block/amiflop.c | hdr.track=track/unit[drive].type->heads; |
track | 973 | drivers/block/amiflop.c | hdr.side=track%unit[drive].type->heads; |
track | 978 | drivers/block/amiflop.c | dos_encode_block((ushort *)raw,(unsigned char *) &hdr.track,28); |
track | 1010 | drivers/block/amiflop.c | int track) |
track | 1037 | drivers/block/amiflop.c | ptr=ms_putsec(disk,ptr,track,cnt,data+cnt*512); |
track | 1097 | drivers/block/amiflop.c | unit[drive].track = -1; |
track | 1119 | drivers/block/amiflop.c | static void raw_read(int drive, int track, char *ptrack, int len) |
track | 1144 | drivers/block/amiflop.c | static int raw_write(int drive, int track, char *ptrack, int len) |
track | 1156 | drivers/block/amiflop.c | if ((ulong)track >= unit[drive].type->precomp2) |
track | 1158 | drivers/block/amiflop.c | else if ((ulong)track >= unit[drive].type->precomp1) |
track | 1181 | drivers/block/amiflop.c | static int get_track(int drive, int track) |
track | 1186 | drivers/block/amiflop.c | if ((lastdrive == drive) && (savedtrack == track)) |
track | 1190 | drivers/block/amiflop.c | raw_read(drive, track, raw_buf, unit[drive].type->read_size); |
track | 1192 | drivers/block/amiflop.c | error = (*unit[drive].dtype->read_fkt)(drive, trackdata, (unsigned long)raw_buf, track); |
track | 1195 | drivers/block/amiflop.c | savedtrack = track; |
track | 1198 | drivers/block/amiflop.c | unit[drive].track = -1; |
track | 1246 | drivers/block/amiflop.c | unsigned int block, track, sector; |
track | 1309 | drivers/block/amiflop.c | track = block / floppy->sects; |
track | 1315 | drivers/block/amiflop.c | if (track != savedtrack && writepending) { |
track | 1332 | drivers/block/amiflop.c | if (!fd_seek(drive, track)) { |
track | 1336 | drivers/block/amiflop.c | if (get_track(drive, track) == -1) { |
track | 1349 | drivers/block/amiflop.c | if (!fd_seek(drive, track)) { |
track | 1353 | drivers/block/amiflop.c | if (get_track(drive, track) == -1) { |
track | 1446 | drivers/block/amiflop.c | getprm.track=unit[drive].type->tracks/unit[drive].type->heads; |
track | 1559 | drivers/block/amiflop.c | unit[drive].track = -1; |
track | 1735 | drivers/block/amiflop.c | unit[i].track = -1; |
track | 206 | drivers/block/ataflop.c | int track; /* current head position or -1 if |
track | 272 | drivers/block/ataflop.c | #define IS_BUFFERED(drive,side,track) \ |
track | 273 | drivers/block/ataflop.c | (BufferDrive == (drive) && BufferSide == (side) && BufferTrack == (track)) |
track | 440 | drivers/block/ataflop.c | FDC_WRITE( FDCREG_TRACK, UD.track ); |
track | 617 | drivers/block/ataflop.c | SUD.track = -1; |
track | 643 | drivers/block/ataflop.c | drive, desc->track, desc->head, desc->sect_offset )); |
track | 664 | drivers/block/ataflop.c | if (!UDT || desc->track >= UDT->blocks/UDT->spt/2 || desc->head >= 2) { |
track | 682 | drivers/block/ataflop.c | *p++ = desc->track; |
track | 699 | drivers/block/ataflop.c | ReqTrack = desc->track; |
track | 753 | drivers/block/ataflop.c | if (UD.track == -1) |
track | 755 | drivers/block/ataflop.c | else if (UD.track != ReqTrack << UDT->stretch) |
track | 768 | drivers/block/ataflop.c | if (SUD.track >= 0) { |
track | 800 | drivers/block/ataflop.c | SUD.track = 0; |
track | 812 | drivers/block/ataflop.c | if (SUD.track == ReqTrack << SUDT->stretch) { |
track | 847 | drivers/block/ataflop.c | SUD.track = -1; |
track | 851 | drivers/block/ataflop.c | SUD.track = ReqTrack << SUDT->stretch; |
track | 872 | drivers/block/ataflop.c | unsigned int track; |
track | 901 | drivers/block/ataflop.c | track = FDC_READ( FDCREG_TRACK); |
track | 903 | drivers/block/ataflop.c | FDC_WRITE( FDCREG_TRACK, track >> SUDT->stretch); |
track | 1028 | drivers/block/ataflop.c | unsigned int track; |
track | 1043 | drivers/block/ataflop.c | track = FDC_READ( FDCREG_TRACK); |
track | 1045 | drivers/block/ataflop.c | FDC_WRITE( FDCREG_TRACK, track << SUDT->stretch); |
track | 1153 | drivers/block/ataflop.c | unsigned int track; |
track | 1164 | drivers/block/ataflop.c | track = FDC_READ( FDCREG_TRACK); |
track | 1166 | drivers/block/ataflop.c | FDC_WRITE(FDCREG_TRACK,track >> SUDT->stretch); |
track | 1268 | drivers/block/ataflop.c | FDC_WRITE (FDCREG_DATA, SUD.track); |
track | 1574 | drivers/block/ataflop.c | getprm.track = dtp->blocks/dtp->spt/2; |
track | 1626 | drivers/block/ataflop.c | UD.track = 0; |
track | 1881 | drivers/block/ataflop.c | unit[i].track = -1; |
track | 147 | drivers/block/floppy.c | int track; |
track | 793 | drivers/block/floppy.c | (mode || UDRS->track != NEED_1_RECAL)) |
track | 794 | drivers/block/floppy.c | UDRS->track = NEED_2_RECAL; |
track | 1392 | drivers/block/floppy.c | DRS->track = NEED_2_RECAL; |
track | 1478 | drivers/block/floppy.c | DRS->track = NEED_2_RECAL; |
track | 1483 | drivers/block/floppy.c | if (DRS->track >= 0 && DRS->track != ST1 && !blind_seek){ |
track | 1493 | drivers/block/floppy.c | DRS->track = ST1; |
track | 1524 | drivers/block/floppy.c | int track; |
track | 1546 | drivers/block/floppy.c | if (DRS->track <= NEED_1_RECAL){ |
track | 1551 | drivers/block/floppy.c | (DRS->track <= NO_TRACK || DRS->track == raw_cmd->track)) { |
track | 1554 | drivers/block/floppy.c | if (raw_cmd->track) |
track | 1555 | drivers/block/floppy.c | track = raw_cmd->track - 1; |
track | 1562 | drivers/block/floppy.c | track = 1; |
track | 1566 | drivers/block/floppy.c | if (raw_cmd->track != DRS->track && |
track | 1568 | drivers/block/floppy.c | track = raw_cmd->track; |
track | 1578 | drivers/block/floppy.c | DRS->track = raw_cmd->track; |
track | 1587 | drivers/block/floppy.c | LAST_OUT(track); |
track | 1601 | drivers/block/floppy.c | switch(DRS->track){ |
track | 1642 | drivers/block/floppy.c | DRS->track = NEED_1_RECAL; |
track | 1646 | drivers/block/floppy.c | DRS->track = ST1; |
track | 2037 | drivers/block/floppy.c | DRS->track = NEED_2_RECAL; |
track | 2068 | drivers/block/floppy.c | static void setup_format_params(int track) |
track | 2071 | drivers/block/floppy.c | unsigned char track,head,sect,size; |
track | 2077 | drivers/block/floppy.c | raw_cmd->track = track; |
track | 2100 | drivers/block/floppy.c | n = (track_shift * format_req.track + head_shift * format_req.head) |
track | 2110 | drivers/block/floppy.c | here[count].track = format_req.track; |
track | 2132 | drivers/block/floppy.c | setup_format_params(format_req.track << STRETCH(_floppy)); |
track | 2153 | drivers/block/floppy.c | _floppy->track > DP->tracks || |
track | 2154 | drivers/block/floppy.c | tmp_format_req->track >= _floppy->track || |
track | 2302 | drivers/block/floppy.c | buffer_track = raw_cmd->track; |
track | 2474 | drivers/block/floppy.c | if (_floppy->track && TRACK >= _floppy->track) |
track | 2503 | drivers/block/floppy.c | raw_cmd->track = TRACK << STRETCH(_floppy); |
track | 2528 | drivers/block/floppy.c | if ((raw_cmd->track == buffer_track) && |
track | 2597 | drivers/block/floppy.c | if (buffer_track != raw_cmd->track || /* bad track */ |
track | 2622 | drivers/block/floppy.c | buffer_track = raw_cmd->track; |
track | 2807 | drivers/block/floppy.c | raw_cmd->track=0; |
track | 3021 | drivers/block/floppy.c | ptr->track = old_raw_cmd.track; |
track | 3115 | drivers/block/floppy.c | DRS->track = NO_TRACK; |
track | 3147 | drivers/block/floppy.c | g->track <= 0 || |
track | 3148 | drivers/block/floppy.c | g->track > UDP->tracks>>STRETCH(g) || |
track | 4034 | drivers/block/floppy.c | FDCS->track[unit] = 0; |
track | 696 | drivers/block/hd.c | unsigned int dev, block, nsect, sec, track, head, cyl; |
track | 733 | drivers/block/hd.c | track = block / hd_info[dev].sect; |
track | 734 | drivers/block/hd.c | head = track % hd_info[dev].head; |
track | 735 | drivers/block/hd.c | cyl = track / hd_info[dev].head; |
track | 1711 | drivers/block/ide-cd.c | toc->ent[i].track = bcd2bin (toc->ent[i].track); |
track | 1878 | drivers/block/ide-cd.c | int cdrom_get_toc_entry (ide_drive_t *drive, int track, |
track | 1893 | drivers/block/ide-cd.c | if (track == CDROM_LEADOUT) |
track | 1895 | drivers/block/ide-cd.c | else if (track < toc->hdr.first_track || |
track | 1896 | drivers/block/ide-cd.c | track > toc->hdr.last_track) |
track | 1899 | drivers/block/ide-cd.c | *ent = &toc->ent[track - toc->hdr.first_track]; |
track | 1282 | drivers/block/ide.c | unsigned int sect,head,cyl,track; |
track | 1283 | drivers/block/ide.c | track = block / drive->sect; |
track | 1286 | drivers/block/ide.c | head = track % drive->head; |
track | 1287 | drivers/block/ide.c | cyl = track / drive->head; |
track | 209 | drivers/block/ide.h | byte track; |
track | 345 | drivers/block/xd.c | u_short track,cylinder; |
track | 356 | drivers/block/xd.c | track = block / xd_info[drive].sectors; |
track | 357 | drivers/block/xd.c | head = track % xd_info[drive].heads; |
track | 358 | drivers/block/xd.c | cylinder = track / xd_info[drive].heads; |
track | 715 | drivers/cdrom/aztcd.c | qp->track=0; /* only one byte with Aztech drives */ |
track | 727 | drivers/cdrom/aztcd.c | if (aztGetValue(&qp -> track) < 0) RETURNM("aztGetQChannelInfo 4",-1); |
track | 894 | drivers/cdrom/aztcd.c | if ((qInfo.track==0)&&(qInfo.pointIndex)) break; /*LeadIn found*/ |
track | 903 | drivers/cdrom/aztcd.c | printk("leadin found track %d pointIndex %x limit %d\n",qInfo.track,qInfo.pointIndex,limit); |
track | 1013 | drivers/cdrom/aztcd.c | if (px > 0 && px < MAX_TRACKS && qInfo.track == 0) |
track | 1030 | drivers/cdrom/aztcd.c | i, Toc[i].ctrl_addr, Toc[i].track, Toc[i].pointIndex, |
track | 1035 | drivers/cdrom/aztcd.c | i, Toc[i].ctrl_addr, Toc[i].track, Toc[i].pointIndex, |
track | 1282 | drivers/cdrom/aztcd.c | subchnl.cdsc_trk = azt_bcd2bin(qInfo.track); |
track | 1908 | drivers/cdrom/cdu31a.c | find_track(int track) |
track | 1917 | drivers/cdrom/cdu31a.c | if (sony_toc.tracks[i].track == track) |
track | 145 | drivers/cdrom/cm206.c | uch track, fsm[3], q0; |
track | 722 | drivers/cdrom/cm206.c | inline uch normalize_track(uch track) |
track | 724 | drivers/cdrom/cm206.c | if (track<1) return 1; |
track | 725 | drivers/cdrom/cm206.c | if (track>LAST_TRACK) return LAST_TRACK+1; |
track | 726 | drivers/cdrom/cm206.c | return track; |
track | 732 | drivers/cdrom/cm206.c | int get_toc_lba(uch track) |
track | 741 | drivers/cdrom/cm206.c | for (i=track; i>0; i--) if (cd->toc[i].track) { |
track | 750 | drivers/cdrom/cm206.c | if (!cd->toc[ct].track) { |
track | 753 | drivers/cdrom/cm206.c | cd->toc[ct].track=q[1]; /* lead out still 0xaa */ |
track | 761 | drivers/cdrom/cm206.c | if (ct==track) return l; |
track | 765 | drivers/cdrom/cm206.c | if (ct < track) min = lba; else max = lba; |
track | 768 | drivers/cdrom/cm206.c | if(ct < track) lba += skip; |
track | 779 | drivers/cdrom/cm206.c | void update_toc_entry(uch track) |
track | 781 | drivers/cdrom/cm206.c | track = normalize_track(track); |
track | 782 | drivers/cdrom/cm206.c | if (!cd->toc[track].track) get_toc_lba(track); |
track | 792 | drivers/cdrom/cm206.c | cd->toc[1].track=1; /* fill in first track position */ |
track | 809 | drivers/cdrom/cm206.c | PLAY_TO.track = 0; /* say no track end */ |
track | 829 | drivers/cdrom/cm206.c | PLAY_TO.track = to; |
track | 867 | drivers/cdrom/cm206.c | uch track = normalize_track(ep->cdte_track); |
track | 868 | drivers/cdrom/cm206.c | update_toc_entry(track); |
track | 870 | drivers/cdrom/cm206.c | ep->cdte_addr.msf.frame = cd->toc[track].fsm[0]; |
track | 871 | drivers/cdrom/cm206.c | ep->cdte_addr.msf.second = cd->toc[track].fsm[1]; |
track | 872 | drivers/cdrom/cm206.c | ep->cdte_addr.msf.minute = cd->toc[track].fsm[2]; |
track | 874 | drivers/cdrom/cm206.c | else ep->cdte_addr.lba = fsm2lba(cd->toc[track].fsm); |
track | 875 | drivers/cdrom/cm206.c | ep->cdte_adr = cd->toc[track].q0 & 0xf; |
track | 876 | drivers/cdrom/cm206.c | ep->cdte_ctrl = cd->toc[track].q0 >> 4; |
track | 512 | drivers/cdrom/mcd.c | subchnl.cdsc_trk = bcd2bin(qInfo.track); |
track | 1450 | drivers/cdrom/mcd.c | if (getValue(&qp -> track) < 0) return -1; |
track | 1578 | drivers/cdrom/mcd.c | if (px > 0 && px < MAX_TRACKS && qInfo.track == 0) |
track | 1603 | drivers/cdrom/mcd.c | i, Toc[i].ctrl_addr, Toc[i].track, Toc[i].pointIndex, |
track | 1608 | drivers/cdrom/mcd.c | i, Toc[i].ctrl_addr, Toc[i].track, Toc[i].pointIndex, |
track | 955 | drivers/cdrom/sonycd535.c | find_track(int track) |
track | 964 | drivers/cdrom/sonycd535.c | if (sony_toc->tracks[i].track == track) { |
track | 647 | drivers/char/ftape/fdc-io.c | int fdc_seek(int track) |
track | 656 | drivers/char/ftape/fdc-io.c | out[2] = track; |
track | 661 | drivers/char/ftape/fdc-io.c | TRACEx1(4, "destination was: %d, resetting FDC...", track); |
track | 694 | drivers/char/ftape/fdc-io.c | if (pcn != track) { |
track | 166 | drivers/char/ftape/fdc-io.h | extern int fdc_seek(int track); |
track | 132 | drivers/char/ftape/ftape-ctl.c | location.track = -1; /* force seek on first access */ |
track | 876 | drivers/char/ftape/ftape-ctl.c | location.track = -1; |
track | 160 | drivers/char/ftape/ftape-io.c | int track; |
track | 281 | drivers/char/ftape/ftape-io.c | track = current_cylinder - command; |
track | 283 | drivers/char/ftape/ftape-io.c | track = current_cylinder + command; |
track | 285 | drivers/char/ftape/ftape-io.c | result = fdc_seek(track); |
track | 894 | drivers/char/ftape/ftape-io.c | int ftape_seek_head_to_track(int track) |
track | 900 | drivers/char/ftape/ftape-io.c | location.track = -1; /* remains set in case of error */ |
track | 901 | drivers/char/ftape/ftape-io.c | if (track < 0 || track >= tracks_per_tape) { |
track | 905 | drivers/char/ftape/ftape-io.c | TRACEx1(5, "seeking track %d", track); |
track | 910 | drivers/char/ftape/ftape-io.c | result = ftape_parameter_wait(track, timeout.head_seek, &status); |
track | 914 | drivers/char/ftape/ftape-io.c | location.track = track; |
track | 68 | drivers/char/ftape/ftape-io.h | extern int ftape_seek_head_to_track(int track); |
track | 244 | drivers/char/ftape/ftape-rw.c | location.bot = ((location.track & 1) == 0 ? |
track | 248 | drivers/char/ftape/ftape-rw.c | location.segment = (location.track + |
track | 470 | drivers/char/ftape/ftape-rw.c | seek_forward(location.track * segments_per_track); |
track | 531 | drivers/char/ftape/ftape-rw.c | if (location.track == -1) { |
track | 537 | drivers/char/ftape/ftape-rw.c | int lo = (location.track - 1) * segments_per_track; |
track | 538 | drivers/char/ftape/ftape-rw.c | int hi = (location.track + 2) * segments_per_track; |
track | 679 | drivers/char/ftape/ftape-rw.c | if (expected / segments_per_track != location.track) { |
track | 680 | drivers/char/ftape/ftape-rw.c | expected = location.track * segments_per_track; |
track | 845 | drivers/char/ftape/ftape-rw.c | int track = segment_id / segments_per_track; |
track | 875 | drivers/char/ftape/ftape-rw.c | if (location.track != track || (might_be_off_track && |
track | 880 | drivers/char/ftape/ftape-rw.c | ftape_seek_head_to_track(track); |
track | 909 | drivers/char/ftape/ftape-rw.c | result = ftape_command_wait((location.track & 1) ? |
track | 126 | drivers/char/ftape/ftape-rw.h | int track; /* tape head position */ |
track | 45 | include/asm-m68k/amifd.h | int track; /* current track (-1 == unknown) */ |
track | 7 | include/asm-m68k/atafd.h | int track; /* to be formatted */ |
track | 150 | include/linux/aztcd.h | unsigned char track; |
track | 220 | include/linux/cdu31a.h | unsigned char track; |
track | 280 | include/linux/cdu31a.h | unsigned char track; |
track | 16 | include/linux/fd.h | track, /* nr of tracks */ |
track | 65 | include/linux/fd.h | unsigned int device,head,track; |
track | 203 | include/linux/fd.h | short track; /* current track */ |
track | 265 | include/linux/fd.h | unsigned char track[4]; |
track | 353 | include/linux/fd.h | int track; |
track | 105 | include/linux/gscd.h | unsigned char track; |
track | 107 | include/linux/mcd.h | unsigned char track; |
track | 159 | include/linux/sjcd.h | unsigned char track; |
track | 176 | include/linux/sonycd535.h | unsigned char track; |