Home
last modified time | relevance | path

Searched refs:srcRtm (Results 1 – 4 of 4) sorted by relevance

/hal_nxp-latest/mcux/mcux-sdk/components/srtm/services/
Dsrtm_sai_edma_adapter.c298 srtm_sai_edma_buf_runtime_t srcRtm, dstRtm; in SRTM_SaiEdmaAdapter_CopyData() local
303 srcRtm = &rtm->bufRtm; in SRTM_SaiEdmaAdapter_CopyData()
306 …while ((srcRtm->remainingLoadPeriods != 0U) && ((rtm->localBuf.periods - dstRtm->remainingPeriods)… in SRTM_SaiEdmaAdapter_CopyData()
313 src = rtm->bufAddr + srcRtm->loadIdx * rtm->periodSize; in SRTM_SaiEdmaAdapter_CopyData()
315 srcSize = rtm->periodSize - srcRtm->offset; in SRTM_SaiEdmaAdapter_CopyData()
318 (void)memcpy((void *)(dst + dstRtm->offset), (void *)(src + srcRtm->offset), size); in SRTM_SaiEdmaAdapter_CopyData()
320 srcRtm->offset += size; in SRTM_SaiEdmaAdapter_CopyData()
322 if (srcRtm->offset == rtm->periodSize) /* whole remote buffer loaded */ in SRTM_SaiEdmaAdapter_CopyData()
324 rtm->localRtm.periodsInfo[dstRtm->leadIdx].endRemoteIdx = srcRtm->loadIdx; in SRTM_SaiEdmaAdapter_CopyData()
325srcRtm->loadIdx = (srcRtm->loadIdx + 1U) % rtm->periods; in SRTM_SaiEdmaAdapter_CopyData()
[all …]
Dsrtm_sai_sdma_adapter.c385 srtm_sai_sdma_buf_runtime_t srcRtm, dstRtm; in SRTM_SaiSdmaAdapter_CopyData() local
389 srcRtm = &rtm->bufRtm; in SRTM_SaiSdmaAdapter_CopyData()
392 …while ((srcRtm->remainingLoadPeriods != 0U) && ((rtm->localBuf.periods - dstRtm->remainingPeriods)… in SRTM_SaiSdmaAdapter_CopyData()
394 src = rtm->bufAddr + srcRtm->loadIdx * rtm->periodSize; in SRTM_SaiSdmaAdapter_CopyData()
396 srcSize = rtm->periodSize - srcRtm->offset; in SRTM_SaiSdmaAdapter_CopyData()
400 (uint32_t *)(void *)(src + srcRtm->offset), size / 4U); in SRTM_SaiSdmaAdapter_CopyData()
402 srcRtm->offset += size; in SRTM_SaiSdmaAdapter_CopyData()
404 if (srcRtm->offset == rtm->periodSize) /* whole remote buffer loaded */ in SRTM_SaiSdmaAdapter_CopyData()
406 rtm->localRtm.periodsInfo[dstRtm->leadIdx].endRemoteIdx = srcRtm->loadIdx; in SRTM_SaiSdmaAdapter_CopyData()
407srcRtm->loadIdx = (srcRtm->loadIdx + 1U) % rtm->periods; in SRTM_SaiSdmaAdapter_CopyData()
[all …]
Dsrtm_pdm_sdma_adapter.c302 srtm_pdm_sdma_buf_runtime_t srcRtm, dstRtm; in SRTM_PdmSdmaAdapter_PeriodCopyAndNotify() local
307 srcRtm = &rtm->localRtm.bufRtm; in SRTM_PdmSdmaAdapter_PeriodCopyAndNotify()
310 if ((srcRtm->remainingPeriods != rtm->localBuf.periods) && (dstRtm->remainingPeriods != 0U)) in SRTM_PdmSdmaAdapter_PeriodCopyAndNotify()
312 src = rtm->localBuf.buf + srcRtm->leadIdx * rtm->localRtm.periodSize; in SRTM_PdmSdmaAdapter_PeriodCopyAndNotify()
314 srcSize = rtm->localRtm.periodSize - srcRtm->offset; in SRTM_PdmSdmaAdapter_PeriodCopyAndNotify()
318 … (uint32_t *)(void *)(src + srcRtm->offset), size / 4U); in SRTM_PdmSdmaAdapter_PeriodCopyAndNotify()
320 srcRtm->offset += size; in SRTM_PdmSdmaAdapter_PeriodCopyAndNotify()
322 if (srcRtm->offset == rtm->localRtm.periodSize) /* whole local buffer copied */ in SRTM_PdmSdmaAdapter_PeriodCopyAndNotify()
324 srcRtm->leadIdx = (srcRtm->leadIdx + 1U) % rtm->localBuf.periods; in SRTM_PdmSdmaAdapter_PeriodCopyAndNotify()
325 srcRtm->offset = 0U; in SRTM_PdmSdmaAdapter_PeriodCopyAndNotify()
[all …]
Dsrtm_pdm_edma_adapter.c336 srtm_pdm_edma_buf_runtime_t srcRtm, dstRtm; in SRTM_PdmEdmaAdapter_PeriodCopyAndNotify() local
341 srcRtm = &rtm->localRtm.bufRtm; in SRTM_PdmEdmaAdapter_PeriodCopyAndNotify()
344 if ((srcRtm->remainingPeriods != rtm->localBuf.periods) && (dstRtm->remainingPeriods != 0U)) in SRTM_PdmEdmaAdapter_PeriodCopyAndNotify()
346 src = rtm->localBuf.buf + srcRtm->leadIdx * rtm->localRtm.periodSize; in SRTM_PdmEdmaAdapter_PeriodCopyAndNotify()
348 srcSize = rtm->localRtm.periodSize - srcRtm->offset; in SRTM_PdmEdmaAdapter_PeriodCopyAndNotify()
355 … (uint32_t *)(void *)(src + srcRtm->offset), size / 4U); in SRTM_PdmEdmaAdapter_PeriodCopyAndNotify()
365 srcRtm->offset += size; in SRTM_PdmEdmaAdapter_PeriodCopyAndNotify()
367 if (srcRtm->offset == rtm->localRtm.periodSize) /* whole local buffer copied */ in SRTM_PdmEdmaAdapter_PeriodCopyAndNotify()
369 srcRtm->leadIdx = (srcRtm->leadIdx + 1U) % rtm->localBuf.periods; in SRTM_PdmEdmaAdapter_PeriodCopyAndNotify()
370 srcRtm->offset = 0U; in SRTM_PdmEdmaAdapter_PeriodCopyAndNotify()
[all …]