Searched refs:powerToken (Results 1 – 8 of 8) sorted by relevance
129 if (devNode->powerToken != NULL) { in HdfDeviceNodeAddPowerStateListener()133 devNode->powerToken = PowerStateTokenNewInstance(&devNode->deviceObject, listener); in HdfDeviceNodeAddPowerStateListener()134 return (devNode->powerToken != NULL) ? HDF_SUCCESS : HDF_FAILURE; in HdfDeviceNodeAddPowerStateListener()141 if (devNode == NULL || devNode->powerToken == NULL) { in HdfDeviceNodeRemovePowerStateListener()145 PowerStateTokenFreeInstance(devNode->powerToken); in HdfDeviceNodeRemovePowerStateListener()146 devNode->powerToken = NULL; in HdfDeviceNodeRemovePowerStateListener()233 PowerStateTokenFreeInstance(devNode->powerToken); in HdfDeviceNodeDestruct()234 devNode->powerToken = NULL; in HdfDeviceNodeDestruct()
72 void HdfPmTaskPut(struct PowerStateToken *powerToken, HDF_PM_REQUEST_TYPE type) in HdfPmTaskPut() argument77 if (powerToken == NULL) { in HdfPmTaskPut()88 pmRequest->token = powerToken; in HdfPmTaskPut()
91 tokenIf = (struct IPowerStateToken *)devNode->powerToken; in HdfPmAcquireDevice()107 tokenIf = (struct IPowerStateToken *)devNode->powerToken; in HdfPmReleaseDevice()125 HdfPmTaskPut(devNode->powerToken, HDF_PM_REQUEST_ACQUIRE); in HdfPmAcquireDeviceAsync()139 HdfPmTaskPut(devNode->powerToken, HDF_PM_REQUEST_RELEASE); in HdfPmReleaseDeviceAsync()153 token = devNode->powerToken; in HdfPmSetMode()
168 if (deviceNode->powerToken != NULL) { in ApplyDevicesPowerState()169 ret = PowerStateChange(deviceNode->powerToken, state); in ApplyDevicesPowerState()177 if (deviceNode->powerToken != NULL) { in ApplyDevicesPowerState()178 ret = PowerStateChange(deviceNode->powerToken, state); in ApplyDevicesPowerState()
96 if (deviceNode->powerToken != NULL) { in DevHostServiceFullDispatchPowerState()97 ret = PowerStateChange(deviceNode->powerToken, state); in DevHostServiceFullDispatchPowerState()107 if (deviceNode->powerToken != NULL) { in DevHostServiceFullDispatchPowerState()108 ret = PowerStateChange(deviceNode->powerToken, state); in DevHostServiceFullDispatchPowerState()
33 void HdfPmTaskPut(struct PowerStateToken *powerToken, HDF_PM_REQUEST_TYPE type);
37 struct PowerStateToken *powerToken; member
262 if ((devNode->powerToken != NULL) && (devNode->powerToken->listener != NULL)) { in HdfPmRegisterTestListener()263 g_pmTestType[index].listenerBak = devNode->powerToken->listener; in HdfPmRegisterTestListener()