Lines Matching refs:asrcHandle
97 asrc_sdma_handle_t *asrcHandle = privHandle->handle; in ASRC_InSDMACallback() local
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()
107 ASRC_TransferAbortInSDMA(privHandle->base, asrcHandle); 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()
135 asrc_sdma_handle_t *asrcHandle = privHandle->handle; in ASRC_OutSDMACallback() local
136 uint32_t queueDriverIndex = asrcHandle->outDMAHandle.queueDriver; in ASRC_OutSDMACallback()
140 asrcHandle->outDMAHandle.asrcQueue[queueDriverIndex] = NULL; in ASRC_OutSDMACallback()
141 …asrcHandle->outDMAHandle.queueDriver = (uint8_t)(queueDriverIndex + 1U) % ASRC_XFE… in ASRC_OutSDMACallback()
144 if (asrcHandle->outDMAHandle.asrcQueue[asrcHandle->outDMAHandle.queueDriver] == NULL) in ASRC_OutSDMACallback()
146 if (asrcHandle->outDMAHandle.nonAlignSize != 0U) in ASRC_OutSDMACallback()
150 privHandle->base, asrcHandle->context, asrcHandle->outDMAHandle.nonAlignAddr, in ASRC_OutSDMACallback()
151 asrcHandle->outDMAHandle.bytesPerSample, asrcHandle->outDMAHandle.nonAlignSize); in ASRC_OutSDMACallback()
152 asrcHandle->outDMAHandle.nonAlignSize = 0U; in ASRC_OutSDMACallback()
153 asrcHandle->outDMAHandle.nonAlignAddr = NULL; in ASRC_OutSDMACallback()
155 ASRC_TransferAbortOutSDMA(privHandle->base, asrcHandle); in ASRC_OutSDMACallback()
159 if (asrcHandle->outDMAHandle.callback != NULL) in ASRC_OutSDMACallback()
161 (asrcHandle->outDMAHandle.callback)(privHandle->base, asrcHandle, callbackStatus, in ASRC_OutSDMACallback()
162 asrcHandle->outDMAHandle.userData); in ASRC_OutSDMACallback()