• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.9.5/IOATAFamily-252.0.3/

Lines Matching refs:_currentCommand

167  	_currentCommand = 0L;
659 _currentCommand = dequeueFirstCommand();
661 if( _currentCommand == 0L )
673 _currentCommand->state = IOATAController::kATAStarted;
682 && _currentCommand->getFlags() & mATAFlagImmediate)
685 _currentCommand->setFlags(_currentCommand->getFlags() | mATAFlagUseNoIRQ );
691 if( _currentCommand->getTaskFilePtr()->ataTFCommand == 0x08 )
694 _currentCommand->setOpcode(kATAFnBusReset);
698 switch( _currentCommand->getOpcode() )
721 _currentCommand->setResult( kATAUnknownOpcode );
723 _currentCommand->state = IOATAController::kATAComplete;
750 IOATABusCommand* currCommand = _currentCommand;
760 _currentCommand = 0;
784 _currentCommand = currCommand;
803 IOATABusCommand* finishedCmd = _currentCommand;
809 _currentCommand = 0L;
923 if( _currentCommand != 0L )
926 if( (_currentCommand->getFlags() & mATAFlagUseDMA ) == mATAFlagUseDMA )
932 _currentCommand->setResult( kATATimeoutErr );
933 _currentCommand->state = IOATAController::kATAComplete;
962 if( !_currentCommand )
991 err = selectDevice( _currentCommand->getUnit() );
995 _currentCommand->state = IOATAController::kATAComplete;
997 if( _currentCommand->getFlags() & mATAFlagUseNoIRQ )
1008 startTimer( _currentCommand->getTimeoutMS() );
1013 _currentCommand->state = IOATAController::kATAStarted;
1014 if( _currentCommand->getFlags() & mATAFlagUseNoIRQ )
1039 err = selectDevice( _currentCommand->getUnit() );
1042 _currentCommand->state = IOATAController::kATAComplete;
1047 bool isWrite = (_currentCommand->getFlags() & mATAFlagIOWrite) ? true : false;
1050 _currentCommand->state = IOATAController::kATAComplete;
1067 bool isATAPIReset = ((_currentCommand->getFlags() & mATAFlagProtocolATAPI) != 0);
1080 doATAPI[_currentCommand->getUnit()] = true; // Mark only selected ATAPI as reset victim.
1110 executeEventCallouts( kATAPIResetEvent, _currentCommand->getUnit() );
1121 _currentCommand->state = IOATAController::kATAComplete;
1162 if( (_currentCommand->getFlags() & mATAFlagProtocolATAPI) == mATAFlagProtocolATAPI
1163 && _currentCommand->getPacketSize() > 0)
1166 _currentCommand->state = determineATAPIState();
1169 switch( _currentCommand->state )
1175 DLOG("ATAController:: command sent: err = %ld state= %lx\n", (long int) err, (int) _currentCommand->state);
1178 _currentCommand->state = IOATAController::kATAComplete;
1185 if( _currentCommand->state != IOATAController::kATAPICmd
1186 || _devInfo[ _currentCommand->getUnit() ].packetSend == kATAPIIRQPacket )
1199 _currentCommand->state = IOATAController::kATAComplete;
1205 if( (_currentCommand->getFlags() & (mATAFlagIORead | mATAFlagIOWrite ) )
1206 && ((_currentCommand->getFlags() & mATAFlagUseDMA ) != mATAFlagUseDMA ) )
1208 _currentCommand->state = IOATAController::kATADataTx;
1211 _currentCommand->state = IOATAController::kATAStatus;
1220 _currentCommand->state = IOATAController::kATAComplete;
1227 if(_currentCommand->state == kATADataTx
1228 || ( (_currentCommand->getFlags() & (mATAFlagProtocolATAPI | mATAFlagIOWrite | mATAFlagUseDMA) ) == mATAFlagIOWrite ) )
1233 if( (_currentCommand->getFlags() & mATAFlagProtocolATAPI) == mATAFlagProtocolATAPI
1234 && _currentCommand->getPacketSize() > 0)
1243 _currentCommand->state = IOATAController::kATAComplete;
1250 _currentCommand->state = IOATAController::kATAComplete;
1264 if( _currentCommand->state == IOATAController::kATAComplete )
1294 DLOG("ATAController::synchronous command sent: err = %ld state= %lx\n", (long int) err, (int) _currentCommand->state);
1297 _currentCommand->state = IOATAController::kATAComplete;
1314 if( _currentCommand->state == IOATAController::kATAPICmd )
1322 if( (_currentCommand->getFlags() & (mATAFlagIORead | mATAFlagIOWrite ) )
1323 && ((_currentCommand->getFlags() & mATAFlagUseDMA ) != mATAFlagUseDMA ) )
1326 _currentCommand->state = IOATAController::kATADataTx;
1331 _currentCommand->state = IOATAController::kATAStatus;
1337 _currentCommand->state = IOATAController::kATAComplete;
1344 if( _currentCommand->state == IOATAController::kATADataTx )
1346 while( _currentCommand->state == IOATAController::kATADataTx )
1351 _currentCommand->state = IOATAController::kATAComplete;
1356 if( (_currentCommand->getFlags() & mATAFlagProtocolATAPI) == mATAFlagProtocolATAPI
1357 && _currentCommand->getPacketSize() > 0)
1366 if( _currentCommand->state == IOATAController::kATAStatus )
1369 _currentCommand->state = IOATAController::kATAComplete;
1380 if( _currentCommand->state == IOATAController::kATAComplete )
1418 if( _currentCommand->getFlags() & (mATAFlagTFAccess | mATAFlagTFAccessResult) )
1426 } else if( _currentCommand->getFlags() & mATAFlagTFAccessResult ) {
1431 _currentCommand->setEndResult( status, error);
1452 if( (_currentCommand->getFlags() & mATAFlagUseDMA ) == mATAFlagUseDMA )
1463 DLOG("ATAController: command flags = %lx , packet size = %d\n",_currentCommand->getFlags(), _currentCommand->getPacketSize() );
1471 if( (_currentCommand->getFlags() & mATAFlagProtocolATAPI) == mATAFlagProtocolATAPI
1472 && _currentCommand->getPacketSize() > 0)
1476 _currentCommand->state = IOATAController::kATAPICmd;
1482 if( (_currentCommand->getFlags() & mATAFlagUseDMA ) == mATAFlagUseDMA )
1484 _currentCommand->state = IOATAController::kATAStatus;
1490 if( (_currentCommand->getFlags()
1496 _currentCommand->state = IOATAController::kATADataTx;
1501 if( (_currentCommand->getFlags() & mATAFlagIORead ) == mATAFlagIORead )
1504 _currentCommand->state = IOATAController::kATADataTx;
1509 _currentCommand->state = IOATAController::kATAStatus;
1529 IOByteCount bytesRemaining = _currentCommand->getByteCount()
1530 - _currentCommand->getActualTransfer();
1535 _currentCommand->state = kATAStatus;
1555 _currentCommand->state = kATAStatus;
1577 _currentCommand->state = kATAStatus;
1581 IOMemoryDescriptor* descriptor = _currentCommand->getBuffer();
1596 IOByteCount xfrPosition = _currentCommand->getPosition() +
1597 _currentCommand->getActualTransfer();
1605 if( thisPass > _currentCommand->getTransferChunkSize() )
1607 thisPass = _currentCommand->getTransferChunkSize();
1612 if( _currentCommand->getFlags() & mATAFlagProtocolATAPI)
1632 if( _currentCommand->getFlags() & mATAFlagIORead )
1650 _currentCommand->setActualTransfer(_currentCommand->getActualTransfer() + bufferBytes);
1665 _currentCommand->state = kATADataTx;
1670 _currentCommand->state = kATAStatus;
1708 UInt32 msLoops = _currentCommand->getTimeoutMS()/10;
1771 && _currentCommand->getOpcode() == kATAFnExecIO
1772 && _currentCommand->getTaskFilePtr()->ataTFCommand != 0x90
1773 && _currentCommand->getTaskFilePtr()->ataTFCommand != 0x91 )
1822 if( _currentCommand == 0 )
1830 if( _currentCommand->getFlags() & mATAFlag48BitLBA )
1832 IOExtendedLBA* extLBA = _currentCommand->getExtendedLBA();
1856 ataTaskFile* tfRegs = _currentCommand->getTaskFilePtr();
1891 UInt32 packetSize = _currentCommand->getPacketSize();
1892 UInt16* packetData = _currentCommand->getPacketData();
2077 * for the current memory descriptor in _currentCommand and activate the
2564 if (_currentCommand->state == kATAStarted) // the command hasn't started yet
2588 if( _currentCommand->getFlags() & mATAFlagIORead )
2664 UInt32 RegAccessMask = _currentCommand->getRegMask();
2666 bool isExtLBA = _currentCommand->getFlags() & mATAFlag48BitLBA;
2667 IOExtendedLBA* extLBA = _currentCommand->getExtendedLBA();
2680 *_tfFeatureReg = _currentCommand->getErrorReg();
2690 _currentCommand->setFeatures( *_tfFeatureReg) ;
2706 *_tfSCountReg = _currentCommand->getSectorCount();
2716 _currentCommand->setSectorCount( *_tfSCountReg );
2731 *_tfSectorNReg = _currentCommand->getSectorNumber();
2741 _currentCommand->setSectorNumber( *_tfSectorNReg );
2757 *_tfCylLoReg = _currentCommand->getCylLo();
2767 _currentCommand->setCylLo( *_tfCylLoReg );
2783 *_tfCylHiReg = _currentCommand->getCylHi();
2792 _currentCommand->setCylHi( *_tfCylHiReg );
2802 *_tfSDHReg = _currentCommand->getDevice_Head();
2804 _currentCommand->setDevice_Head( *_tfSDHReg );
2814 *_tfAltSDevCReg = _currentCommand->getAltStatus();
2816 _currentCommand->setControl( *_tfAltSDevCReg );
2825 *_tfDataReg = _currentCommand->getDataReg();
2829 _currentCommand->setDataReg( *_tfDataReg );
2838 *_tfStatusCmdReg = _currentCommand->getStatus();
2840 _currentCommand->setCommand(*_tfStatusCmdReg );