Lines Matching refs:current_fdc

585 static int current_fdc;			/* current fdc */  variable
883 current_fdc = fdc; in set_fdc()
976 if (!(set_dor(current_fdc, ~3, UNIT(drive) | (0x10 << UNIT(drive))) & in scandrives()
980 set_dor(current_fdc, ~(0x10 << UNIT(drive)), 0); in scandrives()
1051 if (fdc_state[current_fdc].reset) { in fd_wait_for_completion()
1076 fdc_state[current_fdc].reset = 1; in setup_DMA()
1082 fdc_state[current_fdc].reset = 1; in setup_DMA()
1091 fdc_state[current_fdc].address) < 0) { in setup_DMA()
1094 fdc_state[current_fdc].reset = 1; in setup_DMA()
1105 virtual_dma_port = fdc_state[current_fdc].address; in setup_DMA()
1368 if ((raw_cmd->rate & 3) == fdc_state[current_fdc].dtr) in fdc_dtr()
1372 fdc_outb(raw_cmd->rate & 3, current_fdc, FD_DCR); in fdc_dtr()
1379 fdc_state[current_fdc].dtr = raw_cmd->rate & 3; in fdc_dtr()
1435 fdc_state[current_fdc].reset = 1; in interpret_errors()
1519 r |= output_byte(current_fdc, raw_cmd->fullcmd[i]); in setup_rw_floppy()
1530 inr = result(current_fdc); in setup_rw_floppy()
1627 set_dor(current_fdc, ~(0x10 << UNIT(current_drive)), 0); in seek_floppy()
1634 check_wp(current_fdc, current_drive); in seek_floppy()
1645 output_byte(current_fdc, FD_SEEK); in seek_floppy()
1646 output_byte(current_fdc, UNIT(current_drive)); in seek_floppy()
1647 if (output_byte(current_fdc, track) < 0) { in seek_floppy()
1658 fdc_state[current_fdc].reset = 1; in recal_interrupt()
1727 if (current_fdc >= N_FDC || fdc_state[current_fdc].address == -1) { in floppy_interrupt()
1730 pr_info("floppy interrupt on bizarre fdc %d\n", current_fdc); in floppy_interrupt()
1736 fdc_state[current_fdc].reset = 0; in floppy_interrupt()
1748 inr = result(current_fdc); in floppy_interrupt()
1754 output_byte(current_fdc, FD_SENSEI); in floppy_interrupt()
1755 inr = result(current_fdc); in floppy_interrupt()
1763 fdc_state[current_fdc].reset = 1; in floppy_interrupt()
1777 output_byte(current_fdc, FD_RECALIBRATE); in recalibrate_floppy()
1778 if (output_byte(current_fdc, UNIT(current_drive)) < 0) in recalibrate_floppy()
1788 result(current_fdc); /* get the status ready for set_fdc */ in reset_interrupt()
1789 if (fdc_state[current_fdc].reset) { in reset_interrupt()
1807 fdc_state[current_fdc].reset = 0; in reset_fdc()
1808 reset_fdc_info(current_fdc, 0); in reset_fdc()
1817 if (fdc_state[current_fdc].version >= FDC_82072A) in reset_fdc()
1818 fdc_outb(0x80 | (fdc_state[current_fdc].dtr & 3), in reset_fdc()
1819 current_fdc, FD_STATUS); in reset_fdc()
1821 fdc_outb(fdc_state[current_fdc].dor & ~0x04, current_fdc, FD_DOR); in reset_fdc()
1823 fdc_outb(fdc_state[current_fdc].dor, current_fdc, FD_DOR); in reset_fdc()
1876 show_floppy(current_fdc); in floppy_shutdown()
1887 fdc_state[current_fdc].reset = 1; in floppy_shutdown()
1907 if (!(fdc_state[current_fdc].dor & (0x10 << UNIT(current_drive)))) { in start_motor()
1915 } else if (fdc_state[current_fdc].dor & (0x10 << UNIT(current_drive))) in start_motor()
1920 set_dor(current_fdc, mask, data); in start_motor()
1929 if (fdc_state[current_fdc].reset) { in floppy_ready()
1942 twaddle(current_fdc, current_drive); /* this clears the dcl on certain in floppy_ready()
1954 perpendicular_mode(current_fdc); in floppy_ready()
1955 fdc_specify(current_fdc, current_drive); /* must be done here because of hut, hlt ... */ in floppy_ready()
1960 fdc_specify(current_fdc, current_drive); in floppy_ready()
2033 if (fdc_state[current_fdc].reset) in wait_til_done()
2103 fdc_state[current_fdc].reset = 1; in bad_flp_intr()
2919 twaddle(current_fdc, current_drive); in redo_fd_request()
3024 fdc_state[current_fdc].reset = 1; in user_reset_fdc()
3025 if (fdc_state[current_fdc].reset) { in user_reset_fdc()
3231 if (fdc_state[current_fdc].rawcmd <= 1) in raw_cmd_ioctl()
3232 fdc_state[current_fdc].rawcmd = 1; in raw_cmd_ioctl()
3234 if (FDC(drive) != current_fdc) in raw_cmd_ioctl()
3238 fdc_state[current_fdc].rawcmd = 2; in raw_cmd_ioctl()
3242 fdc_state[current_fdc].rawcmd = 2; in raw_cmd_ioctl()
3247 if (fdc_state[current_fdc].reset) in raw_cmd_ioctl()
3262 if (ret != -EINTR && fdc_state[current_fdc].reset) in raw_cmd_ioctl()
3626 twaddle(current_fdc, current_drive); in fd_locked_ioctl()
4682 current_fdc = 0; /* reset fdc in case of unexpected interrupt */ in do_floppy_init()
4741 current_fdc = 0; in do_floppy_init()
4917 current_fdc = 0; in floppy_grab_irq_and_dma()
4925 current_fdc = 0; in floppy_grab_irq_and_dma()