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);
134 IODMACommand *dmaCommand = NULL;
140 queue_remove_first(&dmaCommandsCompleted, dmaCommand, IODMACommand *, fCommandChain);
148 (*dmaCompletionAction)(owner, this, dmaCommand, dmaCommand->reserved->fStatus, dmaCommand->reserved->fActualByteCount);
154 void IODMAEventSource::completeDMACommand(IODMACommand *dmaCommand)
158 queue_enter(&dmaCommandsCompleted, dmaCommand, IODMACommand *, fCommandChain);
168 void IODMAEventSource::notifyDMACommand(IODMACommand *dmaCommand, IOReturn status, IOByteCount actualByteCount)
170 dmaCommand->reserved->fStatus = status;
171 dmaCommand->reserved->fActualByteCount = actualByteCount;
173 if (dmaNotificationAction != 0) (*dmaNotificationAction)(owner, this, dmaCommand, status, actualByteCount);