Lines Matching refs:ctrl
13 static int vdec_op_s_ctrl(struct v4l2_ctrl *ctrl) in vdec_op_s_ctrl() argument
15 struct venus_inst *inst = ctrl_to_inst(ctrl); in vdec_op_s_ctrl()
18 switch (ctrl->id) { in vdec_op_s_ctrl()
20 ctr->post_loop_deb_mode = ctrl->val; in vdec_op_s_ctrl()
26 ctr->profile = ctrl->val; in vdec_op_s_ctrl()
31 ctr->level = ctrl->val; in vdec_op_s_ctrl()
34 ctr->display_delay = ctrl->val; in vdec_op_s_ctrl()
37 ctr->display_delay_enable = ctrl->val; in vdec_op_s_ctrl()
40 ctr->conceal_color = *ctrl->p_new.p_s64; in vdec_op_s_ctrl()
49 static int vdec_op_g_volatile_ctrl(struct v4l2_ctrl *ctrl) in vdec_op_g_volatile_ctrl() argument
51 struct venus_inst *inst = ctrl_to_inst(ctrl); in vdec_op_g_volatile_ctrl()
58 switch (ctrl->id) { in vdec_op_g_volatile_ctrl()
66 ctrl->val = ctr->profile; in vdec_op_g_volatile_ctrl()
74 ctrl->val = ctr->level; in vdec_op_g_volatile_ctrl()
77 ctrl->val = ctr->post_loop_deb_mode; in vdec_op_g_volatile_ctrl()
82 ctrl->val = hfi_bufreq_get_count_min(&bufreq, ver); in vdec_op_g_volatile_ctrl()
98 struct v4l2_ctrl *ctrl; in vdec_ctrl_init() local
105 ctrl = v4l2_ctrl_new_std_menu(&inst->ctrl_handler, &vdec_ctrl_ops, in vdec_ctrl_init()
111 if (ctrl) in vdec_ctrl_init()
112 ctrl->flags |= V4L2_CTRL_FLAG_VOLATILE; in vdec_ctrl_init()
114 ctrl = v4l2_ctrl_new_std_menu(&inst->ctrl_handler, &vdec_ctrl_ops, in vdec_ctrl_init()
118 if (ctrl) in vdec_ctrl_init()
119 ctrl->flags |= V4L2_CTRL_FLAG_VOLATILE; in vdec_ctrl_init()
121 ctrl = v4l2_ctrl_new_std_menu(&inst->ctrl_handler, &vdec_ctrl_ops, in vdec_ctrl_init()
131 if (ctrl) in vdec_ctrl_init()
132 ctrl->flags |= V4L2_CTRL_FLAG_VOLATILE; in vdec_ctrl_init()
134 ctrl = v4l2_ctrl_new_std_menu(&inst->ctrl_handler, &vdec_ctrl_ops, in vdec_ctrl_init()
138 if (ctrl) in vdec_ctrl_init()
139 ctrl->flags |= V4L2_CTRL_FLAG_VOLATILE; in vdec_ctrl_init()
141 ctrl = v4l2_ctrl_new_std_menu(&inst->ctrl_handler, &vdec_ctrl_ops, in vdec_ctrl_init()
145 if (ctrl) in vdec_ctrl_init()
146 ctrl->flags |= V4L2_CTRL_FLAG_VOLATILE; in vdec_ctrl_init()
148 ctrl = v4l2_ctrl_new_std_menu(&inst->ctrl_handler, &vdec_ctrl_ops, in vdec_ctrl_init()
152 if (ctrl) in vdec_ctrl_init()
153 ctrl->flags |= V4L2_CTRL_FLAG_VOLATILE; in vdec_ctrl_init()
155 ctrl = v4l2_ctrl_new_std_menu(&inst->ctrl_handler, &vdec_ctrl_ops, in vdec_ctrl_init()
159 if (ctrl) in vdec_ctrl_init()
160 ctrl->flags |= V4L2_CTRL_FLAG_VOLATILE; in vdec_ctrl_init()
165 ctrl = v4l2_ctrl_new_std(&inst->ctrl_handler, &vdec_ctrl_ops, in vdec_ctrl_init()
167 if (ctrl) in vdec_ctrl_init()
168 ctrl->flags |= V4L2_CTRL_FLAG_VOLATILE; in vdec_ctrl_init()