Lines Matching full:sysctrl
63 LosPmSysctrl *sysctrl; member
159 if ((pm->sysMode == LOS_SYS_NORMAL_SLEEP) && (pm->sysctrl->normalResume != NULL)) { in OsPmCpuResume()
160 pm->sysctrl->normalResume(); in OsPmCpuResume()
161 } else if ((pm->sysMode == LOS_SYS_LIGHT_SLEEP) && (pm->sysctrl->lightResume != NULL)) { in OsPmCpuResume()
162 pm->sysctrl->lightResume(); in OsPmCpuResume()
163 } else if ((pm->sysMode == LOS_SYS_DEEP_SLEEP) && (pm->sysctrl->deepResume != NULL)) { in OsPmCpuResume()
164 pm->sysctrl->deepResume(); in OsPmCpuResume()
173 pm->sysctrl->normalSuspend(); in OsPmCpuSuspend()
175 pm->sysctrl->lightSuspend(); in OsPmCpuSuspend()
177 pm->sysctrl->deepSuspend(); in OsPmCpuSuspend()
179 pm->sysctrl->shutdownSuspend(); in OsPmCpuSuspend()
189 if (((prepare == 0) || (prepare == OS_PM_SYS_DEVICE_EARLY)) && (pm->sysctrl->late != NULL)) { in OsPmResumePrepare()
190 pm->sysctrl->late(mode); in OsPmResumePrepare()
229 LOS_ASSERT(pm->sysctrl != NULL); in OsPmSuspendCheck()
233 *sysSuspendEarly = pm->sysctrl->early; in OsPmSuspendCheck()
265 if (pm->sysctrl->suspendCheck != NULL) { in OsPmSuspendSleep()
266 pm->sysctrl->suspendCheck(mode); in OsPmSuspendSleep()
348 STATIC UINT32 OsPmSysctrlRegister(LosPmCB *pm, LosPmSysctrl *sysctrl) in OsPmSysctrlRegister() argument
351 if (sysctrl->early != NULL) { in OsPmSysctrlRegister()
352 pm->sysctrl->early = sysctrl->early; in OsPmSysctrlRegister()
354 if (sysctrl->late != NULL) { in OsPmSysctrlRegister()
355 pm->sysctrl->late = sysctrl->late; in OsPmSysctrlRegister()
357 if (sysctrl->suspendCheck != NULL) { in OsPmSysctrlRegister()
358 pm->sysctrl->suspendCheck = sysctrl->suspendCheck; in OsPmSysctrlRegister()
360 if (sysctrl->normalSuspend != NULL) { in OsPmSysctrlRegister()
361 pm->sysctrl->normalSuspend = sysctrl->normalSuspend; in OsPmSysctrlRegister()
363 if (sysctrl->normalResume != NULL) { in OsPmSysctrlRegister()
364 pm->sysctrl->normalResume = sysctrl->normalResume; in OsPmSysctrlRegister()
366 if (sysctrl->lightSuspend != NULL) { in OsPmSysctrlRegister()
367 pm->sysctrl->lightSuspend = sysctrl->lightSuspend; in OsPmSysctrlRegister()
369 if (sysctrl->lightResume != NULL) { in OsPmSysctrlRegister()
370 pm->sysctrl->lightResume = sysctrl->lightResume; in OsPmSysctrlRegister()
372 if (sysctrl->deepSuspend != NULL) { in OsPmSysctrlRegister()
373 pm->sysctrl->deepSuspend = sysctrl->deepSuspend; in OsPmSysctrlRegister()
375 if (sysctrl->deepResume != NULL) { in OsPmSysctrlRegister()
376 pm->sysctrl->deepResume = sysctrl->deepResume; in OsPmSysctrlRegister()
378 if (sysctrl->shutdownSuspend != NULL) { in OsPmSysctrlRegister()
379 pm->sysctrl->shutdownSuspend = sysctrl->shutdownSuspend; in OsPmSysctrlRegister()
381 if (sysctrl->shutdownResume != NULL) { in OsPmSysctrlRegister()
382 pm->sysctrl->shutdownResume = sysctrl->shutdownResume; in OsPmSysctrlRegister()
444 STATIC UINT32 OsPmSysctrlUnregister(LosPmCB *pm, LosPmSysctrl *sysctrl) in OsPmSysctrlUnregister() argument
446 (VOID)sysctrl; in OsPmSysctrlUnregister()
516 if ((mode == LOS_SYS_LIGHT_SLEEP) && (pm->sysctrl->lightSuspend == NULL)) { in LOS_PmModeSet()
521 if ((mode == LOS_SYS_DEEP_SLEEP) && (pm->sysctrl->deepSuspend == NULL)) { in LOS_PmModeSet()
526 if ((mode == LOS_SYS_SHUTDOWN) && (pm->sysctrl->shutdownSuspend == NULL)) { in LOS_PmModeSet()
770 pm->sysctrl = &g_sysctrl; in OsPmInit()