Searched refs:saiHandle (Results 1 – 4 of 4) sorted by relevance
/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/sai/ |
D | fsl_sai_edma.c | 98 sai_edma_handle_t *saiHandle = privHandle->handle; in SAI_TxEDMACallback() local 101 if (saiHandle->state != (uint32_t)kSAI_BusyLoopTransfer) in SAI_TxEDMACallback() 103 if (saiHandle->queueDriver + tcds > (uint32_t)SAI_XFER_QUEUE_SIZE) in SAI_TxEDMACallback() 105 (void)memset(&saiHandle->saiQueue[saiHandle->queueDriver], 0, in SAI_TxEDMACallback() 106 … sizeof(sai_transfer_t) * ((uint32_t)SAI_XFER_QUEUE_SIZE - saiHandle->queueDriver)); in SAI_TxEDMACallback() 107 (void)memset(&saiHandle->saiQueue[0U], 0, in SAI_TxEDMACallback() 108 … sizeof(sai_transfer_t) * (saiHandle->queueDriver + tcds - (uint32_t)SAI_XFER_QUEUE_SIZE)); in SAI_TxEDMACallback() 112 … (void)memset(&saiHandle->saiQueue[saiHandle->queueDriver], 0, sizeof(sai_transfer_t) * tcds); in SAI_TxEDMACallback() 114 …saiHandle->queueDriver = (uint8_t)((saiHandle->queueDriver + tcds) % (uint32_t)SAI_XFER_QUEUE_SIZE… in SAI_TxEDMACallback() 117 if (saiHandle->saiQueue[saiHandle->queueDriver].data == NULL) in SAI_TxEDMACallback() [all …]
|
D | fsl_sai_sdma.c | 92 sai_sdma_handle_t *saiHandle = privHandle->handle; in SAI_TxSDMACallback() local 95 (void)memset(&saiHandle->saiQueue[saiHandle->queueDriver], 0, sizeof(sai_transfer_t)); in SAI_TxSDMACallback() 96 saiHandle->queueDriver = (saiHandle->queueDriver + 1U) % SAI_XFER_QUEUE_SIZE; in SAI_TxSDMACallback() 99 if (saiHandle->callback != NULL) in SAI_TxSDMACallback() 101 (saiHandle->callback)(privHandle->base, saiHandle, kStatus_SAI_TxIdle, saiHandle->userData); in SAI_TxSDMACallback() 105 if (saiHandle->saiQueue[saiHandle->queueDriver].data == NULL) in SAI_TxSDMACallback() 112 saiHandle->state = (uint32_t)kSAI_Idle; in SAI_TxSDMACallback() 119 sai_sdma_handle_t *saiHandle = privHandle->handle; in SAI_RxSDMACallback() local 122 (void)memset(&saiHandle->saiQueue[saiHandle->queueDriver], 0, sizeof(sai_transfer_t)); in SAI_RxSDMACallback() 123 saiHandle->queueDriver = (saiHandle->queueDriver + 1U) % SAI_XFER_QUEUE_SIZE; in SAI_RxSDMACallback() [all …]
|
D | fsl_sai.c | 28 typedef void (*sai_tx_isr_t)(I2S_Type *base, sai_handle_t *saiHandle); 31 typedef void (*sai_rx_isr_t)(I2S_Type *base, sai_handle_t *saiHandle);
|
/hal_nxp-3.5.0/mcux/mcux-sdk/components/srtm/services/ |
D | srtm_sai_sdma_adapter.c | 65 sai_sdma_handle_t saiHandle; member 269 status = SAI_TransferSendSDMA(handle->sai, &rtm->saiHandle, &xfer); in SRTM_SaiSdmaAdapter_PeriodTransferSDMA() 274 status = SAI_TransferReceiveSDMA(handle->sai, &rtm->saiHandle, &xfer); in SRTM_SaiSdmaAdapter_PeriodTransferSDMA() 297 status = SAI_TransferSendSDMA(handle->sai, &rtm->saiHandle, &xfer); in SRTM_SaiSdmaAdapter_PeriodTransferSDMA() 302 status = SAI_TransferReceiveSDMA(handle->sai, &rtm->saiHandle, &xfer); in SRTM_SaiSdmaAdapter_PeriodTransferSDMA() 323 status = SAI_TransferSendSDMA(handle->sai, &rtm->saiHandle, &xfer); in SRTM_SaiSdmaAdapter_PeriodTransferSDMA() 328 status = SAI_TransferReceiveSDMA(handle->sai, &rtm->saiHandle, &xfer); in SRTM_SaiSdmaAdapter_PeriodTransferSDMA() 806 …SAI_TransferTxCreateHandleSDMA(handle->sai, &handle->txRtm.saiHandle, SRTM_SaiSdmaTxCallback, (voi… in SRTM_SaiSdmaAdapter_InitSAI() 814 …SAI_TransferRxCreateHandleSDMA(handle->sai, &handle->rxRtm.saiHandle, SRTM_SaiSdmaRxCallback, (voi… in SRTM_SaiSdmaAdapter_InitSAI() 940 SAI_TransferTxSetConfigSDMA(handle->sai, &rtm->saiHandle, &cfg->config); in SRTM_SaiSdmaAdapter_SetFormat() [all …]
|