Lines Matching defs:current_fdc

584 static int current_fdc;			/* current fdc */
855 * Both current_drive and current_fdc are changed to match the new drive.
882 current_fdc = fdc;
887 * Both current_drive and current_fdc are changed to match the new drive.
975 if (!(set_dor(current_fdc, ~3, UNIT(drive) | (0x10 << UNIT(drive))) &
979 set_dor(current_fdc, ~(0x10 << UNIT(drive)), 0);
1050 if (fdc_state[current_fdc].reset) {
1075 fdc_state[current_fdc].reset = 1;
1081 fdc_state[current_fdc].reset = 1;
1090 fdc_state[current_fdc].address) < 0) {
1093 fdc_state[current_fdc].reset = 1;
1104 virtual_dma_port = fdc_state[current_fdc].address;
1367 if ((raw_cmd->rate & 3) == fdc_state[current_fdc].dtr)
1371 fdc_outb(raw_cmd->rate & 3, current_fdc, FD_DCR);
1378 fdc_state[current_fdc].dtr = raw_cmd->rate & 3;
1434 fdc_state[current_fdc].reset = 1;
1518 r |= output_byte(current_fdc, raw_cmd->fullcmd[i]);
1529 inr = result(current_fdc);
1626 set_dor(current_fdc, ~(0x10 << UNIT(current_drive)), 0);
1633 check_wp(current_fdc, current_drive);
1644 output_byte(current_fdc, FD_SEEK);
1645 output_byte(current_fdc, UNIT(current_drive));
1646 if (output_byte(current_fdc, track) < 0) {
1657 fdc_state[current_fdc].reset = 1;
1726 if (current_fdc >= N_FDC || fdc_state[current_fdc].address == -1) {
1729 pr_info("floppy interrupt on bizarre fdc %d\n", current_fdc);
1735 fdc_state[current_fdc].reset = 0;
1747 inr = result(current_fdc);
1753 output_byte(current_fdc, FD_SENSEI);
1754 inr = result(current_fdc);
1762 fdc_state[current_fdc].reset = 1;
1776 output_byte(current_fdc, FD_RECALIBRATE);
1777 if (output_byte(current_fdc, UNIT(current_drive)) < 0)
1787 result(current_fdc); /* get the status ready for set_fdc */
1788 if (fdc_state[current_fdc].reset) {
1806 fdc_state[current_fdc].reset = 0;
1807 reset_fdc_info(current_fdc, 0);
1816 if (fdc_state[current_fdc].version >= FDC_82072A)
1817 fdc_outb(0x80 | (fdc_state[current_fdc].dtr & 3),
1818 current_fdc, FD_STATUS);
1820 fdc_outb(fdc_state[current_fdc].dor & ~0x04, current_fdc, FD_DOR);
1822 fdc_outb(fdc_state[current_fdc].dor, current_fdc, FD_DOR);
1875 show_floppy(current_fdc);
1886 fdc_state[current_fdc].reset = 1;
1906 if (!(fdc_state[current_fdc].dor & (0x10 << UNIT(current_drive)))) {
1914 } else if (fdc_state[current_fdc].dor & (0x10 << UNIT(current_drive)))
1919 set_dor(current_fdc, mask, data);
1928 if (fdc_state[current_fdc].reset) {
1941 twaddle(current_fdc, current_drive); /* this clears the dcl on certain
1953 perpendicular_mode(current_fdc);
1954 fdc_specify(current_fdc, current_drive); /* must be done here because of hut, hlt ... */
1959 fdc_specify(current_fdc, current_drive);
2032 if (fdc_state[current_fdc].reset)
2102 fdc_state[current_fdc].reset = 1;
2830 twaddle(current_fdc, current_drive);
2925 * Both current_drive and current_fdc are changed to match the new drive.
2935 fdc_state[current_fdc].reset = 1;
2936 if (fdc_state[current_fdc].reset) {
3141 if (fdc_state[current_fdc].rawcmd <= 1)
3142 fdc_state[current_fdc].rawcmd = 1;
3144 if (FDC(drive) != current_fdc)
3148 fdc_state[current_fdc].rawcmd = 2;
3152 fdc_state[current_fdc].rawcmd = 2;
3157 if (fdc_state[current_fdc].reset)
3172 if (ret != -EINTR && fdc_state[current_fdc].reset)
3557 twaddle(current_fdc, current_drive);
4647 current_fdc = 0; /* reset fdc in case of unexpected interrupt */
4706 current_fdc = 0;
4880 current_fdc = 0;
4888 current_fdc = 0;