Lines Matching refs:track
849 (mode || drive_state[drive].track != NEED_1_RECAL)) in reset_fdc_info()
850 drive_state[drive].track = NEED_2_RECAL; in reset_fdc_info()
1462 drive_state[current_drive].track = NEED_2_RECAL; in interpret_errors()
1546 drive_state[current_drive].track = NEED_2_RECAL; in seek_interrupt()
1551 if (drive_state[current_drive].track >= 0 && in seek_interrupt()
1552 drive_state[current_drive].track != reply_buffer[ST1] && in seek_interrupt()
1563 drive_state[current_drive].track = reply_buffer[ST1]; in seek_interrupt()
1595 int track; in seek_floppy() local
1614 if (drive_state[current_drive].track <= NEED_1_RECAL) { in seek_floppy()
1619 …(drive_state[current_drive].track <= NO_TRACK || drive_state[current_drive].track == raw_cmd->trac… in seek_floppy()
1622 if (raw_cmd->track) in seek_floppy()
1623 track = raw_cmd->track - 1; in seek_floppy()
1630 track = 1; in seek_floppy()
1634 if (raw_cmd->track != drive_state[current_drive].track && in seek_floppy()
1636 track = raw_cmd->track; in seek_floppy()
1646 if (output_byte(current_fdc, track) < 0) { in seek_floppy()
1659 switch (drive_state[current_drive].track) { in recal_interrupt()
1692 drive_state[current_drive].track = NEED_1_RECAL; in recal_interrupt()
1696 drive_state[current_drive].track = reply_buffer[ST1]; in recal_interrupt()
2104 drive_state[current_drive].track = NEED_2_RECAL; in bad_flp_intr()
2138 static void setup_format_params(int track) in setup_format_params() argument
2146 unsigned char track, head, sect, size; in setup_format_params() member
2150 raw_cmd->track = track; in setup_format_params()
2176 n = (track_shift * format_req.track + head_shift * format_req.head) in setup_format_params()
2186 here[count].track = format_req.track; in setup_format_params()
2213 setup_format_params(format_req.track << STRETCH(_floppy)); in redo_format()
2234 _floppy->track > drive_params[current_drive].tracks || in do_format()
2235 tmp_format_req->track >= _floppy->track || in do_format()
2403 buffer_track = raw_cmd->track; in rw_interrupt()
2571 if (_floppy->track && raw_cmd->cmd[TRACK] >= _floppy->track) { in make_raw_rw_request()
2606 raw_cmd->track = raw_cmd->cmd[TRACK] << STRETCH(_floppy); in make_raw_rw_request()
2644 if ((raw_cmd->track == buffer_track) && in make_raw_rw_request()
2671 if (buffer_track != raw_cmd->track || /* bad track */ in make_raw_rw_request()
2694 buffer_track = raw_cmd->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()
3237 g->track <= 0 || g->track > drive_params[drive].tracks >> STRETCH(g) || in set_geometry()
3376 geo->cylinders = g->track; in fd_getgeo()
3612 short track; member
3637 unsigned char track[4]; member
3795 v.track = drive_state[drive].track; in compat_getdrvstat()
3838 memcpy(v32.track, v.track, 4); in compat_getfdcstat()
4668 fdc_state[i].track[unit] = 0; in do_floppy_init()