Lines Matching refs:gRootDomain

530 static IOPMrootDomain * gRootDomain;  variable
891 return gRootDomain->registerInterest( gIOGeneralInterest, handler, self, ref ).detach(); in registerSleepWakeInterest()
897 return gRootDomain->registerInterest( gIOPriorityPowerStateInterest, handler, self, ref ).detach(); in registerPrioritySleepWakeInterest()
903 return gRootDomain->allowPowerChange((unsigned long)PMrefcon ); in acknowledgeSleepWakeNotification()
909 return gRootDomain->cancelPowerChange((unsigned long)PMrefcon ); in vetoSleepWakeNotification()
915 return gRootDomain->restartSystem(); in rootDomainRestart()
921 return gRootDomain->shutdownSystem(); in rootDomainShutdown()
1032 gRootDomain->handlePlatformHaltRestart(kPEPagingOff); in IOSystemShutdownNotification()
1331 if (gRootDomain && gWakeReasonSysctlRegistered) {
1332 gRootDomain->copyWakeReasonString(wr, sizeof(wr));
1364 if (gRootDomain && gShutdownReasonSysctlRegistered) {
1365 gRootDomain->copyShutdownReasonString(sr, sizeof(sr));
1418 if (NULL == gRootDomain) {
1421 if (NULL == gRootDomain->_aotMetrics) {
1425 return sysctl_io_opaque(req, gRootDomain->_aotMetrics, sizeof(IOPMAOTMetrics), NULL);
1444 if (mode && !gRootDomain->_aotMetrics) { in update_aotmode()
1445 gRootDomain->_aotMetrics = IOMallocType(IOPMAOTMetrics); in update_aotmode()
1448 oldCount = gRootDomain->idleSleepPreventersCount(); in update_aotmode()
1449 gRootDomain->_aotMode = (mode & kIOPMAOTModeMask); in update_aotmode()
1450 gRootDomain->updatePreventIdleSleepListInternal(NULL, false, oldCount); in update_aotmode()
1463 if (NULL == gRootDomain) { in sysctl_aotmodebits()
1466 error = sysctl_io_number(req, gRootDomain->_aotMode, sizeof(uint32_t), &new_value, &changed); in sysctl_aotmodebits()
1485 if (NULL == gRootDomain) { in sysctl_aotmode()
1488 error = sysctl_io_number(req, gRootDomain->_aotMode, sizeof(uint32_t), &new_value, &changed); in sysctl_aotmode()
1534 gRootDomain = this; in start()
3811 if (!gRootDomain) { in sysPowerDownHandler()
3835 gRootDomain->evaluateSystemSleepPolicyEarly(); in sysPowerDownHandler()
3838 if (gRootDomain->hibernateMode && !gRootDomain->hibernateDisabled) { in sysPowerDownHandler()
3859 gRootDomain->diskSyncCalloutEntry, in sysPowerDownHandler()
3864 gRootDomain->diskSyncCalloutEntry, in sysPowerDownHandler()
3874 gRootDomain->diskSyncCalloutEntry, in sysPowerDownHandler()
3976 OSDynamicPtrCast<OSString>(gRootDomain->copyProperty(kIOPMSleepWakeUUIDKey)); in IOPMCopySleepWakeUUIDKey()
4020 gRootDomain->lowLatencyAudioNotify(time, state); in IOPMrootDomainRTNotifier()
4147 if (gRootDomain) { in hibernate_should_abort()
4148 return gRootDomain->abortHibernation(); in hibernate_should_abort()
4169 gRootDomain->setProperties(dict.get()); in scheduleImmediateDebugWake()
4247 if (gRootDomain->activitySinceSleep() && gIOHibernateState == kIOHibernateStateInactive) {
4251 if (gRootDomain->activitySinceSleep()) {
7314 if (!gRootDomain) {
7334 gRootDomain->evaluatePolicy( kStimulusDisplayWranglerSleep );
7343 gRootDomain->evaluatePolicy( kStimulusDisplayWranglerWake );
7348 gRootDomain->evaluatePolicy( kStimulusEnterUserActiveState );
10809 gRootDomain->copySleepPreventersList(&idleSleepList, NULL);
10815 gRootDomain->copySleepPreventersList(NULL, &systemSleepList);
10821 gRootDomain->copySleepPreventersListWithID(&idleSleepList, NULL);
10827 gRootDomain->copySleepPreventersListWithID(NULL, &systemSleepList);
12185 if (!OSCompareAndSwap(0, 1, &gRootDomain->swd_lock)) {
12240 gRootDomain->swd_lock = 0;
12496 if (!OSCompareAndSwap(0, 1, &gRootDomain->swd_lock)) {
12514 gRootDomain->swd_lock = 0;
12545 if (!OSCompareAndSwap(0, 1, &gRootDomain->swd_lock)) {
12718 gRootDomain->swd_lock = 0;
12738 if (!OSCompareAndSwap(0, 1, &gRootDomain->swd_lock)) {
12773 gRootDomain->swd_lock = 0;
12786 if (!OSCompareAndSwap(0, 1, &gRootDomain->swd_lock)) {
12811 gRootDomain->swd_lock = 0;