Lines Matching refs:UNIT

302 #define UNIT(x)		((x) & 0x03)		/* drive on fdc */  macro
740 if (!(fdc_state[fdc].dor & (0x10 << UNIT(drive))) || in disk_change()
741 (fdc_state[fdc].dor & 3) != UNIT(drive) || fdc != FDC(drive)) { in disk_change()
830 fdc_outb(fdc_state[fdc].dor & ~(0x10 << UNIT(drive)), in twaddle()
925 unsigned char mask = ~(0x10 << UNIT(nr)); in motor_off_callback()
939 if (!(fdc_state[fdc].dor & (0x10 << UNIT(drive)))) in floppy_off()
976 if (!(set_dor(current_fdc, ~3, UNIT(drive) | (0x10 << UNIT(drive))) & in scandrives()
977 (0x10 << UNIT(drive)))) in scandrives()
980 set_dor(current_fdc, ~(0x10 << UNIT(drive)), 0); in scandrives()
1309 output_byte(fdc, UNIT(drive)); in fdc_specify()
1573 output_byte(fdc, UNIT(drive)); in check_wp()
1627 set_dor(current_fdc, ~(0x10 << UNIT(current_drive)), 0); in seek_floppy()
1646 output_byte(current_fdc, UNIT(current_drive)); in seek_floppy()
1759 } while ((reply_buffer[ST0] & 0x83) != UNIT(current_drive) && in floppy_interrupt()
1778 if (output_byte(current_fdc, UNIT(current_drive)) < 0) in recalibrate_floppy()
1905 data = UNIT(current_drive); in start_motor()
1907 if (!(fdc_state[current_fdc].dor & (0x10 << UNIT(current_drive)))) { in start_motor()
1913 data |= (0x10 << UNIT(current_drive)); in start_motor()
1915 } else if (fdc_state[current_fdc].dor & (0x10 << UNIT(current_drive))) in start_motor()
1916 mask &= ~(0x10 << UNIT(current_drive)); in start_motor()
2158 raw_cmd->cmd[DR_SELECT] = UNIT(current_drive) + PH_HEAD(_floppy, format_req.head); in setup_format_params()
2609 raw_cmd->cmd[DR_SELECT] = UNIT(current_drive) + PH_HEAD(_floppy, raw_cmd->cmd[HEAD]); in make_raw_rw_request()
3427 ret = fd_eject(UNIT(drive)); in fd_locked_ioctl()