Home
last modified time | relevance | path

Searched refs:ioService (Results 1 - 25 of 150) sorted by relevance

123456

/drivers/hdf_core/framework/core/manager/test/unittest/common/
H A Dhdf_pm_test.cpp21 static struct HdfIoService *ioService; member in HdfPmTest
24 struct HdfIoService *HdfPmTest::ioService = nullptr; member in HdfPmTest
28 ioService = HdfIoServiceBind("pm_ut_service"); in SetUpTestCase()
29 ASSERT_TRUE(ioService != nullptr); in SetUpTestCase()
30 ioService->dispatcher->Dispatch(&ioService->object, HDF_PM_TEST_BEGEN, nullptr, nullptr); in SetUpTestCase()
35 ASSERT_TRUE(ioService != nullptr); in TearDownTestCase()
36 ioService->dispatcher->Dispatch(&ioService->object, HDF_PM_TEST_END, nullptr, nullptr); in TearDownTestCase()
37 HdfIoServiceRecycle(ioService); in TearDownTestCase()
[all...]
H A Dhdf_lite_manager_test.cpp83 struct HdfIoService *ioService = HdfIoServiceBind(SAMPLE_SERVICE); in HWTEST_F() local
84 ASSERT_TRUE(ioService != nullptr); in HWTEST_F()
90 ret = ioService->dispatcher->Dispatch(&ioService->object, SAMPLE_DRIVER_REGISTER_DEVICE, data, nullptr); in HWTEST_F()
99 ret = ioService->dispatcher->Dispatch(&ioService->object, SAMPLE_DRIVER_UNREGISTER_DEVICE, data, nullptr); in HWTEST_F()
104 HdfIoServiceRecycle(ioService); in HWTEST_F()
/drivers/hdf_core/framework/core/adapter/syscall/src/
H A Dhdf_devmgr_adapter.c23 struct HdfIoService *ioService = HdfIoServiceBind(DEV_MGR_NODE); in HdfLoadDriverByServiceName() local
24 if (ioService == NULL) { in HdfLoadDriverByServiceName()
39 ret = ioService->dispatcher->Dispatch(&ioService->object, DEVMGR_LOAD_SERVICE, data, NULL); in HdfLoadDriverByServiceName()
44 HdfIoServiceRecycle(ioService); in HdfLoadDriverByServiceName()
57 struct HdfIoService *ioService = HdfIoServiceBind(DEV_MGR_NODE); in HdfGetServiceNameByDeviceClass() local
58 if (ioService == NULL) { in HdfGetServiceNameByDeviceClass()
73 ret = ioService->dispatcher->Dispatch(&ioService->object, DEVMGR_GET_SERVICE, data, reply); in HdfGetServiceNameByDeviceClass()
78 HdfIoServiceRecycle(ioService); in HdfGetServiceNameByDeviceClass()
90 struct HdfIoService *ioService = HdfIoServiceBind(DEV_MGR_NODE); HdfListAllService() local
111 struct HdfIoService *ioService = HdfIoServiceBind(DEV_MGR_NODE); HdfListAllDevice() local
[all...]
/drivers/hdf_core/framework/core/shared/src/
H A Dhdf_io_service.c37 int32_t HdfIoServiceDispatch(struct HdfIoService *ioService, int cmdId, struct HdfSBuf *data, struct HdfSBuf *reply) in HdfIoServiceDispatch() argument
39 if (ioService == NULL || ioService->dispatcher == NULL || ioService->dispatcher->Dispatch == NULL) { in HdfIoServiceDispatch()
43 return ioService->dispatcher->Dispatch(&ioService->object, cmdId, data, reply); in HdfIoServiceDispatch()
/drivers/peripheral/bluetooth/hci/hdi_service/
H A Dhci_interface_driver.cpp30 struct IDeviceIoService ioService; member
34 ioService.object.objectId = 0; in HdfHciInterfaceHost()
35 ioService.Open = nullptr; in HdfHciInterfaceHost()
36 ioService.Release = nullptr; in HdfHciInterfaceHost()
37 ioService.Dispatch = nullptr; in HdfHciInterfaceHost()
44 auto *hdfHciInterfaceHost = CONTAINER_OF(client->device->service, struct HdfHciInterfaceHost, ioService); in HciInterfaceDriverDispatch()
79 hdfHciInterfaceHost->ioService.Dispatch = HciInterfaceDriverDispatch; in HdfHciInterfaceDriverBind()
80 hdfHciInterfaceHost->ioService.Open = NULL; in HdfHciInterfaceDriverBind()
81 hdfHciInterfaceHost->ioService.Release = NULL; in HdfHciInterfaceDriverBind()
98 deviceObject->service = &hdfHciInterfaceHost->ioService; in HdfHciInterfaceDriverBind()
[all...]
/drivers/peripheral/battery/interfaces/hdi_service/src/
H A Dbattery_interface_driver.cpp26 struct IDeviceIoService ioService; member
34 auto *hdfBatteryInterfaceHost = CONTAINER_OF(client->device->service, struct HdfBatteryInterfaceHost, ioService); in BatteryInterfaceDriverDispatch()
65 hdfBatteryInterfaceHost->ioService.Dispatch = BatteryInterfaceDriverDispatch; in HdfBatteryInterfaceDriverBind()
66 hdfBatteryInterfaceHost->ioService.Open = nullptr; in HdfBatteryInterfaceDriverBind()
67 hdfBatteryInterfaceHost->ioService.Release = nullptr; in HdfBatteryInterfaceDriverBind()
84 deviceObject->service = &hdfBatteryInterfaceHost->ioService; in HdfBatteryInterfaceDriverBind()
95 auto *hdfBatteryInterfaceHost = CONTAINER_OF(deviceObject->service, struct HdfBatteryInterfaceHost, ioService); in HdfBatteryInterfaceDriverRelease()
/drivers/peripheral/codec/hal/idl_service/src/
H A Dcodec_component_manager_driver.cpp27 struct IDeviceIoService ioService; member
36 CONTAINER_OF(client->device->service, struct HdfCodecComponentManagerHost, ioService); in CodecComponentManagerDriverDispatch()
73 hdfCodecComponentManagerHost->ioService.Dispatch = CodecComponentManagerDriverDispatch; in HdfCodecComponentManagerDriverBind()
74 hdfCodecComponentManagerHost->ioService.Open = NULL; in HdfCodecComponentManagerDriverBind()
75 hdfCodecComponentManagerHost->ioService.Release = NULL; in HdfCodecComponentManagerDriverBind()
92 deviceObject->service = &hdfCodecComponentManagerHost->ioService; in HdfCodecComponentManagerDriverBind()
105 CONTAINER_OF(deviceObject->service, struct HdfCodecComponentManagerHost, ioService); in HdfCodecComponentManagerDriverRelease()
/drivers/peripheral/input/hdi_service/
H A Dinput_interfaces_driver.cpp25 struct IDeviceIoService ioService; member
32 auto *hdfInputInterfacesHost = CONTAINER_OF(client->device->service, struct HdfInputInterfacesHost, ioService); in InputInterfacesDriverDispatch()
66 hdfInputInterfacesHost->ioService.Dispatch = InputInterfacesDriverDispatch; in HdfInputInterfacesDriverBind()
67 hdfInputInterfacesHost->ioService.Open = nullptr; in HdfInputInterfacesDriverBind()
68 hdfInputInterfacesHost->ioService.Release = nullptr; in HdfInputInterfacesDriverBind()
85 deviceObject->service = &hdfInputInterfacesHost->ioService; in HdfInputInterfacesDriverBind()
97 auto *hdfInputInterfacesHost = CONTAINER_OF(deviceObject->service, struct HdfInputInterfacesHost, ioService); in HdfInputInterfacesDriverRelease()
/drivers/peripheral/light/hdi_service/
H A Dlight_if_driver.cpp28 struct IDeviceIoService ioService; member
35 auto *hdfLightInterfaceHost = CONTAINER_OF(client->device->service, struct HdfLightInterfaceHost, ioService); in LightInterfaceDriverDispatch()
69 hdfLightInterfaceHost->ioService.Dispatch = LightInterfaceDriverDispatch; in HdfLightInterfaceDriverBind()
70 hdfLightInterfaceHost->ioService.Open = nullptr; in HdfLightInterfaceDriverBind()
71 hdfLightInterfaceHost->ioService.Release = nullptr; in HdfLightInterfaceDriverBind()
88 deviceObject->service = &hdfLightInterfaceHost->ioService; in HdfLightInterfaceDriverBind()
101 auto *hdfLightInterfaceHost = CONTAINER_OF(deviceObject->service, struct HdfLightInterfaceHost, ioService); in HdfLightInterfaceDriverRelease()
/drivers/peripheral/partitionslot/hdi_service/src/
H A Dpartition_slot_driver.cpp25 struct IDeviceIoService ioService; member
32 auto *hdfPartitionSlotHost = CONTAINER_OF(client->device->service, struct HdfPartitionSlotHost, ioService); in PartitionSlotDriverDispatch()
66 hdfPartitionSlotHost->ioService.Dispatch = PartitionSlotDriverDispatch; in HdfPartitionSlotDriverBind()
67 hdfPartitionSlotHost->ioService.Open = NULL; in HdfPartitionSlotDriverBind()
68 hdfPartitionSlotHost->ioService.Release = NULL; in HdfPartitionSlotDriverBind()
85 deviceObject->service = &hdfPartitionSlotHost->ioService; in HdfPartitionSlotDriverBind()
97 auto *hdfPartitionSlotHost = CONTAINER_OF(deviceObject->service, struct HdfPartitionSlotHost, ioService); in HdfPartitionSlotDriverRelease()
/drivers/peripheral/power/interfaces/hdi_service/src/
H A Dpower_interface_driver.cpp28 struct IDeviceIoService ioService; member
36 auto *hdfPowerInterfaceHost = CONTAINER_OF(client->device->service, struct HdfPowerInterfaceHost, ioService); in PowerInterfaceDriverDispatch()
70 hdfPowerInterfaceHost->ioService.Dispatch = PowerInterfaceDriverDispatch; in HdfPowerInterfaceDriverBind()
71 hdfPowerInterfaceHost->ioService.Open = NULL; in HdfPowerInterfaceDriverBind()
72 hdfPowerInterfaceHost->ioService.Release = NULL; in HdfPowerInterfaceDriverBind()
89 deviceObject->service = &hdfPowerInterfaceHost->ioService; in HdfPowerInterfaceDriverBind()
101 auto *hdfPowerInterfaceHost = CONTAINER_OF(deviceObject->service, struct HdfPowerInterfaceHost, ioService); in HdfPowerInterfaceDriverRelease()
/drivers/peripheral/memorytracker/hdi_service/src/
H A Dmemorytracker_interface_driver.cpp26 struct IDeviceIoService ioService; member
34 ioService); in MemoryTrackerInterfaceDriverDispatch()
68 hdfMemoryTrackerInterfaceHost->ioService.Dispatch = MemoryTrackerInterfaceDriverDispatch; in HdfMemoryTrackerInterfaceDriverBind()
69 hdfMemoryTrackerInterfaceHost->ioService.Open = NULL; in HdfMemoryTrackerInterfaceDriverBind()
70 hdfMemoryTrackerInterfaceHost->ioService.Release = NULL; in HdfMemoryTrackerInterfaceDriverBind()
87 deviceObject->service = &hdfMemoryTrackerInterfaceHost->ioService; in HdfMemoryTrackerInterfaceDriverBind()
95 ioService); in HdfMemoryTrackerInterfaceDriverRelease()
/drivers/peripheral/sensor/hdi_service/
H A Dsensor_if_driver.cpp29 struct IDeviceIoService ioService; member
36 auto *hdfSensorInterfaceHost = CONTAINER_OF(client->device->service, struct HdfSensorInterfaceHost, ioService); in SensorInterfaceDriverDispatch()
69 hdfSensorInterfaceHost->ioService.Dispatch = SensorInterfaceDriverDispatch; in HdfSensorInterfaceDriverBind()
70 hdfSensorInterfaceHost->ioService.Open = nullptr; in HdfSensorInterfaceDriverBind()
71 hdfSensorInterfaceHost->ioService.Release = nullptr; in HdfSensorInterfaceDriverBind()
88 deviceObject->service = &hdfSensorInterfaceHost->ioService; in HdfSensorInterfaceDriverBind()
100 auto *hdfSensorInterfaceHost = CONTAINER_OF(deviceObject->service, struct HdfSensorInterfaceHost, ioService); in HdfSensorInterfaceDriverRelease()
/drivers/hdf_core/framework/core/common/src/
H A Dhdf_device_node_ext.c69 devNodeExt->ioService = HdfIoServicePublish(devNode->servName, devNode->permission); in DeviceNodeExtPublishService()
70 if (devNodeExt->ioService != NULL) { in DeviceNodeExtPublishService()
71 devNodeExt->ioService->target = (struct HdfObject *)(deviceObject); in DeviceNodeExtPublishService()
72 devNodeExt->ioService->dispatcher = &dispatcher; in DeviceNodeExtPublishService()
83 HdfIoServiceRemove(devNodeExt->ioService); in DeviceNodeExtPublishService()
84 devNodeExt->ioService = NULL; in DeviceNodeExtPublishService()
99 HdfIoServiceRemove(devNodeExt->ioService); in DeviceNodeExtRemoveService()
100 devNodeExt->ioService = NULL; in DeviceNodeExtRemoveService()
130 instance->ioService = NULL; in DeviceNodeExtCreate()
/drivers/peripheral/location/geofence/hdi_service/
H A Dgeofence_interface_driver.cpp25 struct IDeviceIoService ioService; member
30 ioService.object.objectId = 0; in HdfGeofenceInterfaceHost()
31 ioService.Open = nullptr; in HdfGeofenceInterfaceHost()
32 ioService.Release = nullptr; in HdfGeofenceInterfaceHost()
33 ioService.Dispatch = nullptr; in HdfGeofenceInterfaceHost()
40 auto *hdfGeofenceInterfaceHost = CONTAINER_OF(client->device->service, struct HdfGeofenceInterfaceHost, ioService); in GeofenceInterfaceDriverDispatch()
74 hdfGeofenceInterfaceHost->ioService.Dispatch = GeofenceInterfaceDriverDispatch; in HdfGeofenceInterfaceDriverBind()
91 deviceObject->service = &hdfGeofenceInterfaceHost->ioService; in HdfGeofenceInterfaceDriverBind()
103 auto *hdfGeofenceInterfaceHost = CONTAINER_OF(deviceObject->service, struct HdfGeofenceInterfaceHost, ioService); in HdfGeofenceInterfaceDriverRelease()
/drivers/peripheral/location/agnss/hdi_service/
H A Dagnss_interface_driver.cpp25 struct IDeviceIoService ioService; member
30 ioService.object.objectId = 0; in HdfAGnssInterfaceHost()
31 ioService.Open = nullptr; in HdfAGnssInterfaceHost()
32 ioService.Release = nullptr; in HdfAGnssInterfaceHost()
33 ioService.Dispatch = nullptr; in HdfAGnssInterfaceHost()
40 auto *hdfAGnssInterfaceHost = CONTAINER_OF(client->device->service, struct HdfAGnssInterfaceHost, ioService); in AGnssInterfaceDriverDispatch()
74 hdfAGnssInterfaceHost->ioService.Dispatch = AGnssInterfaceDriverDispatch; in HdfAGnssInterfaceDriverBind()
91 deviceObject->service = &hdfAGnssInterfaceHost->ioService; in HdfAGnssInterfaceDriverBind()
103 auto *hdfAGnssInterfaceHost = CONTAINER_OF(deviceObject->service, struct HdfAGnssInterfaceHost, ioService); in HdfAGnssInterfaceDriverRelease()
/drivers/peripheral/location/gnss/hdi_service/
H A Dgnss_interface_driver.cpp25 struct IDeviceIoService ioService; member
30 ioService.object.objectId = 0; in HdfGnssInterfaceHost()
31 ioService.Open = nullptr; in HdfGnssInterfaceHost()
32 ioService.Release = nullptr; in HdfGnssInterfaceHost()
33 ioService.Dispatch = nullptr; in HdfGnssInterfaceHost()
40 auto *hdfGnssInterfaceHost = CONTAINER_OF(client->device->service, struct HdfGnssInterfaceHost, ioService); in GnssInterfaceDriverDispatch()
74 hdfGnssInterfaceHost->ioService.Dispatch = GnssInterfaceDriverDispatch; in HdfGnssInterfaceDriverBind()
91 deviceObject->service = &hdfGnssInterfaceHost->ioService; in HdfGnssInterfaceDriverBind()
103 auto *hdfGnssInterfaceHost = CONTAINER_OF(deviceObject->service, struct HdfGnssInterfaceHost, ioService); in HdfGnssInterfaceDriverRelease()
/drivers/peripheral/audio/effect/host/
H A Daudio_effect_driver.c27 struct IDeviceIoService ioService; member
41 CONTAINER_OF(client->device->service, struct HdfEffectModelHost, ioService); in EffectModelDriverDispatch()
103 effectModelHost->ioService.Dispatch = EffectModelDriverDispatch; in HdfEffectModelDriverBind()
104 effectModelHost->ioService.Open = NULL; in HdfEffectModelDriverBind()
105 effectModelHost->ioService.Release = NULL; in HdfEffectModelDriverBind()
108 deviceObject->service = &effectModelHost->ioService; in HdfEffectModelDriverBind()
122 CONTAINER_OF(deviceObject->service, struct HdfEffectModelHost, ioService); in HdfEffectModelDriverRelease()
/drivers/peripheral/camera/interfaces/hdi_ipc/
H A Dcamera_host_driver.cpp25 struct IDeviceIoService ioService; member
32 auto *hdfCameraHostHost = CONTAINER_OF(client->device->service, struct HdfCameraHostHost, ioService); in CameraHostDriverDispatch()
73 hdfCameraHostHost->ioService.Dispatch = CameraHostDriverDispatch; in HdfCameraHostDriverBind()
74 hdfCameraHostHost->ioService.Open = NULL; in HdfCameraHostDriverBind()
75 hdfCameraHostHost->ioService.Release = NULL; in HdfCameraHostDriverBind()
92 deviceObject->service = &hdfCameraHostHost->ioService; in HdfCameraHostDriverBind()
109 auto *hdfCameraHostHost = CONTAINER_OF(deviceObject->service, struct HdfCameraHostHost, ioService); in HdfCameraHostDriverRelease()
/drivers/peripheral/audio/hdi_service/primary/
H A Daudio_manager_driver.c28 struct IDeviceIoService ioService; member
42 CONTAINER_OF(client->device->service, struct HdfAudioManagerHost, ioService); in AudioManagerDriverDispatch()
110 audiomanagerHost->ioService.Dispatch = AudioManagerDriverDispatch; in HdfAudioManagerDriverBind()
111 audiomanagerHost->ioService.Open = NULL; in HdfAudioManagerDriverBind()
112 audiomanagerHost->ioService.Release = NULL; in HdfAudioManagerDriverBind()
115 deviceObject->service = &audiomanagerHost->ioService; in HdfAudioManagerDriverBind()
129 CONTAINER_OF(deviceObject->service, struct HdfAudioManagerHost, ioService); in HdfAudioManagerDriverRelease()
/drivers/peripheral/clearplay/interfaces/src/
H A Dmedia_key_system_factory_driver.cpp29 struct IDeviceIoService ioService; member
37 CONTAINER_OF(client->device->service, struct HdfMediaKeySystemFactoryHost, ioService); in MediaKeySystemFactoryDriverDispatch()
74 hdfMediaKeySystemFactoryHost->ioService.Dispatch = MediaKeySystemFactoryDriverDispatch; in HdfMediaKeySystemFactoryDriverBind()
75 hdfMediaKeySystemFactoryHost->ioService.Open = NULL; in HdfMediaKeySystemFactoryDriverBind()
76 hdfMediaKeySystemFactoryHost->ioService.Release = NULL; in HdfMediaKeySystemFactoryDriverBind()
93 deviceObject->service = &hdfMediaKeySystemFactoryHost->ioService; in HdfMediaKeySystemFactoryDriverBind()
105 CONTAINER_OF(deviceObject->service, struct HdfMediaKeySystemFactoryHost, ioService); in HdfMediaKeySystemFactoryDriverRelease()
/drivers/peripheral/codec/image/hdi_service/src/
H A Dcodec_image_driver.cpp27 struct IDeviceIoService ioService; member
34 auto *hdfCodecImageHost = CONTAINER_OF(client->device->service, struct HdfCodecImageHost, ioService); in CodecImageDriverDispatch()
72 hdfCodecImageHost->ioService.Dispatch = CodecImageDriverDispatch; in HdfCodecImageDriverBind()
73 hdfCodecImageHost->ioService.Open = NULL; in HdfCodecImageDriverBind()
74 hdfCodecImageHost->ioService.Release = NULL; in HdfCodecImageDriverBind()
91 deviceObject->service = &hdfCodecImageHost->ioService; in HdfCodecImageDriverBind()
102 auto *hdfCodecImageHost = CONTAINER_OF(deviceObject->service, struct HdfCodecImageHost, ioService); in HdfCodecImageDriverRelease()
/drivers/peripheral/connected_nfc_tag/hdi_service/
H A Dconnected_nfc_tag_driver.cpp27 struct IDeviceIoService ioService; member
35 CONTAINER_OF(client->device->service, struct HdfConnectedNfcTagHost, ioService); in ConnectedNfcTagDriverDispatch()
69 hdfConnectedNfcTagHost->ioService.Dispatch = ConnectedNfcTagDriverDispatch; in HdfConnectedNfcTagDriverBind()
70 hdfConnectedNfcTagHost->ioService.Open = nullptr; in HdfConnectedNfcTagDriverBind()
71 hdfConnectedNfcTagHost->ioService.Release = nullptr; in HdfConnectedNfcTagDriverBind()
88 deviceObject->service = &hdfConnectedNfcTagHost->ioService; in HdfConnectedNfcTagDriverBind()
102 CONTAINER_OF(deviceObject->service, struct HdfConnectedNfcTagHost, ioService); in HdfConnectedNfcTagDriverRelease()
/drivers/peripheral/display/buffer/hdi_service/src/
H A Dallocator_driver.cpp30 struct IDeviceIoService ioService; member
42 CONTAINER_OF(client->device->service, struct HdfAllocatorHost, ioService); in AllocatorDriverDispatch()
75 hdfAllocatorHost->ioService.Dispatch = AllocatorDriverDispatch; in HdfAllocatorDriverBind()
76 hdfAllocatorHost->ioService.Open = NULL; in HdfAllocatorDriverBind()
78 hdfAllocatorHost->ioService.Release = NULL; in HdfAllocatorDriverBind()
95 deviceObject->service = &hdfAllocatorHost->ioService; in HdfAllocatorDriverBind()
107 auto* hdfAllocatorHost = CONTAINER_OF(deviceObject->service, struct HdfAllocatorHost, ioService); in HdfAllocatorDriverRelease()
H A Dmapper_driver.cpp31 struct IDeviceIoService ioService; member
42 auto* hdfMapperHost = CONTAINER_OF(client->device->service, struct HdfMapperHost, ioService); in MapperDriverDispatch()
75 hdfMapperHost->ioService.Dispatch = MapperDriverDispatch; in HdfMapperDriverBind()
76 hdfMapperHost->ioService.Open = NULL; in HdfMapperDriverBind()
77 hdfMapperHost->ioService.Release = NULL; in HdfMapperDriverBind()
95 deviceObject->service = &hdfMapperHost->ioService; in HdfMapperDriverBind()
107 auto* hdfMapperHost = CONTAINER_OF(deviceObject->service, struct HdfMapperHost, ioService); in HdfMapperDriverRelease()

Completed in 8 milliseconds

123456