Searched refs:fdc_busy (Results 1 - 3 of 3) sorted by relevance

/linux-4.1.27/drivers/block/
H A Damiflop.c155 static volatile int fdc_busy = -1; variable
242 return ((fdc_busy < 0) || (fdc_busy == drive)); try_fdc()
251 printk("get_fdc: drive %d fdc_busy %d fdc_nested %d\n",drive,fdc_busy,fdc_nested); get_fdc()
255 fdc_busy = drive; get_fdc()
265 printk("rel_fdc: fdc_busy %d fdc_nested %d\n",fdc_busy,fdc_nested); rel_fdc()
269 fdc_busy = -1; rel_fdc()
H A Dataflop.c304 static volatile int fdc_busy = 0; variable
655 wait_event(fdc_wait, cmpxchg(&fdc_busy, 0, 1) == 0); do_format()
1306 fdc_busy = 0; finish_fdc_done()
1501 wait_event(fdc_wait, cmpxchg(&fdc_busy, 0, 1) == 0); do_fd_request()
H A Dfloppy.c514 static unsigned long fdc_busy; variable
642 if (test_bit(0, &fdc_busy) && command_status < 2 && is_alive()
875 if (wait_event_interruptible(fdc_wait, !test_and_set_bit(0, &fdc_busy))) lock_fdc()
888 if (!test_bit(0, &fdc_busy)) unlock_fdc()
896 clear_bit(0, &fdc_busy); unlock_fdc()
1807 pr_info("fdc_busy=%lu\n", fdc_busy); show_floppy()
2908 if (test_and_set_bit(0, &fdc_busy)) { do_fd_request()

Completed in 302 milliseconds