Home
last modified time | relevance | path

Searched refs:hostClnt (Results 1 - 11 of 11) sorted by relevance

/drivers/hdf_core/framework/core/manager/src/
H A Ddevhost_service_clnt.c19 int DevHostServiceClntInstallDriver(struct DevHostServiceClnt *hostClnt) in DevHostServiceClntInstallDriver() argument
25 if (hostClnt == NULL) { in DevHostServiceClntInstallDriver()
26 HDF_LOGE("failed to install driver, hostClnt is null"); in DevHostServiceClntInstallDriver()
29 OsalMutexLock(&hostClnt->hostLock); in DevHostServiceClntInstallDriver()
30 devHostSvcIf = (struct IDevHostService *)hostClnt->hostService; in DevHostServiceClntInstallDriver()
32 OsalMutexUnlock(&hostClnt->hostLock); in DevHostServiceClntInstallDriver()
36 HdfSListIteratorInit(&it, &hostClnt->unloadDevInfos); in DevHostServiceClntInstallDriver()
61 OsalMutexUnlock(&hostClnt->hostLock); in DevHostServiceClntInstallDriver()
65 static int32_t DevHostServiceClntConstruct(struct DevHostServiceClnt *hostClnt) in DevHostServiceClntConstruct() argument
67 HdfSListInit(&hostClnt in DevHostServiceClntConstruct()
85 struct DevHostServiceClnt *hostClnt = (struct DevHostServiceClnt *)OsalMemCalloc(sizeof(struct DevHostServiceClnt)); DevHostServiceClntNewInstance() local
101 DevHostServiceClntFreeInstance(struct DevHostServiceClnt *hostClnt) DevHostServiceClntFreeInstance() argument
113 DevHostServiceClntDelete(struct DevHostServiceClnt *hostClnt) DevHostServiceClntDelete() argument
[all...]
H A Ddevmgr_service.c29 struct DevHostServiceClnt *hostClnt = NULL; in DevmgrServiceDynamicDevInfoFound() local
39 DLIST_FOR_EACH_ENTRY(hostClnt, &devMgrSvc->hosts, struct DevHostServiceClnt, node) { in DevmgrServiceDynamicDevInfoFound()
40 HdfSListIteratorInit(&itDeviceInfo, &hostClnt->dynamicDevInfos); in DevmgrServiceDynamicDevInfoFound()
45 *targetHostClnt = hostClnt; in DevmgrServiceDynamicDevInfoFound()
56 static int DevmgrServiceStartHostProcess(struct DevHostServiceClnt *hostClnt, bool sync, bool dynamic) in DevmgrServiceStartHostProcess() argument
65 hostClnt->hostPid = installer->StartDeviceHost(hostClnt->hostId, hostClnt->hostName, dynamic); in DevmgrServiceStartHostProcess()
66 if (hostClnt->hostPid == HDF_FAILURE) { in DevmgrServiceStartHostProcess()
67 HDF_LOGW("failed to start device host(%{public}s, %{public}u)", hostClnt in DevmgrServiceStartHostProcess()
92 struct DevHostServiceClnt *hostClnt = NULL; DevmgrServiceLoadDevice() local
135 DevmgrServiceStopHost(struct DevHostServiceClnt *hostClnt) DevmgrServiceStopHost() argument
150 struct DevHostServiceClnt *hostClnt = NULL; DevmgrServiceUnloadDevice() local
201 struct DevHostServiceClnt *hostClnt = NULL; DevmgrServiceLoadLeftDriver() local
226 struct DevHostServiceClnt *hostClnt = NULL; DevmgrServiceFindDeviceHost() local
244 struct DevHostServiceClnt *hostClnt = NULL; DevmgrServiceAttachDevice() local
273 struct DevHostServiceClnt *hostClnt = NULL; DevmgrServiceDetachDevice() local
295 struct DevHostServiceClnt *hostClnt = DevmgrServiceFindDeviceHost(inst, hostId); DevmgrServiceAttachDeviceHost() local
313 struct DevHostServiceClnt *hostClnt = DevHostServiceClntNewInstance(hostAttr->hostId, hostAttr->hostName); DevmgrServiceStartDeviceHost() local
368 struct DevHostServiceClnt *hostClnt = NULL; DevmgrServiceListAllDevice() local
404 struct DevHostServiceClnt *hostClnt = NULL; DevmgrServiceListAllHost() local
533 struct DevHostServiceClnt *hostClnt = NULL; DevmgrServiceRelease() local
[all...]
/drivers/hdf_core/adapter/uhdf2/manager/src/
H A Ddevmgr_service_full.c28 static void CleanupDiedHostResources(struct DevHostServiceClnt *hostClnt, struct HdfRemoteService *service) in CleanupDiedHostResources() argument
30 OsalMutexLock(&hostClnt->hostLock); in CleanupDiedHostResources()
31 struct DevHostServiceProxy *hostProxy = (struct DevHostServiceProxy *)hostClnt->hostService; in CleanupDiedHostResources()
34 HDF_LOGI("%{public}s hostId: %{public}u remove current hostService", __func__, hostClnt->hostId); in CleanupDiedHostResources()
35 hostClnt->hostPid = INVALID_PID; in CleanupDiedHostResources()
37 hostClnt->hostService = NULL; in CleanupDiedHostResources()
38 HdfSListFlush(&hostClnt->devices, DeviceTokenClntDelete); in CleanupDiedHostResources()
41 HDF_LOGI("%{public}s hostId: %{public}u remove old hostService", __func__, hostClnt->hostId); in CleanupDiedHostResources()
47 __func__, hostClnt->hostId); in CleanupDiedHostResources()
51 OsalMutexUnlock(&hostClnt in CleanupDiedHostResources()
54 DevmgrServiceFullHandleDeviceHostDied(struct DevHostServiceClnt *hostClnt, struct HdfRemoteService *service) DevmgrServiceFullHandleDeviceHostDied() argument
66 struct DevHostServiceClnt *hostClnt = NULL; DevmgrServiceFullOnDeviceHostDied() local
[all...]
H A Ddevhost_service_proxy.c32 struct DevHostServiceProxy *hostClnt = (struct DevHostServiceProxy *)inst; in DevHostServiceProxyOpsDevice() local
33 if (hostClnt->remote == NULL || data == NULL) { in DevHostServiceProxyOpsDevice()
34 HDF_LOGE("Adding device failed, hostClnt->remote or data or reply is null"); in DevHostServiceProxyOpsDevice()
39 status = hostClnt->remote->dispatcher->Dispatch(hostClnt->remote, opsCode, data, NULL); in DevHostServiceProxyOpsDevice()
56 struct DevHostServiceProxy *hostClnt = (struct DevHostServiceProxy *)inst; in DevHostServiceProxyDelDevice() local
57 if (hostClnt->remote == NULL || data == NULL) { in DevHostServiceProxyDelDevice()
58 HDF_LOGE("Del device failed, hostClnt->remote or data is null"); in DevHostServiceProxyDelDevice()
63 status = hostClnt->remote->dispatcher->Dispatch(hostClnt in DevHostServiceProxyDelDevice()
95 struct DevHostServiceProxy *hostClnt = (struct DevHostServiceProxy *)inst; DevHostServicProxyDump() local
[all...]
H A Ddevmgr_query_device.c29 struct DevHostServiceClnt *hostClnt = NULL; in DevFillQueryDeviceInfo() local
44 DLIST_FOR_EACH_ENTRY(hostClnt, &devMgrSvc->hosts, struct DevHostServiceClnt, node) { in DevFillQueryDeviceInfo()
45 HdfSListIteratorInit(&itDeviceInfo, &hostClnt->unloadDevInfos); in DevFillQueryDeviceInfo()
46 HDF_LOGD("%{public}s, host:%{public}s %{public}d", __func__, hostClnt->hostName, hostClnt->hostId); in DevFillQueryDeviceInfo()
H A Ddevmgr_dump.c50 struct DevHostServiceClnt *hostClnt = NULL; in DevMgrDumpHostFindHost() local
54 DLIST_FOR_EACH_ENTRY(hostClnt, &devMgrSvc->hosts, struct DevHostServiceClnt, node) { in DevMgrDumpHostFindHost()
55 HDF_LOGI("%{public}s hostName:%{public}s %{public}s", __func__, hostClnt->hostName, hostName); in DevMgrDumpHostFindHost()
56 if (strcmp(hostClnt->hostName, hostName) != 0) { in DevMgrDumpHostFindHost()
60 if (hostClnt->hostService == NULL || hostClnt->hostService->Dump == NULL) { in DevMgrDumpHostFindHost()
64 ret = hostClnt->hostService->Dump(hostClnt->hostService, data, reply); in DevMgrDumpHostFindHost()
122 struct DevHostServiceClnt *hostClnt = NULL; in DevMgrDumpServiceFindHost() local
126 DLIST_FOR_EACH_ENTRY(hostClnt, in DevMgrDumpServiceFindHost()
219 struct DevHostServiceClnt *hostClnt = NULL; DevMgrDumpAllHostsIpcStats() local
261 struct DevHostServiceClnt *hostClnt = NULL; DevMgrDumpSingleHostIpcStats() local
[all...]
H A Ddevmgr_service_stub.c46 struct DevHostServiceClnt *hostClnt = NULL; in DevmgrServicehostClntGetPid() local
47 DLIST_FOR_EACH_ENTRY(hostClnt, &dmService->hosts, struct DevHostServiceClnt, node) { in DevmgrServicehostClntGetPid()
48 if (hostClnt->hostId == hostId) { in DevmgrServicehostClntGetPid()
49 hostClnt->hostProcessId = HdfRemoteGetCallingPid(); in DevmgrServicehostClntGetPid()
/drivers/hdf_core/framework/core/manager/include/
H A Ddevhost_service_clnt.h33 int DevHostServiceClntInstallDriver(struct DevHostServiceClnt *hostClnt);
35 void DevHostServiceClntFreeInstance(struct DevHostServiceClnt *hostClnt);
36 void DevHostServiceClntDelete(struct DevHostServiceClnt *hostClnt);
/drivers/hdf_core/framework/core/common/src/
H A Dhdf_attribute.c181 const struct DeviceResourceNode *device, struct DevHostServiceClnt *hostClnt, uint16_t deviceIdx) in GetDevcieNodeList()
184 uint16_t hostId = hostClnt->hostId; in GetDevcieNodeList()
201 if (!HdfSListAddOrder(&hostClnt->unloadDevInfos, &deviceNodeInfo->node, HdfDeviceListCompare)) { in GetDevcieNodeList()
208 HdfSListAdd(&hostClnt->dynamicDevInfos, &deviceNodeInfo->node); in GetDevcieNodeList()
216 int HdfAttributeManagerGetDeviceList(struct DevHostServiceClnt *hostClnt) in HdfAttributeManagerGetDeviceList() argument
223 if (hostClnt == NULL) { in HdfAttributeManagerGetDeviceList()
227 hostNode = GetHostNode(hostClnt->hostName); in HdfAttributeManagerGetDeviceList()
233 if (!GetDevcieNodeList(device, hostClnt, deviceIdx)) { in HdfAttributeManagerGetDeviceList()
180 GetDevcieNodeList( const struct DeviceResourceNode *device, struct DevHostServiceClnt *hostClnt, uint16_t deviceIdx) GetDevcieNodeList() argument
H A Dhdf_attribute_macro.c150 struct DevHostServiceClnt *hostClnt, uint16_t deviceIdx) in GetDevcieNodeList()
153 uint16_t hostId = hostClnt->hostId; in GetDevcieNodeList()
170 if (!HdfSListAddOrder(&hostClnt->unloadDevInfos, &devInfo->node, HdfDeviceListCompareMacro)) { in GetDevcieNodeList()
176 HdfSListAdd(&hostClnt->dynamicDevInfos, &devInfo->node); in GetDevcieNodeList()
201 int HdfAttributeManagerGetDeviceList(struct DevHostServiceClnt *hostClnt) in HdfAttributeManagerGetDeviceList() argument
210 if (hostClnt == NULL) { in HdfAttributeManagerGetDeviceList()
221 HCS_FOREACH_CHILD_VARGS(HDF_DEVICE_INFO, HDF_FIND_HOST, hostClnt->hostName, host, HDF_FAILURE); in HdfAttributeManagerGetDeviceList()
224 if (!GetDevcieNodeList(device, hostClnt, deviceIdx)) { in HdfAttributeManagerGetDeviceList()
149 GetDevcieNodeList(const struct HdfDeviceType *device, struct DevHostServiceClnt *hostClnt, uint16_t deviceIdx) GetDevcieNodeList() argument
/drivers/hdf_core/framework/core/shared/include/
H A Dhdf_attribute_manager.h17 int HdfAttributeManagerGetDeviceList(struct DevHostServiceClnt *hostClnt);

Completed in 5 milliseconds