/drivers/hdf_core/framework/core/host/src/ |
D | devsvc_manager_clnt.c | 57 const struct HdfObject *DevSvcManagerClntGetService(const char *svcName) in DevSvcManagerClntGetService() argument 71 return serviceManager->GetService(serviceManager, svcName); in DevSvcManagerClntGetService() 74 struct HdfDeviceObject *DevSvcManagerClntGetDeviceObject(const char *svcName) in DevSvcManagerClntGetDeviceObject() argument 88 return serviceManager->GetObject(serviceManager, svcName); in DevSvcManagerClntGetDeviceObject() 91 int DevSvcManagerClntSubscribeService(const char *svcName, struct SubscriberCallback callback) in DevSvcManagerClntSubscribeService() argument 95 if (devSvcMgrClnt == NULL || svcName == NULL) { in DevSvcManagerClntSubscribeService() 105 return serviceManager->SubscribeService(serviceManager, svcName, callback); in DevSvcManagerClntSubscribeService() 108 int DevSvcManagerClntUnsubscribeService(const char *svcName) in DevSvcManagerClntUnsubscribeService() argument 112 if (devSvcMgrClnt == NULL || svcName == NULL) { in DevSvcManagerClntUnsubscribeService() 122 return serviceManager->UnsubscribeService(serviceManager, svcName); in DevSvcManagerClntUnsubscribeService() [all …]
|
D | hdf_service_observer.c | 40 …struct HdfServiceObserver *observer, const char *svcName, devid_t deviceId, struct SubscriberCallb… in HdfServiceObserverSubscribeService() argument 44 uint32_t serviceKey = HdfStringMakeHashKey(svcName, 0); in HdfServiceObserverSubscribeService() 45 if ((observer == NULL) || (svcName == NULL)) { in HdfServiceObserverSubscribeService() 84 int HdfServiceObserverPublishService(struct HdfServiceObserver *observer, const char *svcName, devi… in HdfServiceObserverPublishService() argument 88 uint32_t serviceKey = HdfStringMakeHashKey(svcName, 0); in HdfServiceObserverPublishService() 89 if ((observer == NULL) || (svcName == NULL)) { in HdfServiceObserverPublishService() 114 void HdfServiceObserverRemoveRecord(struct HdfServiceObserver *observer, const char *svcName) in HdfServiceObserverRemoveRecord() argument 117 uint32_t serviceKey = HdfStringMakeHashKey(svcName, 0); in HdfServiceObserverRemoveRecord() 118 if ((observer == NULL) || (svcName == NULL)) { in HdfServiceObserverRemoveRecord()
|
/drivers/hdf_core/adapter/khdf/uniproton/core/common/src/ |
D | devmgr_service_start.c | 56 int32_t HdfLoadDriverByServiceName(const char *svcName) in HdfLoadDriverByServiceName() argument 58 if (svcName == NULL) { in HdfLoadDriverByServiceName() 66 return DevSvcManagerClntSubscribeService(svcName, callback); in HdfLoadDriverByServiceName() 69 int DeviceManagerUnloadService(const char *svcName) in DeviceManagerUnloadService() argument 71 if (svcName == NULL) { in DeviceManagerUnloadService() 75 return DevSvcManagerClntUnsubscribeService(svcName); in DeviceManagerUnloadService()
|
/drivers/hdf_core/framework/core/host/include/ |
D | devsvc_manager_clnt.h | 23 struct HdfDeviceObject *DevSvcManagerClntGetDeviceObject(const char *svcName); 26 void DevSvcManagerClntRemoveService(const char *svcName); 27 int DevSvcManagerClntSubscribeService(const char *svcName, struct SubscriberCallback callback); 28 int DevSvcManagerClntUnsubscribeService(const char *svcName);
|
D | hdf_service_observer.h | 25 const char *svcName, devid_t deviceId, uint16_t policy, struct HdfObject *service); 27 const char *svcName, devid_t deviceId, struct SubscriberCallback callback); 28 void HdfServiceObserverRemoveRecord(struct HdfServiceObserver *observer, const char *svcName);
|
/drivers/hdf_core/adapter/uhdf2/shared/src/ |
D | dev_attribute_serialize.c | 33 !HdfSbufWriteString(sbuf, attribute->svcName) || in DeviceAttributeSerialize() 57 const char *svcName = HdfSbufReadString(sbuf); in DeviceAttributeSet() local 58 if (svcName == NULL) { in DeviceAttributeSet() 62 attribute->svcName = strdup(svcName); in DeviceAttributeSet() 63 if (attribute->svcName == NULL) { in DeviceAttributeSet() 142 if (attribute->svcName != NULL) { in DeviceSerializedAttributeRelease() 143 OsalMemFree((void *)attribute->svcName); in DeviceSerializedAttributeRelease()
|
/drivers/hdf_core/framework/core/manager/test/unittest/common/ |
D | hdf_lite_manager_test.cpp | 54 const char *svcName = "khdf_ut"; variable 55 struct HdfIoService *hdfSvc = HdfIoServiceBind(svcName); 125 const char *svcName = nullptr; variable 127 svcName = HdfSbufReadString(data); 128 if (svcName == nullptr) { 131 std::cout << svcName << std::endl; 132 if (strcmp(svcName, "sample_service") == 0) {
|
/drivers/hdf_core/framework/core/manager/include/ |
D | devsvc_manager.h | 34 struct HdfObject *DevSvcManagerGetService(struct IDevSvcManager *inst, const char *svcName); 36 struct IDevSvcManager *inst, const char *svcName, const struct HdfDeviceObject *devObj); 41 int DevSvcManagerClntSubscribeService(const char *svcName, struct SubscriberCallback callback); 42 int DevSvcManagerClntUnsubscribeService(const char *svcName);
|
/drivers/hdf_core/adapter/khdf/liteos_m/core/common/src/ |
D | devmgr_service_start.c | 58 int32_t HdfLoadDriverByServiceName(const char *svcName) in HdfLoadDriverByServiceName() argument 60 if (svcName == NULL) { in HdfLoadDriverByServiceName() 68 return DevSvcManagerClntSubscribeService(svcName, callback); in HdfLoadDriverByServiceName() 71 int DeviceManagerUnloadService(const char *svcName) in DeviceManagerUnloadService() argument 73 if (svcName == NULL) { in DeviceManagerUnloadService() 77 return DevSvcManagerClntUnsubscribeService(svcName); in DeviceManagerUnloadService()
|
/drivers/hdf_core/adapter/uhdf2/host/src/ |
D | hdf_devsvc_manager_clnt.c | 20 struct HdfRemoteService *HdfManagerClntGetService(const char *svcName) in HdfManagerClntGetService() argument 22 return (struct HdfRemoteService *)DevSvcManagerClntGetService(svcName); in HdfManagerClntGetService()
|
D | devmgr_service_proxy.c | 103 static int DevmgrServiceProxyProcessLoad(struct IDevmgrService *inst, const char *svcName, int code) in DevmgrServiceProxyProcessLoad() argument 106 if (serviceProxy == NULL || serviceProxy->remote == NULL || svcName == NULL) { in DevmgrServiceProxyProcessLoad() 113 …(!HdfRemoteServiceWriteInterfaceToken(remoteService, data) || !HdfSbufWriteString(data, svcName)) { in DevmgrServiceProxyProcessLoad() 123 int DevmgrServiceProxyLoadDevice(struct IDevmgrService *inst, const char *svcName) in DevmgrServiceProxyLoadDevice() argument 125 return DevmgrServiceProxyProcessLoad(inst, svcName, DEVMGR_SERVICE_LOAD_DEVICE); in DevmgrServiceProxyLoadDevice() 128 int DevmgrServiceProxyUnLoadDevice(struct IDevmgrService *inst, const char *svcName) in DevmgrServiceProxyUnLoadDevice() argument 130 return DevmgrServiceProxyProcessLoad(inst, svcName, DEVMGR_SERVICE_UNLOAD_DEVICE); in DevmgrServiceProxyUnLoadDevice()
|
D | devsvc_manager_proxy.c | 151 struct HdfObject *DevSvcManagerProxyGetService(struct IDevSvcManager *inst, const char *svcName) in DevSvcManagerProxyGetService() argument 165 …moteServiceWriteInterfaceToken(serviceProxy->remote, data) || !HdfSbufWriteString(data, svcName)) { in DevSvcManagerProxyGetService() 180 void DevSvcManagerProxyRemoveService(struct IDevSvcManager *inst, const char *svcName, in DevSvcManagerProxyRemoveService() argument 184 if (inst == NULL || svcName == NULL) { in DevSvcManagerProxyRemoveService() 200 …moteServiceWriteInterfaceToken(serviceProxy->remote, data) || !HdfSbufWriteString(data, svcName)) { in DevSvcManagerProxyRemoveService()
|
/drivers/hdf_core/framework/core/common/src/ |
D | devmgr_service_start.c | 69 const char *svcName = NULL; in DeviceManagerDispatch() local 83 svcName = HdfSbufReadString(data); in DeviceManagerDispatch() 84 ret = DevSvcManagerClntSubscribeService(svcName, callback); in DeviceManagerDispatch() 87 svcName = HdfSbufReadString(data); in DeviceManagerDispatch() 88 ret = DevSvcManagerClntUnsubscribeService(svcName); in DeviceManagerDispatch()
|
D | hdf_attribute_macro.c | 143 deviceNodeInfo->svcName = deviceNode->svcName; in GetDeviceNodeInfo() 171 HDF_LOGE("%s: failed to add device info to list %s", __func__, devInfo->svcName); in GetDevcieNodeList()
|
D | hdf_attribute.c | 172 if (HcsGetString(deviceNode, ATTR_DEV_SVCNAME, &deviceNodeInfo->svcName, NULL) != HDF_SUCCESS) { in GetDeviceNodeInfo() 202 … HDF_LOGE("%s: failed to add device info to list %s", __func__, deviceNodeInfo->svcName); in GetDevcieNodeList()
|
/drivers/hdf_core/adapter/uhdf2/manager/src/ |
D | devmgr_query_device.c | 50 … deviceInfo->svcName, deviceInfo->policy, deviceInfo->status, deviceInfo->deviceType); in DevFillQueryDeviceInfo() 53 flag = HdfSbufWriteString(reply, deviceInfo->svcName); in DevFillQueryDeviceInfo() 55 … HDF_LOGE("%{public}s writing string failed %{public}s", __func__, deviceInfo->svcName); in DevFillQueryDeviceInfo()
|
/drivers/hdf_core/framework/core/manager/src/ |
D | devsvc_manager.c | 165 int DevSvcManagerSubscribeService(struct IDevSvcManager *inst, const char *svcName, struct Subscrib… in DevSvcManagerSubscribeService() argument 169 if (inst == NULL || svcName == NULL || devMgrSvc == NULL) { in DevSvcManagerSubscribeService() 173 deviceService = DevSvcManagerGetService(inst, svcName); in DevSvcManagerSubscribeService() 181 return devMgrSvc->super.LoadDevice(&devMgrSvc->super, svcName); in DevSvcManagerSubscribeService() 184 void DevSvcManagerRemoveService(struct IDevSvcManager *inst, const char *svcName, const struct HdfD… in DevSvcManagerRemoveService() argument 188 uint32_t serviceKey = HdfStringMakeHashKey(svcName, 0); in DevSvcManagerRemoveService() 191 if (svcName == NULL || devSvcManager == NULL) { in DevSvcManagerRemoveService() 210 HDF_LOGI("%{public}s %{public}s device object is out of date", __func__, svcName); in DevSvcManagerRemoveService() 214 struct HdfDeviceObject *DevSvcManagerGetObject(struct IDevSvcManager *inst, const char *svcName) in DevSvcManagerGetObject() argument 216 uint32_t serviceKey = HdfStringMakeHashKey(svcName, 0); in DevSvcManagerGetObject() [all …]
|
/drivers/peripheral/sensor/hal/src/ |
D | sensor_manager.c | 47 const char *svcName = NULL; in GetSensorServiceList() local 59 svcName = HdfSbufReadString(data); in GetSensorServiceList() 60 if (svcName == NULL) { in GetSensorServiceList() 70 managerNode->ioService = HdfIoServiceBind(svcName); in GetSensorServiceList() 72 …_LOGE("%{public}s: Sensor manager get manager service name[%{public}s] failed", __func__, svcName); in GetSensorServiceList()
|
/drivers/hdf_core/framework/core/shared/include/ |
D | hdf_attribute_macro.h | 37 const char *svcName; member 56 deviceNode->svcName = HCS_PROP(node, serviceName); \
|
/drivers/hdf_core/interfaces/inner_api/host/shared/ |
D | hdf_device_info.h | 39 const char *svcName; member
|
D | hdf_device_desc.h | 254 const struct HdfObject *DevSvcManagerClntGetService(const char *svcName);
|
/drivers/hdf_core/interfaces/inner_api/hdi/ |
D | devmgr_hdi.h | 64 char *svcName; member
|
/drivers/hdf_core/framework/core/shared/src/ |
D | hdf_device_info.c | 29 deviceInfo->svcName = NULL; in HdfDeviceInfoConstruct()
|
/drivers/hdf_core/framework/model/input/driver/ |
D | hdf_input_device_manager.c | 48 char svcName[SERVICE_NAME_LEN] = {0}; in HidRegisterHdfDevice() local 53 int32_t ret = snprintf_s(svcName, SERVICE_NAME_LEN, strlen("hdf_input_event") + len, "%s%u", in HidRegisterHdfDevice() 71 …ret = HdfDeviceObjectPublishService(hdfDev, svcName, SERVICE_POLICY_CAPACITY, 0664); // 0664:permi… in HidRegisterHdfDevice() 78 HDF_LOGI("%s: svcName is %s, devName = %s", __func__, svcName, inputDev->devName); in HidRegisterHdfDevice()
|
/drivers/hdf_core/adapter/uhdf2/hdi/src/ |
D | devmgr_client.c | 59 node->svcName = base + sizeof(*node); in HdfObtainDeviceInfo() 60 if (strcpy_s(node->svcName, svrNameLen, svrName) != EOK) { in HdfObtainDeviceInfo()
|