Lines Matching full:track
34 * 28.02.92 - made track-buffering routines, based on the routines written
313 #define TRACK 2 macro
432 | Sectors per track
525 * Track buffer
590 static unsigned char fsector_t; /* sector in track */
848 (mode || drive_state[drive].track != NEED_1_RECAL)) in reset_fdc_info()
849 drive_state[drive].track = NEED_2_RECAL; in reset_fdc_info()
1257 output_byte(fdc, 0); /* pre-compensation from track 0 upwards */ in fdc_configure()
1387 pr_cont(": track %d, head %d, sector %d, size %d", in tell_sector()
1465 drive_state[current_drive].track = NEED_2_RECAL; in interpret_errors()
1483 * selected, and the head is sitting on the right track).
1549 drive_state[current_drive].track = NEED_2_RECAL; in seek_interrupt()
1554 if (drive_state[current_drive].track >= 0 && in seek_interrupt()
1555 drive_state[current_drive].track != reply_buffer[ST1] && in seek_interrupt()
1566 drive_state[current_drive].track = reply_buffer[ST1]; in seek_interrupt()
1598 int track; in seek_floppy() local
1617 if (drive_state[current_drive].track <= NEED_1_RECAL) { in seek_floppy()
1622 …(drive_state[current_drive].track <= NO_TRACK || drive_state[current_drive].track == raw_cmd->trac… in seek_floppy()
1625 if (raw_cmd->track) in seek_floppy()
1626 track = raw_cmd->track - 1; in seek_floppy()
1633 track = 1; in seek_floppy()
1637 if (raw_cmd->track != drive_state[current_drive].track && in seek_floppy()
1639 track = raw_cmd->track; in seek_floppy()
1649 if (output_byte(current_fdc, track) < 0) { in seek_floppy()
1662 switch (drive_state[current_drive].track) { in recal_interrupt()
1666 * reached track 0. Probably no drive. Raise an in recal_interrupt()
1675 * and we are not at track 0, this in recal_interrupt()
1678 * be already at track 0.) Clear the in recal_interrupt()
1692 * track 0, this might mean that we in recal_interrupt()
1693 * started beyond track 80. Try in recal_interrupt()
1695 drive_state[current_drive].track = NEED_1_RECAL; in recal_interrupt()
1699 drive_state[current_drive].track = reply_buffer[ST1]; in recal_interrupt()
2107 drive_state[current_drive].track = NEED_2_RECAL; in bad_flp_intr()
2141 static void setup_format_params(int track) in setup_format_params() argument
2149 unsigned char track, head, sect, size; in setup_format_params() member
2153 raw_cmd->track = track; in setup_format_params()
2172 /* allow for about 30ms for data transport per track */ in setup_format_params()
2178 /* position of logical sector 1 on this track */ in setup_format_params()
2179 n = (track_shift * format_req.track + head_shift * format_req.head) in setup_format_params()
2189 here[count].track = format_req.track; in setup_format_params()
2216 setup_format_params(format_req.track << STRETCH(_floppy)); in redo_format()
2237 _floppy->track > drive_params[current_drive].tracks || in do_format()
2238 tmp_format_req->track >= _floppy->track || in do_format()
2348 nr_sectors = (((reply_buffer[R_TRACK] - raw_cmd->cmd[TRACK]) * heads + in rw_interrupt()
2361 raw_cmd->cmd[TRACK]); in rw_interrupt()
2406 buffer_track = raw_cmd->track; in rw_interrupt()
2428 * Move data from/to the track buffer to/from the buffer cache.
2516 raw_cmd->cmd[COMMAND] &= ~0x80; /* switch off multiple track mode */ in virtualdmabug_workaround()
2535 * track, or a single sector)
2536 * All floppy_track_buffer handling goes in here. If we ever add track buffer
2570 raw_cmd->cmd[TRACK] = (int)blk_rq_pos(current_req) / max_sector; in make_raw_rw_request()
2572 if (_floppy->track && raw_cmd->cmd[TRACK] >= _floppy->track) { in make_raw_rw_request()
2586 /* 2M disks have phantom sectors on the first track */ in make_raw_rw_request()
2587 if ((_floppy->rate & FD_2M) && (!raw_cmd->cmd[TRACK]) && (!raw_cmd->cmd[HEAD])) { in make_raw_rw_request()
2600 (raw_cmd->cmd[TRACK] || raw_cmd->cmd[HEAD]) && raw_cmd->rate == 2) in make_raw_rw_request()
2607 raw_cmd->track = raw_cmd->cmd[TRACK] << STRETCH(_floppy); in make_raw_rw_request()
2635 } else if (!raw_cmd->cmd[TRACK] && !raw_cmd->cmd[HEAD] && !(_floppy->rate & FD_2M) && probing) { in make_raw_rw_request()
2645 if ((raw_cmd->track == buffer_track) && in make_raw_rw_request()
2648 /* data already in track buffer */ in make_raw_rw_request()
2671 /* claim buffer track if needed */ in make_raw_rw_request()
2672 if (buffer_track != raw_cmd->track || /* bad track */ in make_raw_rw_request()
2689 /* copy write buffer to track buffer. in make_raw_rw_request()
2695 buffer_track = raw_cmd->track; in make_raw_rw_request()
2723 pr_info("command=%x SECTOR=%d HEAD=%d, TRACK=%d\n", in make_raw_rw_request()
2725 raw_cmd->cmd[HEAD], raw_cmd->cmd[TRACK]); in make_raw_rw_request()
2727 pr_info("buffer track=%d\n", buffer_track); in make_raw_rw_request()
2898 raw_cmd->track = 0; in poll_drive()
3177 drive_state[current_drive].track = NO_TRACK; in raw_cmd_ioctl()
3217 /* invalidate the buffer track to force a reread */ in invalidate_drive()
3239 g->track <= 0 || g->track > drive_params[drive].tracks >> STRETCH(g) || in set_geometry()
3379 geo->cylinders = g->track; in fd_getgeo()
3616 short track; member
3641 unsigned char track[4]; member
3799 v.track = drive_state[drive].track; in compat_getdrvstat()
3842 memcpy(v32.track, v.track, 4); in compat_getfdcstat()
4683 fdc_state[i].track[unit] = 0; in do_floppy_init()