Home
last modified time | relevance | path

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

/ohos5.0/drivers/hdf_core/framework/core/host/src/
H A Dhdf_load_vdi.c59 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()
95 vdiBase->DestoryVdiInstance(vdiBase); in HdfCloseVdi()
[all …]
/ohos5.0/drivers/hdf_core/framework/core/host/test/sample/
H A 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()
H A 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()
H A 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()
/ohos5.0/drivers/hdf_core/framework/core/host/test/unittest/
H A 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;
/ohos5.0/drivers/hdf_core/interfaces/inner_api/host/uhdf/
H A Dhdf_load_vdi.h28 int (*CreateVdiInstance)(struct HdfVdiBase *vdiBase);
29 int (*DestoryVdiInstance)(struct HdfVdiBase *vdiBase);
34 struct HdfVdiBase *vdiBase; member
/ohos5.0/drivers/peripheral/light/hdi_impl/
H A 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()
/ohos5.0/drivers/peripheral/vibrator/hdi_impl/
H A Dvibrator_interface_impl.cpp266 static int32_t CreateLightVdiInstance(struct HdfVdiBase *vdiBase) in CreateLightVdiInstance() argument
269 if (vdiBase == nullptr) { in CreateLightVdiInstance()
274 struct VdiWrapperVibrator *vibratorVdi = reinterpret_cast<VdiWrapperVibrator *>(vdiBase); in CreateLightVdiInstance()
283 static int32_t DestoryLightVdiInstance(struct HdfVdiBase *vdiBase) in DestoryLightVdiInstance() argument
286 if (vdiBase == nullptr) { in DestoryLightVdiInstance()
291 struct VdiWrapperVibrator *vibratorVdi = reinterpret_cast<VdiWrapperVibrator *>(vdiBase); in DestoryLightVdiInstance()
/ohos5.0/drivers/peripheral/sensor/hdi_impl/
H A Dsensor_impl.cpp402 static int32_t CreateSensorVdiInstance(struct HdfVdiBase *vdiBase) in CreateSensorVdiInstance() argument
405 if (vdiBase == nullptr) { in CreateSensorVdiInstance()
410 struct WrapperSensorVdi *sensorVdi = reinterpret_cast<struct WrapperSensorVdi *>(vdiBase); in CreateSensorVdiInstance()
419 static int32_t DestorySensorVdiInstance(struct HdfVdiBase *vdiBase) in DestorySensorVdiInstance() argument
422 if (vdiBase == nullptr) { in DestorySensorVdiInstance()
427 struct WrapperSensorVdi *sensorVdi = reinterpret_cast<struct WrapperSensorVdi *>(vdiBase); in DestorySensorVdiInstance()
/ohos5.0/drivers/peripheral/camera/vdi_base/usb_camera/vdi_impl/src/camera_host/
H A Dcamera_host_usb_vdi_impl.cpp400 static int CreateCameraHostVdiInstance(struct HdfVdiBase *vdiBase) in CreateCameraHostVdiInstance() argument
403 …WrapperCameraHost *vdiWrapperCameraHost = reinterpret_cast<struct VdiWrapperCameraHost *>(vdiBase); in CreateCameraHostVdiInstance()
415 static int DestoryCameraHostVdiInstance(struct HdfVdiBase *vdiBase) in DestoryCameraHostVdiInstance() argument
418 …WrapperCameraHost *vdiWrapperCameraHost = reinterpret_cast<struct VdiWrapperCameraHost *>(vdiBase); in DestoryCameraHostVdiInstance()
/ohos5.0/drivers/peripheral/camera/vdi_base/v4l2/src/camera_host/
H A Dcamera_host_vdi_impl.cpp436 static int CreateCameraHostVdiInstance(struct HdfVdiBase *vdiBase) in CreateCameraHostVdiInstance() argument
439 …WrapperCameraHost *vdiWrapperCameraHost = reinterpret_cast<struct VdiWrapperCameraHost *>(vdiBase); in CreateCameraHostVdiInstance()
451 static int DestoryCameraHostVdiInstance(struct HdfVdiBase *vdiBase) in DestoryCameraHostVdiInstance() argument
454 …WrapperCameraHost *vdiWrapperCameraHost = reinterpret_cast<struct VdiWrapperCameraHost *>(vdiBase); in DestoryCameraHostVdiInstance()
/ohos5.0/drivers/peripheral/motion/hdi_service/
H A Dmotion_if_service.cpp47 if (vdi_ == nullptr || vdi_->vdiBase == nullptr) { in GetMotionVdiImpl()
58 wrapperMotionVdi = reinterpret_cast<struct WrapperMotionVdi *>(vdi_->vdiBase); in GetMotionVdiImpl()
/ohos5.0/drivers/peripheral/wlan/hdi_service/service_extend/service_extend_vdi/
H A Dwlan_extend_cmd.c43 if (g_vdi == NULL || g_vdi->vdiBase == NULL) { in InitWlanExtendVdiImpl()
56 vdiWrapperWlanExtend = (struct VdiWrapperWlanExtend *)(g_vdi->vdiBase); in InitWlanExtendVdiImpl()
/ohos5.0/drivers/peripheral/light/hdi_service/
H A Dlight_if_service.cpp47 if (vdi_ == nullptr || vdi_->vdiBase == nullptr) { in GetLightVdiImpl()
58 vdiWrapperLight = reinterpret_cast<struct VdiWrapperLight *>(vdi_->vdiBase); in GetLightVdiImpl()
/ohos5.0/drivers/peripheral/camera/hdi_service/v1_0/src/
H A Dcamera_host_service.cpp103 if (cameraHostVdiLoader == nullptr || cameraHostVdiLoader->vdiBase == nullptr) { in GetInstance()
115 cameraHostVdiLoader->vdiBase); in GetInstance()
/ohos5.0/drivers/peripheral/vibrator/hdi_service/
H A Dvibrator_if_service.cpp47 if (vdi_ == nullptr || vdi_->vdiBase == nullptr) { in GetVibratorVdiImpl()
58 vdiWrapperVibrator = reinterpret_cast<struct VdiWrapperVibrator *>(vdi_->vdiBase); in GetVibratorVdiImpl()
/ohos5.0/drivers/peripheral/sensor/hdi_service/
H A Dsensor_if_service.cpp82 if (vdi_ == nullptr || vdi_->vdiBase == nullptr) { in GetSensorVdiImpl()
93 …perSensorVdi = reinterpret_cast<struct OHOS::HDI::Sensor::V1_1::WrapperSensorVdi *>(vdi_->vdiBase); in GetSensorVdiImpl()