Lines Matching refs:UNIT

302 #define UNIT(x)		((x) & 0x03)		/* drive on fdc */  macro
739 if (!(fdc_state[fdc].dor & (0x10 << UNIT(drive))) || in disk_change()
740 (fdc_state[fdc].dor & 3) != UNIT(drive) || fdc != FDC(drive)) { in disk_change()
829 fdc_outb(fdc_state[fdc].dor & ~(0x10 << UNIT(drive)), in twaddle()
924 unsigned char mask = ~(0x10 << UNIT(nr)); in motor_off_callback()
938 if (!(fdc_state[fdc].dor & (0x10 << UNIT(drive)))) in floppy_off()
975 if (!(set_dor(current_fdc, ~3, UNIT(drive) | (0x10 << UNIT(drive))) & in scandrives()
976 (0x10 << UNIT(drive)))) in scandrives()
979 set_dor(current_fdc, ~(0x10 << UNIT(drive)), 0); in scandrives()
1308 output_byte(fdc, UNIT(drive)); in fdc_specify()
1572 output_byte(fdc, UNIT(drive)); in check_wp()
1626 set_dor(current_fdc, ~(0x10 << UNIT(current_drive)), 0); in seek_floppy()
1645 output_byte(current_fdc, UNIT(current_drive)); in seek_floppy()
1758 } while ((reply_buffer[ST0] & 0x83) != UNIT(current_drive) && in floppy_interrupt()
1777 if (output_byte(current_fdc, UNIT(current_drive)) < 0) in recalibrate_floppy()
1904 data = UNIT(current_drive); in start_motor()
1906 if (!(fdc_state[current_fdc].dor & (0x10 << UNIT(current_drive)))) { in start_motor()
1912 data |= (0x10 << UNIT(current_drive)); in start_motor()
1914 } else if (fdc_state[current_fdc].dor & (0x10 << UNIT(current_drive))) in start_motor()
1915 mask &= ~(0x10 << UNIT(current_drive)); in start_motor()
2157 raw_cmd->cmd[DR_SELECT] = UNIT(current_drive) + PH_HEAD(_floppy, format_req.head); in setup_format_params()
2605 raw_cmd->cmd[DR_SELECT] = UNIT(current_drive) + PH_HEAD(_floppy, raw_cmd->cmd[HEAD]); in make_raw_rw_request()
3455 ret = fd_eject(UNIT(drive)); in fd_locked_ioctl()