Home
last modified time | relevance | path

Searched refs:ctrl (Results 1 - 25 of 31) sorted by relevance

12

/drivers/peripheral/camera/vdi_base/common/adapter/platform/v4l2/src/driver_adapter/src/
H A Dv4l2_control.cpp26 struct v4l2_control ctrl; in V4L2VidiocSCtrl() local
28 ctrl.id = cList[i].id; in V4L2VidiocSCtrl()
29 ctrl.value = cList[i].value; in V4L2VidiocSCtrl()
30 ret = ioctl(fd, VIDIOC_S_CTRL, &ctrl); in V4L2VidiocSCtrl()
81 struct v4l2_control ctrl; in V4L2VidiocGExtCtrls() local
83 ctrl.id = cList[i].id; in V4L2VidiocGExtCtrls()
84 ret = ioctl(fd, VIDIOC_G_CTRL, &ctrl); in V4L2VidiocGExtCtrls()
89 iter->value = ctrl.value; in V4L2VidiocGExtCtrls()
140 struct v4l2_control ctrl; in V4L2GetCtrl() local
142 ctrl in V4L2GetCtrl()
157 struct v4l2_control ctrl; V4L2SetCtrl() local
174 ExtControl(int fd, struct v4l2_queryctrl *ctrl) ExtControl() argument
191 V4L2SetValue(int fd, std::vector<DeviceControl>& control, DeviceControl& ctrl, v4l2_queryctrl& qCtrl) V4L2SetValue() argument
224 V4L2EnumExtControl(int fd, v4l2_queryctrl &qCtrl, DeviceControl &ctrl) V4L2EnumExtControl() argument
252 DeviceControl ctrl = {}; V4L2EnumExtControls() local
274 DeviceControl ctrl = {}; V4L2GetControl() local
[all...]
/drivers/external_device_manager/test/unittest/driver_extension_controller_test/src/
H A Ddriver_extension_controller_test.cpp109 auto &ctrl = DriverExtensionController::GetInstance(); in HWTEST_F() local
110 ret = ctrl.StartDriverExtension(TEST_BUNDLE_NAME, TEST_ABILITY_NAME); in HWTEST_F()
112 ret = ctrl.StopDriverExtension(TEST_BUNDLE_NAME, TEST_ABILITY_NAME); in HWTEST_F()
120 auto &ctrl = DriverExtensionController::GetInstance(); in HWTEST_F() local
121 ret = ctrl.StartDriverExtension(TEST_BUNDLE_NAME, TEST_ABILITY_NAME_ERR); in HWTEST_F()
123 ret = ctrl.StopDriverExtension(TEST_BUNDLE_NAME, TEST_ABILITY_NAME_ERR); in HWTEST_F()
133 auto &ctrl = DriverExtensionController::GetInstance(); in HWTEST_F() local
135 ret = ctrl.ConnectDriverExtension(TEST_BUNDLE_NAME, TEST_ABILITY_NAME, con); in HWTEST_F()
147 ret = ctrl.DisconnectDriverExtension(TEST_BUNDLE_NAME, TEST_ABILITY_NAME, con); in HWTEST_F()
166 auto &ctrl in HWTEST_F() local
[all...]
/drivers/hdf_core/adapter/khdf/linux/platform/pwm/
H A Dpwm_hi35xx.h47 volatile uint32_t ctrl; member
58 reg->ctrl &= ~1; in HiPwmDisable()
67 reg->ctrl |= ((1 << PWM_KEEP_OFFSET) | PWM_ENABLE); in HiPwmAlwaysOutput()
80 reg->ctrl &= mask; in HiPwmOutputNumberSquareWaves()
81 reg->ctrl |= PWM_ENABLE; in HiPwmOutputNumberSquareWaves()
92 reg->ctrl &= mask; in HiPwmSetPolarity()
93 reg->ctrl |= (polarity << PWM_INV_OFFSET); in HiPwmSetPolarity()
H A Dpwm_hi35xx_linux.c105 state->polarity = (reg->ctrl & (1 << PWM_INV_OFFSET)) >> PWM_INV_OFFSET; in Hi35xxGetState()
106 state->enabled = reg->ctrl & PWM_ENABLE_MASK; in Hi35xxGetState()
/drivers/peripheral/camera/vdi_base/common/adapter/platform/hdf_driver/src/driver_adapter/src/
H A Dcamera_fileformat.cpp140 RetCode CameraFileFormat::CameraSetFormat(struct CameraFeature feature, CameraCtrl &ctrl) in CameraSetFormat() argument
155 ctrl.fmtdesc.pixelFormat, ctrl.fmtdesc.width, ctrl.fmtdesc.height); in CameraSetFormat()
156 isFailed |= !HdfSbufWriteUint32(reqData, ctrl.fmtdesc.pixelFormat); in CameraSetFormat()
157 isFailed |= !HdfSbufWriteUint32(reqData, ctrl.fmtdesc.width); in CameraSetFormat()
158 isFailed |= !HdfSbufWriteUint32(reqData, ctrl.fmtdesc.height); in CameraSetFormat()
171 RetCode CameraFileFormat::CameraGetFormat(struct CameraFeature feature, CameraCtrl &ctrl) in CameraGetFormat() argument
185 isFailed |= !HdfSbufWriteUint32(reqData, ctrl.control.id); in CameraGetFormat()
194 isFailed |= !HdfSbufReadUint32(respData, &(ctrl in CameraGetFormat()
207 CameraSetCrop(struct CameraFeature feature, CameraCtrl &ctrl) CameraSetCrop() argument
237 CameraGetCrop(struct CameraFeature feature, CameraCtrl &ctrl) CameraGetCrop() argument
267 CameraSetFPS(struct CameraFeature feature, CameraCtrl &ctrl) CameraSetFPS() argument
295 CameraGetFPS(struct CameraFeature feature, CameraCtrl &ctrl) CameraGetFPS() argument
[all...]
H A Dcamera_control.cpp69 RetCode CameraControl::CameraQueryConfig(struct CameraFeature feature, CameraCtrl &ctrl) in CameraQueryConfig() argument
82 isFailed |= !HdfSbufWriteUint32(reqData, ctrl.control.id); in CameraQueryConfig()
91 isFailed |= !HdfSbufReadUint32(respData, &(ctrl.control.ctrlInfo.ctrlId)); in CameraQueryConfig()
92 isFailed |= !HdfSbufReadUint32(respData, &(ctrl.control.ctrlInfo.max)); in CameraQueryConfig()
93 isFailed |= !HdfSbufReadUint32(respData, &(ctrl.control.ctrlInfo.min)); in CameraQueryConfig()
94 isFailed |= !HdfSbufReadUint32(respData, &(ctrl.control.ctrlInfo.step)); in CameraQueryConfig()
95 isFailed |= !HdfSbufReadUint32(respData, &(ctrl.control.ctrlInfo.defaultValue)); in CameraQueryConfig()
98 "get defaultValue = %{public}d\n", ctrl.control.ctrlInfo.ctrlId, ctrl.control.ctrlInfo.max, in CameraQueryConfig()
99 ctrl in CameraQueryConfig()
105 CameraSetConfig(struct CameraFeature feature, CameraCtrl &ctrl) CameraSetConfig() argument
132 CameraGetConfig(struct CameraFeature feature, CameraCtrl &ctrl) CameraGetConfig() argument
161 CameraGetConfigs(struct CameraFeature feature, std::vector<CameraCtrl> &ctrl, int count) CameraGetConfigs() argument
184 CameraSetConfigs(struct CameraFeature feature, std::vector<CameraCtrl> &ctrl, int count) CameraSetConfigs() argument
[all...]
H A Dcamera_dev.cpp441 RetCode CameraDev::GetControls(const std::string &cameraId, int type, CameraCtrl &ctrl) in GetControls() argument
462 ret = myControl_->CameraQueryConfig(feature, ctrl); in GetControls()
470 RetCode CameraDev::UpdateSetting(const std::string &cameraId, int type, CameraCtrl &ctrl) in UpdateSetting() argument
491 ret = myControl_->CameraSetConfig(feature, ctrl); in UpdateSetting()
499 RetCode CameraDev::QuerySetting(const std::string &cameraId, int type, CameraCtrl &ctrl) in QuerySetting() argument
520 ret = myControl_->CameraGetConfig(feature, ctrl); in QuerySetting()
/drivers/peripheral/wlan/wpa/interfaces/hdi_service/service_common/
H A Dhdi_wpa_common.c113 static int StaCliCmd(WpaCtrl *ctrl, const char *cmd, char *buf, size_t bufLen) in StaCliCmd() argument
116 if (ctrl == NULL || ctrl->pSend == NULL || cmd == NULL || buf == NULL || bufLen == 0) { in StaCliCmd()
122 int ret = wpa_ctrl_request(ctrl->pSend, cmd, strlen(cmd), buf, &len, NULL); in StaCliCmd()
140 static int P2pCliCmd(WpaCtrl *ctrl, const char *cmd, char *buf, size_t bufLen) in P2pCliCmd() argument
143 if (ctrl == NULL || ctrl->pSend == NULL || cmd == NULL || buf == NULL || bufLen == 0) { in P2pCliCmd()
149 int ret = wpa_ctrl_request(ctrl->pSend, cmd, strlen(cmd), buf, &len, NULL); in P2pCliCmd()
167 static int ChbaCliCmd(WpaCtrl *ctrl, const char *cmd, char *buf, size_t bufLen) in ChbaCliCmd() argument
170 if (ctrl in ChbaCliCmd()
194 CommonCliCmd(WpaCtrl *ctrl, const char *cmd, char *buf, size_t bufLen) CommonCliCmd() argument
[all...]
/drivers/peripheral/camera/vdi_base/common/adapter/platform/hdf_driver/src/driver_adapter/include/
H A Dcamera_fileformat.h29 RetCode CameraSetFormat(struct CameraFeature feature, CameraCtrl &ctrl);
30 RetCode CameraGetFormat(struct CameraFeature feature, CameraCtrl &ctrl);
31 RetCode CameraSetCrop(struct CameraFeature feature, CameraCtrl &ctrl);
32 RetCode CameraGetCrop(struct CameraFeature feature, CameraCtrl &ctrl);
33 RetCode CameraSetFPS(struct CameraFeature feature, CameraCtrl &ctrl);
34 RetCode CameraGetFPS(struct CameraFeature feature, CameraCtrl &ctrl);
H A Dcamera_control.h29 RetCode CameraQueryConfig(struct CameraFeature feature, CameraCtrl &ctrl);
30 RetCode CameraSetConfig(struct CameraFeature feature, CameraCtrl &ctrl);
31 RetCode CameraGetConfig(struct CameraFeature feature, CameraCtrl &ctrl);
32 RetCode CameraGetConfigs(struct CameraFeature feature, std::vector<CameraCtrl> &ctrl, int count);
33 RetCode CameraSetConfigs(struct CameraFeature feature, std::vector<CameraCtrl> &ctrl, int count);
H A Dcamera_dev.h53 RetCode GetControls(const std::string &cameraId, int type, CameraCtrl &ctrl);
55 RetCode UpdateSetting(const std::string &cameraId, int type, CameraCtrl &ctrl);
57 RetCode QuerySetting(const std::string &cameraId, int type, CameraCtrl &ctrl);
/drivers/peripheral/usb/test/fuzztest/usbcontroltransferread_fuzzer/
H A Dusbcontroltransferread_fuzzer.cpp40 UsbCtrlTransfer ctrl; in UsbControlTransferReadFuzzTest() local
41 if (memcpy_s((void *)&ctrl, sizeof(ctrl), data, sizeof(ctrl)) != EOK) { in UsbControlTransferReadFuzzTest()
47 dev, ctrl, reinterpret_cast<std::vector<uint8_t> &>(std::move(data + OFFSET))); in UsbControlTransferReadFuzzTest()
/drivers/peripheral/usb/test/fuzztest/usbcontroltransferwrite_fuzzer/
H A Dusbcontroltransferwrite_fuzzer.cpp40 UsbCtrlTransfer ctrl; in UsbControlTransferWriteFuzzTest() local
41 if (memcpy_s((void *)&ctrl, sizeof(ctrl), data, sizeof(ctrl)) != EOK) { in UsbControlTransferWriteFuzzTest()
47 dev, ctrl, reinterpret_cast<const std::vector<uint8_t> &>(std::move(data + OFFSET))); in UsbControlTransferWriteFuzzTest()
/drivers/peripheral/usb/test/fuzztest/usbcontroltransferreadwithlength_fuzzer/
H A Dusbcontroltransferreadwithlength_fuzzer.cpp41 UsbCtrlTransferParams ctrl; in UsbControlTransferReadwithLengthFuzzTest() local
42 if (memcpy_s((void *)&ctrl, sizeof(ctrl), data, sizeof(ctrl)) != EOK) { in UsbControlTransferReadwithLengthFuzzTest()
48 dev, ctrl, reinterpret_cast<std::vector<uint8_t> &>(std::move(data + OFFSET))); in UsbControlTransferReadwithLengthFuzzTest()
/drivers/hdf_core/framework/model/camera/device_impl/src/
H A Dcamera_flash.c59 switch (ctrlConfig.ctrl.id) { in CheckFlashGetConfigId()
68 HDF_LOGE("%s: wrong ctrl id, ctrl id=%{public}d", __func__, ctrlConfig.ctrl.id); in CheckFlashGetConfigId()
83 ctrlConfig.ctrl.id = subDev.ctrlId; in CameraCmdFlashGetConfig()
91 if (!HdfSbufWriteUint32(rspData, ctrlConfig.ctrl.value)) { in CameraCmdFlashGetConfig()
92 HDF_LOGE("%s: Write ctrl value failed!", __func__); in CameraCmdFlashGetConfig()
115 switch (ctrlConfig.ctrl.id) { in CheckFlashSetConfigId()
124 HDF_LOGE("%s: wrong ctrl id, ctrl i in CheckFlashSetConfigId()
[all...]
H A Dcamera_lens.c59 switch (ctrlConfig.ctrl.id) { in CheckLensGetConfigId()
68 HDF_LOGE("%s: wrong ctrl id, ctrl id=%{public}d", __func__, ctrlConfig.ctrl.id); in CheckLensGetConfigId()
83 ctrlConfig.ctrl.id = subDev.ctrlId; in CameraCmdLensGetConfig()
91 if (!HdfSbufWriteUint32(rspData, ctrlConfig.ctrl.value)) { in CameraCmdLensGetConfig()
92 HDF_LOGE("%s: Write ctrl value failed!", __func__); in CameraCmdLensGetConfig()
115 switch (ctrlConfig.ctrl.id) { in CheckLensSetConfigId()
131 HDF_LOGE("%s: wrong ctrl id, ctrl i in CheckLensSetConfigId()
[all...]
H A Dcamera_isp.c59 switch (ctrlConfig.ctrl.id) { in CheckIspGetConfigId()
110 HDF_LOGE("%s: wrong ctrl id, ctrl id=%{public}d", __func__, ctrlConfig.ctrl.id); in CheckIspGetConfigId()
125 ctrlConfig.ctrl.id = subDev.ctrlId; in CameraCmdIspGetConfig()
133 if (!HdfSbufWriteUint32(rspData, ctrlConfig.ctrl.value)) { in CameraCmdIspGetConfig()
134 HDF_LOGE("%s: Write ctrl value failed!", __func__); in CameraCmdIspGetConfig()
157 switch (ctrlConfig.ctrl.id) { in CheckIspSetConfigId()
208 HDF_LOGE("%s: wrong ctrl id, ctrl i in CheckIspSetConfigId()
[all...]
H A Dcamera_sensor.c59 switch (ctrlConfig.ctrl.id) { in CheckSensorGetConfigId()
83 HDF_LOGE("%s: wrong ctrl id, ctrl id=%{public}d", __func__, ctrlConfig.ctrl.id); in CheckSensorGetConfigId()
98 ctrlConfig.ctrl.id = subDev.ctrlId; in CameraCmdSensorGetConfig()
106 if (!HdfSbufWriteUint32(rspData, ctrlConfig.ctrl.value)) { in CameraCmdSensorGetConfig()
107 HDF_LOGE("%s: Write ctrl value failed!", __func__); in CameraCmdSensorGetConfig()
130 switch (ctrlConfig.ctrl.id) { in CheckSensorSetConfigId()
154 HDF_LOGE("%s: wrong ctrl id, ctrl i in CheckSensorSetConfigId()
[all...]
H A Dcamera_vcm.c59 switch (ctrlConfig.ctrl.id) { in CheckVcmGetConfigId()
83 HDF_LOGE("%s: wrong ctrl id, ctrl id=%{public}d", __func__, ctrlConfig.ctrl.id); in CheckVcmGetConfigId()
98 ctrlConfig.ctrl.id = subDev.ctrlId; in CameraCmdVcmGetConfig()
106 if (!HdfSbufWriteUint32(rspData, ctrlConfig.ctrl.value)) { in CameraCmdVcmGetConfig()
107 HDF_LOGE("%s: Write ctrl value failed!", __func__); in CameraCmdVcmGetConfig()
130 switch (ctrlConfig.ctrl.id) { in CheckVcmSetConfigId()
156 HDF_LOGE("%s: wrong ctrl id, ctrl i in CheckVcmSetConfigId()
[all...]
H A Dcamera_uvc.c73 isFailed |= !HdfSbufReadUint32(reqData, &ctrlConfig.ctrl.id); in CameraCmdUvcSetConfig()
74 isFailed |= !HdfSbufReadUint32(reqData, &ctrlConfig.ctrl.value); in CameraCmdUvcSetConfig()
89 ctrlConfig.ctrl.id = subDev.ctrlId; in CameraCmdUvcGetConfig()
91 if (!HdfSbufWriteUint32(rspData, ctrlConfig.ctrl.value)) { in CameraCmdUvcGetConfig()
92 HDF_LOGE("%s: Write ctrl value failed!", __func__); in CameraCmdUvcGetConfig()
/drivers/peripheral/camera/vdi_base/common/adapter/platform/v4l2/src/driver_adapter/include/
H A Dv4l2_control.h45 void V4L2SetValue(int fd, std::vector<DeviceControl>& control, DeviceControl& ctrl,
47 int ExtControl(int fd, struct v4l2_queryctrl *ctrl);
48 void V4L2EnumExtControl(int fd, v4l2_queryctrl &qCtrl, DeviceControl &ctrl);
/drivers/peripheral/usb/gadget/function/ecm/
H A Dcdcecm.c508 static int32_t EcmSetup(const struct UsbEcmDevice *ecm, const struct UsbFnCtrlRequest *ctrl) in EcmSetup() argument
512 uint16_t index = LE16_TO_CPU(ctrl->index); in EcmSetup()
513 uint16_t value = LE16_TO_CPU(ctrl->value); in EcmSetup()
514 uint16_t length = LE16_TO_CPU(ctrl->length); in EcmSetup()
516 switch ((ctrl->reqType << 0x08) | ctrl->request) { in EcmSetup()
529 ctrl->reqType, ctrl->request, value, index, length); in EcmSetup()
534 ctrl->reqType, ctrl in EcmSetup()
[all...]
/drivers/external_device_manager/test/unittest/bus_extension_usb_test/include/
H A Dusb_impl_mock.h74 ControlTransferRead, int32_t(const UsbDev &dev, const UsbCtrlTransfer &ctrl, std::vector<uint8_t> &data));
76 int32_t(const UsbDev &dev, const UsbCtrlTransfer &ctrl, const std::vector<uint8_t> &data));
/drivers/peripheral/usb/hdi_service/src/
H A Dusb_impl.cpp1577 int32_t UsbImpl::ControlTransferRead(const UsbDev &dev, const UsbCtrlTransfer &ctrl, std::vector<uint8_t> &data) in ControlTransferRead() argument
1579 if ((static_cast<uint32_t>(ctrl.requestType) & USB_ENDPOINT_DIR_MASK) == USB_ENDPOINT_DIR_OUT) { in ControlTransferRead()
1595 controlParams.request = static_cast<uint8_t>(ctrl.requestCmd); in ControlTransferRead()
1596 controlParams.value = ctrl.value; in ControlTransferRead()
1597 controlParams.index = ctrl.index; in ControlTransferRead()
1598 controlParams.target = (UsbRequestTargetType)(static_cast<uint32_t>(ctrl.requestType) & USB_RECIP_MASK); in ControlTransferRead()
1599 controlParams.directon = (UsbRequestDirection)(((static_cast<uint32_t>(ctrl.requestType)) >> DIRECTION_OFFSET_7) & in ControlTransferRead()
1601 controlParams.reqType = static_cast<uint32_t>(ctrl.requestType); in ControlTransferRead()
1608 int32_t ret = UsbControlTransferEx(port, &controlParams, ctrl.timeout); in ControlTransferRead()
1619 int32_t UsbImpl::ControlTransferWrite(const UsbDev &dev, const UsbCtrlTransfer &ctrl, cons argument
[all...]
/drivers/hdf_core/framework/model/audio/core/src/
H A Daudio_core.c640 struct AudioKcontrol *AudioAddControl(const struct AudioCard *audioCard, const struct AudioKcontrol *ctrl) in AudioAddControl() argument
644 if ((audioCard == NULL) || (ctrl == NULL)) { in AudioAddControl()
655 control->name = ctrl->name; in AudioAddControl()
656 control->iface = ctrl->iface; in AudioAddControl()
657 control->Info = ctrl->Info; in AudioAddControl()
658 control->Get = ctrl->Get; in AudioAddControl()
659 control->Set = ctrl->Set; in AudioAddControl()
661 control->privateValue = ctrl->privateValue; in AudioAddControl()

Completed in 14 milliseconds

12