Lines Matching refs:IdeDevice
301 UINT8 IdeDevice;
576 for (IdeDevice = BeginningIdeDevice; IdeDevice <= EndIdeDevice; IdeDevice++) {
580 if ((ConfigurationOptions & (1 << (IdeChannel * 2 + IdeDevice))) == 0) {
588 if (IdeBusDriverPrivateData->HaveScannedDevice[IdeChannel * 2 + IdeDevice]) {
595 IdeBlkIoDevice[IdeChannel][IdeDevice] = AllocatePool (sizeof (IDE_BLK_IO_DEV));
596 if (IdeBlkIoDevice[IdeChannel][IdeDevice] == NULL) {
600 IdeBlkIoDevicePtr = IdeBlkIoDevice[IdeChannel][IdeDevice];
606 IdeBlkIoDevicePtr->Device = (EFI_IDE_DEVICE) IdeDevice;
638 IdeBlkIoDevicePtr->IoPort->MasterSlave = (UINT16) ((IdeDevice == IdeMaster) ? 1 : 0);
664 IdeBusDriverPrivateData->HaveScannedDevice[IdeChannel * 2 + IdeDevice] = TRUE;
665 IdeBusDriverPrivateData->DeviceProcessed[IdeChannel * 2 + IdeDevice] = FALSE;
692 IdeBusDriverPrivateData->DeviceFound[IdeChannel * 2 + IdeDevice] = TRUE;
693 IdeInit->SubmitData (IdeInit, IdeChannel, IdeDevice, &IdentifyData);
698 IdeBusDriverPrivateData->DeviceFound[IdeChannel * 2 + IdeDevice] = FALSE;
699 IdeInit->SubmitData (IdeInit, IdeChannel, IdeDevice, NULL);
720 for (IdeDevice = BeginningIdeDevice; IdeDevice <= EndIdeDevice; IdeDevice++) {
722 ASSERT (IdeChannel * 2 + IdeDevice < MAX_IDE_DEVICE);
723 if (IdeBusDriverPrivateData->DeviceProcessed[IdeChannel * 2 + IdeDevice]) {
727 if (!IdeBusDriverPrivateData->DeviceFound[IdeChannel * 2 + IdeDevice]) {
734 IdeDevice,
742 ASSERT (IdeChannel < IdeMaxChannel && IdeDevice < IdeMaxDevice);
743 IdeBlkIoDevicePtr = IdeBlkIoDevice[IdeChannel][IdeDevice];
760 IdeBusDriverPrivateData->DeviceFound[IdeChannel * 2 + IdeDevice] = FALSE;
780 IdeBusDriverPrivateData->DeviceFound[IdeChannel * 2 + IdeDevice] = FALSE;
798 IdeBusDriverPrivateData->DeviceFound[IdeChannel * 2 + IdeDevice] = FALSE;
829 IdeInit->SetTiming (IdeInit, IdeChannel, IdeDevice, SupportedModes);
861 IdeBusDriverPrivateData->DeviceProcessed[IdeChannel * 2 + IdeDevice] = TRUE;
1414 @param IdeDevice Pointer to the Ide Device number. Master or slave.
1416 @retval EFI_SUCCESS IdeChannel and IdeDevice are valid
1425 OUT UINT32 *IdeDevice
1432 *IdeDevice = IdeBlkIoDevice->Device;