Home
last modified time | relevance | path

Searched refs:tokenClnt (Results 1 – 7 of 7) sorted by relevance

/ohos5.0/drivers/hdf_core/framework/core/manager/src/
H A Ddevice_token_clnt.c18 tokenClnt->tokenIf = tokenIf; in DeviceTokenClntConstruct()
19 tokenClnt->deviceInfo = NULL; in DeviceTokenClntConstruct()
24 struct DeviceTokenClnt *tokenClnt = NULL; in DeviceTokenClntNewInstance() local
30 if (tokenClnt != NULL) { in DeviceTokenClntNewInstance()
31 DeviceTokenClntConstruct(tokenClnt, tokenIf); in DeviceTokenClntNewInstance()
33 return tokenClnt; in DeviceTokenClntNewInstance()
36 void DeviceTokenClntFreeInstance(struct DeviceTokenClnt *tokenClnt) in DeviceTokenClntFreeInstance() argument
38 if (tokenClnt != NULL) { in DeviceTokenClntFreeInstance()
39 OsalMemFree(tokenClnt); in DeviceTokenClntFreeInstance()
46 if (tokenClnt != NULL) { in DeviceTokenClntDelete()
[all …]
H A Dpower_state_token_clnt.c20 struct PowerStateTokenClnt *tokenClnt = in PowerStateTokenClntNewInstance() local
22 if (tokenClnt != NULL) { in PowerStateTokenClntNewInstance()
23 PowerStateTokenClntConstruct(tokenClnt, tokenIf); in PowerStateTokenClntNewInstance()
24 return tokenClnt; in PowerStateTokenClntNewInstance()
26 return tokenClnt; in PowerStateTokenClntNewInstance()
29 void PowerStateTokenClntFreeInstance(struct PowerStateTokenClnt *tokenClnt) in PowerStateTokenClntFreeInstance() argument
31 if (tokenClnt != NULL) { in PowerStateTokenClntFreeInstance()
32 OsalMemFree(tokenClnt); in PowerStateTokenClntFreeInstance()
H A Ddevmgr_service.c244 struct DeviceTokenClnt *tokenClnt = NULL; in DevmgrServiceAttachDevice() local
254 tokenClnt = DeviceTokenClntNewInstance(token); in DevmgrServiceAttachDevice()
255 if (tokenClnt == NULL) { in DevmgrServiceAttachDevice()
260 HdfSListAdd(&hostClnt->devices, &tokenClnt->node); in DevmgrServiceAttachDevice()
267 return tokenClnt->tokenIf->devid == devid; in HdfSListHostSearchDeviceTokenComparer()
273 struct DeviceTokenClnt *tokenClnt = NULL; in DevmgrServiceDetachDevice() local
287 HdfSListRemove(&hostClnt->devices, &tokenClnt->node); in DevmgrServiceDetachDevice()
386 if (tokenClnt != NULL && tokenClnt->tokenIf != NULL) { in DevmgrServiceListAllDevice()
387 … name = (tokenClnt->tokenIf->deviceName == NULL) ? "" : tokenClnt->tokenIf->deviceName; in DevmgrServiceListAllDevice()
389 HdfSbufWriteUint32(reply, tokenClnt->tokenIf->devid); in DevmgrServiceListAllDevice()
[all …]
/ohos5.0/drivers/hdf_core/adapter/uhdf2/manager/src/
H A Ddevmgr_service_stub.c59 struct HdfDevTokenProxy *tokenClnt = HdfDevTokenProxyObtain(NULL); in DevmgrServiceStubDispatchAttachDevice() local
60 if (tokenClnt == NULL) { in DevmgrServiceStubDispatchAttachDevice()
63 tokenClnt->super.devid = deviceId; in DevmgrServiceStubDispatchAttachDevice()
64 tokenClnt->super.servName = HdfStringCopy(servName); in DevmgrServiceStubDispatchAttachDevice()
65 tokenClnt->super.deviceName = HdfStringCopy(deviceName); in DevmgrServiceStubDispatchAttachDevice()
66 return devmgrSvc->AttachDevice(devmgrSvc, &tokenClnt->super); in DevmgrServiceStubDispatchAttachDevice()
H A Ddevmgr_dump.c130 struct DeviceTokenClnt *tokenClnt = (struct DeviceTokenClnt *)node; in DevMgrDumpServiceFindHost() local
131 if (tokenClnt == NULL || tokenClnt->tokenIf == NULL) { in DevMgrDumpServiceFindHost()
134 name = (tokenClnt->tokenIf->servName == NULL) ? "" : tokenClnt->tokenIf->servName; in DevMgrDumpServiceFindHost()
/ohos5.0/drivers/hdf_core/framework/core/manager/include/
H A Dpower_state_token_clnt.h23 void PowerStateTokenClntFreeInstance(struct PowerStateTokenClnt *tokenClnt);
H A Ddevice_token_clnt.h23 void DeviceTokenClntFreeInstance(struct DeviceTokenClnt *tokenClnt);