Lines Matching refs:inDMAHandle
101 asrcHandle->inDMAHandle.asrcQueue[asrcHandle->inDMAHandle.queueDriver] = NULL; in ASRC_InSDMACallback()
103 …asrcHandle->inDMAHandle.queueDriver = (asrcHandle->inDMAHandle.queueDriver + 1U) % ASRC_XFER_IN_QU… in ASRC_InSDMACallback()
105 if (asrcHandle->inDMAHandle.asrcQueue[asrcHandle->inDMAHandle.queueDriver] == NULL) in ASRC_InSDMACallback()
111 if (asrcHandle->inDMAHandle.callback != NULL) in ASRC_InSDMACallback()
113 (asrcHandle->inDMAHandle.callback)(privHandle->base, asrcHandle, callbackStatus, in ASRC_InSDMACallback()
114 asrcHandle->inDMAHandle.userData); in ASRC_InSDMACallback()
196 (void)memset(&handle->inDMAHandle, 0, sizeof(asrc_sdma_in_handle_t)); in ASRC_TransferInCreateHandleSDMA()
199 handle->inDMAHandle.sdmaHandle = dmaHandle; in ASRC_TransferInCreateHandleSDMA()
200 handle->inDMAHandle.callback = callback; in ASRC_TransferInCreateHandleSDMA()
201 handle->inDMAHandle.userData = userData; in ASRC_TransferInCreateHandleSDMA()
202 handle->inDMAHandle.eventSource = eventSource; in ASRC_TransferInCreateHandleSDMA()
205 handle->inDMAHandle.state = kStatus_ASRCIdle; in ASRC_TransferInCreateHandleSDMA()
207 handle->inDMAHandle.peripheralConfig = periphConfig; in ASRC_TransferInCreateHandleSDMA()
212 SDMA_InstallBDMemory(dmaHandle, handle->inDMAHandle.bdPool, ASRC_XFER_IN_QUEUE_SIZE); in ASRC_TransferInCreateHandleSDMA()
288 handle->inDMAHandle.bytesPerSample = 2U; in ASRC_TransferSetContextConfigSDMA()
292 handle->inDMAHandle.bytesPerSample = 4U; in ASRC_TransferSetContextConfigSDMA()
306 …handle->inDMAHandle.asrcInWatermark = (asrcConfig->contextInput.watermark + 1U) * asrcConfig->co… in ASRC_TransferSetContextConfigSDMA()
521 sdma_handle_t *inDMAHandle = handle->inDMAHandle.sdmaHandle; in ASRC_TransferInSDMA() local
524 …if ((handle->inDMAHandle.peripheralConfig != NULL) && (handle->inDMAHandle.peripheralConfig->enabl… in ASRC_TransferInSDMA()
525 (handle->inDMAHandle.state == (uint32_t)kStatus_ASRCBusy)) in ASRC_TransferInSDMA()
530 if (handle->inDMAHandle.asrcQueue[handle->inDMAHandle.queueUser] != NULL) in ASRC_TransferInSDMA()
535 if (handle->inDMAHandle.peripheralConfig != NULL) in ASRC_TransferInSDMA()
537 p2pConfig.sourceWatermark = handle->inDMAHandle.peripheralConfig->watermark; in ASRC_TransferInSDMA()
538 p2pConfig.destWatermark = handle->inDMAHandle.asrcInWatermark; in ASRC_TransferInSDMA()
539 p2pConfig.continuousTransfer = handle->inDMAHandle.peripheralConfig->enableContinuous; in ASRC_TransferInSDMA()
543 … handle->inDMAHandle.peripheralConfig->fifoWidth, handle->inDMAHandle.bytesPerSample, in ASRC_TransferInSDMA()
544 … (uint32_t)handle->inDMAHandle.asrcInWatermark * handle->inDMAHandle.bytesPerSample, in ASRC_TransferInSDMA()
545 inDataSize, handle->inDMAHandle.peripheralConfig->eventSource, in ASRC_TransferInSDMA()
546 … handle->inDMAHandle.eventSource, kSDMA_PeripheralASRCP2P, &p2pConfig); in ASRC_TransferInSDMA()
550 …SDMA_PrepareTransfer(&inConfig, (uint32_t)inDataAddr, asrcInAddr, handle->inDMAHandle.bytesPerSamp… in ASRC_TransferInSDMA()
551 handle->inDMAHandle.bytesPerSample, in ASRC_TransferInSDMA()
552 … (uint32_t)handle->inDMAHandle.asrcInWatermark * handle->inDMAHandle.bytesPerSample, in ASRC_TransferInSDMA()
553 inDataSize, handle->inDMAHandle.eventSource, kSDMA_PeripheralASRCM2P, in ASRC_TransferInSDMA()
557 handle->inDMAHandle.sdmaTransferSize[handle->inDMAHandle.queueUser] = inDataSize; in ASRC_TransferInSDMA()
558 handle->inDMAHandle.asrcQueue[handle->inDMAHandle.queueUser] = inDataAddr; in ASRC_TransferInSDMA()
560 if (handle->inDMAHandle.queueUser == ASRC_XFER_IN_QUEUE_SIZE - 1U) in ASRC_TransferInSDMA()
562 …SDMA_ConfigBufferDescriptor(&inDMAHandle->BDPool[handle->inDMAHandle.queueUser], (uint32_t)inDataA… in ASRC_TransferInSDMA()
568 …SDMA_ConfigBufferDescriptor(&inDMAHandle->BDPool[handle->inDMAHandle.queueUser], (uint32_t)inDataA… in ASRC_TransferInSDMA()
573 handle->inDMAHandle.queueUser = (handle->inDMAHandle.queueUser + 1U) % ASRC_XFER_IN_QUEUE_SIZE; in ASRC_TransferInSDMA()
575 if (handle->inDMAHandle.state != (uint32_t)kStatus_ASRCBusy) in ASRC_TransferInSDMA()
578 SDMA_SubmitTransfer(inDMAHandle, &inConfig); in ASRC_TransferInSDMA()
580 SDMA_StartTransfer(inDMAHandle); in ASRC_TransferInSDMA()
588 if ((handle->inDMAHandle.peripheralConfig != NULL) && in ASRC_TransferInSDMA()
589 (handle->inDMAHandle.peripheralConfig->startPeripheral != NULL)) in ASRC_TransferInSDMA()
592 handle->inDMAHandle.peripheralConfig->startPeripheral(true); in ASRC_TransferInSDMA()
595 handle->inDMAHandle.state = kStatus_ASRCBusy; in ASRC_TransferInSDMA()
658 SDMA_AbortTransfer(handle->inDMAHandle.sdmaHandle); in ASRC_TransferAbortInSDMA()
663 if ((handle->inDMAHandle.peripheralConfig != NULL) && in ASRC_TransferAbortInSDMA()
664 (handle->inDMAHandle.peripheralConfig->startPeripheral != NULL)) in ASRC_TransferAbortInSDMA()
666 handle->inDMAHandle.peripheralConfig->startPeripheral(false); in ASRC_TransferAbortInSDMA()
669 handle->inDMAHandle.state = kStatus_ASRCIdle; in ASRC_TransferAbortInSDMA()