Home
last modified time | relevance | path

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

/hal_nxp-3.5.0/mcux/mcux-sdk/components/srtm/services/
Dsrtm_sai_sdma_adapter.c519 uint32_t newPeriods; in SRTM_SaiSdmaAdapter_AddNewPeriods() local
524 newPeriods = (periodIdx + rtm->periods - bufRtm->leadIdx) % rtm->periods; in SRTM_SaiSdmaAdapter_AddNewPeriods()
525 if (newPeriods == 0U) /* in case buffer is empty and filled all */ in SRTM_SaiSdmaAdapter_AddNewPeriods()
527 newPeriods = rtm->periods; in SRTM_SaiSdmaAdapter_AddNewPeriods()
532 bufRtm->remainingPeriods += newPeriods; in SRTM_SaiSdmaAdapter_AddNewPeriods()
534 bufRtm->remainingLoadPeriods += newPeriods; in SRTM_SaiSdmaAdapter_AddNewPeriods()
Dsrtm_pdm_sdma_adapter.c392 uint32_t newPeriods; in SRTM_PdmSdmaAdapter_AddNewPeriods() local
397 newPeriods = (periodIdx + rtm->periods - bufRtm->leadIdx) % rtm->periods; in SRTM_PdmSdmaAdapter_AddNewPeriods()
398 if (newPeriods == 0U) /* In case buffer is empty and filled all. */ in SRTM_PdmSdmaAdapter_AddNewPeriods()
400 newPeriods = rtm->periods; in SRTM_PdmSdmaAdapter_AddNewPeriods()
405 bufRtm->remainingPeriods += newPeriods; in SRTM_PdmSdmaAdapter_AddNewPeriods()
407 bufRtm->remainingLoadPeriods += newPeriods; in SRTM_PdmSdmaAdapter_AddNewPeriods()