Lines Matching refs:dmaCommand
90 IOReturn IODMAEventSource::startDMACommand(IODMACommand *dmaCommand, IODirection direction, IOByteCount byteCount, IOByteCount byteOffset)
100 result = dmaController->startDMACommand(dmaIndex, dmaCommand, direction, byteCount, byteOffset);
120 IOReturn IODMAEventSource::queryDMACommand(IODMACommand **dmaCommand, IOByteCount *transferCount, bool waitForIdle)
124 return dmaController->queryDMACommand(dmaIndex, dmaCommand, transferCount, waitForIdle);
156 IODMACommand *dmaCommand = NULL;
162 queue_remove_first(&dmaCommandsCompleted, dmaCommand, IODMACommand *, fCommandChain);
170 (*dmaCompletionAction)(owner, this, dmaCommand, dmaCommand->reserved->fStatus, dmaCommand->reserved->fActualByteCount, dmaCommand->reserved->fTimeStamp);
176 void IODMAEventSource::completeDMACommand(IODMACommand *dmaCommand)
180 queue_enter(&dmaCommandsCompleted, dmaCommand, IODMACommand *, fCommandChain);
190 void IODMAEventSource::notifyDMACommand(IODMACommand *dmaCommand, IOReturn status, IOByteCount actualByteCount, AbsoluteTime timeStamp)
192 dmaCommand->reserved->fStatus = status;
193 dmaCommand->reserved->fActualByteCount = actualByteCount;
194 dmaCommand->reserved->fTimeStamp = timeStamp;
196 if (dmaNotificationAction != 0) (*dmaNotificationAction)(owner, this, dmaCommand, status, actualByteCount, timeStamp);