Lines Matching refs:dmaCommand
84 IOReturn IODMAEventSource::startDMACommand(IODMACommand *dmaCommand, IODirection direction, IOByteCount byteCount, IOByteCount byteOffset)
94 result = dmaController->startDMACommand(dmaIndex, dmaCommand, direction, byteCount, byteOffset);
114 IOReturn IODMAEventSource::queryDMACommand(IODMACommand **dmaCommand, IOByteCount *transferCount, bool waitForIdle)
118 return dmaController->queryDMACommand(dmaIndex, dmaCommand, transferCount, waitForIdle);
126 IODMACommand *dmaCommand = NULL;
132 queue_remove_first(&dmaCommandsCompleted, dmaCommand, IODMACommand *, fCommandChain);
140 (*dmaCompletionAction)(owner, this, dmaCommand, dmaCommand->reserved->fStatus, dmaCommand->reserved->fActualByteCount);
146 void IODMAEventSource::completeDMACommand(IODMACommand *dmaCommand)
150 queue_enter(&dmaCommandsCompleted, dmaCommand, IODMACommand *, fCommandChain);
160 void IODMAEventSource::notifyDMACommand(IODMACommand *dmaCommand, IOReturn status, IOByteCount actualByteCount)
162 dmaCommand->reserved->fStatus = status;
163 dmaCommand->reserved->fActualByteCount = actualByteCount;
165 if (dmaNotificationAction != 0) (*dmaNotificationAction)(owner, this, dmaCommand, status, actualByteCount);