Home
last modified time | relevance | path

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

/hal_nxp-3.5.0/mcux/mcux-sdk/components/srtm/services/
Dsrtm_pdm_sdma_adapter.c37 uint32_t leadIdx; /* ready period index for playback or recording. */ member
317 src = rtm->localBuf.buf + srcRtm->leadIdx * rtm->localRtm.periodSize; in SRTM_PdmSdmaAdapter_PeriodCopyAndNotify()
329 srcRtm->leadIdx = (srcRtm->leadIdx + 1U) % rtm->localBuf.periods; in SRTM_PdmSdmaAdapter_PeriodCopyAndNotify()
397 newPeriods = (periodIdx + rtm->periods - bufRtm->leadIdx) % rtm->periods; in SRTM_PdmSdmaAdapter_AddNewPeriods()
403 bufRtm->leadIdx = periodIdx; in SRTM_PdmSdmaAdapter_AddNewPeriods()
508 … if (rtm->extBufRtm.bufRtm.chaseIdx == rtm->extBufRtm.bufRtm.leadIdx) /* Extra buffer overwrite. */ in SRTM_PdmSdmaAdapter_LocalBufFullDMACb()
510 … rtm->extBufRtm.bufRtm.leadIdx = (rtm->extBufRtm.bufRtm.leadIdx + 1U) % rtm->extBuf.periods; in SRTM_PdmSdmaAdapter_LocalBufFullDMACb()
514 …rtm->localRtm.bufRtm.leadIdx = (rtm->localRtm.bufRtm.leadIdx + periodsPerExt) % rtm->localBuf.peri… in SRTM_PdmSdmaAdapter_LocalBufFullDMACb()
533 periods = rtm->localBuf.periods - rtm->localRtm.bufRtm.leadIdx; in SRTM_PdmSdmaAdapter_LocalBufFullProc()
534 src = rtm->localBuf.buf + rtm->localRtm.bufRtm.leadIdx * rtm->localRtm.periodSize; in SRTM_PdmSdmaAdapter_LocalBufFullProc()
[all …]
Dsrtm_sai_sdma_adapter.c37 uint32_t leadIdx; /* ready period index for playback or recording. */ member
393 dst = rtm->localBuf.buf + dstRtm->leadIdx * rtm->localRtm.periodSize; in SRTM_SaiSdmaAdapter_CopyData()
404 rtm->localRtm.periodsInfo[dstRtm->leadIdx].endRemoteIdx = srcRtm->loadIdx; in SRTM_SaiSdmaAdapter_CopyData()
413 rtm->localRtm.periodsInfo[dstRtm->leadIdx].dataSize = dstRtm->offset; in SRTM_SaiSdmaAdapter_CopyData()
414 rtm->localRtm.periodsInfo[dstRtm->leadIdx].remoteIdx = srcRtm->loadIdx; in SRTM_SaiSdmaAdapter_CopyData()
415 rtm->localRtm.periodsInfo[dstRtm->leadIdx].remoteOffset = srcRtm->offset; in SRTM_SaiSdmaAdapter_CopyData()
416 …dstRtm->leadIdx = (dstRtm->leadIdx + 1U) % rtm->localBuf.p… in SRTM_SaiSdmaAdapter_CopyData()
441 src = rtm->localBuf.buf + srcRtm->leadIdx * rtm->localRtm.periodSize; in SRTM_SaiSdmaAdapter_RxPeriodCopyAndNotify()
453 srcRtm->leadIdx = (srcRtm->leadIdx + 1U) % rtm->localBuf.periods; in SRTM_SaiSdmaAdapter_RxPeriodCopyAndNotify()
524 newPeriods = (periodIdx + rtm->periods - bufRtm->leadIdx) % rtm->periods; in SRTM_SaiSdmaAdapter_AddNewPeriods()
[all …]