Home
last modified time | relevance | path

Searched refs:SAI_XFER_QUEUE_SIZE (Results 1 – 7 of 7) sorted by relevance

/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/sai/
Dfsl_sai_edma.c103 if (saiHandle->queueDriver + tcds > (uint32_t)SAI_XFER_QUEUE_SIZE) in SAI_TxEDMACallback()
106 … sizeof(sai_transfer_t) * ((uint32_t)SAI_XFER_QUEUE_SIZE - saiHandle->queueDriver)); in SAI_TxEDMACallback()
108 … sizeof(sai_transfer_t) * (saiHandle->queueDriver + tcds - (uint32_t)SAI_XFER_QUEUE_SIZE)); in SAI_TxEDMACallback()
114 …aiHandle->queueDriver = (uint8_t)((saiHandle->queueDriver + tcds) % (uint32_t)SAI_XFER_QUEUE_SIZE); in SAI_TxEDMACallback()
141 if (saiHandle->queueDriver + tcds > (uint32_t)SAI_XFER_QUEUE_SIZE) in SAI_RxEDMACallback()
144 … sizeof(sai_transfer_t) * ((uint32_t)SAI_XFER_QUEUE_SIZE - saiHandle->queueDriver)); in SAI_RxEDMACallback()
146 … sizeof(sai_transfer_t) * (saiHandle->queueDriver + tcds - (uint32_t)SAI_XFER_QUEUE_SIZE)); in SAI_RxEDMACallback()
152 …aiHandle->queueDriver = (uint8_t)((saiHandle->queueDriver + tcds) % (uint32_t)SAI_XFER_QUEUE_SIZE); in SAI_RxEDMACallback()
206 EDMA_InstallTCDMemory(txDmaHandle, (edma_tcd_t *)(STCD_ADDR(handle->tcd)), SAI_XFER_QUEUE_SIZE); in SAI_TransferTxCreateHandleEDMA()
247 EDMA_InstallTCDMemory(rxDmaHandle, STCD_ADDR(handle->tcd), SAI_XFER_QUEUE_SIZE); in SAI_TransferRxCreateHandleEDMA()
[all …]
Dfsl_sai_sdma.c96 saiHandle->queueDriver = (saiHandle->queueDriver + 1U) % SAI_XFER_QUEUE_SIZE; in SAI_TxSDMACallback()
123 saiHandle->queueDriver = (saiHandle->queueDriver + 1U) % SAI_XFER_QUEUE_SIZE; in SAI_RxSDMACallback()
180 SDMA_InstallBDMemory(dmaHandle, handle->bdPool, SAI_XFER_QUEUE_SIZE); in SAI_TransferTxCreateHandleSDMA()
225 SDMA_InstallBDMemory(dmaHandle, handle->bdPool, SAI_XFER_QUEUE_SIZE); in SAI_TransferRxCreateHandleSDMA()
521 if (handle->queueUser == SAI_XFER_QUEUE_SIZE - 1U) in SAI_TransferSendSDMA()
534 handle->queueUser = (handle->queueUser + 1U) % SAI_XFER_QUEUE_SIZE; in SAI_TransferSendSDMA()
621 if (handle->queueUser == SAI_XFER_QUEUE_SIZE - 1U) in SAI_TransferReceiveSDMA()
634 handle->queueUser = (handle->queueUser + 1U) % SAI_XFER_QUEUE_SIZE; in SAI_TransferReceiveSDMA()
686 handle->queueDriver = (handle->queueDriver + 1U) % (uint8_t)SAI_XFER_QUEUE_SIZE; in SAI_TransferAbortSendSDMA()
745 handle->queueDriver = (handle->queueDriver + 1U) % (uint8_t)SAI_XFER_QUEUE_SIZE; in SAI_TransferAbortReceiveSDMA()
Dfsl_sai_sdma.h48 sdma_buffer_descriptor_t bdPool[SAI_XFER_QUEUE_SIZE]; /*!< BD pool for SDMA transfer. */
49 …sai_transfer_t saiQueue[SAI_XFER_QUEUE_SIZE]; /*!< Transfer queue storing queued transfer.…
50 size_t transferSize[SAI_XFER_QUEUE_SIZE]; /*!< Data bytes need to transfer */
Dfsl_sai_edma.h47 … uint8_t tcd[(SAI_XFER_QUEUE_SIZE + 1U) * sizeof(edma_tcd_t)]; /*!< TCD pool for eDMA transfer. */
48 …sai_transfer_t saiQueue[SAI_XFER_QUEUE_SIZE]; /*!< Transfer queue storing queued t…
49 … size_t transferSize[SAI_XFER_QUEUE_SIZE]; /*!< Data bytes need to transfer */
Dfsl_sai.h202 #ifndef SAI_XFER_QUEUE_SIZE
204 #define SAI_XFER_QUEUE_SIZE (4U) macro
447 sai_transfer_t saiQueue[SAI_XFER_QUEUE_SIZE]; /*!< Transfer queue storing queued transfer */
448 size_t transferSize[SAI_XFER_QUEUE_SIZE]; /*!< Data bytes need to transfer */
Dfsl_sai.c2486 …le->queueUser = (handle->queueUser + 1U) % (uint8_t)SAI_XFER_QUEUE_SIZE; in SAI_TransferSendNonBlocking()
2535 …le->queueUser = (handle->queueUser + 1U) % (uint8_t)SAI_XFER_QUEUE_SIZE; in SAI_TransferReceiveNonBlocking()
2635 (void)memset(handle->saiQueue, 0, sizeof(sai_transfer_t) * (uint8_t)SAI_XFER_QUEUE_SIZE); in SAI_TransferAbortSend()
2665 (void)memset(handle->saiQueue, 0, sizeof(sai_transfer_t) * (uint8_t)SAI_XFER_QUEUE_SIZE); in SAI_TransferAbortReceive()
2781 handle->queueDriver = (handle->queueDriver + 1U) % (uint8_t)SAI_XFER_QUEUE_SIZE; in SAI_TransferTxHandleIRQ()
2857 handle->queueDriver = (handle->queueDriver + 1U) % (uint8_t)SAI_XFER_QUEUE_SIZE; in SAI_TransferRxHandleIRQ()
/hal_nxp-3.5.0/mcux/mcux-sdk/components/audio/
Dfsl_adapter_audio.h23 #if defined(SAI_XFER_QUEUE_SIZE)
24 #define HAL_AUDIO_QUEUE_SIZE ((uint32_t)SAI_XFER_QUEUE_SIZE)