/drivers/hdf_core/framework/core/host/src/ |
D | devmgr_service_clnt.c | 20 struct DevmgrServiceClnt *inst = DevmgrServiceClntGetInstance(); in DevmgrServiceClntAttachDeviceHost() local 21 if (inst == NULL || inst->devMgrSvcIf == NULL) { in DevmgrServiceClntAttachDeviceHost() 26 devMgrSvcIf = inst->devMgrSvcIf; in DevmgrServiceClntAttachDeviceHost() 37 struct DevmgrServiceClnt *inst = DevmgrServiceClntGetInstance(); in DevmgrServiceClntAttachDevice() local 38 if ((inst == NULL) || (inst->devMgrSvcIf == NULL)) { in DevmgrServiceClntAttachDevice() 43 devMgrSvcIf = inst->devMgrSvcIf; in DevmgrServiceClntAttachDevice() 54 struct DevmgrServiceClnt *inst = DevmgrServiceClntGetInstance(); in DevmgrServiceClntDetachDevice() local 55 if (inst == NULL || inst->devMgrSvcIf == NULL) { in DevmgrServiceClntDetachDevice() 60 devMgrSvcIf = inst->devMgrSvcIf; in DevmgrServiceClntDetachDevice() 76 void DevmgrServiceClntFreeInstance(struct DevmgrServiceClnt *inst) in DevmgrServiceClntFreeInstance() argument [all …]
|
D | hdf_driver_loader.c | 56 void HdfDriverLoaderConstruct(struct HdfDriverLoader *inst) in HdfDriverLoaderConstruct() argument 58 if (inst != NULL) { in HdfDriverLoaderConstruct() 59 inst->super.GetDriver = HdfDriverLoaderGetDriver; in HdfDriverLoaderConstruct() 60 inst->super.ReclaimDriver = HdfDriverLoaderReclaimDriver; in HdfDriverLoaderConstruct()
|
D | devhost_service.c | 46 static struct HdfDevice *DevHostServiceQueryOrAddDevice(struct DevHostService *inst, uint16_t devic… in DevHostServiceQueryOrAddDevice() argument 48 struct HdfDevice *device = DevHostServiceFindDevice(inst, deviceId); in DevHostServiceQueryOrAddDevice() 56 device->deviceId = MK_DEVID(inst->hostId, deviceId, 0); in DevHostServiceQueryOrAddDevice() 57 DListInsertHead(&device->node, &inst->devices); in DevHostServiceQueryOrAddDevice() 63 int DevHostServiceAddDevice(struct IDevHostService *inst, const struct HdfDeviceInfo *deviceInfo) in DevHostServiceAddDevice() argument 69 struct DevHostService *hostService = CONTAINER_OF(inst, struct DevHostService, super); in DevHostServiceAddDevice() 72 …if (inst == NULL || deviceInfo == NULL || driverLoader == NULL || driverLoader->GetDriver == NULL)… in DevHostServiceAddDevice() 121 int DevHostServiceDelDevice(struct IDevHostService *inst, devid_t devId) in DevHostServiceDelDevice() argument 124 struct DevHostService *hostService = (struct DevHostService *)inst; in DevHostServiceDelDevice()
|
/drivers/hdf_core/adapter/uhdf2/manager/src/ |
D | device_token_proxy.c | 19 static void HdfDevTokenProxyConstruct(struct HdfDevTokenProxy *inst, struct HdfRemoteService *remot… in HdfDevTokenProxyConstruct() argument 21 inst->remote = remote; in HdfDevTokenProxyConstruct() 34 void HdfDevTokenProxyRecycle(struct HdfDevTokenProxy *inst) in HdfDevTokenProxyRecycle() argument 36 if (inst != NULL) { in HdfDevTokenProxyRecycle() 37 if (inst->remote != NULL) { in HdfDevTokenProxyRecycle() 38 HdfRemoteServiceRecycle(inst->remote); in HdfDevTokenProxyRecycle() 39 inst->remote = NULL; in HdfDevTokenProxyRecycle() 41 OsalMemFree((void *)inst->super.servName); in HdfDevTokenProxyRecycle() 42 OsalMemFree((void *)inst->super.deviceName); in HdfDevTokenProxyRecycle() 43 OsalMemFree(inst); in HdfDevTokenProxyRecycle()
|
D | devhost_service_proxy.c | 28 struct IDevHostService *inst, const struct HdfDeviceInfo *attribute, int opsCode) in DevHostServiceProxyOpsDevice() argument 32 struct DevHostServiceProxy *hostClnt = (struct DevHostServiceProxy *)inst; in DevHostServiceProxyOpsDevice() 46 struct IDevHostService *inst, const struct HdfDeviceInfo *attribute) in DevHostServiceProxyAddDevice() argument 48 return DevHostServiceProxyOpsDevice(inst, attribute, DEVHOST_SERVICE_ADD_DEVICE); in DevHostServiceProxyAddDevice() 52 struct IDevHostService *inst, devid_t devid) in DevHostServiceProxyDelDevice() argument 56 struct DevHostServiceProxy *hostClnt = (struct DevHostServiceProxy *)inst; in DevHostServiceProxyDelDevice() 93 static int32_t DevHostServicProxyDump(struct IDevHostService *inst, struct HdfSBuf *data, struct Hd… in DevHostServicProxyDump() argument 95 struct DevHostServiceProxy *hostClnt = (struct DevHostServiceProxy *)inst; in DevHostServicProxyDump() 106 struct DevHostServiceProxy *inst, struct HdfRemoteService *remote) in DevHostServiceProxyConstruct() argument 108 inst->remote = remote; in DevHostServiceProxyConstruct() [all …]
|
D | devmgr_service_full.c | 63 static void DevmgrServiceFullOnDeviceHostDied(struct DevmgrServiceFull *inst, uint32_t hostId, in DevmgrServiceFullOnDeviceHostDied() argument 68 if (inst == NULL) { in DevmgrServiceFullOnDeviceHostDied() 71 OsalMutexLock(&inst->super.devMgrMutex); in DevmgrServiceFullOnDeviceHostDied() 72 …DLIST_FOR_EACH_ENTRY_SAFE(hostClnt, hostClntTmp, &inst->super.hosts, struct DevHostServiceClnt, no… in DevmgrServiceFullOnDeviceHostDied() 81 OsalMutexUnlock(&inst->super.devMgrMutex); in DevmgrServiceFullOnDeviceHostDied() 114 void DevmgrServiceFullConstruct(struct DevmgrServiceFull *inst) in DevmgrServiceFullConstruct() argument 117 if (inst != NULL) { in DevmgrServiceFullConstruct() 118 HdfMessageLooperConstruct(&inst->looper); in DevmgrServiceFullConstruct() 119 DevmgrServiceConstruct(&inst->super); in DevmgrServiceFullConstruct() 120 HdfMessageTaskConstruct(&inst->task, &inst->looper, &handler); in DevmgrServiceFullConstruct()
|
D | devsvc_manager_stub.c | 576 struct DevSvcManagerStub *inst = (struct DevSvcManagerStub *)svcmgr; in DevSvcManagerStubStart() local 577 if (inst == NULL) { in DevSvcManagerStubStart() 581 if (inst->started) { in DevSvcManagerStubStart() 588 inst->remote = HdfRemoteServiceObtain((struct HdfObject *)inst, &dispatcher); in DevSvcManagerStubStart() 589 if (inst->remote == NULL) { in DevSvcManagerStubStart() 593 if (!HdfRemoteServiceSetInterfaceDesc(inst->remote, "HDI.IServiceManager.V1_0")) { in DevSvcManagerStubStart() 595 HdfRemoteServiceRecycle(inst->remote); in DevSvcManagerStubStart() 599 inst->recipient.OnRemoteDied = DevSvcManagerOnServiceDied; in DevSvcManagerStubStart() 600 int ret = HdfRemoteServiceRegister(DEVICE_SERVICE_MANAGER_SA_ID, inst->remote); in DevSvcManagerStubStart() 603 HdfRemoteServiceRecycle(inst->remote); in DevSvcManagerStubStart() [all …]
|
D | devmgr_service_stub.c | 250 int DevmgrServiceStubStartService(struct IDevmgrService *inst) in DevmgrServiceStubStartService() argument 252 struct DevmgrServiceStub *fullService = (struct DevmgrServiceStub *)inst; in DevmgrServiceStubStartService() 259 …struct HdfRemoteService *remoteService = HdfRemoteServiceObtain((struct HdfObject *)inst, &g_devmg… in DevmgrServiceStubStartService() 302 static void DevmgrServiceStubConstruct(struct DevmgrServiceStub *inst) in DevmgrServiceStubConstruct() argument 304 struct IDevmgrService *pvtbl = (struct IDevmgrService *)inst; in DevmgrServiceStubConstruct() 306 DevmgrServiceFullConstruct(&inst->super); in DevmgrServiceStubConstruct() 308 inst->remote = NULL; in DevmgrServiceStubConstruct() 309 OsalMutexInit(&inst->devmgrStubMutx); in DevmgrServiceStubConstruct()
|
/drivers/hdf_core/framework/core/shared/src/ |
D | hdf_service_record.c | 17 void DevSvcRecordFreeInstance(struct DevSvcRecord *inst) in DevSvcRecordFreeInstance() argument 19 if (inst != NULL) { in DevSvcRecordFreeInstance() 20 OsalMemFree((char *)inst->servName); in DevSvcRecordFreeInstance() 21 OsalMemFree((char *)inst->servInfo); in DevSvcRecordFreeInstance() 22 OsalMemFree((char *)inst->interfaceDesc); in DevSvcRecordFreeInstance() 23 OsalMemFree(inst); in DevSvcRecordFreeInstance()
|
/drivers/hdf_core/framework/core/manager/src/ |
D | devsvc_manager_ext.c | 127 struct DevSvcManagerExt *inst = (struct DevSvcManagerExt *)svcmgr; in DevSvcManagerExtStart() local 134 if (inst == NULL) { in DevSvcManagerExtStart() 138 if (inst->started) { in DevSvcManagerExtStart() 147 inst->serv = HdfIoServicePublish(DEV_SVCMGR_NODE, SVC_MGR_NODE_PERM); in DevSvcManagerExtStart() 148 if (inst->serv == NULL) { in DevSvcManagerExtStart() 154 inst->serv->dispatcher = &dispatcher; in DevSvcManagerExtStart() 155 inst->serv->target = (struct HdfObject *)&svcmgrDevObj; in DevSvcManagerExtStart() 159 inst->started = true; in DevSvcManagerExtStart() 163 static bool DevSvcManagerExtConstruct(struct DevSvcManagerExt *inst) in DevSvcManagerExtConstruct() argument 165 if (inst == NULL) { in DevSvcManagerExtConstruct() [all …]
|
D | devsvc_manager.c | 22 static struct DevSvcRecord *DevSvcManagerSearchServiceLocked(struct IDevSvcManager *inst, uint32_t … in DevSvcManagerSearchServiceLocked() argument 26 struct DevSvcManager *devSvcManager = (struct DevSvcManager *)inst; in DevSvcManagerSearchServiceLocked() 84 int DevSvcManagerAddService(struct IDevSvcManager *inst, in DevSvcManagerAddService() argument 87 struct DevSvcManager *devSvcManager = (struct DevSvcManager *)inst; in DevSvcManagerAddService() 94 record = DevSvcManagerSearchServiceLocked(inst, HdfStringMakeHashKey(servInfo->servName, 0)); in DevSvcManagerAddService() 130 int DevSvcManagerUpdateService(struct IDevSvcManager *inst, in DevSvcManagerUpdateService() argument 133 struct DevSvcManager *devSvcManager = (struct DevSvcManager *)inst; in DevSvcManagerUpdateService() 141 record = DevSvcManagerSearchServiceLocked(inst, HdfStringMakeHashKey(servInfo->servName, 0)); in DevSvcManagerUpdateService() 165 int DevSvcManagerSubscribeService(struct IDevSvcManager *inst, const char *svcName, struct Subscrib… in DevSvcManagerSubscribeService() argument 169 if (inst == NULL || svcName == NULL || devMgrSvc == NULL) { in DevSvcManagerSubscribeService() [all …]
|
D | devmgr_service.c | 220 static struct DevHostServiceClnt *DevmgrServiceFindDeviceHost(struct IDevmgrService *inst, uint16_t… in DevmgrServiceFindDeviceHost() argument 223 struct DevmgrService *dmService = (struct DevmgrService *)inst; in DevmgrServiceFindDeviceHost() 238 static int DevmgrServiceAttachDevice(struct IDevmgrService *inst, struct IHdfDeviceToken *token) in DevmgrServiceAttachDevice() argument 246 hostClnt = DevmgrServiceFindDeviceHost(inst, HOSTID(token->devid)); in DevmgrServiceAttachDevice() 267 static int DevmgrServiceDetachDevice(struct IDevmgrService *inst, devid_t devid) in DevmgrServiceDetachDevice() argument 273 hostClnt = DevmgrServiceFindDeviceHost(inst, HOSTID(devid)); in DevmgrServiceDetachDevice() 289 struct IDevmgrService *inst, uint16_t hostId, struct IDevHostService *hostService) in DevmgrServiceAttachDeviceHost() argument 291 struct DevHostServiceClnt *hostClnt = DevmgrServiceFindDeviceHost(inst, hostId); in DevmgrServiceAttachDeviceHost() 336 static int DevmgrServiceStartDeviceHosts(struct DevmgrService *inst) in DevmgrServiceStartDeviceHosts() argument 351 ret = DevmgrServiceStartDeviceHost(inst, hostAttr); in DevmgrServiceStartDeviceHosts() [all …]
|
/drivers/hdf_core/framework/core/manager/include/ |
D | devsvc_manager.h | 26 bool DevSvcManagerConstruct(struct DevSvcManager *inst); 27 void DevSvcManagerRelease(struct IDevSvcManager *inst); 33 …struct IDevSvcManager *inst, struct HdfDeviceObject *service, const struct HdfServiceInfo *servInf… 34 struct HdfObject *DevSvcManagerGetService(struct IDevSvcManager *inst, const char *svcName); 36 struct IDevSvcManager *inst, const char *svcName, const struct HdfDeviceObject *devObj); 39 struct IDevSvcManager *inst, const char *interfaceDesc, struct HdfSBuf *reply);
|
D | devmgr_service.h | 22 int DevmgrServiceStartService(struct IDevmgrService *inst); 23 bool DevmgrServiceConstruct(struct DevmgrService *inst);
|
/drivers/hdf_core/adapter/uhdf2/host/src/ |
D | hdf_device_thread.c | 50 int DeviceThreadAttach(struct DeviceThread *inst, struct IHdfDevice *device, struct HdfDeviceNode *… in DeviceThreadAttach() argument 52 if (inst == NULL || device == NULL || service == NULL) { in DeviceThreadAttach() 57 struct HdfMessageTask *task = &inst->task; in DeviceThreadAttach() 80 void DeviceThreadConstruct(struct DeviceThread *inst) in DeviceThreadConstruct() argument 86 HdfMessageLooperConstruct(&inst->looper); in DeviceThreadConstruct() 87 HdfMessageTaskConstruct(&inst->task, &inst->looper, &handler); in DeviceThreadConstruct() 88 inst->super.ThreadEntry = DeviceThreadMain; in DeviceThreadConstruct() 89 HdfThreadConstruct(&inst->super); in DeviceThreadConstruct()
|
D | devhost_service_full.c | 65 struct DevHostServiceFull *inst = (struct DevHostServiceFull *)devHostService; in DevHostServiceFullOpsDevice() local 66 struct HdfMessageTask *task = &inst->task; in DevHostServiceFullOpsDevice() 202 void DevHostServiceFullConstruct(struct DevHostServiceFull *inst) in DevHostServiceFullConstruct() argument 204 struct IDevHostService *hostServiceIf = &inst->super.super; in DevHostServiceFullConstruct() 206 DevHostServiceConstruct(&inst->super); in DevHostServiceFullConstruct() 211 HdfMessageLooperConstruct(&inst->looper); in DevHostServiceFullConstruct() 212 HdfMessageTaskConstruct(&inst->task, &inst->looper, &handler); in DevHostServiceFullConstruct() 215 void DevHostServiceFullDestruct(struct DevHostServiceFull *inst) in DevHostServiceFullDestruct() argument 217 if (inst != NULL) { in DevHostServiceFullDestruct() 218 DevHostServiceDestruct(&inst->super); in DevHostServiceFullDestruct() [all …]
|
D | devsvc_manager_proxy.c | 72 …struct IDevSvcManager *inst, struct HdfDeviceObject *service, const struct HdfServiceInfo *servInf… in DevSvcManagerProxyAddService() argument 74 struct DevSvcManagerProxy *serviceProxy = (struct DevSvcManagerProxy *)inst; in DevSvcManagerProxyAddService() 111 static int DevSvcManagerProxyUpdateService(struct IDevSvcManager *inst, in DevSvcManagerProxyUpdateService() argument 114 struct DevSvcManagerProxy *serviceProxy = (struct DevSvcManagerProxy *)inst; in DevSvcManagerProxyUpdateService() 151 struct HdfObject *DevSvcManagerProxyGetService(struct IDevSvcManager *inst, const char *svcName) in DevSvcManagerProxyGetService() argument 158 struct DevSvcManagerProxy *serviceProxy = (struct DevSvcManagerProxy *)inst; in DevSvcManagerProxyGetService() 180 void DevSvcManagerProxyRemoveService(struct IDevSvcManager *inst, const char *svcName, in DevSvcManagerProxyRemoveService() argument 184 if (inst == NULL || svcName == NULL) { in DevSvcManagerProxyRemoveService() 191 struct DevSvcManagerProxy *serviceProxy = (struct DevSvcManagerProxy *)inst; in DevSvcManagerProxyRemoveService() 228 void DevSvcManagerProxyConstruct(struct DevSvcManagerProxy *inst, struct HdfRemoteService *remote) in DevSvcManagerProxyConstruct() argument [all …]
|
D | devmgr_service_proxy.c | 28 int DevmgrServiceProxyAttachDeviceHost(struct IDevmgrService *inst, uint16_t hostId, struct IDevHos… in DevmgrServiceProxyAttachDeviceHost() argument 36 struct DevmgrServiceProxy *serviceProxy = (struct DevmgrServiceProxy *)inst; in DevmgrServiceProxyAttachDeviceHost() 73 int DevmgrServiceProxyAttachDevice(struct IDevmgrService *inst, struct IHdfDeviceToken *token) in DevmgrServiceProxyAttachDevice() argument 78 struct DevmgrServiceProxy *serviceProxy = (struct DevmgrServiceProxy *)inst; in DevmgrServiceProxyAttachDevice() 98 int DevmgrServiceProxyDetachDevice(struct IDevmgrService *inst, devid_t devid) in DevmgrServiceProxyDetachDevice() argument 103 struct DevmgrServiceProxy *serviceProxy = (struct DevmgrServiceProxy *)inst; in DevmgrServiceProxyDetachDevice() 120 static int DevmgrServiceProxyProcessLoad(struct IDevmgrService *inst, const char *svcName, int code) in DevmgrServiceProxyProcessLoad() argument 122 struct DevmgrServiceProxy *serviceProxy = (struct DevmgrServiceProxy *)inst; in DevmgrServiceProxyProcessLoad() 140 int DevmgrServiceProxyLoadDevice(struct IDevmgrService *inst, const char *svcName) in DevmgrServiceProxyLoadDevice() argument 142 return DevmgrServiceProxyProcessLoad(inst, svcName, DEVMGR_SERVICE_LOAD_DEVICE); in DevmgrServiceProxyLoadDevice() [all …]
|
D | devhost_service_stub.c | 115 static void DevHostServiceStubConstruct(struct DevHostServiceStub *inst) in DevHostServiceStubConstruct() argument 119 DevHostServiceFullConstruct(&inst->super); in DevHostServiceStubConstruct() 120 inst->remote = HdfRemoteServiceObtain((struct HdfObject *)inst, &dispatcher); in DevHostServiceStubConstruct() 122 OsalMutexInit(&inst->hostSvcMutex); in DevHostServiceStubConstruct()
|
/drivers/hdf_core/adapter/khdf/uniproton/core/common/src/ |
D | hdf_device_node_ext.c | 38 static int DeviceNodeExtPublishService(struct HdfDeviceNode *inst) in DeviceNodeExtPublishService() argument 40 struct DeviceNodeExt *devNodeExt = (struct DeviceNodeExt *)inst; in DeviceNodeExtPublishService() 45 int ret = HdfDeviceNodePublishPublicService(inst); in DeviceNodeExtPublishService() 53 static void DeviceNodeExtConstruct(struct DeviceNodeExt *inst) in DeviceNodeExtConstruct() argument 55 struct IDeviceNode *nodeIf = (struct IDeviceNode *)inst; in DeviceNodeExtConstruct() 57 HdfDeviceNodeConstruct(&inst->super); in DeviceNodeExtConstruct()
|
/drivers/hdf_core/adapter/khdf/liteos_m/core/common/src/ |
D | hdf_device_node_ext.c | 42 static int DeviceNodeExtPublishService(struct HdfDeviceNode *inst) in DeviceNodeExtPublishService() argument 44 struct DeviceNodeExt *devNodeExt = (struct DeviceNodeExt *)inst; in DeviceNodeExtPublishService() 49 int ret = HdfDeviceNodePublishPublicService(inst); in DeviceNodeExtPublishService() 57 static void DeviceNodeExtConstruct(struct DeviceNodeExt *inst) in DeviceNodeExtConstruct() argument 59 struct IDeviceNode *nodeIf = (struct IDeviceNode *)inst; in DeviceNodeExtConstruct() 61 HdfDeviceNodeConstruct(&inst->super); in DeviceNodeExtConstruct()
|
/drivers/hdf_core/framework/utils/src/ |
D | hdf_message_task.c | 49 void HdfMessageTaskConstruct(struct HdfMessageTask *inst, in HdfMessageTaskConstruct() argument 52 if (inst != NULL && looper != NULL) { in HdfMessageTaskConstruct() 53 inst->SendMessage = HdfMessageTaskSendMessage; in HdfMessageTaskConstruct() 54 inst->messageHandler = handler; in HdfMessageTaskConstruct() 55 inst->messageQueue = &looper->messageQueue; in HdfMessageTaskConstruct() 56 inst->DispatchMessage = HdfMessageTaskDispatchMessage; in HdfMessageTaskConstruct()
|
D | hdf_cstring.c | 51 void HdfCStringRecycle(struct HdfCString *inst) in HdfCStringRecycle() argument 53 if (inst != NULL) { in HdfCStringRecycle() 54 OsalMemFree(inst); in HdfCStringRecycle()
|
/drivers/hdf_core/adapter/uhdf2/host/include/ |
D | devhost_service_full.h | 36 void DevHostServiceFullConstruct(struct DevHostServiceFull *inst); 37 void DevHostServiceFullDestruct(struct DevHostServiceFull *inst);
|
/drivers/hdf_core/framework/core/host/include/ |
D | devhost_service.h | 32 int DevHostServiceAddDevice(struct IDevHostService *inst, const struct HdfDeviceInfo *deviceInfo); 33 int DevHostServiceDelDevice(struct IDevHostService *inst, devid_t devId);
|