Searched refs:stateToken (Results 1 – 2 of 2) sorted by relevance
17 struct PowerStateToken *stateToken = NULL; in PowerStateTokenOnFirstAcquire() local21 stateToken = (struct PowerStateToken *)HDF_SLIST_CONTAINER_OF( in PowerStateTokenOnFirstAcquire()24 if (stateToken->psmState == PSM_STATE_ACTIVE) { in PowerStateTokenOnFirstAcquire()28 if (stateToken->psmState == PSM_STATE_INACTIVE || stateToken->psmState == PSM_STATE_IDLE) { in PowerStateTokenOnFirstAcquire()29 const struct IPowerEventListener *listener = stateToken->listener; in PowerStateTokenOnFirstAcquire()31 listener->Resume(stateToken->deviceObject); in PowerStateTokenOnFirstAcquire()34 stateToken->psmState = PSM_STATE_ACTIVE; in PowerStateTokenOnFirstAcquire()39 struct PowerStateToken *stateToken = NULL; in PowerStateTokenOnLastRelease() local44 stateToken = (struct PowerStateToken *)HDF_SLIST_CONTAINER_OF( in PowerStateTokenOnLastRelease()47 if (stateToken->psmState != PSM_STATE_ACTIVE && stateToken->psmState != PSM_STATE_IDLE) { in PowerStateTokenOnLastRelease()[all …]
27 void PowerStateTokenFreeInstance(struct PowerStateToken *stateToken);28 int PowerStateChange(struct PowerStateToken *stateToken, uint32_t pEvent);