Lines Matching refs:UNIT

298 #define UNIT(x)		((x) & 0x03)		/* drive on fdc */  macro
734 if (!(fdc_state[fdc].dor & (0x10 << UNIT(drive))) || in disk_change()
735 (fdc_state[fdc].dor & 3) != UNIT(drive) || fdc != FDC(drive)) { in disk_change()
824 fdc_outb(fdc_state[fdc].dor & ~(0x10 << UNIT(drive)), in twaddle()
919 unsigned char mask = ~(0x10 << UNIT(nr)); in motor_off_callback()
933 if (!(fdc_state[fdc].dor & (0x10 << UNIT(drive)))) in floppy_off()
970 if (!(set_dor(current_fdc, ~3, UNIT(drive) | (0x10 << UNIT(drive))) & in scandrives()
971 (0x10 << UNIT(drive)))) in scandrives()
974 set_dor(current_fdc, ~(0x10 << UNIT(drive)), 0); in scandrives()
1307 output_byte(fdc, UNIT(drive)); in fdc_specify()
1571 output_byte(fdc, UNIT(drive)); in check_wp()
1625 set_dor(current_fdc, ~(0x10 << UNIT(current_drive)), 0); in seek_floppy()
1644 output_byte(current_fdc, UNIT(current_drive)); in seek_floppy()
1757 } while ((reply_buffer[ST0] & 0x83) != UNIT(current_drive) && in floppy_interrupt()
1776 if (output_byte(current_fdc, UNIT(current_drive)) < 0) in recalibrate_floppy()
1903 data = UNIT(current_drive); in start_motor()
1905 if (!(fdc_state[current_fdc].dor & (0x10 << UNIT(current_drive)))) { in start_motor()
1911 data |= (0x10 << UNIT(current_drive)); in start_motor()
1913 } else if (fdc_state[current_fdc].dor & (0x10 << UNIT(current_drive))) in start_motor()
1914 mask &= ~(0x10 << UNIT(current_drive)); in start_motor()
2156 raw_cmd->cmd[DR_SELECT] = UNIT(current_drive) + PH_HEAD(_floppy, format_req.head); in setup_format_params()
2604 raw_cmd->cmd[DR_SELECT] = UNIT(current_drive) + PH_HEAD(_floppy, raw_cmd->cmd[HEAD]); in make_raw_rw_request()
3454 ret = fd_eject(UNIT(drive)); in fd_locked_ioctl()