Lines Matching refs:helpers
215 struct v4l2_ctrl_helper *helpers, in prepare_ext_ctrls() argument
223 for (i = 0, h = helpers; i < cs->count; i++, h++) { in prepare_ext_ctrls()
336 helpers[i].mref->helper = NULL; in prepare_ext_ctrls()
337 for (i = 0, h = helpers; i < cs->count; i++, h++) { in prepare_ext_ctrls()
389 struct v4l2_ctrl_helper *helpers = helper; in v4l2_g_ext_ctrls_common() local
407 helpers = kvmalloc_array(cs->count, sizeof(helper[0]), in v4l2_g_ext_ctrls_common()
409 if (!helpers) in v4l2_g_ext_ctrls_common()
413 ret = prepare_ext_ctrls(hdl, cs, helpers, vdev, true); in v4l2_g_ext_ctrls_common()
417 if (helpers[i].ref->ctrl->flags & V4L2_CTRL_FLAG_WRITE_ONLY) in v4l2_g_ext_ctrls_common()
425 if (!helpers[i].mref) in v4l2_g_ext_ctrls_common()
428 master = helpers[i].mref->ctrl; in v4l2_g_ext_ctrls_common()
462 struct v4l2_ctrl_ref *ref = helpers[idx].ref; in v4l2_g_ext_ctrls_common()
474 idx = helpers[idx].next; in v4l2_g_ext_ctrls_common()
481 kvfree(helpers); in v4l2_g_ext_ctrls_common()
503 struct v4l2_ctrl_helper *helpers, in validate_ctrls() argument
512 struct v4l2_ctrl *ctrl = helpers[i].ref->ctrl; in validate_ctrls()
561 struct v4l2_ctrl_helper *helpers = helper; in try_set_ext_ctrls_common() local
586 helpers = kvmalloc_array(cs->count, sizeof(helper[0]), in try_set_ext_ctrls_common()
588 if (!helpers) in try_set_ext_ctrls_common()
591 ret = prepare_ext_ctrls(hdl, cs, helpers, vdev, false); in try_set_ext_ctrls_common()
593 ret = validate_ctrls(cs, helpers, vdev, set); in try_set_ext_ctrls_common()
600 if (!helpers[i].mref) in try_set_ext_ctrls_common()
604 master = helpers[i].mref->ctrl; in try_set_ext_ctrls_common()
631 if (helpers[tmp_idx].ref->ctrl == master) in try_set_ext_ctrls_common()
633 tmp_idx = helpers[tmp_idx].next; in try_set_ext_ctrls_common()
648 struct v4l2_ctrl *ctrl = helpers[idx].ref->ctrl; in try_set_ext_ctrls_common()
658 idx = helpers[idx].next; in try_set_ext_ctrls_common()
678 helpers[idx].ref->ctrl); in try_set_ext_ctrls_common()
679 idx = helpers[idx].next; in try_set_ext_ctrls_common()
686 kvfree(helpers); in try_set_ext_ctrls_common()