• Home
  • Raw
  • Download

Lines Matching refs:fdc

223 static int set_dor(int fdc, char mask, char data);
292 #define REVDRIVE(fdc, unit) ((unit) + ((fdc) << 2)) argument
296 #define FDCS (&fdc_state[fdc])
595 static int fdc; /* current fdc */ variable
739 int fdc = FDC(drive); in disk_change() local
745 (FDCS->dor & 3) != UNIT(drive) || fdc != FDC(drive)) { in disk_change()
792 static int set_dor(int fdc, char mask, char data) in set_dor() argument
807 drive = REVDRIVE(fdc, unit); in set_dor()
820 drive = REVDRIVE(fdc, unit); in set_dor()
847 if (FDC(drive) == fdc && (mode || UDRS->track != NEED_1_RECAL)) in reset_fdc_info()
855 fdc = FDC(drive); in set_fdc()
858 if (fdc != 1 && fdc != 0) { in set_fdc()
862 set_dor(fdc, ~0, 8); in set_fdc()
864 set_dor(1 - fdc, ~8, 0); in set_fdc()
951 int fdc = FDC(drive); in floppy_off() local
990 if (!(set_dor(fdc, ~3, UNIT(drive) | (0x10 << UNIT(drive))) & in scandrives()
994 set_dor(fdc, ~(0x10 << UNIT(drive)), 0); in scandrives()
1168 DPRINT("Getstatus times out (%x) on fdc %d\n", status, fdc); in wait_til_ready()
1195 byte, fdc, status); in output_byte()
1228 fdc, status, i); in result()
1659 set_dor(fdc, ~(0x10 << UNIT(current_drive)), 0); in seek_floppy()
1760 if (fdc >= N_FDC || FDCS->address == -1) { in floppy_interrupt()
1763 printk("floppy interrupt on bizarre fdc %d\n", fdc); in floppy_interrupt()
1953 set_dor(fdc, mask, data); in start_motor()
3261 if (FDC(drive) != fdc) in raw_cmd_ioctl()
3933 printk(KERN_INFO "FDC %d is an 8272A\n", fdc); in get_fdc_version()
3939 fdc, r); in get_fdc_version()
3944 printk(KERN_INFO "FDC %d is an 82072\n", fdc); in get_fdc_version()
3952 printk(KERN_INFO "FDC %d is an 82072A\n", fdc); in get_fdc_version()
3959 printk(KERN_INFO "FDC %d is a pre-1991 82077\n", fdc); in get_fdc_version()
3965 fdc, r); in get_fdc_version()
3972 fdc, r); in get_fdc_version()
3976 printk(KERN_INFO "FDC %d is a post-1991 82077\n", fdc); in get_fdc_version()
3982 printk(KERN_INFO "FDC %d is an 82078.\n", fdc); in get_fdc_version()
3985 printk(KERN_INFO "FDC %d is a 44pin 82078\n", fdc); in get_fdc_version()
3988 printk(KERN_INFO "FDC %d is a S82078B\n", fdc); in get_fdc_version()
3992 fdc); in get_fdc_version()
3997 fdc, reply_buffer[0] >> 5); in get_fdc_version()
4219 fdc = i; in floppy_init()
4243 fdc = 0; /* reset fdc in case of unexpected interrupt */ in floppy_init()
4270 fdc = i; in floppy_init()
4279 floppy_release_regions(fdc); in floppy_init()
4288 floppy_release_regions(fdc); in floppy_init()
4302 fdc = 0; in floppy_init()
4373 static void floppy_release_allocated_regions(int fdc, const struct io_region *p) in floppy_release_allocated_regions() argument
4383 static int floppy_request_regions(int fdc) in floppy_request_regions() argument
4390 floppy_release_allocated_regions(fdc, p); in floppy_request_regions()
4397 static void floppy_release_regions(int fdc) in floppy_release_regions() argument
4399 floppy_release_allocated_regions(fdc, ARRAY_END(io_regions)); in floppy_release_regions()
4441 for (fdc = 0; fdc < N_FDC; fdc++) { in floppy_grab_irq_and_dma()
4443 if (floppy_request_regions(fdc)) in floppy_grab_irq_and_dma()
4447 for (fdc = 0; fdc < N_FDC; fdc++) { in floppy_grab_irq_and_dma()
4453 fdc = 0; in floppy_grab_irq_and_dma()
4456 for (fdc = 0; fdc < N_FDC; fdc++) in floppy_grab_irq_and_dma()
4463 fdc = 0; in floppy_grab_irq_and_dma()
4469 while (--fdc >= 0) in floppy_grab_irq_and_dma()
4470 floppy_release_regions(fdc); in floppy_grab_irq_and_dma()
4529 old_fdc = fdc; in floppy_release_irq_and_dma()
4530 for (fdc = 0; fdc < N_FDC; fdc++) in floppy_release_irq_and_dma()
4532 floppy_release_regions(fdc); in floppy_release_irq_and_dma()
4533 fdc = old_fdc; in floppy_release_irq_and_dma()