/ohos5.0/drivers/hdf_core/framework/core/host/src/ |
H A D | devhost_service.c | 24 if (hostService == NULL) { in DevHostServiceFindDevice() 39 (void)hostService; in DevHostServiceFreeDevice() 101 devNode->hostService = hostService; in DevHostServiceAddDevice() 115 DevHostServiceFreeDevice(hostService, device); in DevHostServiceAddDevice() 160 if (hostService == NULL) { in DevHostServiceStartService() 204 if (hostService == NULL) { in DevHostServicePmNotify() 275 struct DevHostService *hostService = in DevHostServiceNewInstance() local 277 if (hostService != NULL && hostName != NULL) { in DevHostServiceNewInstance() 278 hostService->hostId = hostId; in DevHostServiceNewInstance() 279 hostService->hostName = hostName; in DevHostServiceNewInstance() [all …]
|
H A D | hdf_device_object.c | 33 struct DevHostService *hostService = NULL; in HdfDeviceSubscribeService() local 41 hostService = devNode->hostService; in HdfDeviceSubscribeService() 42 if (hostService == NULL) { in HdfDeviceSubscribeService() 47 …return HdfServiceObserverSubscribeService(&hostService->observer, serviceName, devNode->devId, cal… in HdfDeviceSubscribeService() 212 newNode->hostService = parentDevNode->hostService; in HdfDeviceObjectAlloc()
|
H A D | devmgr_service_clnt.c | 17 int DevmgrServiceClntAttachDeviceHost(uint16_t hostId, struct IDevHostService *hostService) in DevmgrServiceClntAttachDeviceHost() argument 31 return devMgrSvcIf->AttachDeviceHost(devMgrSvcIf, hostId, hostService); in DevmgrServiceClntAttachDeviceHost()
|
H A D | hdf_device_node.c | 36 if (devNode->hostService == NULL) { in HdfDeviceNodePublishLocalService() 40 return HdfServiceObserverPublishService(&(devNode->hostService->observer), devNode->servName, in HdfDeviceNodePublishLocalService()
|
/ohos5.0/drivers/hdf_core/adapter/uhdf2/host/src/ |
H A D | devhost_service_full.c | 29 struct DevHostServiceFull *hostService = in DevHostServiceFullDispatchMessage() local 36 status = DevHostServiceAddDevice(&hostService->super.super, attribute); in DevHostServiceFullDispatchMessage() 44 status = DevHostServiceDelDevice(&hostService->super.super, devid); in DevHostServiceFullDispatchMessage() 147 return hostService->super.PmNotify(&hostService->super, SysEventToPowerState(event)); in OnSysEventReceived() 152 struct DevHostService *hostService = (struct DevHostService *)service; in DevHostServiceFullStartService() local 153 if (hostService == NULL) { in DevHostServiceFullStartService() 158 int ret = DevmgrServiceClntAttachDeviceHost(hostService->hostId, service); in DevHostServiceFullStartService() 164 hostService->sysEventNotifyNode.callback = OnSysEventReceived; in DevHostServiceFullStartService() 177 struct DevHostService *hostService = (struct DevHostService *)service; in DevHostServiceFullPmNotify() local 180 if (hostService == NULL || !IsValidPowerState(state)) { in DevHostServiceFullPmNotify() [all …]
|
/ohos5.0/drivers/hdf_core/framework/core/manager/src/ |
H A D | devmgr_service.c | 121 if (hostClnt->hostService == NULL || hostClnt->hostService->AddDevice == NULL) { in DevmgrServiceLoadDevice() 126 ret = hostClnt->hostService->AddDevice(hostClnt->hostService, deviceInfo); in DevmgrServiceLoadDevice() 163 if (hostClnt->hostService == NULL || hostClnt->hostService->DelDevice == NULL) { in DevmgrServiceUnloadDevice() 168 ret = hostClnt->hostService->DelDevice(hostClnt->hostService, deviceInfo->deviceId); in DevmgrServiceUnloadDevice() 210 ret = hostClnt->hostService->AddDevice(hostClnt->hostService, deviceInfo); in DevmgrServiceLoadLeftDriver() 299 if (hostService == NULL) { in DevmgrServiceAttachDeviceHost() 305 hostClnt->hostService = hostService; in DevmgrServiceAttachDeviceHost() 434 if (hostClient->hostService != NULL) { in DevmgrServicePowerStateChange() 435 … if (hostClient->hostService->PmNotify(hostClient->hostService, powerState) != HDF_SUCCESS) { in DevmgrServicePowerStateChange() 443 if (hostClient->hostService != NULL) { in DevmgrServicePowerStateChange() [all …]
|
H A D | devhost_service_clnt.c | 30 devHostSvcIf = (struct IDevHostService *)hostClnt->hostService; in DevHostServiceClntInstallDriver()
|
/ohos5.0/drivers/hdf_core/adapter/uhdf2/host/test/unittest/ |
H A D | devhost_test.cpp | 158 ASSERT_TRUE(hostService->PmNotify != nullptr); 159 hostService->PmNotify(hostService, POWER_STATE_RESUME); 160 hostService->PmNotify(hostService, POWER_STATE_SUSPEND); 161 hostService->PmNotify(hostService, POWER_STATE_MAX); 163 hostService->StartService(nullptr); 170 ASSERT_TRUE(hostService != nullptr); 181 ASSERT_TRUE(hostService != nullptr); 182 DevHostServiceFreeInstance(hostService); 284 devNode->hostService = nullptr; 296 devNode->hostService = nullptr; [all …]
|
/ohos5.0/drivers/hdf_core/framework/core/shared/include/ |
H A D | devhost_service_if.h | 19 int (*AddDevice)(struct IDevHostService *hostService, const struct HdfDeviceInfo *devInfo); 20 int (*DelDevice)(struct IDevHostService *hostService, devid_t devId); 21 int (*StartService)(struct IDevHostService *hostService); 23 int (*Dump)(struct IDevHostService *hostService, struct HdfSBuf *data, struct HdfSBuf *reply);
|
/ohos5.0/drivers/hdf_core/adapter/uhdf2/manager/src/ |
H A D | devmgr_dump.c | 60 if (hostClnt->hostService == NULL || hostClnt->hostService->Dump == NULL) { in DevMgrDumpHostFindHost() 64 ret = hostClnt->hostService->Dump(hostClnt->hostService, data, reply); in DevMgrDumpHostFindHost() 139 if (hostClnt->hostService == NULL || hostClnt->hostService->Dump == NULL) { in DevMgrDumpServiceFindHost() 142 ret = hostClnt->hostService->Dump(hostClnt->hostService, data, reply); in DevMgrDumpServiceFindHost()
|
H A D | devmgr_service_full.c | 31 struct DevHostServiceProxy *hostProxy = (struct DevHostServiceProxy *)hostClnt->hostService; in CleanupDiedHostResources() 37 hostClnt->hostService = NULL; in CleanupDiedHostResources()
|
/ohos5.0/drivers/hdf_core/framework/core/host/include/ |
H A D | devmgr_service_clnt.h | 28 int DevmgrServiceClntAttachDeviceHost(uint16_t hostId, struct IDevHostService *hostService);
|
/ohos5.0/drivers/hdf_core/framework/core/manager/include/ |
H A D | devhost_service_clnt.h | 23 struct IDevHostService *hostService; member
|
/ohos5.0/drivers/hdf_core/interfaces/inner_api/host/shared/ |
H A D | hdf_device_node.h | 38 struct DevHostService *hostService; member
|