Lines Matching refs:__state
415 if( provider->__state[0] & kIOServiceInactiveState)
445 adjParent = ((busy = (__state[1] & kIOServiceBusyStateMask))
452 if( busy && (__state[1] & kIOServiceTermPhase3State) && (0 == newProvider))
468 if( (provider->__state[1] & kIOServiceTermPhase3State)
547 && (provider->__state[1] & kIOServiceSynchronousState));
552 needConfig = (0 == (__state[1] & (kIOServiceNeedConfigState | kIOServiceConfigState)))
553 && (0 == (__state[0] & kIOServiceInactiveState));
555 __state[1] |= kIOServiceNeedConfigState;
557 // __state[0] &= ~kIOServiceInactiveState;
564 needWake = (0 != (kIOServiceSyncPubState & __state[1]));
568 __state[1] |= kIOServiceSynchronousState;
570 __state[1] &= ~kIOServiceSynchronousState;
578 thread_wakeup( (event_t) this/*&__state[1]*/ );
587 if( (__state[1] & kIOServiceNeedConfigState))
593 waitAgain = (prevBusy < (__state[1] & kIOServiceBusyStateMask));
595 __state[1] |= kIOServiceSyncPubState | kIOServiceBusyWaiterState;
597 __state[1] &= ~kIOServiceSyncPubState;
602 assert_wait( (event_t) this/*&__state[1]*/, THREAD_UNINT);
1459 if( 0 == (__state[0] & kIOServiceInactiveState)) {
1643 ok = (0 != (__state[1] & kIOServiceRecursing));
1664 __state[1] |= kIOServiceRecursing;
1680 didInactive = (0 == (victim->__state[0] & kIOServiceInactiveState));
1682 victim->__state[0] |= kIOServiceInactiveState;
1683 victim->__state[0] &= ~(kIOServiceRegisteredState | kIOServiceMatchedState
1756 wait = (0 != (__state[1] & kIOServiceBusyStateMask));
1956 doPhase2 = (0 != (kIOServiceInactiveState & victim->__state[0]));
1958 doPhase2 = (0 == (victim->__state[1] & kIOServiceTermPhase2State))
1959 && (0 == (victim->__state[1] & kIOServiceConfigState));
1961 victim->__state[1] |= kIOServiceTermPhase2State;
1988 victim->__state[1] |= kIOServiceTermPhase3State;
2025 if( (client->__state[1] & kIOServiceTermPhase3State) && client->getClient()) {
2080 if( 0 == (__state[1] & kIOServiceTermPhase3State)) {
2089 if( 0 == (provider->__state[1] & kIOServiceTermPhase3State))
2173 ok = (0 == (__state[0] & kIOServiceInactiveState));
2193 last = (__state[1] & kIOServiceTermPhase3State);
2341 if( kIOServiceInactiveState & service->__state[0])
2427 if( 0 == (__state[0] & kIOServiceInactiveState))
2541 if( __state[1] & kIOServiceSynchronousState)
2542 inst->__state[1] |= kIOServiceSynchronousState;
2682 adjBusy = (__state[1] & kIOServiceModuleStallState) ? 0 : 1;
2684 __state[1] |= kIOServiceModuleStallState;
2686 } else if( __state[1] & kIOServiceModuleStallState) {
2687 __state[1] &= ~kIOServiceModuleStallState;
2910 if( 0 == (__state[0] & kIOServiceFirstPublishState))
2914 __state[1] &= ~kIOServiceNeedConfigState;
2915 __state[1] |= kIOServiceConfigState;
2916 __state[0] |= kIOServiceRegisteredState;
2918 if( reRegistered && (0 == (__state[0] & kIOServiceInactiveState))) {
2944 reRegistered = (0 != (__state[1] & kIOServiceNeedConfigState));
2948 && (0 == (__state[0] & kIOServiceInactiveState));
2954 if( (0 == (__state[0] & kIOServiceInactiveState))
2955 && (0 == (__state[1] & kIOServiceModuleStallState)) ) {
2958 if( 0 == (__state[0] & kIOServiceFirstMatchState))
2963 __state[1] &= ~kIOServiceConfigState;
2964 if( __state[0] & kIOServiceInactiveState)
2979 result = __state[1] & kIOServiceBusyStateMask;
2984 count = next->__state[1] & kIOServiceBusyStateMask;
2988 next->__state[1] += delta;
2989 nowQuiet = (0 == (next->__state[1] & kIOServiceBusyStateMask));
2990 needWake = (0 != (kIOServiceBusyWaiterState & next->__state[1]));
2993 next->__state[1] &= ~kIOServiceBusyWaiterState;
3034 return( __state[1] & kIOServiceBusyStateMask );
3048 wait = (value != (__state[1] & mask));
3050 __state[1] |= kIOServiceBusyWaiterState;
3091 ((IOService *)this)->setProperty( ((IOService *)this)->__state,
3092 sizeof( __state), "__state");
3263 if( (inState == (service->__state[0] & inState))
3264 && (0 == (service->__state[0] & kIOServiceInactiveState))
3282 if( (inState == (service->__state[0] & inState))
3283 && (0 == (service->__state[0] & kIOServiceInactiveState))
3453 if( 0 == (next->__state[0] & kIOServiceInactiveState))
3545 if( (0 == (__state[0] & kIOServiceInactiveState))
3567 __state[0] = (__state[0] | orNewState) & andNewState;
3585 return( __state[0] );
4070 if( kIOServiceInactiveState & service->__state[0])