Lines Matching refs:current_drive
154 pr_info("floppy%d: " format, current_drive, ##args)
303 #define DP (&drive_params[current_drive])
304 #define DRS (&drive_state[current_drive])
305 #define DRWE (&write_errors[current_drive])
595 static unsigned char current_drive; variable
674 drive = current_drive; in __reschedule_timeout()
825 fd_outb(FDCS->dor & ~(0x10 << UNIT(current_drive)), FD_DOR); in twaddle()
852 current_drive = drive; in set_fdc()
945 saved_drive = current_drive; in scandrives()
1003 if (disk_change(current_drive)) { in fd_watchdog()
1285 output_byte(UNIT(current_drive)); in fdc_specify()
1539 output_byte(UNIT(current_drive)); in check_wp()
1565 disk_change(current_drive) && (raw_cmd->flags & FD_RAW_NEED_DISK)) { in seek_floppy()
1587 set_dor(fdc, ~(0x10 << UNIT(current_drive)), 0); in seek_floppy()
1606 output_byte(UNIT(current_drive)); in seek_floppy()
1718 } while ((ST0 & 0x83) != UNIT(current_drive) && in floppy_interrupt()
1737 if (output_byte(UNIT(current_drive)) < 0) in recalibrate_floppy()
1861 data = UNIT(current_drive); in start_motor()
1863 if (!(FDCS->dor & (0x10 << UNIT(current_drive)))) { in start_motor()
1869 data |= (0x10 << UNIT(current_drive)); in start_motor()
1871 } else if (FDCS->dor & (0x10 << UNIT(current_drive))) in start_motor()
1872 mask &= ~(0x10 << UNIT(current_drive)); in start_motor()
1875 del_timer(motor_off_timer + current_drive); in start_motor()
1896 disk_change(current_drive) && !DP->select_delay) in floppy_ready()
2107 DR_SELECT = UNIT(current_drive) + PH_HEAD(_floppy, format_req.head); in setup_format_params()
2339 current_type[current_drive] = _floppy; in rw_interrupt()
2340 floppy_sizes[TOMINOR(current_drive)] = _floppy->size; in rw_interrupt()
2347 _floppy->name, current_drive); in rw_interrupt()
2348 current_type[current_drive] = _floppy; in rw_interrupt()
2349 floppy_sizes[TOMINOR(current_drive)] = _floppy->size; in rw_interrupt()
2359 buffer_drive = current_drive; in rw_interrupt()
2585 DR_SELECT = UNIT(current_drive) + PH_HEAD(_floppy, HEAD); in make_raw_rw_request()
2623 (current_drive == buffer_drive) && in make_raw_rw_request()
2698 buffer_drive != current_drive || /* bad drive */ in make_raw_rw_request()
2707 buffer_drive = current_drive; in make_raw_rw_request()
2721 buffer_drive = current_drive; in make_raw_rw_request()
2822 if (current_drive < N_DRIVE) in redo_fd_request()
2823 floppy_off(current_drive); in redo_fd_request()
2848 disk_change(current_drive); in redo_fd_request()
2849 if (test_bit(current_drive, &fake_change) || in redo_fd_request()
3038 if (disk_change(current_drive)) in raw_cmd_done()
3043 motor_off_callback(current_drive); in raw_cmd_done()
3184 if (drive == current_drive) { in raw_cmd_ioctl()
4007 int current_drive = 0; in set_cmos() local
4013 current_drive = ints[1]; in set_cmos()
4014 if (current_drive < 0 || current_drive >= 8) { in set_cmos()
4019 if (current_drive >= 4 && !FDC2) in set_cmos()
4320 current_drive = 0; in do_floppy_init()