/kernel/linux/linux-6.6/drivers/media/i2c/ |
H A D | ov9650.c | 26 #include <media/v4l2-ctrls.h> 269 struct ov965x_ctrls ctrls; member 415 return &container_of(ctrl->handler, struct ov965x, ctrls.handler)->sd; in ctrl_to_sd() 543 ov965x->ctrls.update = 1; in ov965x_s_power() 560 struct v4l2_ctrl *ctrl = ov965x->ctrls.exposure; in ov965x_update_exposure_ctrl() 635 ov965x->ctrls.blue_balance->val); in ov965x_set_white_balance() 639 ov965x->ctrls.red_balance->val); in ov965x_set_white_balance() 673 struct ov965x_ctrls *ctrls = &ov965x->ctrls; in ov965x_set_gain() local 680 if (ctrls in ov965x_set_gain() 761 struct ov965x_ctrls *ctrls = &ov965x->ctrls; ov965x_set_exposure() local 989 struct ov965x_ctrls *ctrls = &ov965x->ctrls; ov965x_initialize_controls() local 1278 struct ov965x_ctrls *ctrls = &ov965x->ctrls; __ov965x_set_params() local 1325 struct ov965x_ctrls *ctrls = &ov965x->ctrls; ov965x_s_stream() local [all...] |
H A D | mt9v011.c | 14 #include <media/v4l2-ctrls.h> 55 struct v4l2_ctrl_handler ctrls; member 416 container_of(ctrl->handler, struct mt9v011, ctrls); in mt9v011_s_ctrl() 520 v4l2_ctrl_handler_init(&core->ctrls, 5); in mt9v011_probe() 521 v4l2_ctrl_new_std(&core->ctrls, &mt9v011_ctrl_ops, in mt9v011_probe() 523 v4l2_ctrl_new_std(&core->ctrls, &mt9v011_ctrl_ops, in mt9v011_probe() 525 v4l2_ctrl_new_std(&core->ctrls, &mt9v011_ctrl_ops, 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, in mt9v011_probe() [all...] |
H A D | ov5648.c | 16 #include <media/v4l2-ctrls.h> 500 ctrls.handler)->subdev) 661 struct ov5648_ctrls ctrls; member 1529 struct ov5648_ctrls *ctrls = &sensor->ctrls; in ov5648_exposure_configure() local 1532 if (ctrls->exposure_auto->val != V4L2_EXPOSURE_MANUAL) in ov5648_exposure_configure() 1585 struct ov5648_ctrls *ctrls = &sensor->ctrls; in ov5648_gain_configure() local 1588 if (ctrls->gain_auto->val) in ov5648_gain_configure() 1631 struct ov5648_ctrls *ctrls in ov5648_white_balance_configure() local 1694 struct ov5648_ctrls *ctrls = &sensor->ctrls; ov5648_state_mipi_configure() local 1941 struct ov5648_ctrls *ctrls = &sensor->ctrls; ov5648_g_volatile_ctrl() local 1966 struct ov5648_ctrls *ctrls = &sensor->ctrls; ov5648_s_ctrl() local 2041 struct ov5648_ctrls *ctrls = &sensor->ctrls; ov5648_ctrls_init() local [all...] |
H A D | ad5820.c | 24 #include <media/v4l2-ctrls.h> 44 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()
|
/kernel/linux/linux-5.10/drivers/media/platform/vsp1/ |
H A D | vsp1_wpf.c | 97 container_of(ctrl->handler, struct vsp1_rwpf, ctrls); in vsp1_wpf_s_ctrl() 103 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() 171 v4l2_ctrl_new_std(&wpf->ctrls, in wpf_init_controls() [all...] |
H A D | vsp1_hgt.c | 101 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()
|
H A D | vsp1_lut.c | 64 container_of(ctrl->handler, struct vsp1_lut, ctrls); in lut_s_ctrl() 226 v4l2_ctrl_handler_init(&lut->ctrls, 1); in vsp1_lut_create() 227 v4l2_ctrl_new_custom(&lut->ctrls, &lut_table_control, NULL); in vsp1_lut_create() 229 lut->entity.subdev.ctrl_handler = &lut->ctrls; in vsp1_lut_create() 231 if (lut->ctrls.error) { in vsp1_lut_create() 233 ret = lut->ctrls.error; in vsp1_lut_create() 238 v4l2_ctrl_handler_setup(&lut->ctrls); in vsp1_lut_create()
|
H A D | vsp1_clu.c | 67 container_of(ctrl->handler, struct vsp1_clu, ctrls); in clu_s_ctrl() 269 v4l2_ctrl_handler_init(&clu->ctrls, 2); in vsp1_clu_create() 270 v4l2_ctrl_new_custom(&clu->ctrls, &clu_table_control, NULL); in vsp1_clu_create() 271 v4l2_ctrl_new_custom(&clu->ctrls, &clu_mode_control, NULL); in vsp1_clu_create() 273 clu->entity.subdev.ctrl_handler = &clu->ctrls; in vsp1_clu_create() 275 if (clu->ctrls.error) { in vsp1_clu_create() 277 ret = clu->ctrls.error; in vsp1_clu_create() 282 v4l2_ctrl_handler_setup(&clu->ctrls); in vsp1_clu_create()
|
/kernel/linux/linux-6.6/drivers/media/platform/renesas/vsp1/ |
H A D | vsp1_wpf.c | 97 container_of(ctrl->handler, struct vsp1_rwpf, ctrls); in vsp1_wpf_s_ctrl() 103 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() 171 v4l2_ctrl_new_std(&wpf->ctrls, in wpf_init_controls() [all...] |
H A D | vsp1_lut.c | 64 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 D | vsp1_hgt.c | 101 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()
|
H A D | vsp1_clu.c | 67 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()
|
/kernel/linux/linux-6.6/drivers/media/platform/verisilicon/ |
H A D | hantro_g2_hevc_dec.c | 28 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 123 const struct v4l2_ctrl_hevc_decode_params *decode_params = ctrls->decode_params; in compute_header_skip_length() 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 in set_params() local 302 const struct hantro_hevc_dec_ctrls *ctrls = &ctx->hevc_dec.ctrls; set_ref_pic_list() local 379 const struct hantro_hevc_dec_ctrls *ctrls = &ctx->hevc_dec.ctrls; set_ref() local 531 const struct hantro_hevc_dec_ctrls *ctrls = &ctx->hevc_dec.ctrls; prepare_scaling_list_buffer() local [all...] |
H A D | hantro_h264.c | 204 const struct hantro_h264_dec_ctrls *ctrls = &ctx->h264_dec.ctrls; in assemble_scaling_list() local 205 const struct v4l2_ctrl_h264_scaling_matrix *scaling = ctrls->scaling; in assemble_scaling_list() 206 const struct v4l2_ctrl_h264_pps *pps = ctrls->pps; in assemble_scaling_list() 234 const struct hantro_h264_dec_ctrls *ctrls = &ctx->h264_dec.ctrls; in prepare_table() local 235 const struct v4l2_ctrl_h264_decode_params *dec_param = ctrls->decode; in prepare_table() 236 const struct v4l2_ctrl_h264_sps *sps = ctrls->sps; in prepare_table() 303 dec_param = ctx->h264_dec.ctrls.decode; in update_dpb() 441 struct hantro_h264_dec_ctrls *ctrls in hantro_h264_dec_prepare_run() local [all...] |
/kernel/linux/linux-5.10/drivers/media/i2c/ |
H A D | imx274.c | 26 #include <media/v4l2-ctrls.h> 496 * @ctrls: imx274 control structure 511 struct imx274_ctrls ctrls; member 549 struct stimx274, ctrls.handler)->sd; in ctrl_to_sd() 1162 v_pos = imx274->ctrls.vflip->cur.val ? in imx274_apply_trimming() 1230 struct v4l2_ctrl *ctrl = imx274->ctrls.exposure; in imx274_s_frame_interval() 1281 priv->ctrls.exposure->val = 1000000 / IMX274_DEF_FRAME_RATE; in imx274_load_default() 1282 priv->ctrls.gain->val = IMX274_DEF_GAIN; in imx274_load_default() 1283 priv->ctrls.vflip->val = 0; in imx274_load_default() 1284 priv->ctrls in imx274_load_default() [all...] |
H A D | mt9v011.c | 14 #include <media/v4l2-ctrls.h> 55 struct v4l2_ctrl_handler ctrls; member 416 container_of(ctrl->handler, struct mt9v011, ctrls); in mt9v011_s_ctrl() 521 v4l2_ctrl_handler_init(&core->ctrls, 5); in mt9v011_probe() 522 v4l2_ctrl_new_std(&core->ctrls, &mt9v011_ctrl_ops, in mt9v011_probe() 524 v4l2_ctrl_new_std(&core->ctrls, &mt9v011_ctrl_ops, in mt9v011_probe() 526 v4l2_ctrl_new_std(&core->ctrls, &mt9v011_ctrl_ops, in mt9v011_probe() 528 v4l2_ctrl_new_std(&core->ctrls, &mt9v011_ctrl_ops, in mt9v011_probe() 530 v4l2_ctrl_new_std(&core->ctrls, &mt9v011_ctrl_ops, in mt9v011_probe() 532 v4l2_ctrl_new_std(&core->ctrls, in mt9v011_probe() [all...] |
H A D | ad5820.c | 24 #include <media/v4l2-ctrls.h> 44 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() 353 v4l2_ctrl_handler_free(&coil->ctrls); in ad5820_remove()
|
/kernel/linux/linux-5.10/drivers/media/platform/exynos4-is/ |
H A D | fimc-isp.c | 508 idx = is->isp.ctrls.iso->val; in __ctrl_set_iso() 689 struct v4l2_ctrl_handler *handler = &isp->ctrls.handler; in fimc_isp_subdev_create() 691 struct fimc_isp_ctrls *ctrls = &isp->ctrls; in fimc_isp_subdev_create() local 714 ctrls->saturation = v4l2_ctrl_new_std(handler, ops, V4L2_CID_SATURATION, in fimc_isp_subdev_create() 716 ctrls->brightness = v4l2_ctrl_new_std(handler, ops, V4L2_CID_BRIGHTNESS, in fimc_isp_subdev_create() 718 ctrls->contrast = v4l2_ctrl_new_std(handler, ops, V4L2_CID_CONTRAST, in fimc_isp_subdev_create() 720 ctrls->sharpness = v4l2_ctrl_new_std(handler, ops, V4L2_CID_SHARPNESS, in fimc_isp_subdev_create() 722 ctrls->hue = v4l2_ctrl_new_std(handler, ops, V4L2_CID_HUE, in fimc_isp_subdev_create() 725 ctrls in fimc_isp_subdev_create() [all...] |
/kernel/linux/linux-6.6/drivers/media/platform/samsung/exynos4-is/ |
H A D | fimc-isp.c | 515 idx = is->isp.ctrls.iso->val; in __ctrl_set_iso() 696 struct v4l2_ctrl_handler *handler = &isp->ctrls.handler; in fimc_isp_subdev_create() 698 struct fimc_isp_ctrls *ctrls = &isp->ctrls; in fimc_isp_subdev_create() local 721 ctrls->saturation = v4l2_ctrl_new_std(handler, ops, V4L2_CID_SATURATION, in fimc_isp_subdev_create() 723 ctrls->brightness = v4l2_ctrl_new_std(handler, ops, V4L2_CID_BRIGHTNESS, in fimc_isp_subdev_create() 725 ctrls->contrast = v4l2_ctrl_new_std(handler, ops, V4L2_CID_CONTRAST, in fimc_isp_subdev_create() 727 ctrls->sharpness = v4l2_ctrl_new_std(handler, ops, V4L2_CID_SHARPNESS, in fimc_isp_subdev_create() 729 ctrls->hue = v4l2_ctrl_new_std(handler, ops, V4L2_CID_HUE, in fimc_isp_subdev_create() 732 ctrls in fimc_isp_subdev_create() [all...] |
/kernel/linux/linux-6.6/drivers/media/test-drivers/visl/ |
H A D | visl-core.c | 44 #include <media/v4l2-ctrls.h> 98 .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 in visl_init_ctrls() [all...] |
/kernel/linux/linux-5.10/drivers/media/platform/sti/hva/ |
H A D | hva-h264.c | 417 struct hva_controls *ctrls, in hva_h264_fill_slice_header() 435 u32 frame_order = frame_num % ctrls->gop_size; in hva_h264_fill_slice_header() 437 if (!(frame_num % ctrls->gop_size)) in hva_h264_fill_slice_header() 454 if ((frame_num / ctrls->gop_size) % 2) { in hva_h264_fill_slice_header() 467 if (ctrls->entropy_mode == cabac) { in hva_h264_fill_slice_header() 597 struct hva_controls *ctrls = &pctx->ctrls; in hva_h264_prepare_task() local 598 struct v4l2_fract *time_per_frame = &pctx->ctrls.time_per_frame; in hva_h264_prepare_task() 622 level = ctrls->level; in hva_h264_prepare_task() 642 td->brc_type = (ctrls in hva_h264_prepare_task() 415 hva_h264_fill_slice_header(struct hva_ctx *pctx, u8 *slice_header_addr, struct hva_controls *ctrls, int frame_num, u16 *header_size, u16 *header_offset0, u16 *header_offset1, u16 *header_offset2) hva_h264_fill_slice_header() argument [all...] |
/kernel/linux/linux-6.6/drivers/media/platform/st/sti/hva/ |
H A D | hva-h264.c | 417 struct hva_controls *ctrls, in hva_h264_fill_slice_header() 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 in hva_h264_prepare_task() 415 hva_h264_fill_slice_header(struct hva_ctx *pctx, u8 *slice_header_addr, struct hva_controls *ctrls, int frame_num, u16 *header_size, u16 *header_offset0, u16 *header_offset1, u16 *header_offset2) hva_h264_fill_slice_header() argument [all...] |
/kernel/linux/linux-6.6/drivers/staging/media/sunxi/cedrus/ |
H A D | cedrus.c | 23 #include <media/v4l2-ctrls.h> 252 for (i = 0; ctx->ctrls[i]; i++) in cedrus_find_control_data() 253 if (ctx->ctrls[i]->id == id) in cedrus_find_control_data() 254 return ctx->ctrls[i]->p_cur.p; in cedrus_find_control_data() 263 for (i = 0; ctx->ctrls[i]; i++) in cedrus_get_num_of_controls() 264 if (ctx->ctrls[i]->id == id) in cedrus_get_num_of_controls() 265 return ctx->ctrls[i]->elems; in cedrus_get_num_of_controls() 287 ctx->ctrls = kzalloc(ctrl_size, GFP_KERNEL); in cedrus_init_ctrls() 288 if (!ctx->ctrls) in cedrus_init_ctrls() 305 kfree(ctx->ctrls); in cedrus_init_ctrls() [all...] |
/kernel/linux/linux-5.10/drivers/staging/media/hantro/ |
H A D | hantro_h264.c | 198 const struct hantro_h264_dec_ctrls *ctrls = &ctx->h264_dec.ctrls; in assemble_scaling_list() local 199 const struct v4l2_ctrl_h264_scaling_matrix *scaling = ctrls->scaling; in assemble_scaling_list() 200 const struct v4l2_ctrl_h264_pps *pps = ctrls->pps; in assemble_scaling_list() 228 const struct hantro_h264_dec_ctrls *ctrls = &ctx->h264_dec.ctrls; in prepare_table() local 229 const struct v4l2_ctrl_h264_decode_params *dec_param = ctrls->decode; in prepare_table() 259 dec_param = ctx->h264_dec.ctrls.decode; in update_dpb() 341 struct hantro_h264_dec_ctrls *ctrls = &h264_ctx->ctrls; in hantro_h264_dec_prepare_run() local [all...] |
/kernel/linux/linux-6.6/drivers/media/v4l2-core/ |
H A D | Makefile | 13 v4l2-ctrls-core.o v4l2-ctrls-api.o \ 14 v4l2-ctrls-request.o v4l2-ctrls-defs.o
|