Lines Matching refs:helpers
2711 struct v4l2_ctrl_helper *helpers, in prepare_ext_ctrls() argument
2718 for (i = 0, h = helpers; i < cs->count; i++, h++) { in prepare_ext_ctrls()
2778 helpers[i].mref->helper = NULL; in prepare_ext_ctrls()
2779 for (i = 0, h = helpers; i < cs->count; i++, h++) { in prepare_ext_ctrls()
2816 struct v4l2_ctrl_helper *helpers = helper; in v4l2_g_ext_ctrls() local
2830 helpers = kmalloc_array(cs->count, sizeof(helper[0]), in v4l2_g_ext_ctrls()
2832 if (helpers == NULL) in v4l2_g_ext_ctrls()
2836 ret = prepare_ext_ctrls(hdl, cs, helpers, true); in v4l2_g_ext_ctrls()
2840 if (helpers[i].ctrl->flags & V4L2_CTRL_FLAG_WRITE_ONLY) in v4l2_g_ext_ctrls()
2848 if (helpers[i].mref == NULL) in v4l2_g_ext_ctrls()
2851 master = helpers[i].mref->ctrl; in v4l2_g_ext_ctrls()
2872 helpers[idx].ctrl); in v4l2_g_ext_ctrls()
2873 idx = helpers[idx].next; in v4l2_g_ext_ctrls()
2880 kfree(helpers); in v4l2_g_ext_ctrls()
3016 struct v4l2_ctrl_helper *helpers, bool set) in validate_ctrls() argument
3023 struct v4l2_ctrl *ctrl = helpers[i].ctrl; in validate_ctrls()
3075 struct v4l2_ctrl_helper *helpers = helper; in try_set_ext_ctrls() local
3089 helpers = kmalloc_array(cs->count, sizeof(helper[0]), in try_set_ext_ctrls()
3091 if (!helpers) in try_set_ext_ctrls()
3094 ret = prepare_ext_ctrls(hdl, cs, helpers, false); in try_set_ext_ctrls()
3096 ret = validate_ctrls(cs, helpers, set); in try_set_ext_ctrls()
3103 if (helpers[i].mref == NULL) in try_set_ext_ctrls()
3107 master = helpers[i].mref->ctrl; in try_set_ext_ctrls()
3130 if (helpers[tmp_idx].ctrl == master) in try_set_ext_ctrls()
3132 tmp_idx = helpers[tmp_idx].next; in try_set_ext_ctrls()
3143 struct v4l2_ctrl *ctrl = helpers[idx].ctrl; in try_set_ext_ctrls()
3148 idx = helpers[idx].next; in try_set_ext_ctrls()
3159 helpers[idx].ctrl); in try_set_ext_ctrls()
3160 idx = helpers[idx].next; in try_set_ext_ctrls()
3167 kfree(helpers); in try_set_ext_ctrls()