Home
last modified time | relevance | path

Searched refs:stateToken (Results 1 – 2 of 2) sorted by relevance

/drivers/hdf_core/framework/core/host/src/
Dpower_state_token.c17 struct PowerStateToken *stateToken = NULL; in PowerStateTokenOnFirstAcquire() local
21 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() local
44 stateToken = (struct PowerStateToken *)HDF_SLIST_CONTAINER_OF( in PowerStateTokenOnLastRelease()
47 if (stateToken->psmState != PSM_STATE_ACTIVE && stateToken->psmState != PSM_STATE_IDLE) { in PowerStateTokenOnLastRelease()
[all …]
/drivers/hdf_core/framework/core/host/include/
Dpower_state_token.h27 void PowerStateTokenFreeInstance(struct PowerStateToken *stateToken);
28 int PowerStateChange(struct PowerStateToken *stateToken, uint32_t pEvent);