Searched refs:dstRtm (Results 1 – 2 of 2) sorted by relevance
383 srtm_sai_sdma_buf_runtime_t srcRtm, dstRtm; in SRTM_SaiSdmaAdapter_CopyData() local388 dstRtm = &rtm->localRtm.bufRtm; in SRTM_SaiSdmaAdapter_CopyData()390 …while ((srcRtm->remainingLoadPeriods != 0U) && ((rtm->localBuf.periods - dstRtm->remainingPeriods)… in SRTM_SaiSdmaAdapter_CopyData()393 dst = rtm->localBuf.buf + dstRtm->leadIdx * rtm->localRtm.periodSize; in SRTM_SaiSdmaAdapter_CopyData()395 dstSize = rtm->localRtm.periodSize - dstRtm->offset; in SRTM_SaiSdmaAdapter_CopyData()397 SRTM_SaidmaAdapter_LocalBufferUpdate((uint32_t *)(void *)(dst + dstRtm->offset), in SRTM_SaiSdmaAdapter_CopyData()401 dstRtm->offset += size; in SRTM_SaiSdmaAdapter_CopyData()404 rtm->localRtm.periodsInfo[dstRtm->leadIdx].endRemoteIdx = srcRtm->loadIdx; in SRTM_SaiSdmaAdapter_CopyData()410 if ((dstRtm->offset == rtm->localRtm.periodSize) || (srcRtm->offset == 0U)) in SRTM_SaiSdmaAdapter_CopyData()413 rtm->localRtm.periodsInfo[dstRtm->leadIdx].dataSize = dstRtm->offset; in SRTM_SaiSdmaAdapter_CopyData()[all …]
307 srtm_pdm_sdma_buf_runtime_t srcRtm, dstRtm; in SRTM_PdmSdmaAdapter_PeriodCopyAndNotify() local313 dstRtm = &rtm->bufRtm; in SRTM_PdmSdmaAdapter_PeriodCopyAndNotify()315 if ((srcRtm->remainingPeriods != rtm->localBuf.periods) && (dstRtm->remainingPeriods != 0U)) in SRTM_PdmSdmaAdapter_PeriodCopyAndNotify()318 dst = rtm->bufAddr + dstRtm->chaseIdx * rtm->periodSize; in SRTM_PdmSdmaAdapter_PeriodCopyAndNotify()320 dstSize = rtm->periodSize - dstRtm->offset; in SRTM_PdmSdmaAdapter_PeriodCopyAndNotify()322 SRTM_PdmSdmaAdapter_LocalBufferUpdate((uint32_t *)(void *)(dst + dstRtm->offset), in SRTM_PdmSdmaAdapter_PeriodCopyAndNotify()326 dstRtm->offset += size; in SRTM_PdmSdmaAdapter_PeriodCopyAndNotify()337 if (dstRtm->offset == rtm->periodSize) in SRTM_PdmSdmaAdapter_PeriodCopyAndNotify()340 dstRtm->chaseIdx = (dstRtm->chaseIdx + 1U) % rtm->periods; in SRTM_PdmSdmaAdapter_PeriodCopyAndNotify()341 …dstRtm->remainingPeriods--; /* Now one of the remote buffer has been consumed. Assume the ready pe… in SRTM_PdmSdmaAdapter_PeriodCopyAndNotify()[all …]