Lines Matching refs:UNIT

302 #define UNIT(x)		((x) & 0x03)		/* drive on fdc */  macro
738 if (!(fdc_state[fdc].dor & (0x10 << UNIT(drive))) || in disk_change()
739 (fdc_state[fdc].dor & 3) != UNIT(drive) || fdc != FDC(drive)) { in disk_change()
828 fdc_outb(fdc_state[fdc].dor & ~(0x10 << UNIT(drive)), in twaddle()
923 unsigned char mask = ~(0x10 << UNIT(nr)); in motor_off_callback()
937 if (!(fdc_state[fdc].dor & (0x10 << UNIT(drive)))) in floppy_off()
974 if (!(set_dor(current_fdc, ~3, UNIT(drive) | (0x10 << UNIT(drive))) & in scandrives()
975 (0x10 << UNIT(drive)))) in scandrives()
978 set_dor(current_fdc, ~(0x10 << UNIT(drive)), 0); in scandrives()
1311 output_byte(fdc, UNIT(drive)); in fdc_specify()
1575 output_byte(fdc, UNIT(drive)); in check_wp()
1629 set_dor(current_fdc, ~(0x10 << UNIT(current_drive)), 0); in seek_floppy()
1648 output_byte(current_fdc, UNIT(current_drive)); in seek_floppy()
1761 } while ((reply_buffer[ST0] & 0x83) != UNIT(current_drive) && in floppy_interrupt()
1780 if (output_byte(current_fdc, UNIT(current_drive)) < 0) in recalibrate_floppy()
1907 data = UNIT(current_drive); in start_motor()
1909 if (!(fdc_state[current_fdc].dor & (0x10 << UNIT(current_drive)))) { in start_motor()
1915 data |= (0x10 << UNIT(current_drive)); in start_motor()
1917 } else if (fdc_state[current_fdc].dor & (0x10 << UNIT(current_drive))) in start_motor()
1918 mask &= ~(0x10 << UNIT(current_drive)); in start_motor()
2160 raw_cmd->cmd[DR_SELECT] = UNIT(current_drive) + PH_HEAD(_floppy, format_req.head); in setup_format_params()
2608 raw_cmd->cmd[DR_SELECT] = UNIT(current_drive) + PH_HEAD(_floppy, raw_cmd->cmd[HEAD]); in make_raw_rw_request()
3461 ret = fd_eject(UNIT(drive)); in fd_locked_ioctl()