Lines Matching refs:current_drive

155 	pr_info("floppy%d: " format, current_drive, ##args)
309 #define DP (&drive_params[current_drive])
310 #define DRS (&drive_state[current_drive])
311 #define DRWE (&write_errors[current_drive])
601 static unsigned char current_drive; variable
680 drive = current_drive; in __reschedule_timeout()
831 fd_outb(FDCS->dor & ~(0x10 << UNIT(current_drive)), FD_DOR); in twaddle()
858 current_drive = drive; in set_fdc()
955 saved_drive = current_drive; in scandrives()
1013 if (disk_change(current_drive)) { in fd_watchdog()
1295 output_byte(UNIT(current_drive)); in fdc_specify()
1546 output_byte(UNIT(current_drive)); in check_wp()
1572 disk_change(current_drive) && (raw_cmd->flags & FD_RAW_NEED_DISK)) { in seek_floppy()
1594 set_dor(fdc, ~(0x10 << UNIT(current_drive)), 0); in seek_floppy()
1613 output_byte(UNIT(current_drive)); in seek_floppy()
1725 } while ((ST0 & 0x83) != UNIT(current_drive) && in floppy_interrupt()
1744 if (output_byte(UNIT(current_drive)) < 0) in recalibrate_floppy()
1868 data = UNIT(current_drive); in start_motor()
1870 if (!(FDCS->dor & (0x10 << UNIT(current_drive)))) { in start_motor()
1876 data |= (0x10 << UNIT(current_drive)); in start_motor()
1878 } else if (FDCS->dor & (0x10 << UNIT(current_drive))) in start_motor()
1879 mask &= ~(0x10 << UNIT(current_drive)); in start_motor()
1882 del_timer(motor_off_timer + current_drive); in start_motor()
1903 disk_change(current_drive) && !DP->select_delay) in floppy_ready()
2114 DR_SELECT = UNIT(current_drive) + PH_HEAD(_floppy, format_req.head); in setup_format_params()
2341 current_type[current_drive] = _floppy; in rw_interrupt()
2342 floppy_sizes[TOMINOR(current_drive)] = _floppy->size; in rw_interrupt()
2349 _floppy->name, current_drive); in rw_interrupt()
2350 current_type[current_drive] = _floppy; in rw_interrupt()
2351 floppy_sizes[TOMINOR(current_drive)] = _floppy->size; in rw_interrupt()
2361 buffer_drive = current_drive; in rw_interrupt()
2587 DR_SELECT = UNIT(current_drive) + PH_HEAD(_floppy, HEAD); in make_raw_rw_request()
2625 (current_drive == buffer_drive) && in make_raw_rw_request()
2700 buffer_drive != current_drive || /* bad drive */ in make_raw_rw_request()
2709 buffer_drive = current_drive; in make_raw_rw_request()
2723 buffer_drive = current_drive; in make_raw_rw_request()
2813 if (current_drive < N_DRIVE) in redo_fd_request()
2814 floppy_off(current_drive); in redo_fd_request()
2839 disk_change(current_drive); in redo_fd_request()
2840 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(&motor_off_timer[current_drive]); in raw_cmd_done()
3184 if (drive == current_drive) { in raw_cmd_ioctl()
4366 int current_drive = 0; in set_cmos() local
4372 current_drive = ints[1]; in set_cmos()
4373 if (current_drive < 0 || current_drive >= 8) { in set_cmos()
4378 if (current_drive >= 4 && !FDC2) in set_cmos()
4686 current_drive = 0; in do_floppy_init()