Home
last modified time | relevance | path

Searched refs:vdiBase (Results 1 – 16 of 16) sorted by relevance

/drivers/hdf_core/framework/core/host/src/
Dhdf_load_vdi.c58 struct HdfVdiBase **vdiBase = (struct HdfVdiBase **)dlsym(handler, "hdfVdiDesc"); in HdfLoadVdi() local
59 if (vdiBase == NULL || *vdiBase == NULL) { in HdfLoadVdi()
66 if ((*vdiBase)->CreateVdiInstance) { in HdfLoadVdi()
67 (*vdiBase)->CreateVdiInstance(*vdiBase); in HdfLoadVdi()
71 vdiObj->vdiBase = *vdiBase; in HdfLoadVdi()
78 if (vdiObj == NULL || vdiObj->vdiBase == NULL) { in HdfGetVdiVersion()
83 return vdiObj->vdiBase->moduleVersion; in HdfGetVdiVersion()
88 if (vdiObj == NULL || vdiObj->dlHandler == 0 || vdiObj->vdiBase == NULL) { in HdfCloseVdi()
93 struct HdfVdiBase *vdiBase = vdiObj->vdiBase; in HdfCloseVdi() local
94 if (vdiBase->DestoryVdiInstance) { in HdfCloseVdi()
[all …]
/drivers/hdf_core/framework/core/host/test/sample/
Dvdi_sample1_symbol.c29 static int SampleAOpen(struct HdfVdiBase *vdiBase) in SampleAOpen() argument
31 (void)vdiBase; in SampleAOpen()
36 static int SampleAClose(struct HdfVdiBase *vdiBase) in SampleAClose() argument
38 (void)vdiBase; in SampleAClose()
Dvdi_sample1_driver.c28 static int SampleAOpen(struct HdfVdiBase *vdiBase) in SampleAOpen() argument
30 (void)vdiBase; in SampleAOpen()
35 static int SampleAClose(struct HdfVdiBase *vdiBase) in SampleAClose() argument
37 (void)vdiBase; in SampleAClose()
Dvdi_sample2_driver.cpp38 static int SampleAOpen(struct HdfVdiBase *vdiBase) in SampleAOpen() argument
41 struct VdiWrapperB *sampleB = reinterpret_cast<struct VdiWrapperB *>(vdiBase); in SampleAOpen()
46 static int SampleAClose(struct HdfVdiBase *vdiBase) in SampleAClose() argument
49 struct VdiWrapperB *sampleB = reinterpret_cast<struct VdiWrapperB *>(vdiBase); in SampleAClose()
/drivers/hdf_core/interfaces/inner_api/host/uhdf/
Dhdf_load_vdi.h28 int (*CreateVdiInstance)(struct HdfVdiBase *vdiBase);
29 int (*DestoryVdiInstance)(struct HdfVdiBase *vdiBase);
34 struct HdfVdiBase *vdiBase; member
/drivers/hdf_core/framework/core/host/test/unittest/
Dhdf_vdi_test.cpp51 ASSERT_TRUE(vdi->vdiBase != nullptr);
56 struct VdiWrapperA *vdiWrapper = reinterpret_cast<struct VdiWrapperA *>(vdi->vdiBase);
80 ASSERT_TRUE(vdi->vdiBase != nullptr);
85 struct VdiWrapperB *vdiWrapper = reinterpret_cast<struct VdiWrapperB *>(vdi->vdiBase);
141 obj.vdiBase = &base;
145 obj.vdiBase = nullptr;
/drivers/peripheral/vibrator/hdi_impl/
Dvibrator_interface_impl.cpp194 static int32_t CreateLightVdiInstance(struct HdfVdiBase *vdiBase) in CreateLightVdiInstance() argument
197 if (vdiBase == nullptr) { in CreateLightVdiInstance()
202 struct VdiWrapperVibrator *vibratorVdi = reinterpret_cast<VdiWrapperVibrator *>(vdiBase); in CreateLightVdiInstance()
211 static int32_t DestoryLightVdiInstance(struct HdfVdiBase *vdiBase) in DestoryLightVdiInstance() argument
214 if (vdiBase == nullptr) { in DestoryLightVdiInstance()
219 struct VdiWrapperVibrator *vibratorVdi = reinterpret_cast<VdiWrapperVibrator *>(vdiBase); in DestoryLightVdiInstance()
/drivers/peripheral/light/hdi_impl/
Dlight_interface_impl.cpp149 static int32_t CreateLightVdiInstance(struct HdfVdiBase *vdiBase) in CreateLightVdiInstance() argument
152 if (vdiBase == nullptr) { in CreateLightVdiInstance()
157 struct VdiWrapperLight *lightVdi = reinterpret_cast<VdiWrapperLight *>(vdiBase); in CreateLightVdiInstance()
166 static int32_t DestoryLightVdiInstance(struct HdfVdiBase *vdiBase) in DestoryLightVdiInstance() argument
169 if (vdiBase == nullptr) { in DestoryLightVdiInstance()
174 struct VdiWrapperLight *lightVdi = reinterpret_cast<VdiWrapperLight *>(vdiBase); in DestoryLightVdiInstance()
/drivers/peripheral/motion/hdi_service/
Dmotion_if_service.cpp46 if (vdi_ == nullptr || vdi_->vdiBase == nullptr) { in GetMotionVdiImpl()
57 wrapperMotionVdi = reinterpret_cast<struct WrapperMotionVdi *>(vdi_->vdiBase); in GetMotionVdiImpl()
/drivers/peripheral/sensor/hdi_impl/
Dsensor_impl.cpp489 static int32_t CreateSensorVdiInstance(struct HdfVdiBase *vdiBase) in CreateSensorVdiInstance() argument
492 if (vdiBase == nullptr) { in CreateSensorVdiInstance()
497 struct WrapperSensorVdi *sensorVdi = reinterpret_cast<struct WrapperSensorVdi *>(vdiBase); in CreateSensorVdiInstance()
506 static int32_t DestorySensorVdiInstance(struct HdfVdiBase *vdiBase) in DestorySensorVdiInstance() argument
509 if (vdiBase == nullptr) { in DestorySensorVdiInstance()
514 struct WrapperSensorVdi *sensorVdi = reinterpret_cast<struct WrapperSensorVdi *>(vdiBase); in DestorySensorVdiInstance()
/drivers/peripheral/camera/vdi_base/usb_camera/vdi_impl/src/camera_host/
Dcamera_host_usb_vdi_impl.cpp385 static int CreateCameraHostVdiInstance(struct HdfVdiBase *vdiBase) in CreateCameraHostVdiInstance() argument
388 …WrapperCameraHost *vdiWrapperCameraHost = reinterpret_cast<struct VdiWrapperCameraHost *>(vdiBase); in CreateCameraHostVdiInstance()
400 static int DestoryCameraHostVdiInstance(struct HdfVdiBase *vdiBase) in DestoryCameraHostVdiInstance() argument
403 …WrapperCameraHost *vdiWrapperCameraHost = reinterpret_cast<struct VdiWrapperCameraHost *>(vdiBase); in DestoryCameraHostVdiInstance()
/drivers/peripheral/camera/vdi_base/v4l2/src/camera_host/
Dcamera_host_vdi_impl.cpp407 static int CreateCameraHostVdiInstance(struct HdfVdiBase *vdiBase) in CreateCameraHostVdiInstance() argument
410 …WrapperCameraHost *vdiWrapperCameraHost = reinterpret_cast<struct VdiWrapperCameraHost *>(vdiBase); in CreateCameraHostVdiInstance()
422 static int DestoryCameraHostVdiInstance(struct HdfVdiBase *vdiBase) in DestoryCameraHostVdiInstance() argument
425 …WrapperCameraHost *vdiWrapperCameraHost = reinterpret_cast<struct VdiWrapperCameraHost *>(vdiBase); in DestoryCameraHostVdiInstance()
/drivers/peripheral/light/hdi_service/
Dlight_if_service.cpp47 if (vdi_ == nullptr || vdi_->vdiBase == nullptr) { in GetLightVdiImpl()
58 vdiWrapperLight = reinterpret_cast<struct VdiWrapperLight *>(vdi_->vdiBase); in GetLightVdiImpl()
/drivers/peripheral/sensor/hdi_service/
Dsensor_if_service.cpp50 if (vdi_ == nullptr || vdi_->vdiBase == nullptr) { in GetSensorVdiImpl()
61 wrapperSensorVdi = reinterpret_cast<struct WrapperSensorVdi *>(vdi_->vdiBase); in GetSensorVdiImpl()
/drivers/peripheral/vibrator/hdi_service/
Dvibrator_if_service.cpp47 if (vdi_ == nullptr || vdi_->vdiBase == nullptr) { in GetVibratorVdiImpl()
58 vdiWrapperVibrator = reinterpret_cast<struct VdiWrapperVibrator *>(vdi_->vdiBase); in GetVibratorVdiImpl()
/drivers/peripheral/camera/hdi_service/v1_0/src/
Dcamera_host_service.cpp102 if (cameraHostVdiLoader == nullptr || cameraHostVdiLoader->vdiBase == nullptr) { in GetInstance()
114 cameraHostVdiLoader->vdiBase); in GetInstance()