Lines Matching refs:current_drive
154 pr_info("floppy%d: " format, current_drive, ##args)
308 #define DP (&drive_params[current_drive])
309 #define DRS (&drive_state[current_drive])
310 #define DRWE (&write_errors[current_drive])
600 static unsigned char current_drive; variable
679 drive = current_drive; in __reschedule_timeout()
830 fd_outb(FDCS->dor & ~(0x10 << UNIT(current_drive)), FD_DOR); in twaddle()
857 current_drive = drive; in set_fdc()
954 saved_drive = current_drive; in scandrives()
1012 if (disk_change(current_drive)) { in fd_watchdog()
1294 output_byte(UNIT(current_drive)); in fdc_specify()
1545 output_byte(UNIT(current_drive)); in check_wp()
1571 disk_change(current_drive) && (raw_cmd->flags & FD_RAW_NEED_DISK)) { in seek_floppy()
1593 set_dor(fdc, ~(0x10 << UNIT(current_drive)), 0); in seek_floppy()
1612 output_byte(UNIT(current_drive)); in seek_floppy()
1724 } while ((ST0 & 0x83) != UNIT(current_drive) && in floppy_interrupt()
1743 if (output_byte(UNIT(current_drive)) < 0) in recalibrate_floppy()
1867 data = UNIT(current_drive); in start_motor()
1869 if (!(FDCS->dor & (0x10 << UNIT(current_drive)))) { in start_motor()
1875 data |= (0x10 << UNIT(current_drive)); in start_motor()
1877 } else if (FDCS->dor & (0x10 << UNIT(current_drive))) in start_motor()
1878 mask &= ~(0x10 << UNIT(current_drive)); in start_motor()
1881 del_timer(motor_off_timer + current_drive); in start_motor()
1902 disk_change(current_drive) && !DP->select_delay) in floppy_ready()
2113 DR_SELECT = UNIT(current_drive) + PH_HEAD(_floppy, format_req.head); in setup_format_params()
2345 current_type[current_drive] = _floppy; in rw_interrupt()
2346 floppy_sizes[TOMINOR(current_drive)] = _floppy->size; in rw_interrupt()
2353 _floppy->name, current_drive); in rw_interrupt()
2354 current_type[current_drive] = _floppy; in rw_interrupt()
2355 floppy_sizes[TOMINOR(current_drive)] = _floppy->size; in rw_interrupt()
2365 buffer_drive = current_drive; in rw_interrupt()
2591 DR_SELECT = UNIT(current_drive) + PH_HEAD(_floppy, HEAD); in make_raw_rw_request()
2629 (current_drive == buffer_drive) && in make_raw_rw_request()
2704 buffer_drive != current_drive || /* bad drive */ in make_raw_rw_request()
2713 buffer_drive = current_drive; in make_raw_rw_request()
2727 buffer_drive = current_drive; in make_raw_rw_request()
2830 if (current_drive < N_DRIVE) in redo_fd_request()
2831 floppy_off(current_drive); in redo_fd_request()
2856 disk_change(current_drive); in redo_fd_request()
2857 if (test_bit(current_drive, &fake_change) || in redo_fd_request()
3046 if (disk_change(current_drive)) in raw_cmd_done()
3051 motor_off_callback(&motor_off_timer[current_drive]); in raw_cmd_done()
3192 if (drive == current_drive) { in raw_cmd_ioctl()
4346 int current_drive = 0; in set_cmos() local
4352 current_drive = ints[1]; in set_cmos()
4353 if (current_drive < 0 || current_drive >= 8) { in set_cmos()
4358 if (current_drive >= 4 && !FDC2) in set_cmos()
4658 current_drive = 0; in do_floppy_init()