Lines Matching refs:UNIT

298 #define UNIT(x)		((x) & 0x03)		/* drive on fdc */  macro
739 if (!(FDCS->dor & (0x10 << UNIT(drive))) || in disk_change()
740 (FDCS->dor & 3) != UNIT(drive) || fdc != FDC(drive)) { in disk_change()
825 fd_outb(FDCS->dor & ~(0x10 << UNIT(current_drive)), FD_DOR); in twaddle()
903 unsigned char mask = ~(0x10 << UNIT(nr)); in motor_off_callback()
914 if (!(FDCS->dor & (0x10 << UNIT(drive)))) in floppy_off()
951 if (!(set_dor(fdc, ~3, UNIT(drive) | (0x10 << UNIT(drive))) & in scandrives()
952 (0x10 << UNIT(drive)))) in scandrives()
955 set_dor(fdc, ~(0x10 << UNIT(drive)), 0); in scandrives()
1285 output_byte(UNIT(current_drive)); in fdc_specify()
1539 output_byte(UNIT(current_drive)); in check_wp()
1587 set_dor(fdc, ~(0x10 << UNIT(current_drive)), 0); in seek_floppy()
1606 output_byte(UNIT(current_drive)); in seek_floppy()
1718 } while ((ST0 & 0x83) != UNIT(current_drive) && in floppy_interrupt()
1737 if (output_byte(UNIT(current_drive)) < 0) in recalibrate_floppy()
1861 data = UNIT(current_drive); in start_motor()
1863 if (!(FDCS->dor & (0x10 << UNIT(current_drive)))) { in start_motor()
1869 data |= (0x10 << UNIT(current_drive)); in start_motor()
1871 } else if (FDCS->dor & (0x10 << UNIT(current_drive))) in start_motor()
1872 mask &= ~(0x10 << UNIT(current_drive)); in start_motor()
2107 DR_SELECT = UNIT(current_drive) + PH_HEAD(_floppy, format_req.head); in setup_format_params()
2585 DR_SELECT = UNIT(current_drive) + PH_HEAD(_floppy, HEAD); in make_raw_rw_request()
3441 ret = fd_eject(UNIT(drive)); in fd_locked_ioctl()