Home
last modified time | relevance | path

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

/drivers/hdf_core/framework/core/host/src/
H A 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 in HdfGetVdiVersion()
93 struct HdfVdiBase *vdiBase = vdiObj->vdiBase; HdfCloseVdi() local
[all...]
/drivers/hdf_core/framework/core/host/test/sample/
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_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_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/
H A 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/
H A Dhdf_vdi_test.cpp51 ASSERT_TRUE(vdi->vdiBase != nullptr); in HWTEST_F()
56 struct VdiWrapperA *vdiWrapper = reinterpret_cast<struct VdiWrapperA *>(vdi->vdiBase); in HWTEST_F()
80 ASSERT_TRUE(vdi->vdiBase != nullptr); in HWTEST_F()
85 struct VdiWrapperB *vdiWrapper = reinterpret_cast<struct VdiWrapperB *>(vdi->vdiBase); in HWTEST_F()
141 obj.vdiBase = &base; in HWTEST_F()
145 obj.vdiBase = nullptr; in HWTEST_F()
/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()
153 HDF_LOGE("%{public}s parameter vdiBase is NULL", __func__); 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()
170 HDF_LOGE("%{public}s parameter vdiBase is NULL", __func__); in DestoryLightVdiInstance()
174 struct VdiWrapperLight *lightVdi = reinterpret_cast<VdiWrapperLight *>(vdiBase); in DestoryLightVdiInstance()
/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()
270 HDF_LOGE("%{public}s parameter vdiBase is NULL", __func__); 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()
287 HDF_LOGE("%{public}s parameter vdiBase is NULL", __func__); in DestoryLightVdiInstance()
291 struct VdiWrapperVibrator *vibratorVdi = reinterpret_cast<VdiWrapperVibrator *>(vdiBase); in DestoryLightVdiInstance()
/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()
406 HDF_LOGI("%{public}s: parameter vdiBase is NULL", __func__); 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()
423 HDF_LOGI("%{public}s: parameter vdiBase is NULL", __func__); in DestorySensorVdiInstance()
427 struct WrapperSensorVdi *sensorVdi = reinterpret_cast<struct WrapperSensorVdi *>(vdiBase); in DestorySensorVdiInstance()
/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()
/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()
/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()
/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 struct VdiWrapperCameraHost *vdiWrapperCameraHost = reinterpret_cast<struct VdiWrapperCameraHost *>(vdiBase); in CreateCameraHostVdiInstance()
415 static int DestoryCameraHostVdiInstance(struct HdfVdiBase *vdiBase) in DestoryCameraHostVdiInstance() argument
418 struct VdiWrapperCameraHost *vdiWrapperCameraHost = reinterpret_cast<struct VdiWrapperCameraHost *>(vdiBase); in DestoryCameraHostVdiInstance()
/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 struct VdiWrapperCameraHost *vdiWrapperCameraHost = reinterpret_cast<struct VdiWrapperCameraHost *>(vdiBase); in CreateCameraHostVdiInstance()
451 static int DestoryCameraHostVdiInstance(struct HdfVdiBase *vdiBase) in DestoryCameraHostVdiInstance() argument
454 struct VdiWrapperCameraHost *vdiWrapperCameraHost = reinterpret_cast<struct VdiWrapperCameraHost *>(vdiBase); in DestoryCameraHostVdiInstance()
/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()
/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()
/drivers/peripheral/sensor/hdi_service/
H A Dsensor_if_service.cpp82 if (vdi_ == nullptr || vdi_->vdiBase == nullptr) { in GetSensorVdiImpl()
93 wrapperSensorVdi = reinterpret_cast<struct OHOS::HDI::Sensor::V1_1::WrapperSensorVdi *>(vdi_->vdiBase); in GetSensorVdiImpl()

Completed in 9 milliseconds