Lines Matching refs:service
349 IOService * service; member
394 requireMaxCpuDelay(IOService * service, UInt32 ns, UInt32 delayType);
441 UInt32 messageType, IOService * service,
444 bool matchingStart(IOService * service);
445 void matchingEnd(IOService * service);
1245 IOService * service; in catalogNewDrivers() local
1279 while ((service = (IOService *) allSet->getAnyObject())) { in catalogNewDrivers()
1280 service->startMatching(kIOServiceAsynchronous); in catalogNewDrivers()
1281 allSet->removeObject(service); in catalogNewDrivers()
1685 element->service = this; in lockForArbitration()
1697 if (owner->service == element->service) { in lockForArbitration()
1743 if (active->service == waiting->service) { in lockForArbitration()
1774 wakeup_thread_with_inheritor(&victim->service->__machPortHoldDestroy, // event in lockForArbitration()
1816 &element->service->__machPortHoldDestroy, // event in lockForArbitration()
1939 if (element->service == this) { in unlockForArbitration()
2004 IOService::isLockedForArbitration(IOService * service) in isLockedForArbitration() argument
2021 && (!service || (active->service == service))) { in isLockedForArbitration()
2097 IOService * service; in messageClient() local
2100 if ((service = OSDynamicCast( IOService, client))) { in messageClient()
2101 ret = service->message( type, this, argument ); in messageClient()
2191 IOService * service; member
2204 ret = context->service->messageClient( context->type, in messageClientsApplier()
2218 context.service = this; in messageClients()
2512 IOService * service, in _workLoopAction() argument
2518 if ((wl = service->getWorkLoop())) { in _workLoopAction()
2520 wl->runAction( action, service, p0, p1, p2, p3 ); in _workLoopAction()
2523 (*action)( service, p0, p1, p2, p3 ); in _workLoopAction()
3499 IOService * service; member
3511 context->service->messageClient( context->type, object, (void *)(uintptr_t) context->options ); in serviceOpenMessageApplier()
3524 context.service = this; in open()
3584 context.service = this; in close()
3682 IOService * service; in IOServiceObjectOrder() local
3695 } else if ((service = OSDynamicCast( IOService, entry))) { in IOServiceObjectOrder()
3696 prop = service->copyProperty(key); in IOServiceObjectOrder()
3737 IOService * service = NULL; in copyClientWithCategory() local
3743 while ((service = (IOService *) iter->getNextObject())) { in copyClientWithCategory()
3744 if (kIOServiceInactiveState & service->__state[0]) { in copyClientWithCategory()
3745 if (!(kIOServiceRematchOnDetach & service->__state[1])) { in copyClientWithCategory()
3750 service->getProperty( gIOMatchCategoryKey )); in copyClientWithCategory()
3752 service->retain(); in copyClientWithCategory()
3758 return service; in copyClientWithCategory()
3765 service = copyClientWithCategory(category); in getClientWithCategory() local
3766 if (service) { in getClientWithCategory()
3767 service->release(); in getClientWithCategory()
3769 return service; in getClientWithCategory()
4352 IOService * service; in userSpaceWillReboot() local
4365 while ((service = (IOService *)iter->getNextObject())) { in userSpaceWillReboot()
4371 if (service->propertyHasValue(gIOMatchDeferKey, kOSBooleanTrue) || service->hasUserServer()) { in userSpaceWillReboot()
4372 provider = service->getProvider(); in userSpaceWillReboot()
4374 …provider->getName(), provider->getRegistryEntryID(), service->getName(), service->getRegistryEntry… in userSpaceWillReboot()
4378 } while (!service && !iter->isValid()); in userSpaceWillReboot()
4496 IOServicePH::matchingStart(IOService * service) in matchingStart() argument
4504 idx = fMatchingWork->getNextIndexOfObject(service, 0); in matchingStart()
4506 fMatchingWork->setObject(service); in matchingStart()
4511 fMatchingDelayed = OSArray::withObjects((const OSObject **) &service, 1, 1); in matchingStart()
4513 idx = fMatchingDelayed->getNextIndexOfObject(service, 0); in matchingStart()
4515 fMatchingDelayed->setObject(service); in matchingStart()
4528 IOServicePH::matchingEnd(IOService * service) in matchingEnd() argument
4537 if (service) { in matchingEnd()
4543 if (service) { in matchingEnd()
4544 idx = fMatchingWork->getNextIndexOfObject(service, 0); in matchingEnd()
4694 UInt32 messageType, IOService * service, in systemPowerChange() argument
4725 fSystemPowerAckTo = service; in systemPowerChange()
4787 IOService::startCandidate( IOService * service ) in startCandidate() argument
4796 obj = service->copyProperty(gIOUserServerNameKey); in startCandidate()
4801 ok = service->attach( this ); in startCandidate()
4812 service->checkResources(); in startCandidate()
4826 obj = service->copyProperty(gIOModuleIdentifierKey); in startCandidate()
4828 entryID = service->getRegistryEntryID(); in startCandidate()
4833 DKLOG(DKS " dext launches are disabled \n", DKN(service)); in startCandidate()
4834 service->detach(this); in startCandidate()
4843 service->detach(this); in startCandidate()
4853 service->setProperty(gIOServiceMatchDeferredKey, kOSBooleanTrue); in startCandidate()
4854 service->detach(this); in startCandidate()
4861 prop = service->copyProperty(gIOUserClassKey); in startCandidate()
4864 service->setName(str); in startCandidate()
4869 bool reuse = service->propertyExists(gIOUserServerOneProcessKey); in startCandidate()
4872 …reuseRequired = reuse && service->propertyHasValue(gIOUserServerNameKey, getProperty(gIOUserServer… in startCandidate()
4874 serverDUI = OSDynamicCast(OSData, service->getProperty(kOSBundleDextUniqueIdentifierKey)); in startCandidate()
4880 DKLOG(DKS " using existing server " DKS "\n", DKN(service), DKN(userServer)); in startCandidate()
4885 …DKLOG(DKS " waiting for server %s-%llx\n", DKN(service), tokenServerName->getCStringNoCopy(), toke… in startCandidate()
4890 DKLOG(DKS " failed to reuse server\n", DKN(service)); in startCandidate()
4892 DKLOG(DKS " failed to launch server\n", DKN(service)); in startCandidate()
4897 service->detach(this); in startCandidate()
4902 DKLOG(DKS " user server timeout\n", DKN(service)); in startCandidate()
4915 service->detach(this); in startCandidate()
4927 if (!userServer->checkEntitlements(this, service)) { in startCandidate()
4928 service->detach(this); in startCandidate()
4940 service->detach(this); in startCandidate()
4948 userServer->serviceAttach(service, this); in startCandidate()
4963 ok = service->start(this); in startCandidate()
4972 IOLog("%s::start took %ld ms\n", service->getName(), (long)(UInt32)(nano / 1000000ULL)); in startCandidate()
4977 userServer->serviceStarted(service, this, ok); in startCandidate()
4982 IOInstallServiceSleepPlatformActions(service); in startCandidate()
4985 service->setProperty(gIOPrimaryDriverTerminateOptionsKey, kOSBooleanTrue); in startCandidate()
4991 service->detach( this ); in startCandidate()
5200 IOService * service; in hasParent() local
5202 for (service = this; in hasParent()
5203 service && (service != parent); in hasParent()
5204 service = service->getProvider()) { in hasParent()
5207 return service != NULL; in hasParent()
5214 IOService * service = (typeof(service))entry; in publishHiddenMediaApplier() local
5217 if (ctx->parent && !service->hasParent(ctx->parent)) { in publishHiddenMediaApplier()
5221 ctx->services->setObject(service); in publishHiddenMediaApplier()
5223 ctx->services = OSArray::withObjects((const OSObject **) &service, 1); in publishHiddenMediaApplier()
5257 IOService * service; in publishHiddenMedia() local
5260 for (idx = 0; (service = (IOService *) ctx.services->getObject(idx)); idx++) { in publishHiddenMedia()
5261 service->lockForArbitration(true); in publishHiddenMedia()
5262 if (!(kIOServiceUserInvisibleMatchState & service->__state[0])) { in publishHiddenMedia()
5263 service->unlockForArbitration(); in publishHiddenMedia()
5266 service->__state[0] &= ~kIOServiceUserInvisibleMatchState; in publishHiddenMedia()
5267 service->__state[1] |= kIOServiceUserUnhidden; in publishHiddenMedia()
5268 notifiers[0] = service->copyNotifiers(gIOFirstPublishNotification, 0, 0xffffffff); in publishHiddenMedia()
5269 if (kIOServiceMatchedState & service->__state[0]) { in publishHiddenMedia()
5270 notifiers[1] = service->copyNotifiers(gIOMatchedNotification, 0, 0xffffffff); in publishHiddenMedia()
5272 if (kIOServiceFirstMatchState & service->__state[0]) { in publishHiddenMedia()
5273 notifiers[2] = service->copyNotifiers(gIOFirstMatchNotification, 0, 0xffffffff); in publishHiddenMedia()
5275 service->unlockForArbitration(); in publishHiddenMedia()
5277 service->invokeNotifiers(¬ifiers[notiIdx]); in publishHiddenMedia()
5527 context.service = next; in _adjustBusy()
6051 IOService * service = (typeof(service))entry; in instanceMatch() local
6060 match = ((state == (state & service->__state[0])) in instanceMatch()
6061 && (0 == (service->__state[0] & kIOServiceInactiveState))); in instanceMatch()
6066 match = service->matchInternal(table, options, &done); in instanceMatch()
6077 service->retain(); in instanceMatch()
6078 ctx->result = service; in instanceMatch()
6081 ctx->result = OSSet::withObjects((const OSObject **) &service, 1, 1); in instanceMatch()
6083 ((OSSet *)ctx->result)->setObject(service); in instanceMatch()
6095 IOService * service; in copyExistingServices() local
6111 && (service = gIOResources)) { in copyExistingServices()
6112 if ((inState == (service->__state[0] & inState)) in copyExistingServices()
6113 && (0 == (service->__state[0] & kIOServiceInactiveState)) in copyExistingServices()
6114 && service->matchPassive(matching, options)) { in copyExistingServices()
6116 service->retain(); in copyExistingServices()
6117 current = service; in copyExistingServices()
6119 current = OSSet::withObjects((const OSObject **) &service, 1, 1 ); in copyExistingServices()
6151 while ((service = (IOService *) source->getAnyObject())) { in copyExistingServices()
6152 if (service->matchPassive(matching, options)) { in copyExistingServices()
6154 service->retain(); in copyExistingServices()
6155 current = service; in copyExistingServices()
6159 ((OSSet *)current)->setObject( service ); in copyExistingServices()
6162 (const OSObject **) &service, 1, 1 ); in copyExistingServices()
6165 source->removeObject(service); in copyExistingServices()
6180 while ((service = (IOService *) iter->getNextObject())) { in copyExistingServices()
6181 if ((inState == (service->__state[0] & inState)) in copyExistingServices()
6182 && (0 == (service->__state[0] & kIOServiceInactiveState)) in copyExistingServices()
6183 && service->matchPassive(matching, 0)) { in copyExistingServices()
6185 service->retain(); in copyExistingServices()
6186 _current = service; in copyExistingServices()
6190 ((OSSet *)_current)->setObject( service ); in copyExistingServices()
6193 (const OSObject **) &service, 1, 1 ); in copyExistingServices()
6197 } while (!service && !iter->isValid()); in copyExistingServices()
6250 IOService * service; in copyMatchingService() local
6255 service = (IOService *) copyExistingServices( matching, in copyMatchingService()
6260 return service; in copyMatchingService()
7441 context.service = getServiceRoot(); in updateConsoleUsers()
7834 IOService * service = NULL; in matchInternal() local
7840 while ((service = (IOService *) iter->getNextObject())) { in matchInternal()
7841 if (kIOServiceInactiveState & service->__state[0]) { in matchInternal()
7844 if (NULL == service->getProperty( gIOMatchCategoryKey )) { in matchInternal()
8398 requireMaxCpuDelay(IOService * service, UInt32 ns, UInt32 delayType) in requireMaxCpuDelay() argument
8413 const CpuDelayEntry ne = {service, ns, delayType}; in requireMaxCpuDelay()
8414 holder = service; in requireMaxCpuDelay()
8419 if ((service == thisService) && sameType) { in requireMaxCpuDelay()
8450 if (service == thisService) { in requireMaxCpuDelay()