Home
last modified time | relevance | path

Searched refs:ctrls (Results 1 – 25 of 61) sorted by relevance

123

/linux/drivers/media/i2c/s5c73m3/
H A Ds5c73m3-ctrls.c69 ret = s5c73m3_get_af_status(state, state->ctrls.af_status); in s5c73m3_g_volatile_ctrl()
95 v4l2_ctrl_get_menu(state->ctrls.colorfx->id)[i]); in s5c73m3_set_colorfx()
107 struct s5c73m3_ctrls *ctrls = &state->ctrls; in s5c73m3_set_exposure() local
110 if (ctrls->exposure_metering->is_new) { in s5c73m3_set_exposure()
113 switch (ctrls->exposure_metering->val) { in s5c73m3_set_exposure()
128 if (!ret && ctrls->exposure_bias->is_new) { in s5c73m3_set_exposure()
129 u16 exp_bias = ctrls->exposure_bias->val; in s5c73m3_set_exposure()
135 ctrls->exposure_bias->val, ctrls->exposure_metering->val, ret); in s5c73m3_set_exposure()
158 v4l2_ctrl_get_menu(state->ctrls.auto_wb->id)[i]); in s5c73m3_set_white_balance()
168 struct s5c73m3_ctrls *c = &state->ctrls; in s5c73m3_af_run()
[all …]
/linux/drivers/media/v4l2-core/
H A Dv4l2-flash-led-class.c82 struct v4l2_ctrl **ctrls = v4l2_flash->ctrls; in v4l2_flash_set_led_brightness() local
104 if (ctrl == ctrls[TORCH_INTENSITY]) { in v4l2_flash_set_led_brightness()
105 if (ctrls[LED_MODE]->val != V4L2_FLASH_LED_MODE_TORCH) in v4l2_flash_set_led_brightness()
125 struct v4l2_ctrl **ctrls = v4l2_flash->ctrls; in v4l2_flash_update_led_brightness() local
129 if (ctrl == ctrls[TORCH_INTENSITY]) { in v4l2_flash_update_led_brightness()
136 if (ctrls[LED_MODE]->val != V4L2_FLASH_LED_MODE_TORCH) in v4l2_flash_update_led_brightness()
206 static bool __software_strobe_mode_inactive(struct v4l2_ctrl **ctrls) in __software_strobe_mode_inactive() argument
208 return ((ctrls[LED_MODE]->val != V4L2_FLASH_LED_MODE_FLASH) || in __software_strobe_mode_inactive()
209 (ctrls[STROBE_SOURCE] && (ctrls[STROBE_SOURCE]->val != in __software_strobe_mode_inactive()
218 struct v4l2_ctrl **ctrls = v4l2_flash->ctrls; in v4l2_flash_s_ctrl() local
[all …]
/linux/Documentation/userspace-api/media/v4l/
H A Dcommon.rst43 ext-ctrls-camera
44 ext-ctrls-flash
45 ext-ctrls-image-source
46 ext-ctrls-image-process
47 ext-ctrls-codec
48 ext-ctrls-codec-stateless
49 ext-ctrls-jpeg
50 ext-ctrls-dv
51 ext-ctrls-rf-tuner
52 ext-ctrls-fm-tx
[all …]
/linux/drivers/media/usb/gspca/stv06xx/
H A Dstv06xx_pb0100.c80 struct pb0100_ctrls *ctrls = sd->sensor_priv; in pb0100_s_ctrl() local
90 err = pb0100_set_gain(gspca_dev, ctrls->gain->val); in pb0100_s_ctrl()
93 err = pb0100_set_exposure(gspca_dev, ctrls->exposure->val); in pb0100_s_ctrl()
109 struct pb0100_ctrls *ctrls; in pb0100_init_controls() local
129 ctrls = kzalloc(sizeof(*ctrls), GFP_KERNEL); in pb0100_init_controls()
130 if (!ctrls) in pb0100_init_controls()
134 ctrls->autogain = v4l2_ctrl_new_std(hdl, &pb0100_ctrl_ops, in pb0100_init_controls()
136 ctrls->exposure = v4l2_ctrl_new_std(hdl, &pb0100_ctrl_ops, in pb0100_init_controls()
138 ctrls->gain = v4l2_ctrl_new_std(hdl, &pb0100_ctrl_ops, in pb0100_init_controls()
140 ctrls->red = v4l2_ctrl_new_std(hdl, &pb0100_ctrl_ops, in pb0100_init_controls()
[all …]
/linux/drivers/media/platform/microchip/
H A Dmicrochip-isc-base.c44 struct isc_ctrls *ctrls = &isc->ctrls; in isc_update_v4l2_ctrls() local
47 v4l2_ctrl_s_ctrl(isc->r_gain_ctrl, ctrls->gain[ISC_HIS_CFG_MODE_R]); in isc_update_v4l2_ctrls()
48 v4l2_ctrl_s_ctrl(isc->b_gain_ctrl, ctrls->gain[ISC_HIS_CFG_MODE_B]); in isc_update_v4l2_ctrls()
49 v4l2_ctrl_s_ctrl(isc->gr_gain_ctrl, ctrls->gain[ISC_HIS_CFG_MODE_GR]); in isc_update_v4l2_ctrls()
50 v4l2_ctrl_s_ctrl(isc->gb_gain_ctrl, ctrls->gain[ISC_HIS_CFG_MODE_GB]); in isc_update_v4l2_ctrls()
52 v4l2_ctrl_s_ctrl(isc->r_off_ctrl, ctrls->offset[ISC_HIS_CFG_MODE_R]); in isc_update_v4l2_ctrls()
53 v4l2_ctrl_s_ctrl(isc->b_off_ctrl, ctrls->offset[ISC_HIS_CFG_MODE_B]); in isc_update_v4l2_ctrls()
54 v4l2_ctrl_s_ctrl(isc->gr_off_ctrl, ctrls->offset[ISC_HIS_CFG_MODE_GR]); in isc_update_v4l2_ctrls()
55 v4l2_ctrl_s_ctrl(isc->gb_off_ctrl, ctrls->offset[ISC_HIS_CFG_MODE_GB]); in isc_update_v4l2_ctrls()
60 struct isc_ctrls *ctrls = &isc->ctrls; in isc_update_awb_ctrls() local
[all …]
/linux/drivers/media/i2c/
H A Dadp1653.c143 container_of(ctrl->handler, struct adp1653_flash, ctrls); in adp1653_get_ctrl()
169 container_of(ctrl->handler, struct adp1653_flash, ctrls); in adp1653_set_ctrl()
202 v4l2_ctrl_handler_init(&flash->ctrls, 9); in adp1653_init_controls()
205 v4l2_ctrl_new_std_menu(&flash->ctrls, &adp1653_ctrl_ops, in adp1653_init_controls()
208 v4l2_ctrl_new_std_menu(&flash->ctrls, &adp1653_ctrl_ops, in adp1653_init_controls()
211 v4l2_ctrl_new_std(&flash->ctrls, &adp1653_ctrl_ops, in adp1653_init_controls()
213 v4l2_ctrl_new_std(&flash->ctrls, &adp1653_ctrl_ops, in adp1653_init_controls()
216 v4l2_ctrl_new_std(&flash->ctrls, &adp1653_ctrl_ops, in adp1653_init_controls()
222 v4l2_ctrl_new_std(&flash->ctrls, &adp1653_ctrl_ops, in adp1653_init_controls()
228 v4l2_ctrl_new_std(&flash->ctrls, &adp1653_ctrl_ops, in adp1653_init_controls()
[all …]
H A Dmt9v011.c53 struct v4l2_ctrl_handler ctrls; member
430 container_of(ctrl->handler, struct mt9v011, ctrls); in mt9v011_s_ctrl()
526 v4l2_ctrl_handler_init(&core->ctrls, 5); in mt9v011_probe()
527 v4l2_ctrl_new_std(&core->ctrls, &mt9v011_ctrl_ops, in mt9v011_probe()
529 v4l2_ctrl_new_std(&core->ctrls, &mt9v011_ctrl_ops, in mt9v011_probe()
531 v4l2_ctrl_new_std(&core->ctrls, &mt9v011_ctrl_ops, in mt9v011_probe()
533 v4l2_ctrl_new_std(&core->ctrls, &mt9v011_ctrl_ops, in mt9v011_probe()
535 v4l2_ctrl_new_std(&core->ctrls, &mt9v011_ctrl_ops, in mt9v011_probe()
537 v4l2_ctrl_new_std(&core->ctrls, &mt9v011_ctrl_ops, in mt9v011_probe()
540 if (core->ctrls.error) { in mt9v011_probe()
[all …]
H A Dad5820.c44 struct v4l2_ctrl_handler ctrls; member
159 container_of(ctrl->handler, struct ad5820_device, ctrls); in ad5820_set_ctrl()
177 v4l2_ctrl_handler_init(&coil->ctrls, 1); in ad5820_init_controls()
191 v4l2_ctrl_new_std(&coil->ctrls, &ad5820_ctrl_ops, in ad5820_init_controls()
194 if (coil->ctrls.error) in ad5820_init_controls()
195 return coil->ctrls.error; in ad5820_init_controls()
201 coil->subdev.ctrl_handler = &coil->ctrls; in ad5820_init_controls()
344 v4l2_ctrl_handler_free(&coil->ctrls); in ad5820_remove()
H A Dalvium-csi2.c1825 ret = __v4l2_ctrl_handler_setup(&alvium->ctrls.handler); in alvium_s_stream()
2003 alvium->ctrls.gain->val = val; in alvium_g_volatile_ctrl()
2009 alvium->ctrls.exposure->val = val; in alvium_g_volatile_ctrl()
2091 struct alvium_ctrls *ctrls = &alvium->ctrls; in alvium_ctrl_init() local
2092 struct v4l2_ctrl_handler *hdl = &ctrls->handler; in alvium_ctrl_init()
2099 ctrls->pixel_rate = v4l2_ctrl_new_std(hdl, ops, in alvium_ctrl_init()
2103 ctrls->pixel_rate->flags |= V4L2_CTRL_FLAG_READ_ONLY; in alvium_ctrl_init()
2106 ctrls->link_freq = v4l2_ctrl_new_int_menu(hdl, ops, in alvium_ctrl_init()
2109 ctrls->link_freq->flags |= V4L2_CTRL_FLAG_READ_ONLY; in alvium_ctrl_init()
2113 ctrls->auto_wb = v4l2_ctrl_new_std(hdl, ops, in alvium_ctrl_init()
[all …]
/linux/drivers/media/platform/st/sti/hva/
H A Dhva-debugfs.c17 struct hva_controls *ctrls = &ctx->ctrls; in format_ctx() local
52 v4l2_ctrl_get_menu(bitrate_mode)[ctrls->bitrate_mode], in format_ctx()
53 ctrls->bitrate, in format_ctx()
54 ctrls->gop_size, in format_ctx()
55 v4l2_ctrl_get_menu(aspect)[ctrls->aspect], in format_ctx()
56 ctrls->time_per_frame.denominator, in format_ctx()
57 ctrls->time_per_frame.numerator); in format_ctx()
72 v4l2_ctrl_get_menu(entropy)[ctrls->entropy_mode], in format_ctx()
73 ctrls->cpb_size, in format_ctx()
74 ctrls->dct8x8 ? "true" : "false", in format_ctx()
[all …]
H A Dhva-h264.c417 struct hva_controls *ctrls, in hva_h264_fill_slice_header() argument
437 u32 frame_order = frame_num % ctrls->gop_size; in hva_h264_fill_slice_header()
439 if (!(frame_num % ctrls->gop_size)) in hva_h264_fill_slice_header()
456 if ((frame_num / ctrls->gop_size) % 2) { in hva_h264_fill_slice_header()
469 if (ctrls->entropy_mode == cabac) { in hva_h264_fill_slice_header()
599 struct hva_controls *ctrls = &pctx->ctrls; in hva_h264_prepare_task() local
600 struct v4l2_fract *time_per_frame = &pctx->ctrls.time_per_frame; in hva_h264_prepare_task()
624 level = ctrls->level; in hva_h264_prepare_task()
644 td->brc_type = (ctrls->bitrate_mode == V4L2_MPEG_VIDEO_BITRATE_MODE_CBR) in hva_h264_prepare_task()
647 td->entropy_coding_mode = (ctrls->entropy_mode == cavlc) ? CAVLC : in hva_h264_prepare_task()
[all …]
/linux/drivers/media/platform/verisilicon/
H A Dhantro_hevc.c79 const struct hantro_hevc_dec_ctrls *ctrls = &ctx->hevc_dec.ctrls; in tile_buffer_reallocate() local
80 const struct v4l2_ctrl_hevc_pps *pps = ctrls->pps; in tile_buffer_reallocate()
81 const struct v4l2_ctrl_hevc_sps *sps = ctrls->sps; in tile_buffer_reallocate()
179 struct hantro_hevc_dec_ctrls *ctrls = &hevc_ctx->ctrls; in hantro_hevc_dec_prepare_run() local
184 ctrls->decode_params = in hantro_hevc_dec_prepare_run()
186 if (WARN_ON(!ctrls->decode_params)) in hantro_hevc_dec_prepare_run()
189 ctrls->scaling = in hantro_hevc_dec_prepare_run()
191 if (WARN_ON(!ctrls->scaling)) in hantro_hevc_dec_prepare_run()
194 ctrls->sps = in hantro_hevc_dec_prepare_run()
196 if (WARN_ON(!ctrls->sps)) in hantro_hevc_dec_prepare_run()
[all …]
H A Dhantro_g1_h264_dec.c24 const struct hantro_h264_dec_ctrls *ctrls = &ctx->h264_dec.ctrls; in set_params() local
25 const struct v4l2_ctrl_h264_decode_params *dec_param = ctrls->decode; in set_params()
26 const struct v4l2_ctrl_h264_sps *sps = ctrls->sps; in set_params()
27 const struct v4l2_ctrl_h264_pps *pps = ctrls->pps; in set_params()
207 const struct hantro_h264_dec_ctrls *ctrls = &ctx->h264_dec.ctrls; in set_buffers() local
221 if (ctrls->decode->flags & V4L2_H264_DECODE_PARAM_FLAG_BOTTOM_FIELD) in set_buffers()
226 if (ctrls->sps->profile_idc > 66 && ctrls->decode->nal_ref_idc) { in set_buffers()
230 if (ctrls->sps->profile_idc >= 100 && in set_buffers()
231 ctrls->sps->chroma_format_idc == 0) in set_buffers()
240 if (ctrls->decode->flags & V4L2_H264_DECODE_PARAM_FLAG_BOTTOM_FIELD) in set_buffers()
H A Drockchip_vpu2_hw_h264_dec.c195 const struct hantro_h264_dec_ctrls *ctrls = &ctx->h264_dec.ctrls; in set_params() local
196 const struct v4l2_ctrl_h264_decode_params *dec_param = ctrls->decode; in set_params()
197 const struct v4l2_ctrl_h264_sps *sps = ctrls->sps; in set_params()
198 const struct v4l2_ctrl_h264_pps *pps = ctrls->pps; in set_params()
424 const struct hantro_h264_dec_ctrls *ctrls = &ctx->h264_dec.ctrls; in set_buffers() local
438 if (ctrls->decode->flags & V4L2_H264_DECODE_PARAM_FLAG_BOTTOM_FIELD) in set_buffers()
443 if (ctrls->sps->profile_idc > 66 && ctrls->decode->nal_ref_idc) { in set_buffers()
447 if (ctrls->sps->profile_idc >= 100 && in set_buffers()
448 ctrls->sps->chroma_format_idc == 0) in set_buffers()
457 if (ctrls->decode->flags & V4L2_H264_DECODE_PARAM_FLAG_BOTTOM_FIELD) in set_buffers()
/linux/drivers/media/platform/renesas/vsp1/
H A Dvsp1_hgo.c156 mutex_lock(hgo->ctrls.handler.lock); in hgo_configure_stream()
157 hgo->max_rgb = hgo->ctrls.max_rgb->cur.val; in hgo_configure_stream()
158 if (hgo->ctrls.num_bins) in hgo_configure_stream()
159 hgo->num_bins = hgo_num_bins[hgo->ctrls.num_bins->cur.val]; in hgo_configure_stream()
160 mutex_unlock(hgo->ctrls.handler.lock); in hgo_configure_stream()
206 v4l2_ctrl_handler_init(&hgo->ctrls.handler, in vsp1_hgo_create()
208 hgo->ctrls.max_rgb = v4l2_ctrl_new_custom(&hgo->ctrls.handler, in vsp1_hgo_create()
211 hgo->ctrls.num_bins = in vsp1_hgo_create()
212 v4l2_ctrl_new_custom(&hgo->ctrls.handler, in vsp1_hgo_create()
218 hgo->histo.entity.subdev.ctrl_handler = &hgo->ctrls.handler; in vsp1_hgo_create()
H A Dvsp1_clu.c67 container_of(ctrl->handler, struct vsp1_clu, ctrls); in clu_s_ctrl()
268 v4l2_ctrl_handler_init(&clu->ctrls, 2); in vsp1_clu_create()
269 v4l2_ctrl_new_custom(&clu->ctrls, &clu_table_control, NULL); in vsp1_clu_create()
270 v4l2_ctrl_new_custom(&clu->ctrls, &clu_mode_control, NULL); in vsp1_clu_create()
272 clu->entity.subdev.ctrl_handler = &clu->ctrls; in vsp1_clu_create()
274 if (clu->ctrls.error) { in vsp1_clu_create()
276 ret = clu->ctrls.error; in vsp1_clu_create()
281 v4l2_ctrl_handler_setup(&clu->ctrls); in vsp1_clu_create()
H A Dvsp1_hgt.c101 ctrls); in hgt_hue_areas_s_ctrl()
155 mutex_lock(hgt->ctrls.lock); in hgt_configure_stream()
163 mutex_unlock(hgt->ctrls.lock); in hgt_configure_stream()
205 v4l2_ctrl_handler_init(&hgt->ctrls, 1); in vsp1_hgt_create()
206 v4l2_ctrl_new_custom(&hgt->ctrls, &hgt_hue_areas, NULL); in vsp1_hgt_create()
208 hgt->histo.entity.subdev.ctrl_handler = &hgt->ctrls; in vsp1_hgt_create()
210 v4l2_ctrl_handler_setup(&hgt->ctrls); in vsp1_hgt_create()
H A Dvsp1_lut.c64 container_of(ctrl->handler, struct vsp1_lut, ctrls); in lut_s_ctrl()
227 v4l2_ctrl_handler_init(&lut->ctrls, 1); in vsp1_lut_create()
228 v4l2_ctrl_new_custom(&lut->ctrls, &lut_table_control, NULL); in vsp1_lut_create()
230 lut->entity.subdev.ctrl_handler = &lut->ctrls; in vsp1_lut_create()
232 if (lut->ctrls.error) { in vsp1_lut_create()
234 ret = lut->ctrls.error; in vsp1_lut_create()
239 v4l2_ctrl_handler_setup(&lut->ctrls); in vsp1_lut_create()
H A Dvsp1_rwpf.h35 struct v4l2_ctrl_handler ctrls; member
57 } ctrls; member
/linux/drivers/media/platform/samsung/exynos4-is/
H A Dfimc-core.c490 effect->pat_cb = ctx->ctrls.colorfx_cbcr->val >> 8; in fimc_set_color_effect()
491 effect->pat_cr = ctx->ctrls.colorfx_cbcr->val & 0xff; in fimc_set_color_effect()
504 container_of((__ctrl)->handler, struct fimc_ctx, ctrls.handler)
575 struct fimc_ctrls *ctrls = &ctx->ctrls; in fimc_ctrls_create() local
576 struct v4l2_ctrl_handler *handler = &ctrls->handler; in fimc_ctrls_create()
578 if (ctx->ctrls.ready) in fimc_ctrls_create()
583 ctrls->rotate = v4l2_ctrl_new_std(handler, &fimc_ctrl_ops, in fimc_ctrls_create()
585 ctrls->hflip = v4l2_ctrl_new_std(handler, &fimc_ctrl_ops, in fimc_ctrls_create()
587 ctrls->vflip = v4l2_ctrl_new_std(handler, &fimc_ctrl_ops, in fimc_ctrls_create()
591 ctrls->alpha = v4l2_ctrl_new_std(handler, &fimc_ctrl_ops, in fimc_ctrls_create()
[all …]
H A Dfimc-isp.c513 idx = is->isp.ctrls.iso->val; in __ctrl_set_iso()
694 struct v4l2_ctrl_handler *handler = &isp->ctrls.handler; in fimc_isp_subdev_create()
696 struct fimc_isp_ctrls *ctrls = &isp->ctrls; in fimc_isp_subdev_create() local
719 ctrls->saturation = v4l2_ctrl_new_std(handler, ops, V4L2_CID_SATURATION, in fimc_isp_subdev_create()
721 ctrls->brightness = v4l2_ctrl_new_std(handler, ops, V4L2_CID_BRIGHTNESS, in fimc_isp_subdev_create()
723 ctrls->contrast = v4l2_ctrl_new_std(handler, ops, V4L2_CID_CONTRAST, in fimc_isp_subdev_create()
725 ctrls->sharpness = v4l2_ctrl_new_std(handler, ops, V4L2_CID_SHARPNESS, in fimc_isp_subdev_create()
727 ctrls->hue = v4l2_ctrl_new_std(handler, ops, V4L2_CID_HUE, in fimc_isp_subdev_create()
730 ctrls->auto_wb = v4l2_ctrl_new_std_menu(handler, ops, in fimc_isp_subdev_create()
734 ctrls->exposure = v4l2_ctrl_new_std(handler, ops, in fimc_isp_subdev_create()
[all …]
/linux/arch/arm/mach-versatile/
H A Dintegrator_ap.c112 unsigned int ctrls = 0, ctrlc = 0, rts_mask, dtr_mask; in integrator_uart_set_mctrl() local
129 ctrls |= rts_mask; in integrator_uart_set_mctrl()
134 ctrls |= dtr_mask; in integrator_uart_set_mctrl()
138 ctrls); in integrator_uart_set_mctrl()
/linux/drivers/media/platform/mediatek/mdp/
H A Dmtk_mdp_regs.c138 misc->orientation = ctx->ctrls.rotate->val; in mtk_mdp_hw_set_rotation()
139 misc->hflip = ctx->ctrls.hflip->val; in mtk_mdp_hw_set_rotation()
140 misc->vflip = ctx->ctrls.vflip->val; in mtk_mdp_hw_set_rotation()
147 misc->alpha = ctx->ctrls.global_alpha->val; in mtk_mdp_hw_set_global_alpha()
/linux/Documentation/userspace-api/media/mediactl/
H A Drequest-api.rst145 struct v4l2_ext_controls ctrls;
151 ctrls.which = V4L2_CTRL_WHICH_REQUEST_VAL;
152 ctrls.request_fd = req_fd;
153 if (ioctl(codec_fd, VIDIOC_S_EXT_CTRLS, &ctrls))
200 ctrls.which = V4L2_CTRL_WHICH_REQUEST_VAL;
201 ctrls.request_fd = req_fd;
202 if (ioctl(codec_fd, VIDIOC_G_EXT_CTRLS, &ctrls))
228 struct v4l2_ext_controls ctrls;
234 ctrls.which = V4L2_CTRL_WHICH_REQUEST_VAL;
235 ctrls.request_fd = req_fd;
[all …]
/linux/drivers/media/platform/amphion/
H A Dvpu_windsor.c457 struct vpu_enc_ctrl ctrls[VID_API_NUM_STREAMS]; member
515 return hcs->ctrls[instance].yuv_desc; in get_yuv_desc()
523 return hcs->ctrls[instance].pool; in get_mem_pool()
531 return hcs->ctrls[instance].stream_desc; in get_stream_buf_desc()
539 return hcs->ctrls[instance].expert; in get_expert_param()
546 return hcs->ctrls[instance].param; in get_enc_param()
604 hcs->ctrls[i].yuv_desc = rpc->virt + offset; in vpu_windsor_init_rpc()
608 hcs->ctrls[i].stream_desc = rpc->virt + offset; in vpu_windsor_init_rpc()
612 hcs->ctrls[i].expert = rpc->virt + offset; in vpu_windsor_init_rpc()
616 hcs->ctrls[i].param = rpc->virt + offset; in vpu_windsor_init_rpc()
[all …]

123