Lines Matching refs:retVal
116 cy_en_syspm_status_t retVal = CY_SYSPM_SUCCESS; in Cy_SysPm_CpuEnterSleep() local
123 retVal = Cy_SysPm_ExecuteCallback(CY_SYSPM_SLEEP, CY_SYSPM_CHECK_READY); in Cy_SysPm_CpuEnterSleep()
130 if(retVal == CY_SYSPM_SUCCESS) in Cy_SysPm_CpuEnterSleep()
169 retVal = CY_SYSPM_FAIL; in Cy_SysPm_CpuEnterSleep()
171 return retVal; in Cy_SysPm_CpuEnterSleep()
178 cy_en_syspm_status_t retVal = CY_SYSPM_SUCCESS; in Cy_SysPm_SystemLpActiveEnter() local
183 retVal = CY_SYSPM_FAIL; in Cy_SysPm_SystemLpActiveEnter()
190 …retVal = Cy_SysPm_ExecuteCallback((cy_en_syspm_callback_type_t)cbSleepRootIdx, CY_SYSPM_CHECK_READ… in Cy_SysPm_SystemLpActiveEnter()
193 if (retVal == CY_SYSPM_SUCCESS) in Cy_SysPm_SystemLpActiveEnter()
236 retVal = CY_SYSPM_FAIL; in Cy_SysPm_SystemLpActiveEnter()
239 return retVal; in Cy_SysPm_SystemLpActiveEnter()
246 cy_en_syspm_status_t retVal = CY_SYSPM_SUCCESS; in Cy_SysPm_SystemLpActiveExit() local
251 …retVal = Cy_SysPm_ExecuteCallback((cy_en_syspm_callback_type_t)cbSleepRootIdx, CY_SYSPM_CHECK_READ… in Cy_SysPm_SystemLpActiveExit()
254 if (retVal == CY_SYSPM_SUCCESS) in Cy_SysPm_SystemLpActiveExit()
295 retVal = CY_SYSPM_FAIL; in Cy_SysPm_SystemLpActiveExit()
297 return retVal; in Cy_SysPm_SystemLpActiveExit()
309 cy_en_syspm_status_t retVal = CY_SYSPM_SUCCESS; in Cy_SysPm_CpuEnterDeepSleep() local
316 retVal = CY_SYSPM_FAIL; in Cy_SysPm_CpuEnterDeepSleep()
325 …retVal = Cy_SysPm_ExecuteCallback((cy_en_syspm_callback_type_t)cbDeepSleepRootIdx, CY_SYSPM_CHECK_… in Cy_SysPm_CpuEnterDeepSleep()
332 if (retVal == CY_SYSPM_SUCCESS) in Cy_SysPm_CpuEnterDeepSleep()
357 if (retVal == CY_SYSPM_SUCCESS) in Cy_SysPm_CpuEnterDeepSleep()
379 return retVal; in Cy_SysPm_CpuEnterDeepSleep()
384 cy_en_syspm_status_t retVal = CY_SYSPM_SUCCESS; in Cy_SysPm_SystemEnterHibernate() local
391 retVal = Cy_SysPm_ExecuteCallback(CY_SYSPM_HIBERNATE, CY_SYSPM_CHECK_READY); in Cy_SysPm_SystemEnterHibernate()
398 if(retVal == CY_SYSPM_SUCCESS) in Cy_SysPm_SystemEnterHibernate()
450 retVal = CY_SYSPM_FAIL; in Cy_SysPm_SystemEnterHibernate()
452 return retVal; in Cy_SysPm_SystemEnterHibernate()
457 cy_en_syspm_status_t retVal = CY_SYSPM_CANCELED; in Cy_SysPm_SystemSetMinRegulatorCurrent() local
471 retVal = CY_SYSPM_SUCCESS; in Cy_SysPm_SystemSetMinRegulatorCurrent()
474 return retVal; in Cy_SysPm_SystemSetMinRegulatorCurrent()
479 cy_en_syspm_status_t retVal = CY_SYSPM_TIMEOUT; in Cy_SysPm_SystemSetNormalRegulatorCurrent() local
487 retVal= CY_SYSPM_SUCCESS; in Cy_SysPm_SystemSetNormalRegulatorCurrent()
489 return retVal; in Cy_SysPm_SystemSetNormalRegulatorCurrent()
513 cy_en_syspm_status_t retVal = CY_SYSPM_CANCELED; in Cy_SysPm_LdoSetMode() local
519 retVal = Cy_SysPm_SystemSetNormalRegulatorCurrent(); in Cy_SysPm_LdoSetMode()
525 retVal = Cy_SysPm_SystemSetMinRegulatorCurrent(); in Cy_SysPm_LdoSetMode()
535 retVal = CY_SYSPM_SUCCESS; in Cy_SysPm_LdoSetMode()
540 retVal = CY_SYSPM_FAIL; in Cy_SysPm_LdoSetMode()
544 return retVal; in Cy_SysPm_LdoSetMode()
549 cy_en_syspm_ldo_mode_t retVal; in Cy_SysPm_LdoGetMode() local
553 retVal = CY_SYSPM_LDO_MODE_DISABLED; in Cy_SysPm_LdoGetMode()
557 retVal = CY_SYSPM_LDO_MODE_MIN; in Cy_SysPm_LdoGetMode()
561 retVal = CY_SYSPM_LDO_MODE_NORMAL; in Cy_SysPm_LdoGetMode()
564 return retVal; in Cy_SysPm_LdoGetMode()
661 bool retVal = false; in Cy_SysPm_RegisterCallback() local
711 retVal = true; in Cy_SysPm_RegisterCallback()
720 retVal = true; in Cy_SysPm_RegisterCallback()
723 return retVal; in Cy_SysPm_RegisterCallback()
728 bool retVal = false; in Cy_SysPm_UnregisterCallback() local
741 retVal = true; in Cy_SysPm_UnregisterCallback()
749 if (retVal) in Cy_SysPm_UnregisterCallback()
779 return retVal; in Cy_SysPm_UnregisterCallback()
788 cy_en_syspm_status_t retVal = CY_SYSPM_SUCCESS; in Cy_SysPm_ExecuteCallback() local
798 … while ((curCallback != NULL) && ((retVal != CY_SYSPM_FAIL) || (mode != CY_SYSPM_CHECK_READY))) in Cy_SysPm_ExecuteCallback()
807 retVal = curCallback->callback(&curParams, mode); in Cy_SysPm_ExecuteCallback()
827 if(retVal == CY_SYSPM_FAIL) in Cy_SysPm_ExecuteCallback()
875 retVal = curCallback->callback(&curParams, mode); in Cy_SysPm_ExecuteCallback()
881 return retVal; in Cy_SysPm_ExecuteCallback()
987 uint32_t retVal; in Cy_SysPm_BackupGetSupply() local
988 retVal = _FLD2VAL(BACKUP_CTL_VDDBAK_CTL, BACKUP_CTL); in Cy_SysPm_BackupGetSupply()
990 return ((cy_en_syspm_vddbackup_control_t) retVal); in Cy_SysPm_BackupGetSupply()
1106 uint32_t retVal = (uint32_t)CY_SYSPM_SRAM_PWR_MODE_INVALID; in Cy_SysPm_GetSRAMMacroPwrMode() local
1115 … retVal = _FLD2VAL(CPUSS_RAM0_PWR_MACRO_CTL_PWR_MODE, CPUSS_RAM0_PWR_MACRO_CTL(sramMacroNum)); in Cy_SysPm_GetSRAMMacroPwrMode()
1121 retVal = _FLD2VAL(CPUSS_RAM1_PWR_CTL_PWR_MODE, CPUSS_RAM1_PWR_CTL); in Cy_SysPm_GetSRAMMacroPwrMode()
1126 retVal = _FLD2VAL(CPUSS_RAM2_PWR_CTL_PWR_MODE, CPUSS_RAM2_PWR_CTL); in Cy_SysPm_GetSRAMMacroPwrMode()
1132 return (cy_en_syspm_sram_pwr_mode_t)retVal; in Cy_SysPm_GetSRAMMacroPwrMode()
1809 cy_en_syspm_status_t retVal = CY_SYSPM_TIMEOUT; in Cy_SysPm_ReghcConfigure() local
1844 retVal= CY_SYSPM_SUCCESS; in Cy_SysPm_ReghcConfigure()
1847 return retVal; in Cy_SysPm_ReghcConfigure()
1852 cy_en_syspm_status_t retVal = CY_SYSPM_TIMEOUT; in Cy_SysPm_ReghcDeConfigure() local
1869 retVal= CY_SYSPM_SUCCESS; in Cy_SysPm_ReghcDeConfigure()
1872 return retVal; in Cy_SysPm_ReghcDeConfigure()