Lines Matching refs:helpers
231 struct v4l2_ctrl_helper *helpers, in prepare_ext_ctrls() argument
239 for (i = 0, h = helpers; i < cs->count; i++, h++) { in prepare_ext_ctrls()
361 helpers[i].mref->helper = NULL; in prepare_ext_ctrls()
362 for (i = 0, h = helpers; i < cs->count; i++, h++) { in prepare_ext_ctrls()
414 struct v4l2_ctrl_helper *helpers = helper; in v4l2_g_ext_ctrls_common() local
434 helpers = kvmalloc_array(cs->count, sizeof(helper[0]), in v4l2_g_ext_ctrls_common()
436 if (!helpers) in v4l2_g_ext_ctrls_common()
440 ret = prepare_ext_ctrls(hdl, cs, helpers, vdev, true); in v4l2_g_ext_ctrls_common()
444 if (helpers[i].ref->ctrl->flags & V4L2_CTRL_FLAG_WRITE_ONLY) in v4l2_g_ext_ctrls_common()
452 if (!helpers[i].mref) in v4l2_g_ext_ctrls_common()
455 master = helpers[i].mref->ctrl; in v4l2_g_ext_ctrls_common()
490 struct v4l2_ctrl_ref *ref = helpers[idx].ref; in v4l2_g_ext_ctrls_common()
506 idx = helpers[idx].next; in v4l2_g_ext_ctrls_common()
513 kvfree(helpers); in v4l2_g_ext_ctrls_common()
535 struct v4l2_ctrl_helper *helpers, in validate_ctrls() argument
544 struct v4l2_ctrl *ctrl = helpers[i].ref->ctrl; in validate_ctrls()
593 struct v4l2_ctrl_helper *helpers = helper; in try_set_ext_ctrls_common() local
620 helpers = kvmalloc_array(cs->count, sizeof(helper[0]), in try_set_ext_ctrls_common()
622 if (!helpers) in try_set_ext_ctrls_common()
625 ret = prepare_ext_ctrls(hdl, cs, helpers, vdev, false); in try_set_ext_ctrls_common()
627 ret = validate_ctrls(cs, helpers, vdev, set); in try_set_ext_ctrls_common()
634 if (!helpers[i].mref) in try_set_ext_ctrls_common()
638 master = helpers[i].mref->ctrl; in try_set_ext_ctrls_common()
665 if (helpers[tmp_idx].ref->ctrl == master) in try_set_ext_ctrls_common()
667 tmp_idx = helpers[tmp_idx].next; in try_set_ext_ctrls_common()
682 struct v4l2_ctrl *ctrl = helpers[idx].ref->ctrl; in try_set_ext_ctrls_common()
692 idx = helpers[idx].next; in try_set_ext_ctrls_common()
712 helpers[idx].ref->ctrl); in try_set_ext_ctrls_common()
713 idx = helpers[idx].next; in try_set_ext_ctrls_common()
720 kvfree(helpers); in try_set_ext_ctrls_common()