Home
last modified time | relevance | path

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

/hal_nxp-3.5.0/mcux/mcux-sdk/components/srtm/services/
Dsrtm_sai_sdma_adapter.c383 srtm_sai_sdma_buf_runtime_t srcRtm, dstRtm; in SRTM_SaiSdmaAdapter_CopyData() local
387 srcRtm = &rtm->bufRtm; in SRTM_SaiSdmaAdapter_CopyData()
390 …while ((srcRtm->remainingLoadPeriods != 0U) && ((rtm->localBuf.periods - dstRtm->remainingPeriods)… in SRTM_SaiSdmaAdapter_CopyData()
392 src = rtm->bufAddr + srcRtm->loadIdx * rtm->periodSize; in SRTM_SaiSdmaAdapter_CopyData()
394 srcSize = rtm->periodSize - srcRtm->offset; in SRTM_SaiSdmaAdapter_CopyData()
398 (uint32_t *)(void *)(src + srcRtm->offset), size / 4U); in SRTM_SaiSdmaAdapter_CopyData()
400 srcRtm->offset += size; in SRTM_SaiSdmaAdapter_CopyData()
402 if (srcRtm->offset == rtm->periodSize) /* whole remote buffer loaded */ in SRTM_SaiSdmaAdapter_CopyData()
404 rtm->localRtm.periodsInfo[dstRtm->leadIdx].endRemoteIdx = srcRtm->loadIdx; in SRTM_SaiSdmaAdapter_CopyData()
405srcRtm->loadIdx = (srcRtm->loadIdx + 1U) % rtm->periods; in SRTM_SaiSdmaAdapter_CopyData()
[all …]
Dsrtm_pdm_sdma_adapter.c307 srtm_pdm_sdma_buf_runtime_t srcRtm, dstRtm; in SRTM_PdmSdmaAdapter_PeriodCopyAndNotify() local
312 srcRtm = &rtm->localRtm.bufRtm; in SRTM_PdmSdmaAdapter_PeriodCopyAndNotify()
315 if ((srcRtm->remainingPeriods != rtm->localBuf.periods) && (dstRtm->remainingPeriods != 0U)) in SRTM_PdmSdmaAdapter_PeriodCopyAndNotify()
317 src = rtm->localBuf.buf + srcRtm->leadIdx * rtm->localRtm.periodSize; in SRTM_PdmSdmaAdapter_PeriodCopyAndNotify()
319 srcSize = rtm->localRtm.periodSize - srcRtm->offset; in SRTM_PdmSdmaAdapter_PeriodCopyAndNotify()
323 … (uint32_t *)(void *)(src + srcRtm->offset), size / 4U); in SRTM_PdmSdmaAdapter_PeriodCopyAndNotify()
325 srcRtm->offset += size; in SRTM_PdmSdmaAdapter_PeriodCopyAndNotify()
327 if (srcRtm->offset == rtm->localRtm.periodSize) /* whole local buffer copied */ in SRTM_PdmSdmaAdapter_PeriodCopyAndNotify()
329 srcRtm->leadIdx = (srcRtm->leadIdx + 1U) % rtm->localBuf.periods; in SRTM_PdmSdmaAdapter_PeriodCopyAndNotify()
330 srcRtm->offset = 0U; in SRTM_PdmSdmaAdapter_PeriodCopyAndNotify()
[all …]