Lines Matching defs:service
222 IOService * service;
261 requireMaxCpuDelay(IOService * service, UInt32 ns, UInt32 delayType);
416 // Probe a matched service and return an instance to be started.
446 * Attach in service plane
514 // check for last client detach from a terminated service
670 IOService * service;
699 LOG("Matching service count = %ld\n", (long)count);
705 while( (service = (IOService *) allSet->getAnyObject())) {
706 service->startMatching(kIOServiceAsynchronous);
707 allSet->removeObject(service);
740 * Called on a registered service to see if it matches
755 * Called on a matched service to allocate resources
1003 element->service = this;
1015 if( active->service == element->service ) {
1062 if( active->service == waiting->service ) {
1277 if( element->service == this ) {
1311 if( element->service == this ) {
1362 // send a message to a client or interested party of this service
1367 IOService * service;
1370 if( (service = OSDynamicCast( IOService, client)))
1371 ret = service->message( type, this, argument );
1458 IOService * service;
1470 ret = context->service->messageClient( context->type,
1482 context.service = this;
1674 IOService * service,
1680 if( (wl = service->getWorkLoop())) {
1682 wl->runAction( action, service, p0, p1, p2, p3 );
1685 (*action)( service, p0, p1, p2, p3 );
2339 IOService * service;
2350 context->service->messageClient( context->type, object, (void *) context->options );
2360 context.service = this;
2403 context.service = this;
2488 IOService * service;
2498 else if( (service = OSDynamicCast( IOService, entry)))
2499 offset = OSDynamicCast(OSNumber, service->getProperty( key ));
2532 IOService * service = 0;
2538 while( (service = (IOService *) iter->getNextObject())) {
2539 if( kIOServiceInactiveState & service->__state[0])
2542 service->getProperty( gIOMatchCategoryKey ));
2545 service->retain();
2551 return( service );
2557 service = copyClientWithCategory(category);
2558 if (service)
2559 service->release();
2560 return (service);
2908 bool IOService::startCandidate( IOService * service )
2912 ok = service->attach( this );
2921 service->checkResources();
2931 ok = service->start(this);
2942 IOLog("%s::start took %ld ms\n", service->getName(), (long)(UInt32)(nano / 1000000ULL));
2946 service->detach( this );
3232 context.service = next;
3393 // gNumConfigThreads--; // we're out of service
3394 gNumWaitingThreads--; // we're out of service
3424 gNumWaitingThreads++; // back in service
3524 IOService * service = (typeof(service)) entry;
3534 match = ((state == (state & service->__state[0]))
3535 && (0 == (service->__state[0] & kIOServiceInactiveState)));
3538 match = service->matchInternal(table, options, &done);
3547 service->retain();
3548 ctx->result = service;
3553 ctx->result = OSSet::withObjects((const OSObject **) &service, 1, 1);
3557 ((OSSet *)ctx->result)->setObject(service);
3568 IOService * service;
3583 && (service = gIOResources))
3585 if( (inState == (service->__state[0] & inState))
3586 && (0 == (service->__state[0] & kIOServiceInactiveState))
3587 && service->matchPassive(matching, options))
3591 service->retain();
3592 current = service;
3595 current = OSSet::withObjects((const OSObject **) &service, 1, 1 );
3628 while ((service = (IOService *) source->getAnyObject()))
3630 if (service->matchPassive(matching, options))
3634 service->retain();
3635 current = service;
3640 ((OSSet *)current)->setObject( service );
3645 (const OSObject **) &service, 1, 1 );
3648 source->removeObject(service);
3663 while( (service = (IOService *) iter->getNextObject())) {
3664 if( (inState == (service->__state[0] & inState))
3665 && (0 == (service->__state[0] & kIOServiceInactiveState))
3666 && service->matchPassive(matching, 0)) {
3669 service->retain();
3670 _current = service;
3674 ((OSSet *)_current)->setObject( service );
3677 (const OSObject **) &service, 1, 1 );
3680 } while( !service && !iter->isValid());
3730 IOService * service;
3735 service = (IOService *) copyExistingServices( matching,
3740 return( service );
4462 context.service = getServiceRoot();
4712 IOService * service = 0;
4718 while( (service = (IOService *) iter->getNextObject())) {
4719 if( kIOServiceInactiveState & service->__state[0])
4721 if( 0 == service->getProperty( gIOMatchCategoryKey ))
5176 requireMaxCpuDelay(IOService * service, UInt32 ns, UInt32 delayType)
5189 const CpuDelayEntry ne = {service, ns, delayType};
5190 holder = service;
5195 if ((service == thisService) && sameType)
5225 if (service == thisService)