Lines Matching refs:helpers
2698 struct v4l2_ctrl_helper *helpers, in prepare_ext_ctrls() argument
2705 for (i = 0, h = helpers; i < cs->count; i++, h++) { in prepare_ext_ctrls()
2765 helpers[i].mref->helper = NULL; in prepare_ext_ctrls()
2766 for (i = 0, h = helpers; i < cs->count; i++, h++) { in prepare_ext_ctrls()
2803 struct v4l2_ctrl_helper *helpers = helper; in v4l2_g_ext_ctrls() local
2817 helpers = kmalloc_array(cs->count, sizeof(helper[0]), in v4l2_g_ext_ctrls()
2819 if (helpers == NULL) in v4l2_g_ext_ctrls()
2823 ret = prepare_ext_ctrls(hdl, cs, helpers, true); in v4l2_g_ext_ctrls()
2827 if (helpers[i].ctrl->flags & V4L2_CTRL_FLAG_WRITE_ONLY) in v4l2_g_ext_ctrls()
2835 if (helpers[i].mref == NULL) in v4l2_g_ext_ctrls()
2838 master = helpers[i].mref->ctrl; in v4l2_g_ext_ctrls()
2859 helpers[idx].ctrl); in v4l2_g_ext_ctrls()
2860 idx = helpers[idx].next; in v4l2_g_ext_ctrls()
2867 kfree(helpers); in v4l2_g_ext_ctrls()
3003 struct v4l2_ctrl_helper *helpers, bool set) in validate_ctrls() argument
3010 struct v4l2_ctrl *ctrl = helpers[i].ctrl; in validate_ctrls()
3062 struct v4l2_ctrl_helper *helpers = helper; in try_set_ext_ctrls() local
3076 helpers = kmalloc_array(cs->count, sizeof(helper[0]), in try_set_ext_ctrls()
3078 if (!helpers) in try_set_ext_ctrls()
3081 ret = prepare_ext_ctrls(hdl, cs, helpers, false); in try_set_ext_ctrls()
3083 ret = validate_ctrls(cs, helpers, set); in try_set_ext_ctrls()
3090 if (helpers[i].mref == NULL) in try_set_ext_ctrls()
3094 master = helpers[i].mref->ctrl; in try_set_ext_ctrls()
3117 if (helpers[tmp_idx].ctrl == master) in try_set_ext_ctrls()
3119 tmp_idx = helpers[tmp_idx].next; in try_set_ext_ctrls()
3130 struct v4l2_ctrl *ctrl = helpers[idx].ctrl; in try_set_ext_ctrls()
3135 idx = helpers[idx].next; in try_set_ext_ctrls()
3146 helpers[idx].ctrl); in try_set_ext_ctrls()
3147 idx = helpers[idx].next; in try_set_ext_ctrls()
3154 kfree(helpers); in try_set_ext_ctrls()