Home
last modified time | relevance | path

Searched refs:ctrl_hdl (Results 1 – 24 of 24) sorted by relevance

/linux-6.1.9/drivers/media/i2c/adv748x/
Dadv748x-afe.c470 v4l2_ctrl_handler_init(&afe->ctrl_hdl, 5); in adv748x_afe_init_controls()
473 afe->ctrl_hdl.lock = &state->mutex; in adv748x_afe_init_controls()
475 v4l2_ctrl_new_std(&afe->ctrl_hdl, &adv748x_afe_ctrl_ops, in adv748x_afe_init_controls()
478 v4l2_ctrl_new_std(&afe->ctrl_hdl, &adv748x_afe_ctrl_ops, in adv748x_afe_init_controls()
481 v4l2_ctrl_new_std(&afe->ctrl_hdl, &adv748x_afe_ctrl_ops, in adv748x_afe_init_controls()
484 v4l2_ctrl_new_std(&afe->ctrl_hdl, &adv748x_afe_ctrl_ops, in adv748x_afe_init_controls()
488 v4l2_ctrl_new_std_menu_items(&afe->ctrl_hdl, &adv748x_afe_ctrl_ops, in adv748x_afe_init_controls()
493 afe->sd.ctrl_handler = &afe->ctrl_hdl; in adv748x_afe_init_controls()
494 if (afe->ctrl_hdl.error) { in adv748x_afe_init_controls()
495 v4l2_ctrl_handler_free(&afe->ctrl_hdl); in adv748x_afe_init_controls()
[all …]
Dadv748x-csi2.c276 v4l2_ctrl_handler_init(&tx->ctrl_hdl, 1); in adv748x_csi2_init_controls()
278 tx->pixel_rate = v4l2_ctrl_new_std(&tx->ctrl_hdl, in adv748x_csi2_init_controls()
283 tx->sd.ctrl_handler = &tx->ctrl_hdl; in adv748x_csi2_init_controls()
284 if (tx->ctrl_hdl.error) { in adv748x_csi2_init_controls()
285 v4l2_ctrl_handler_free(&tx->ctrl_hdl); in adv748x_csi2_init_controls()
286 return tx->ctrl_hdl.error; in adv748x_csi2_init_controls()
289 return v4l2_ctrl_handler_setup(&tx->ctrl_hdl); in adv748x_csi2_init_controls()
328 v4l2_ctrl_handler_free(&tx->ctrl_hdl); in adv748x_csi2_init()
342 v4l2_ctrl_handler_free(&tx->ctrl_hdl); in adv748x_csi2_cleanup()
Dadv748x-hdmi.c684 v4l2_ctrl_handler_init(&hdmi->ctrl_hdl, 5); in adv748x_hdmi_init_controls()
687 hdmi->ctrl_hdl.lock = &state->mutex; in adv748x_hdmi_init_controls()
689 v4l2_ctrl_new_std(&hdmi->ctrl_hdl, &adv748x_hdmi_ctrl_ops, in adv748x_hdmi_init_controls()
692 v4l2_ctrl_new_std(&hdmi->ctrl_hdl, &adv748x_hdmi_ctrl_ops, in adv748x_hdmi_init_controls()
695 v4l2_ctrl_new_std(&hdmi->ctrl_hdl, &adv748x_hdmi_ctrl_ops, in adv748x_hdmi_init_controls()
698 v4l2_ctrl_new_std(&hdmi->ctrl_hdl, &adv748x_hdmi_ctrl_ops, in adv748x_hdmi_init_controls()
707 v4l2_ctrl_new_std_menu_items(&hdmi->ctrl_hdl, &adv748x_hdmi_ctrl_ops, in adv748x_hdmi_init_controls()
712 hdmi->sd.ctrl_handler = &hdmi->ctrl_hdl; in adv748x_hdmi_init_controls()
713 if (hdmi->ctrl_hdl.error) { in adv748x_hdmi_init_controls()
714 v4l2_ctrl_handler_free(&hdmi->ctrl_hdl); in adv748x_hdmi_init_controls()
[all …]
Dadv748x.h85 struct v4l2_ctrl_handler ctrl_hdl; member
118 struct v4l2_ctrl_handler ctrl_hdl; member
135 container_of(ctrl->handler, struct adv748x_hdmi, ctrl_hdl)
153 struct v4l2_ctrl_handler ctrl_hdl; member
165 container_of(ctrl->handler, struct adv748x_afe, ctrl_hdl)
/linux-6.1.9/drivers/media/platform/mediatek/vcodec/
Dmtk_vcodec_dec_stateless.c150 v4l2_ctrl_request_complete(src_buf_req, &ctx->ctrl_hdl); in mtk_vdec_stateless_cap_to_disp()
191 v4l2_ctrl_request_complete(vb->req_obj.req, &ctx->ctrl_hdl); in vb2ops_vdec_buf_request_complete()
238 v4l2_ctrl_request_setup(src_buf_req, &ctx->ctrl_hdl); in mtk_vdec_worker()
259 v4l2_ctrl_request_complete(src_buf_req, &ctx->ctrl_hdl); in mtk_vdec_worker()
300 v4l2_ctrl_handler_init(&ctx->ctrl_hdl, NUM_CTRLS); in mtk_vcodec_dec_ctrls_setup()
301 if (ctx->ctrl_hdl.error) { in mtk_vcodec_dec_ctrls_setup()
303 return ctx->ctrl_hdl.error; in mtk_vcodec_dec_ctrls_setup()
309 v4l2_ctrl_new_custom(&ctx->ctrl_hdl, &cfg, NULL); in mtk_vcodec_dec_ctrls_setup()
310 if (ctx->ctrl_hdl.error) { in mtk_vcodec_dec_ctrls_setup()
311 mtk_v4l2_err("Adding control %d failed %d", i, ctx->ctrl_hdl.error); in mtk_vcodec_dec_ctrls_setup()
[all …]
Dmtk_vcodec_dec_stateful.c554 v4l2_ctrl_handler_init(&ctx->ctrl_hdl, 1); in mtk_vcodec_dec_ctrls_setup()
556 ctrl = v4l2_ctrl_new_std(&ctx->ctrl_hdl, &mtk_vcodec_dec_ctrl_ops, in mtk_vcodec_dec_ctrls_setup()
559 v4l2_ctrl_new_std_menu(&ctx->ctrl_hdl, &mtk_vcodec_dec_ctrl_ops, in mtk_vcodec_dec_ctrls_setup()
566 v4l2_ctrl_new_std_menu(&ctx->ctrl_hdl, &mtk_vcodec_dec_ctrl_ops, in mtk_vcodec_dec_ctrls_setup()
572 if (ctx->ctrl_hdl.error) { in mtk_vcodec_dec_ctrls_setup()
573 mtk_v4l2_err("Adding control failed %d", ctx->ctrl_hdl.error); in mtk_vcodec_dec_ctrls_setup()
574 return ctx->ctrl_hdl.error; in mtk_vcodec_dec_ctrls_setup()
577 v4l2_ctrl_handler_setup(&ctx->ctrl_hdl); in mtk_vcodec_dec_ctrls_setup()
Dmtk_vcodec_drv.h308 struct v4l2_ctrl_handler ctrl_hdl; member
532 return container_of(ctrl->handler, struct mtk_vcodec_ctx, ctrl_hdl); in ctrl_to_ctx()
Dmtk_vcodec_enc_drv.c189 v4l2_ctrl_handler_free(&ctx->ctrl_hdl); in fops_vcodec_open()
211 v4l2_ctrl_handler_free(&ctx->ctrl_hdl); in fops_vcodec_release()
Dmtk_vcodec_dec_drv.c228 v4l2_ctrl_handler_free(&ctx->ctrl_hdl); in fops_vcodec_open()
257 v4l2_ctrl_handler_free(&ctx->ctrl_hdl); in fops_vcodec_release()
Dmtk_vcodec_enc.c1307 ctx->fh.ctrl_handler = &ctx->ctrl_hdl; in mtk_vcodec_enc_set_default_params()
1365 struct v4l2_ctrl_handler *handler = &ctx->ctrl_hdl; in mtk_vcodec_enc_ctrls_setup()
1418 v4l2_ctrl_handler_setup(&ctx->ctrl_hdl); in mtk_vcodec_enc_ctrls_setup()
Dmtk_vcodec_dec.c155 ctx->fh.ctrl_handler = &ctx->ctrl_hdl; in mtk_vcodec_dec_set_default_params()
868 v4l2_ctrl_request_complete(req, &ctx->ctrl_hdl); in vb2ops_vdec_stop_streaming()
/linux-6.1.9/drivers/media/i2c/
Dadv7180.c207 struct v4l2_ctrl_handler ctrl_hdl; member
229 ctrl_hdl)->sd)
660 v4l2_ctrl_handler_init(&state->ctrl_hdl, 4); in adv7180_init_controls()
662 v4l2_ctrl_new_std(&state->ctrl_hdl, &adv7180_ctrl_ops, in adv7180_init_controls()
665 v4l2_ctrl_new_std(&state->ctrl_hdl, &adv7180_ctrl_ops, in adv7180_init_controls()
668 v4l2_ctrl_new_std(&state->ctrl_hdl, &adv7180_ctrl_ops, in adv7180_init_controls()
671 v4l2_ctrl_new_std(&state->ctrl_hdl, &adv7180_ctrl_ops, in adv7180_init_controls()
674 v4l2_ctrl_new_custom(&state->ctrl_hdl, &adv7180_ctrl_fast_switch, NULL); in adv7180_init_controls()
676 v4l2_ctrl_new_std_menu_items(&state->ctrl_hdl, &adv7180_ctrl_ops, in adv7180_init_controls()
682 state->sd.ctrl_handler = &state->ctrl_hdl; in adv7180_init_controls()
[all …]
Dmax2175.c268 struct v4l2_ctrl_handler ctrl_hdl; member
306 return container_of(h, struct max2175, ctrl_hdl); in max2175_from_ctrl_hdl()
1341 hdl = &ctx->ctrl_hdl; in max2175_probe()
1375 ctx->sd.ctrl_handler = &ctx->ctrl_hdl; in max2175_probe()
1401 v4l2_ctrl_handler_free(&ctx->ctrl_hdl); in max2175_probe()
1411 v4l2_ctrl_handler_free(&ctx->ctrl_hdl); in max2175_remove()
/linux-6.1.9/drivers/staging/media/rkvdec/
Drkvdec.c32 struct rkvdec_ctx *ctx = container_of(ctrl->handler, struct rkvdec_ctx, ctrl_hdl); in rkvdec_try_ctrl()
546 v4l2_ctrl_request_complete(vb->req_obj.req, &ctx->ctrl_hdl); in rkvdec_buf_request_complete()
587 &ctx->ctrl_hdl); in rkvdec_queue_cleanup()
676 v4l2_ctrl_request_setup(src_req, &ctx->ctrl_hdl); in rkvdec_run_preamble()
686 v4l2_ctrl_request_complete(src_req, &ctx->ctrl_hdl); in rkvdec_run_postamble()
770 v4l2_ctrl_new_custom(&ctx->ctrl_hdl, cfg, ctx); in rkvdec_add_ctrls()
771 if (ctx->ctrl_hdl.error) in rkvdec_add_ctrls()
772 return ctx->ctrl_hdl.error; in rkvdec_add_ctrls()
786 v4l2_ctrl_handler_init(&ctx->ctrl_hdl, nctrls); in rkvdec_init_ctrls()
794 ret = v4l2_ctrl_handler_setup(&ctx->ctrl_hdl); in rkvdec_init_ctrls()
[all …]
Drkvdec.h105 struct v4l2_ctrl_handler ctrl_hdl; member
Drkvdec-h264.c1075 ctrl = v4l2_ctrl_find(&ctx->ctrl_hdl, in rkvdec_h264_start()
1123 ctrl = v4l2_ctrl_find(&ctx->ctrl_hdl, in rkvdec_h264_run_preamble()
1126 ctrl = v4l2_ctrl_find(&ctx->ctrl_hdl, in rkvdec_h264_run_preamble()
1129 ctrl = v4l2_ctrl_find(&ctx->ctrl_hdl, in rkvdec_h264_run_preamble()
1132 ctrl = v4l2_ctrl_find(&ctx->ctrl_hdl, in rkvdec_h264_run_preamble()
Drkvdec-vp9.c741 ctrl = v4l2_ctrl_find(&ctx->ctrl_hdl, in rkvdec_vp9_run_preamble()
753 ctrl = v4l2_ctrl_find(&ctx->ctrl_hdl, V4L2_CID_STATELESS_VP9_COMPRESSED_HDR); in rkvdec_vp9_run_preamble()
/linux-6.1.9/drivers/media/pci/sta2x11/
Dsta2x11_vip.c119 struct v4l2_ctrl_handler ctrl_hdl; member
868 v4l2_ctrl_handler_init(&vip->ctrl_hdl, 0); in sta2x11_vip_init_controls()
870 vip->v4l2_dev.ctrl_handler = &vip->ctrl_hdl; in sta2x11_vip_init_controls()
871 if (vip->ctrl_hdl.error) { in sta2x11_vip_init_controls()
872 int err = vip->ctrl_hdl.error; in sta2x11_vip_init_controls()
874 v4l2_ctrl_handler_free(&vip->ctrl_hdl); in sta2x11_vip_init_controls()
/linux-6.1.9/drivers/media/platform/mediatek/jpeg/
Dmtk_jpeg_core.h160 struct v4l2_ctrl_handler ctrl_hdl; member
Dmtk_jpeg_core.c119 return container_of(ctrl->handler, struct mtk_jpeg_ctx, ctrl_hdl); in ctrl_to_ctx()
170 struct v4l2_ctrl_handler *handler = &ctx->ctrl_hdl; in mtk_jpeg_enc_ctrls_setup()
182 v4l2_ctrl_handler_free(&ctx->ctrl_hdl); in mtk_jpeg_enc_ctrls_setup()
186 v4l2_ctrl_handler_setup(&ctx->ctrl_hdl); in mtk_jpeg_enc_ctrls_setup()
1167 ctx->fh.ctrl_handler = &ctx->ctrl_hdl; in mtk_jpeg_set_default_params()
1231 v4l2_ctrl_handler_init(&ctx->ctrl_hdl, 0); in mtk_jpeg_open()
1253 v4l2_ctrl_handler_free(&ctx->ctrl_hdl); in mtk_jpeg_release()
/linux-6.1.9/drivers/media/platform/renesas/
Drcar_drif.c219 struct v4l2_ctrl_handler ctrl_hdl; /* SDR control handler */ member
1074 sdr->vdev->ctrl_handler = &sdr->ctrl_hdl; in rcar_drif_sdr_register()
1126 v4l2_ctrl_handler_free(&sdr->ctrl_hdl); in rcar_drif_notify_unbind()
1147 ret = v4l2_ctrl_handler_init(&sdr->ctrl_hdl, 10); in rcar_drif_notify_complete()
1151 sdr->v4l2_dev.ctrl_handler = &sdr->ctrl_hdl; in rcar_drif_notify_complete()
1158 ret = v4l2_ctrl_add_handler(&sdr->ctrl_hdl, in rcar_drif_notify_complete()
1172 v4l2_ctrl_handler_free(&sdr->ctrl_hdl); in rcar_drif_notify_complete()
/linux-6.1.9/drivers/media/platform/mediatek/vcodec/vdec/
Dvdec_h264_req_common.c38 struct v4l2_ctrl *ctrl = v4l2_ctrl_find(&ctx->ctrl_hdl, id); in mtk_vdec_h264_get_ctrl_ptr()
Dvdec_vp8_req_if.c111 struct v4l2_ctrl *ctrl = v4l2_ctrl_find(&ctx->ctrl_hdl, id); in vdec_vp8_slice_get_ctrl_ptr()
Dvdec_vp9_req_lat_if.c951 hdr_ctrl = v4l2_ctrl_find(&instance->ctx->ctrl_hdl, V4L2_CID_STATELESS_VP9_FRAME); in vdec_vp9_slice_setup_pfc()