Home
last modified time | relevance | path

Searched refs:hostService (Results 1 – 14 of 14) sorted by relevance

/ohos5.0/drivers/hdf_core/framework/core/host/src/
H A Ddevhost_service.c24 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 Dhdf_device_object.c33 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 Ddevmgr_service_clnt.c17 int DevmgrServiceClntAttachDeviceHost(uint16_t hostId, struct IDevHostService *hostService) in DevmgrServiceClntAttachDeviceHost() argument
31 return devMgrSvcIf->AttachDeviceHost(devMgrSvcIf, hostId, hostService); in DevmgrServiceClntAttachDeviceHost()
H A Dhdf_device_node.c36 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 Ddevhost_service_full.c29 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 Ddevmgr_service.c121 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 Ddevhost_service_clnt.c30 devHostSvcIf = (struct IDevHostService *)hostClnt->hostService; in DevHostServiceClntInstallDriver()
/ohos5.0/drivers/hdf_core/adapter/uhdf2/host/test/unittest/
H A Ddevhost_test.cpp158 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 Ddevhost_service_if.h19 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 Ddevmgr_dump.c60 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 Ddevmgr_service_full.c31 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 Ddevmgr_service_clnt.h28 int DevmgrServiceClntAttachDeviceHost(uint16_t hostId, struct IDevHostService *hostService);
/ohos5.0/drivers/hdf_core/framework/core/manager/include/
H A Ddevhost_service_clnt.h23 struct IDevHostService *hostService; member
/ohos5.0/drivers/hdf_core/interfaces/inner_api/host/shared/
H A Dhdf_device_node.h38 struct DevHostService *hostService; member