/drivers/hdf_core/framework/core/manager/test/unittest/common/ |
D | hdf_pm_test.cpp | 21 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() 56 ASSERT_TRUE(ioService != nullptr); 58 …int32_t ret = ioService->dispatcher->Dispatch(&ioService->object, HDF_PM_TEST_ONE_DRIVER_ONCE, nul… [all …]
|
/drivers/hdf_core/framework/core/adapter/syscall/src/ |
D | hdf_devmgr_adapter.c | 23 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); in HdfListAllService() local 91 if (ioService == NULL) { in HdfListAllService() [all …]
|
/drivers/peripheral/bluetooth/hci/hdi_service/ |
D | hci_interface_driver.cpp | 25 struct IDeviceIoService ioService; member 29 ioService.object.objectId = 0; in HdfHciInterfaceHost() 30 ioService.Open = nullptr; in HdfHciInterfaceHost() 31 ioService.Release = nullptr; in HdfHciInterfaceHost() 32 ioService.Dispatch = nullptr; in HdfHciInterfaceHost() 39 …hdfHciInterfaceHost = CONTAINER_OF(client->device->service, struct HdfHciInterfaceHost, ioService); in HciInterfaceDriverDispatch() 74 hdfHciInterfaceHost->ioService.Dispatch = HciInterfaceDriverDispatch; in HdfHciInterfaceDriverBind() 75 hdfHciInterfaceHost->ioService.Open = NULL; in HdfHciInterfaceDriverBind() 76 hdfHciInterfaceHost->ioService.Release = NULL; in HdfHciInterfaceDriverBind() 93 deviceObject->service = &hdfHciInterfaceHost->ioService; in HdfHciInterfaceDriverBind() [all …]
|
/drivers/hdf_core/framework/core/shared/src/ |
D | hdf_io_service.c | 37 int32_t HdfIoServiceDispatch(struct HdfIoService *ioService, int cmdId, struct HdfSBuf *data, struc… 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/location/geofence/hdi_service/ |
D | geofence_interface_driver.cpp | 25 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 …eInterfaceHost = 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 …nceInterfaceHost = CONTAINER_OF(deviceObject->service, struct HdfGeofenceInterfaceHost, ioService); in HdfGeofenceInterfaceDriverRelease()
|
/drivers/peripheral/location/agnss/hdi_service/ |
D | agnss_interface_driver.cpp | 25 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 …GnssInterfaceHost = 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 …fAGnssInterfaceHost = CONTAINER_OF(deviceObject->service, struct HdfAGnssInterfaceHost, ioService); in HdfAGnssInterfaceDriverRelease()
|
/drivers/peripheral/location/gnss/hdi_service/ |
D | gnss_interface_driver.cpp | 25 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 …fGnssInterfaceHost = 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 …hdfGnssInterfaceHost = CONTAINER_OF(deviceObject->service, struct HdfGnssInterfaceHost, ioService); in HdfGnssInterfaceDriverRelease()
|
/drivers/peripheral/codec/hdi_service/codec_service_stub/ |
D | codec_host.c | 41 …struct IDeviceIoService *ioService = (struct IDeviceIoService *)OsalMemAlloc(sizeof(struct IDevice… in HdfCodecDriverBind() local 42 if (ioService == NULL) { in HdfCodecDriverBind() 47 ioService->Dispatch = CodecServiceDispatch; in HdfCodecDriverBind() 48 ioService->Open = NULL; in HdfCodecDriverBind() 49 ioService->Release = NULL; in HdfCodecDriverBind() 55 deviceObject->service = ioService; in HdfCodecDriverBind()
|
/drivers/hdf_core/framework/core/common/src/ |
D | hdf_device_node_ext.c | 69 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/partitionslot/hdi_service/src/ |
D | partition_slot_driver.cpp | 25 struct IDeviceIoService ioService; member 32 …fPartitionSlotHost = 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 …hdfPartitionSlotHost = CONTAINER_OF(deviceObject->service, struct HdfPartitionSlotHost, ioService); in HdfPartitionSlotDriverRelease()
|
/drivers/peripheral/codec/hal/idl_service/src/ |
D | codec_component_manager_driver.cpp | 27 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/intelligent_voice/hdi_service/engine/ |
D | intell_voice_engine_driver.cpp | 27 struct IDeviceIoService ioService; member 35 struct HdfIntellVoiceEngineManagerHost, ioService); in IntellVoiceEngineManagerDriverDispatch() 68 hdfIntellVoiceEngineManagerHost->ioService.Dispatch = IntellVoiceEngineManagerDriverDispatch; in HdfIntellVoiceEngineManagerDriverBind() 69 hdfIntellVoiceEngineManagerHost->ioService.Open = NULL; in HdfIntellVoiceEngineManagerDriverBind() 70 hdfIntellVoiceEngineManagerHost->ioService.Release = NULL; in HdfIntellVoiceEngineManagerDriverBind() 87 deviceObject->service = &hdfIntellVoiceEngineManagerHost->ioService; in HdfIntellVoiceEngineManagerDriverBind() 99 struct HdfIntellVoiceEngineManagerHost, ioService); in HdfIntellVoiceEngineManagerDriverRelease()
|
/drivers/peripheral/input/hdi_service/ |
D | input_interfaces_driver.cpp | 25 struct IDeviceIoService ioService; member 32 …utInterfacesHost = 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 …nputInterfacesHost = CONTAINER_OF(deviceObject->service, struct HdfInputInterfacesHost, ioService); in HdfInputInterfacesDriverRelease()
|
/drivers/peripheral/intelligent_voice/hdi_service/trigger/ |
D | intell_voice_trigger_driver.cpp | 28 struct IDeviceIoService ioService; member 36 struct HdfIntellVoiceTriggerManagerHost, ioService); in IntellVoiceTriggerManagerDriverDispatch() 69 hdfIntellVoiceTriggerManagerHost->ioService.Dispatch = IntellVoiceTriggerManagerDriverDispatch; in HdfIntellVoiceTriggerManagerDriverBind() 70 hdfIntellVoiceTriggerManagerHost->ioService.Open = NULL; in HdfIntellVoiceTriggerManagerDriverBind() 71 hdfIntellVoiceTriggerManagerHost->ioService.Release = NULL; in HdfIntellVoiceTriggerManagerDriverBind() 88 deviceObject->service = &hdfIntellVoiceTriggerManagerHost->ioService; in HdfIntellVoiceTriggerManagerDriverBind() 100 struct HdfIntellVoiceTriggerManagerHost, ioService); in HdfIntellVoiceTriggerManagerDriverRelease()
|
/drivers/peripheral/memorytracker/hdi_service/src/ |
D | memorytracker_interface_driver.cpp | 26 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/camera/interfaces/hdi_ipc/ |
D | camera_host_driver.cpp | 25 struct IDeviceIoService ioService; member 32 …to *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/distributed_camera/hdi_service/src/config/ |
D | dcamera_host_config.cpp | 27 struct IDeviceIoService ioService; member 34 …to *hdfCameraHostHost = CONTAINER_OF(client->device->service, struct HdfCameraHostHost, ioService); in CameraHostDriverDispatch() 77 hdfCameraHostHost->ioService.Dispatch = CameraHostDriverDispatch; in HdfCameraHostDriverBind() 78 hdfCameraHostHost->ioService.Open = NULL; in HdfCameraHostDriverBind() 79 hdfCameraHostHost->ioService.Release = NULL; in HdfCameraHostDriverBind() 96 deviceObject->service = &hdfCameraHostHost->ioService; in HdfCameraHostDriverBind() 107 …auto *hdfCameraHostHost = CONTAINER_OF(deviceObject->service, struct HdfCameraHostHost, ioService); in HdfCameraHostDriverRelease()
|
/drivers/peripheral/usb/ddk_service/src/ |
D | usb_ddk_driver.cpp | 27 struct IDeviceIoService ioService; member 34 auto *hdfUsbDdkHost = CONTAINER_OF(client->device->service, struct HdfUsbDdkHost, ioService); in UsbDdkDriverDispatch() 67 hdfUsbDdkHost->ioService.Dispatch = UsbDdkDriverDispatch; in HdfUsbDdkDriverBind() 68 hdfUsbDdkHost->ioService.Open = NULL; in HdfUsbDdkDriverBind() 69 hdfUsbDdkHost->ioService.Release = NULL; in HdfUsbDdkDriverBind() 86 deviceObject->service = &hdfUsbDdkHost->ioService; in HdfUsbDdkDriverBind() 97 auto *hdfUsbDdkHost = CONTAINER_OF(deviceObject->service, struct HdfUsbDdkHost, ioService); in HdfUsbDdkDriverRelease()
|
/drivers/peripheral/thermal/interfaces/hdi_service/src/ |
D | thermal_interface_driver.cpp | 28 struct IDeviceIoService ioService; member 36 …alInterfaceHost = CONTAINER_OF(client->device->service, struct HdfThermalInterfaceHost, ioService); in ThermalInterfaceDriverDispatch() 70 hdfThermalInterfaceHost->ioService.Dispatch = ThermalInterfaceDriverDispatch; in HdfThermalInterfaceDriverBind() 71 hdfThermalInterfaceHost->ioService.Open = NULL; in HdfThermalInterfaceDriverBind() 72 hdfThermalInterfaceHost->ioService.Release = NULL; in HdfThermalInterfaceDriverBind() 89 deviceObject->service = &hdfThermalInterfaceHost->ioService; in HdfThermalInterfaceDriverBind() 101 …rmalInterfaceHost = CONTAINER_OF(deviceObject->service, struct HdfThermalInterfaceHost, ioService); in HdfThermalInterfaceDriverRelease()
|
/drivers/peripheral/connected_nfc_tag/hdi_service/ |
D | connected_nfc_tag_driver.cpp | 25 struct IDeviceIoService ioService; member 33 CONTAINER_OF(client->device->service, struct HdfConnectedNfcTagHost, ioService); in ConnectedNfcTagDispatch() 67 hdfConnectedNfcTagHost->ioService.Dispatch = ConnectedNfcTagDispatch; in HdfConnectedNfcTagDriverBind() 68 hdfConnectedNfcTagHost->ioService.Open = nullptr; in HdfConnectedNfcTagDriverBind() 69 hdfConnectedNfcTagHost->ioService.Release = nullptr; in HdfConnectedNfcTagDriverBind() 86 deviceObject->service = &hdfConnectedNfcTagHost->ioService; in HdfConnectedNfcTagDriverBind() 100 CONTAINER_OF(deviceObject->service, struct HdfConnectedNfcTagHost, ioService); in HdfConnectedNfcTagDriverRelease()
|
/drivers/peripheral/light/hdi_service/ |
D | light_if_driver.cpp | 28 struct IDeviceIoService ioService; member 35 …ightInterfaceHost = 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 …fLightInterfaceHost = CONTAINER_OF(deviceObject->service, struct HdfLightInterfaceHost, ioService); in HdfLightInterfaceDriverRelease()
|
/drivers/peripheral/sensor/hdi_service/ |
D | sensor_if_driver.cpp | 29 struct IDeviceIoService ioService; member 36 …sorInterfaceHost = 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 …ensorInterfaceHost = CONTAINER_OF(deviceObject->service, struct HdfSensorInterfaceHost, ioService); in HdfSensorInterfaceDriverRelease()
|
/drivers/peripheral/vibrator/hdi_service/ |
D | vibrator_if_driver.cpp | 28 struct IDeviceIoService ioService; member 35 …rInterfaceHost = CONTAINER_OF(client->device->service, struct HdfVibratorInterfaceHost, ioService); in VibratorInterfaceDriverDispatch() 67 hdfVibratorInterfaceHost->ioService.Dispatch = VibratorInterfaceDriverDispatch; in HdfVibratorInterfaceDriverBind() 68 hdfVibratorInterfaceHost->ioService.Open = nullptr; in HdfVibratorInterfaceDriverBind() 69 hdfVibratorInterfaceHost->ioService.Release = nullptr; in HdfVibratorInterfaceDriverBind() 86 deviceObject->service = &hdfVibratorInterfaceHost->ioService; in HdfVibratorInterfaceDriverBind() 99 …torInterfaceHost = CONTAINER_OF(deviceObject->service, struct HdfVibratorInterfaceHost, ioService); in HdfVibratorInterfaceDriverRelease()
|
/drivers/peripheral/power/interfaces/hdi_service/src/ |
D | power_interface_driver.cpp | 28 struct IDeviceIoService ioService; member 36 …owerInterfaceHost = 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 …fPowerInterfaceHost = CONTAINER_OF(deviceObject->service, struct HdfPowerInterfaceHost, ioService); in HdfPowerInterfaceDriverRelease()
|
/drivers/peripheral/battery/interfaces/hdi_service/src/ |
D | battery_interface_driver.cpp | 27 struct IDeviceIoService ioService; member 35 …ryInterfaceHost = CONTAINER_OF(client->device->service, struct HdfBatteryInterfaceHost, ioService); in BatteryInterfaceDriverDispatch() 66 hdfBatteryInterfaceHost->ioService.Dispatch = BatteryInterfaceDriverDispatch; in HdfBatteryInterfaceDriverBind() 67 hdfBatteryInterfaceHost->ioService.Open = nullptr; in HdfBatteryInterfaceDriverBind() 68 hdfBatteryInterfaceHost->ioService.Release = nullptr; in HdfBatteryInterfaceDriverBind() 85 deviceObject->service = &hdfBatteryInterfaceHost->ioService; in HdfBatteryInterfaceDriverBind() 96 …teryInterfaceHost = CONTAINER_OF(deviceObject->service, struct HdfBatteryInterfaceHost, ioService); in HdfBatteryInterfaceDriverRelease()
|