Home
last modified time | relevance | path

Searched refs:powerToken (Results 1 – 8 of 8) sorted by relevance

/drivers/hdf_core/framework/core/host/src/
Dhdf_device_node.c129 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()
Dhdf_power_manager.c72 void HdfPmTaskPut(struct PowerStateToken *powerToken, HDF_PM_REQUEST_TYPE type) in HdfPmTaskPut() argument
77 if (powerToken == NULL) { in HdfPmTaskPut()
88 pmRequest->token = powerToken; in HdfPmTaskPut()
Dhdf_device_object.c91 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()
Ddevhost_service.c168 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()
/drivers/hdf_core/adapter/uhdf2/host/src/
Ddevhost_service_full.c96 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()
/drivers/hdf_core/framework/core/host/include/
Dhdf_power_manager.h33 void HdfPmTaskPut(struct PowerStateToken *powerToken, HDF_PM_REQUEST_TYPE type);
/drivers/hdf_core/interfaces/inner_api/host/shared/
Dhdf_device_node.h37 struct PowerStateToken *powerToken; member
/drivers/hdf_core/framework/test/unittest/pm/
Dhdf_pm_driver_test.c262 if ((devNode->powerToken != NULL) && (devNode->powerToken->listener != NULL)) { in HdfPmRegisterTestListener()
263 g_pmTestType[index].listenerBak = devNode->powerToken->listener; in HdfPmRegisterTestListener()