Home
last modified time | relevance | path

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

123456

/linux-6.3-rc2/drivers/media/i2c/s5c73m3/
A Ds5c73m3-ctrls.c107 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()
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()
168 struct s5c73m3_ctrls *c = &state->ctrls; in s5c73m3_af_run()
196 && state->ctrls.auto_wb->val) { in s5c73m3_3a_lock()
211 struct s5c73m3_ctrls *c = &state->ctrls; in s5c73m3_set_auto_focus()
257 iso = state->ctrls.iso->val + 1; in s5c73m3_set_iso()
444 struct s5c73m3_ctrls *ctrls = &state->ctrls; in s5c73m3_init_controls() local
[all …]
/linux-6.3-rc2/Documentation/userspace-api/media/v4l/
A Dcommon.rst42 ext-ctrls-camera
43 ext-ctrls-flash
44 ext-ctrls-image-source
46 ext-ctrls-codec
48 ext-ctrls-jpeg
49 ext-ctrls-dv
50 ext-ctrls-rf-tuner
51 ext-ctrls-fm-tx
52 ext-ctrls-fm-rx
53 ext-ctrls-detect
[all …]
/linux-6.3-rc2/drivers/media/v4l2-core/
A Dv4l2-flash-led-class.c82 struct v4l2_ctrl **ctrls = v4l2_flash->ctrls; in v4l2_flash_set_led_brightness() local
125 struct v4l2_ctrl **ctrls = v4l2_flash->ctrls; in v4l2_flash_update_led_brightness() local
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
242 if (ctrls[STROBE_SOURCE]) { in v4l2_flash_s_ctrl()
252 if (ctrls[STROBE_SOURCE]) { in v4l2_flash_s_ctrl()
442 if (!v4l2_flash->ctrls) in v4l2_flash_init_controls()
509 struct v4l2_ctrl **ctrls = v4l2_flash->ctrls; in __sync_device_with_v4l2_controls() local
512 if (ctrls[TORCH_INTENSITY]) { in __sync_device_with_v4l2_controls()
526 if (ctrls[FLASH_TIMEOUT]) { in __sync_device_with_v4l2_controls()
[all …]
/linux-6.3-rc2/drivers/media/usb/gspca/stv06xx/
A Dstv06xx_pb0100.c80 struct pb0100_ctrls *ctrls = sd->sensor_priv; in pb0100_s_ctrl() local
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()
147 kfree(ctrls); in pb0100_init_controls()
150 sd->sensor_priv = ctrls; in pb0100_init_controls()
325 struct pb0100_ctrls *ctrls = sd->sensor_priv; in pb0100_set_gain() local
347 val += ctrls->gain->val; in pb0100_set_red_balance()
366 val += ctrls->gain->val; in pb0100_set_blue_balance()
398 if (ctrls->natural->val) in pb0100_set_autogain()
[all …]
/linux-6.3-rc2/drivers/staging/media/deprecated/atmel/
A Datmel-isc-base.c53 struct isc_ctrls *ctrls = &isc->ctrls; in isc_update_v4l2_ctrls() local
69 struct isc_ctrls *ctrls = &isc->ctrls; in isc_update_awb_ctrls() local
213 struct isc_ctrls *ctrls = &isc->ctrls; in isc_set_pipeline() local
272 struct isc_ctrls *ctrls = &isc->ctrls; in isc_set_histogram() local
1275 struct isc_ctrls *ctrls = &isc->ctrls; in isc_hist_count() local
1356 ctrls->offset[c] = -ctrls->offset[c]; in isc_wb_update()
1402 struct isc_ctrls *ctrls = &isc->ctrls; in isc_awb_work() local
1492 struct isc_ctrls *ctrls = &isc->ctrls; in isc_s_ctrl() local
1522 struct isc_ctrls *ctrls = &isc->ctrls; in isc_s_awb_ctrl() local
1600 struct isc_ctrls *ctrls = &isc->ctrls; in isc_g_volatile_awb_ctrl() local
[all …]
/linux-6.3-rc2/drivers/media/platform/microchip/
A Dmicrochip-isc-base.c44 struct isc_ctrls *ctrls = &isc->ctrls; in isc_update_v4l2_ctrls() local
60 struct isc_ctrls *ctrls = &isc->ctrls; in isc_update_awb_ctrls() local
203 struct isc_ctrls *ctrls = &isc->ctrls; in isc_set_pipeline() local
262 struct isc_ctrls *ctrls = &isc->ctrls; in isc_set_histogram() local
1264 struct isc_ctrls *ctrls = &isc->ctrls; in isc_hist_count() local
1343 ctrls->offset[c] = -ctrls->offset[c]; in isc_wb_update()
1388 struct isc_ctrls *ctrls = &isc->ctrls; in isc_awb_work() local
1478 struct isc_ctrls *ctrls = &isc->ctrls; in isc_s_ctrl() local
1508 struct isc_ctrls *ctrls = &isc->ctrls; in isc_s_awb_ctrl() local
1585 struct isc_ctrls *ctrls = &isc->ctrls; in isc_g_volatile_awb_ctrl() local
[all …]
/linux-6.3-rc2/drivers/media/platform/verisilicon/
A Dhantro_h264.c204 const struct hantro_h264_dec_ctrls *ctrls = &ctx->h264_dec.ctrls; in assemble_scaling_list() local
234 const struct hantro_h264_dec_ctrls *ctrls = &ctx->h264_dec.ctrls; in prepare_table() local
441 struct hantro_h264_dec_ctrls *ctrls = &h264_ctx->ctrls; in hantro_h264_dec_prepare_run() local
446 ctrls->scaling = in hantro_h264_dec_prepare_run()
448 if (WARN_ON(!ctrls->scaling)) in hantro_h264_dec_prepare_run()
451 ctrls->decode = in hantro_h264_dec_prepare_run()
453 if (WARN_ON(!ctrls->decode)) in hantro_h264_dec_prepare_run()
456 ctrls->sps = in hantro_h264_dec_prepare_run()
458 if (WARN_ON(!ctrls->sps)) in hantro_h264_dec_prepare_run()
461 ctrls->pps = in hantro_h264_dec_prepare_run()
[all …]
A Dhantro_hevc.c74 const struct hantro_hevc_dec_ctrls *ctrls = &ctx->hevc_dec.ctrls; in tile_buffer_reallocate() local
75 const struct v4l2_ctrl_hevc_pps *pps = ctrls->pps; 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()
203 ctrls->pps = in hantro_hevc_dec_prepare_run()
[all …]
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()
A Dhantro_g2_hevc_dec.c28 const struct hantro_hevc_dec_ctrls *ctrls = &ctx->hevc_dec.ctrls; in prepare_tile_info_buffer() local
29 const struct v4l2_ctrl_hevc_pps *pps = ctrls->pps; in prepare_tile_info_buffer()
30 const struct v4l2_ctrl_hevc_sps *sps = ctrls->sps; in prepare_tile_info_buffer()
122 const struct hantro_hevc_dec_ctrls *ctrls = &ctx->hevc_dec.ctrls; in compute_header_skip_length() local
124 const struct v4l2_ctrl_hevc_sps *sps = ctrls->sps; in compute_header_skip_length()
125 const struct v4l2_ctrl_hevc_pps *pps = ctrls->pps; in compute_header_skip_length()
157 const struct hantro_hevc_dec_ctrls *ctrls = &ctx->hevc_dec.ctrls; in set_params() local
158 const struct v4l2_ctrl_hevc_sps *sps = ctrls->sps; in set_params()
302 const struct hantro_hevc_dec_ctrls *ctrls = &ctx->hevc_dec.ctrls; in set_ref_pic_list() local
379 const struct hantro_hevc_dec_ctrls *ctrls = &ctx->hevc_dec.ctrls; in set_ref() local
[all …]
/linux-6.3-rc2/drivers/media/i2c/
A Dov9650.c269 struct ov965x_ctrls ctrls; member
543 ov965x->ctrls.update = 1; in ov965x_s_power()
673 struct ov965x_ctrls *ctrls = &ov965x->ctrls; in ov965x_set_gain() local
684 if (ctrls->auto_gain->val) in ov965x_set_gain()
761 struct ov965x_ctrls *ctrls = &ov965x->ctrls; in ov965x_set_exposure() local
989 struct ov965x_ctrls *ctrls = &ov965x->ctrls; in ov965x_initialize_controls() local
1006 ctrls->auto_exp = in ov965x_initialize_controls()
1031 ctrls->light_freq = in ov965x_initialize_controls()
1278 struct ov965x_ctrls *ctrls = &ov965x->ctrls; in __ov965x_set_params() local
1325 struct ov965x_ctrls *ctrls = &ov965x->ctrls; in ov965x_s_stream() local
[all …]
A Dov2680.c118 struct ov2680_ctrls ctrls; member
194 ctrls.handler)->sd; in ctrl_to_sd()
410 struct ov2680_ctrls *ctrls = &sensor->ctrls; in ov2680_gain_set() local
422 gain = ctrls->gain->val; in ov2680_gain_set()
443 struct ov2680_ctrls *ctrls = &sensor->ctrls; in ov2680_exposure_set() local
485 struct ov2680_ctrls *ctrls = &sensor->ctrls; in ov2680_mode_set() local
500 if (ctrls->auto_gain->val) { in ov2680_mode_set()
801 struct ov2680_ctrls *ctrls = &sensor->ctrls; in ov2680_g_volatile_ctrl() local
812 ctrls->gain->val = val; in ov2680_g_volatile_ctrl()
829 struct ov2680_ctrls *ctrls = &sensor->ctrls; in ov2680_s_ctrl() local
[all …]
A Dadp1653.c202 v4l2_ctrl_handler_init(&flash->ctrls, 9); in adp1653_init_controls()
211 v4l2_ctrl_new_std(&flash->ctrls, &adp1653_ctrl_ops, in adp1653_init_controls()
247 if (flash->ctrls.error) in adp1653_init_controls()
248 return flash->ctrls.error; in adp1653_init_controls()
252 flash->subdev.ctrl_handler = &flash->ctrls; in adp1653_init_controls()
273 mutex_lock(flash->ctrls.lock); in adp1653_init_device()
277 mutex_unlock(flash->ctrls.lock); in adp1653_init_device()
283 mutex_lock(flash->ctrls.lock); in adp1653_init_device()
285 mutex_unlock(flash->ctrls.lock); in adp1653_init_device()
508 v4l2_ctrl_handler_free(&flash->ctrls); in adp1653_probe()
[all …]
A Dov5693.c189 } ctrls; member
1214 struct ov5693_v4l2_ctrls *ctrls = &ov5693->ctrls; in ov5693_init_controls() local
1226 ctrls->link_freq = v4l2_ctrl_new_int_menu(&ctrls->handler, in ov5693_init_controls()
1233 ctrls->pixel_rate = v4l2_ctrl_new_std(&ctrls->handler, NULL, in ov5693_init_controls()
1240 ctrls->exposure = v4l2_ctrl_new_std(&ctrls->handler, ops, in ov5693_init_controls()
1246 ctrls->analogue_gain = v4l2_ctrl_new_std(&ctrls->handler, in ov5693_init_controls()
1253 ctrls->digital_gain = v4l2_ctrl_new_std(&ctrls->handler, ops, in ov5693_init_controls()
1261 ctrls->hflip = v4l2_ctrl_new_std(&ctrls->handler, ops, in ov5693_init_controls()
1264 ctrls->vflip = v4l2_ctrl_new_std(&ctrls->handler, ops, in ov5693_init_controls()
1268 ctrls->hblank = v4l2_ctrl_new_std(&ctrls->handler, ops, in ov5693_init_controls()
[all …]
A Dar0521.c127 struct ar0521_ctrls ctrls; member
148 ctrls.handler)->sd; in ctrl_to_sd()
227 int green = sensor->ctrls.gain->val; in ar0521_set_gains()
494 sensor->ctrls.hblank->minimum, in ar0521_set_fmt()
501 sensor->ctrls.hblank->minimum); in ar0521_set_fmt()
514 sensor->ctrls.vblank->minimum); in ar0521_set_fmt()
522 sensor->ctrls.exposure->step, in ar0521_set_fmt()
543 sensor->ctrls.exposure->minimum, in ar0521_s_ctrl()
601 struct ar0521_ctrls *ctrls = &sensor->ctrls; in ar0521_init_controls() local
623 v4l2_ctrl_cluster(3, &ctrls->gain); in ar0521_init_controls()
[all …]
A Dov5648.c661 struct ov5648_ctrls ctrls; member
1529 struct ov5648_ctrls *ctrls = &sensor->ctrls; in ov5648_exposure_configure() local
1585 struct ov5648_ctrls *ctrls = &sensor->ctrls; in ov5648_gain_configure() local
1631 struct ov5648_ctrls *ctrls = &sensor->ctrls; in ov5648_white_balance_configure() local
1694 struct ov5648_ctrls *ctrls = &sensor->ctrls; in ov5648_state_mipi_configure() local
1941 struct ov5648_ctrls *ctrls = &sensor->ctrls; in ov5648_g_volatile_ctrl() local
1966 struct ov5648_ctrls *ctrls = &sensor->ctrls; in ov5648_s_ctrl() local
2041 struct ov5648_ctrls *ctrls = &sensor->ctrls; in ov5648_ctrls_init() local
2065 ctrls->gain_auto = in ov5648_ctrls_init()
2102 ctrls->link_freq = in ov5648_ctrls_init()
[all …]
A Dov5640.c461 struct ov5640_ctrls ctrls; member
478 ctrls.handler)->sd; in ctrl_to_sd()
3183 struct ov5640_ctrls *ctrls = &sensor->ctrls; in ov5640_set_ctrl_exposure() local
3187 if (ctrls->auto_exp->is_new) { in ov5640_set_ctrl_exposure()
3215 struct ov5640_ctrls *ctrls = &sensor->ctrls; in ov5640_set_ctrl_gain() local
3218 if (ctrls->auto_gain->is_new) { in ov5640_set_ctrl_gain()
3344 sensor->ctrls.gain->val = val; in ov5640_g_volatile_ctrl()
3350 sensor->ctrls.exposure->val = val; in ov5640_g_volatile_ctrl()
3445 struct ov5640_ctrls *ctrls = &sensor->ctrls; in ov5640_init_controls() local
3507 ctrls->test_pattern = in ov5640_init_controls()
[all …]
/linux-6.3-rc2/drivers/media/platform/st/sti/hva/
A Dhva-debugfs.c17 struct hva_controls *ctrls = &ctx->ctrls; in format_ctx() local
53 ctrls->bitrate, in format_ctx()
54 ctrls->gop_size, in format_ctx()
56 ctrls->time_per_frame.denominator, in format_ctx()
57 ctrls->time_per_frame.numerator); in format_ctx()
73 ctrls->cpb_size, in format_ctx()
74 ctrls->dct8x8 ? "true" : "false", in format_ctx()
75 ctrls->qpmin, in format_ctx()
76 ctrls->qpmax, in format_ctx()
77 ctrls->vui_sar ? "true" : "false", in format_ctx()
[all …]
A Dhva-h264.c417 struct hva_controls *ctrls, in hva_h264_fill_slice_header() argument
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
624 level = ctrls->level; in hva_h264_prepare_task()
650 td->bit_rate = ctrls->bitrate; in hva_h264_prepare_task()
746 td->transform_mode = ctrls->dct8x8; in hva_h264_prepare_task()
768 td->qp_min = clamp_val(ctrls->qpmin, 0, 51); in hva_h264_prepare_task()
769 td->qp_max = clamp_val(ctrls->qpmax, 0, 51); in hva_h264_prepare_task()
[all …]
/linux-6.3-rc2/drivers/media/platform/renesas/vsp1/
A Dvsp1_hgo.c158 mutex_lock(hgo->ctrls.handler.lock); in hgo_configure_stream()
159 hgo->max_rgb = hgo->ctrls.max_rgb->cur.val; in hgo_configure_stream()
160 if (hgo->ctrls.num_bins) in hgo_configure_stream()
161 hgo->num_bins = hgo_num_bins[hgo->ctrls.num_bins->cur.val]; in hgo_configure_stream()
162 mutex_unlock(hgo->ctrls.handler.lock); in hgo_configure_stream()
198 v4l2_ctrl_handler_init(&hgo->ctrls.handler, in vsp1_hgo_create()
200 hgo->ctrls.max_rgb = v4l2_ctrl_new_custom(&hgo->ctrls.handler, in vsp1_hgo_create()
203 hgo->ctrls.num_bins = in vsp1_hgo_create()
204 v4l2_ctrl_new_custom(&hgo->ctrls.handler, in vsp1_hgo_create()
210 hgo->histo.entity.subdev.ctrl_handler = &hgo->ctrls.handler; in vsp1_hgo_create()
A Dvsp1_wpf.c103 rotation = wpf->flip.ctrls.rotate ? wpf->flip.ctrls.rotate->val : 0; in vsp1_wpf_s_ctrl()
114 if (wpf->flip.ctrls.vflip->val) in vsp1_wpf_s_ctrl()
117 if (wpf->flip.ctrls.hflip && wpf->flip.ctrls.hflip->val) in vsp1_wpf_s_ctrl()
164 wpf->flip.ctrls.vflip = in wpf_init_controls()
165 v4l2_ctrl_new_std(&wpf->ctrls, &vsp1_wpf_ctrl_ops, in wpf_init_controls()
170 wpf->flip.ctrls.hflip = in wpf_init_controls()
173 wpf->flip.ctrls.rotate = in wpf_init_controls()
176 v4l2_ctrl_cluster(3, &wpf->flip.ctrls.vflip); in wpf_init_controls()
179 if (wpf->ctrls.error) { in wpf_init_controls()
182 return wpf->ctrls.error; in wpf_init_controls()
[all …]
A Dvsp1_hgt.c101 ctrls); in hgt_hue_areas_s_ctrl()
157 mutex_lock(hgt->ctrls.lock); in hgt_configure_stream()
165 mutex_unlock(hgt->ctrls.lock); in hgt_configure_stream()
197 v4l2_ctrl_handler_init(&hgt->ctrls, 1); in vsp1_hgt_create()
198 v4l2_ctrl_new_custom(&hgt->ctrls, &hgt_hue_areas, NULL); in vsp1_hgt_create()
200 hgt->histo.entity.subdev.ctrl_handler = &hgt->ctrls; in vsp1_hgt_create()
212 v4l2_ctrl_handler_setup(&hgt->ctrls); in vsp1_hgt_create()
A Dvsp1_clu.c67 container_of(ctrl->handler, struct vsp1_clu, ctrls); in clu_s_ctrl()
270 v4l2_ctrl_handler_init(&clu->ctrls, 2); in vsp1_clu_create()
271 v4l2_ctrl_new_custom(&clu->ctrls, &clu_table_control, NULL); in vsp1_clu_create()
272 v4l2_ctrl_new_custom(&clu->ctrls, &clu_mode_control, NULL); in vsp1_clu_create()
274 clu->entity.subdev.ctrl_handler = &clu->ctrls; in vsp1_clu_create()
276 if (clu->ctrls.error) { in vsp1_clu_create()
278 ret = clu->ctrls.error; in vsp1_clu_create()
283 v4l2_ctrl_handler_setup(&clu->ctrls); in vsp1_clu_create()
/linux-6.3-rc2/drivers/media/platform/samsung/exynos4-is/
A Dfimc-core.c576 struct fimc_ctrls *ctrls = &ctx->ctrls; in fimc_ctrls_create() local
579 if (ctx->ctrls.ready) in fimc_ctrls_create()
596 ctrls->alpha = NULL; in fimc_ctrls_create()
609 ctrls->ready = true; in fimc_ctrls_create()
617 struct fimc_ctrls *ctrls = &ctx->ctrls; in fimc_ctrls_delete() local
619 if (ctrls->ready) { in fimc_ctrls_delete()
621 ctrls->ready = false; in fimc_ctrls_delete()
622 ctrls->alpha = NULL; in fimc_ctrls_delete()
629 struct fimc_ctrls *ctrls = &ctx->ctrls; in fimc_ctrls_activate() local
631 if (!ctrls->ready) in fimc_ctrls_activate()
[all …]
/linux-6.3-rc2/drivers/media/test-drivers/visl/
A Dvisl-core.c98 .ctrls = visl_fwht_ctrl_descs,
115 .ctrls = visl_mpeg2_ctrl_descs,
126 .ctrls = visl_vp8_ctrl_descs,
140 .ctrls = visl_vp9_ctrl_descs,
172 .ctrls = visl_h264_ctrl_descs,
210 .ctrls = visl_hevc_ctrl_descs,
263 const struct visl_ctrls *ctrls; in visl_init_ctrls() local
266 ctrl_cnt += visl_coded_fmts[i].ctrls->num_ctrls; in visl_init_ctrls()
271 ctrls = visl_coded_fmts[i].ctrls; in visl_init_ctrls()
272 for (j = 0; j < ctrls->num_ctrls; j++) in visl_init_ctrls()
[all …]

Completed in 71 milliseconds

123456