Lines Matching refs:ctrls
80 struct pb0100_ctrls *ctrls = sd->sensor_priv; in pb0100_s_ctrl() local
90 err = pb0100_set_gain(gspca_dev, ctrls->gain->val); in pb0100_s_ctrl()
93 err = pb0100_set_exposure(gspca_dev, ctrls->exposure->val); in pb0100_s_ctrl()
109 struct pb0100_ctrls *ctrls; in pb0100_init_controls() local
129 ctrls = kzalloc(sizeof(*ctrls), GFP_KERNEL); in pb0100_init_controls()
130 if (!ctrls) in pb0100_init_controls()
134 ctrls->autogain = v4l2_ctrl_new_std(hdl, &pb0100_ctrl_ops, in pb0100_init_controls()
136 ctrls->exposure = v4l2_ctrl_new_std(hdl, &pb0100_ctrl_ops, in pb0100_init_controls()
138 ctrls->gain = v4l2_ctrl_new_std(hdl, &pb0100_ctrl_ops, in pb0100_init_controls()
140 ctrls->red = v4l2_ctrl_new_std(hdl, &pb0100_ctrl_ops, in pb0100_init_controls()
142 ctrls->blue = v4l2_ctrl_new_std(hdl, &pb0100_ctrl_ops, in pb0100_init_controls()
144 ctrls->natural = v4l2_ctrl_new_custom(hdl, &natural_light, NULL); in pb0100_init_controls()
145 ctrls->target = v4l2_ctrl_new_custom(hdl, &autogain_target, NULL); in pb0100_init_controls()
147 kfree(ctrls); in pb0100_init_controls()
150 sd->sensor_priv = ctrls; in pb0100_init_controls()
151 v4l2_ctrl_auto_cluster(5, &ctrls->autogain, 0, false); in pb0100_init_controls()
325 struct pb0100_ctrls *ctrls = sd->sensor_priv; in pb0100_set_gain() local
334 err = pb0100_set_red_balance(gspca_dev, ctrls->red->val); in pb0100_set_gain()
336 err = pb0100_set_blue_balance(gspca_dev, ctrls->blue->val); in pb0100_set_gain()
345 struct pb0100_ctrls *ctrls = sd->sensor_priv; in pb0100_set_red_balance() local
347 val += ctrls->gain->val; in pb0100_set_red_balance()
364 struct pb0100_ctrls *ctrls = sd->sensor_priv; in pb0100_set_blue_balance() local
366 val += ctrls->gain->val; in pb0100_set_blue_balance()
395 struct pb0100_ctrls *ctrls = sd->sensor_priv; in pb0100_set_autogain() local
398 if (ctrls->natural->val) in pb0100_set_autogain()
407 val, ctrls->natural->val, err); in pb0100_set_autogain()