Home
last modified time | relevance | path

Searched refs:svcName (Results 1 – 25 of 30) sorted by relevance

12

/drivers/hdf_core/framework/core/host/src/
Ddevsvc_manager_clnt.c57 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 …]
Dhdf_service_observer.c40 …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/
Ddevmgr_service_start.c56 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/
Ddevsvc_manager_clnt.h23 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);
Dhdf_service_observer.h25 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/
Ddev_attribute_serialize.c33 !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/
Dhdf_lite_manager_test.cpp54 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/
Ddevsvc_manager.h34 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/
Ddevmgr_service_start.c58 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/
Dhdf_devsvc_manager_clnt.c20 struct HdfRemoteService *HdfManagerClntGetService(const char *svcName) in HdfManagerClntGetService() argument
22 return (struct HdfRemoteService *)DevSvcManagerClntGetService(svcName); in HdfManagerClntGetService()
Ddevmgr_service_proxy.c103 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()
Ddevsvc_manager_proxy.c151 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/
Ddevmgr_service_start.c69 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()
Dhdf_attribute_macro.c143 deviceNodeInfo->svcName = deviceNode->svcName; in GetDeviceNodeInfo()
171 HDF_LOGE("%s: failed to add device info to list %s", __func__, devInfo->svcName); in GetDevcieNodeList()
Dhdf_attribute.c172 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/
Ddevmgr_query_device.c50 … 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/
Ddevsvc_manager.c165 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/
Dsensor_manager.c47 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/
Dhdf_attribute_macro.h37 const char *svcName; member
56 deviceNode->svcName = HCS_PROP(node, serviceName); \
/drivers/hdf_core/interfaces/inner_api/host/shared/
Dhdf_device_info.h39 const char *svcName; member
Dhdf_device_desc.h254 const struct HdfObject *DevSvcManagerClntGetService(const char *svcName);
/drivers/hdf_core/interfaces/inner_api/hdi/
Ddevmgr_hdi.h64 char *svcName; member
/drivers/hdf_core/framework/core/shared/src/
Dhdf_device_info.c29 deviceInfo->svcName = NULL; in HdfDeviceInfoConstruct()
/drivers/hdf_core/framework/model/input/driver/
Dhdf_input_device_manager.c48 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/
Ddevmgr_client.c59 node->svcName = base + sizeof(*node); in HdfObtainDeviceInfo()
60 if (strcpy_s(node->svcName, svrNameLen, svrName) != EOK) { in HdfObtainDeviceInfo()

12