Home
last modified time | relevance | path

Searched full:hdl (Results 1 – 25 of 167) sorted by relevance

1234567

/linux/drivers/virtio/
H A Dvirtio_rtc_driver.c487 * @hdl: message handle name
492 #define VIORTC_DECLARE_MSG_HDL_ONSTACK(hdl, msg_id, msg_req, msg_resp) \ argument
500 } hdl = { \
506 * @hdl: message handle
510 #define VIORTC_MSG(hdl) ((hdl).msg) argument
514 * @hdl: message handle
520 #define VIORTC_MSG_INIT(hdl, viortc) \ argument
522 typeof(hdl) *_hdl = &(hdl); \
535 * @hdl: message handle
541 #define VIORTC_MSG_WRITE(hdl, dest_member, src_ptr) \ argument
[all …]
/linux/drivers/media/i2c/s5c73m3/
H A Ds5c73m3-ctrls.c445 struct v4l2_ctrl_handler *hdl = &ctrls->handler; in s5c73m3_init_controls() local
447 int ret = v4l2_ctrl_handler_init(hdl, 22); in s5c73m3_init_controls()
452 ctrls->auto_wb = v4l2_ctrl_new_std_menu(hdl, ops, in s5c73m3_init_controls()
457 ctrls->auto_exposure = v4l2_ctrl_new_std_menu(hdl, ops, in s5c73m3_init_controls()
460 ctrls->exposure_bias = v4l2_ctrl_new_int_menu(hdl, ops, in s5c73m3_init_controls()
466 ctrls->exposure_metering = v4l2_ctrl_new_std_menu(hdl, ops, in s5c73m3_init_controls()
471 ctrls->focus_auto = v4l2_ctrl_new_std(hdl, ops, in s5c73m3_init_controls()
474 ctrls->af_start = v4l2_ctrl_new_std(hdl, ops, in s5c73m3_init_controls()
477 ctrls->af_stop = v4l2_ctrl_new_std(hdl, ops, in s5c73m3_init_controls()
480 ctrls->af_status = v4l2_ctrl_new_std(hdl, ops, in s5c73m3_init_controls()
[all …]
/linux/drivers/media/test-drivers/vimc/
H A Dvimc-lens.c20 struct v4l2_ctrl_handler hdl; member
37 container_of(ctrl->handler, struct vimc_lens_device, hdl); in vimc_lens_s_ctrl()
61 v4l2_ctrl_handler_init(&vlens->hdl, 1); in vimc_lens_add()
63 v4l2_ctrl_new_std(&vlens->hdl, &vimc_lens_ctrl_ops, in vimc_lens_add()
66 vlens->sd.ctrl_handler = &vlens->hdl; in vimc_lens_add()
67 if (vlens->hdl.error) { in vimc_lens_add()
68 ret = vlens->hdl.error; in vimc_lens_add()
82 v4l2_ctrl_handler_free(&vlens->hdl); in vimc_lens_add()
94 v4l2_ctrl_handler_free(&vlens->hdl); in vimc_lens_release()
H A Dvimc-sensor.c27 struct v4l2_ctrl_handler hdl; member
295 container_of(ctrl->handler, struct vimc_sensor_device, hdl); in vimc_sensor_s_ctrl()
337 v4l2_ctrl_handler_free(&vsensor->hdl); in vimc_sensor_release()
389 v4l2_ctrl_handler_init(&vsensor->hdl, 4); in vimc_sensor_add()
391 v4l2_ctrl_new_custom(&vsensor->hdl, &vimc_sensor_ctrl_class, NULL); in vimc_sensor_add()
392 v4l2_ctrl_new_custom(&vsensor->hdl, &vimc_sensor_ctrl_test_pattern, NULL); in vimc_sensor_add()
393 v4l2_ctrl_new_custom(&vsensor->hdl, &vimc_sensor_ctrl_osd_mode, NULL); in vimc_sensor_add()
394 v4l2_ctrl_new_std(&vsensor->hdl, &vimc_sensor_ctrl_ops, in vimc_sensor_add()
396 v4l2_ctrl_new_std(&vsensor->hdl, &vimc_sensor_ctrl_ops, in vimc_sensor_add()
398 v4l2_ctrl_new_std(&vsensor->hdl, &vimc_sensor_ctrl_ops, in vimc_sensor_add()
[all …]
/linux/drivers/media/i2c/
H A Dtw9906.c20 struct v4l2_ctrl_handler hdl; member
111 struct tw9906 *dec = container_of(ctrl->handler, struct tw9906, hdl); in tw9906_s_ctrl()
164 struct v4l2_ctrl_handler *hdl; in tw9906_probe() local
178 hdl = &dec->hdl; in tw9906_probe()
179 v4l2_ctrl_handler_init(hdl, 4); in tw9906_probe()
180 v4l2_ctrl_new_std(hdl, &tw9906_ctrl_ops, in tw9906_probe()
182 v4l2_ctrl_new_std(hdl, &tw9906_ctrl_ops, in tw9906_probe()
184 v4l2_ctrl_new_std(hdl, &tw9906_ctrl_ops, in tw9906_probe()
186 sd->ctrl_handler = hdl; in tw9906_probe()
187 if (hdl->error) { in tw9906_probe()
[all …]
H A Dtw9903.c29 struct v4l2_ctrl_handler hdl; member
141 struct tw9903 *dec = container_of(ctrl->handler, struct tw9903, hdl); in tw9903_s_ctrl()
196 struct v4l2_ctrl_handler *hdl; in tw9903_probe() local
210 hdl = &dec->hdl; in tw9903_probe()
211 v4l2_ctrl_handler_init(hdl, 4); in tw9903_probe()
212 v4l2_ctrl_new_std(hdl, &tw9903_ctrl_ops, in tw9903_probe()
214 v4l2_ctrl_new_std(hdl, &tw9903_ctrl_ops, in tw9903_probe()
216 v4l2_ctrl_new_std(hdl, &tw9903_ctrl_ops, in tw9903_probe()
218 sd->ctrl_handler = hdl; in tw9903_probe()
219 if (hdl->error) { in tw9903_probe()
[all …]
H A Dml86v7667.c87 struct v4l2_ctrl_handler hdl; member
98 return &container_of(ctrl->handler, struct ml86v7667_priv, hdl)->sd; in to_sd()
376 v4l2_ctrl_handler_init(&priv->hdl, 8); in ml86v7667_probe()
377 v4l2_ctrl_new_std(&priv->hdl, &ml86v7667_ctrl_ops, in ml86v7667_probe()
379 v4l2_ctrl_new_std(&priv->hdl, &ml86v7667_ctrl_ops, in ml86v7667_probe()
381 v4l2_ctrl_new_std(&priv->hdl, &ml86v7667_ctrl_ops, in ml86v7667_probe()
383 v4l2_ctrl_new_std(&priv->hdl, &ml86v7667_ctrl_ops, in ml86v7667_probe()
385 v4l2_ctrl_new_std(&priv->hdl, &ml86v7667_ctrl_ops, in ml86v7667_probe()
387 v4l2_ctrl_new_std(&priv->hdl, &ml86v7667_ctrl_ops, in ml86v7667_probe()
389 v4l2_ctrl_new_std(&priv->hdl, &ml86v7667_ctrl_ops, in ml86v7667_probe()
[all …]
H A Dtw2804.c29 struct v4l2_ctrl_handler hdl; member
137 return container_of(ctrl->handler, struct tw2804, hdl); in to_state_from_ctrl()
365 v4l2_ctrl_handler_init(&state->hdl, 10); in tw2804_probe()
366 v4l2_ctrl_new_std(&state->hdl, &tw2804_ctrl_ops, in tw2804_probe()
368 v4l2_ctrl_new_std(&state->hdl, &tw2804_ctrl_ops, in tw2804_probe()
370 v4l2_ctrl_new_std(&state->hdl, &tw2804_ctrl_ops, in tw2804_probe()
372 v4l2_ctrl_new_std(&state->hdl, &tw2804_ctrl_ops, in tw2804_probe()
374 v4l2_ctrl_new_std(&state->hdl, &tw2804_ctrl_ops, in tw2804_probe()
376 v4l2_ctrl_new_std(&state->hdl, &tw2804_ctrl_ops, in tw2804_probe()
378 ctrl = v4l2_ctrl_new_std(&state->hdl, &tw2804_ctrl_ops, in tw2804_probe()
[all …]
H A Dcs53l32a.c33 struct v4l2_ctrl_handler hdl; member
43 return &container_of(ctrl->handler, struct cs53l32a_state, hdl)->sd; in to_sd()
99 v4l2_ctrl_handler_log_status(&state->hdl, sd->name); in cs53l32a_log_status()
160 v4l2_ctrl_handler_init(&state->hdl, 2); in cs53l32a_probe()
161 v4l2_ctrl_new_std(&state->hdl, &cs53l32a_ctrl_ops, in cs53l32a_probe()
163 v4l2_ctrl_new_std(&state->hdl, &cs53l32a_ctrl_ops, in cs53l32a_probe()
165 sd->ctrl_handler = &state->hdl; in cs53l32a_probe()
166 if (state->hdl.error) { in cs53l32a_probe()
167 int err = state->hdl.error; in cs53l32a_probe()
169 v4l2_ctrl_handler_free(&state->hdl); in cs53l32a_probe()
[all …]
H A Dcs5345.c28 struct v4l2_ctrl_handler hdl; member
38 return &container_of(ctrl->handler, struct cs5345_state, hdl)->sd; in to_sd()
157 v4l2_ctrl_handler_init(&state->hdl, 2); in cs5345_probe()
158 v4l2_ctrl_new_std(&state->hdl, &cs5345_ctrl_ops, in cs5345_probe()
160 v4l2_ctrl_new_std(&state->hdl, &cs5345_ctrl_ops, in cs5345_probe()
162 sd->ctrl_handler = &state->hdl; in cs5345_probe()
163 if (state->hdl.error) { in cs5345_probe()
164 int err = state->hdl.error; in cs5345_probe()
166 v4l2_ctrl_handler_free(&state->hdl); in cs5345_probe()
170 v4l2_ctrl_handler_setup(&state->hdl); in cs5345_probe()
[all …]
H A Dlm3646.c206 struct v4l2_ctrl_handler *hdl = &flash->ctrls_led; in lm3646_init_controls() local
209 v4l2_ctrl_handler_init(hdl, 8); in lm3646_init_controls()
211 v4l2_ctrl_new_std_menu(hdl, ops, V4L2_CID_FLASH_LED_MODE, in lm3646_init_controls()
216 v4l2_ctrl_new_std_menu(hdl, ops, V4L2_CID_FLASH_STROBE_SOURCE, in lm3646_init_controls()
220 v4l2_ctrl_new_std(hdl, ops, V4L2_CID_FLASH_STROBE, 0, 0, 0, 0); in lm3646_init_controls()
222 v4l2_ctrl_new_std(hdl, ops, V4L2_CID_FLASH_STROBE_STOP, 0, 0, 0, 0); in lm3646_init_controls()
225 v4l2_ctrl_new_std(hdl, ops, V4L2_CID_FLASH_TIMEOUT, in lm3646_init_controls()
231 v4l2_ctrl_new_std(hdl, ops, V4L2_CID_FLASH_INTENSITY, in lm3646_init_controls()
238 v4l2_ctrl_new_std(hdl, ops, V4L2_CID_FLASH_TORCH_INTENSITY, in lm3646_init_controls()
245 fault = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_FLASH_FAULT, 0, in lm3646_init_controls()
[all …]
H A Dtda7432.c64 struct v4l2_ctrl_handler hdl; member
84 return &container_of(ctrl->handler, struct tda7432, hdl)->sd; in to_sd()
267 v4l2_ctrl_handler_log_status(&state->hdl, sd->name); in tda7432_log_status()
359 v4l2_ctrl_handler_init(&t->hdl, 5); in tda7432_probe()
360 v4l2_ctrl_new_std(&t->hdl, &tda7432_ctrl_ops, in tda7432_probe()
362 t->mute = v4l2_ctrl_new_std(&t->hdl, &tda7432_ctrl_ops, in tda7432_probe()
364 t->balance = v4l2_ctrl_new_std(&t->hdl, &tda7432_ctrl_ops, in tda7432_probe()
366 t->bass = v4l2_ctrl_new_std(&t->hdl, &tda7432_ctrl_ops, in tda7432_probe()
368 t->treble = v4l2_ctrl_new_std(&t->hdl, &tda7432_ctrl_ops, in tda7432_probe()
370 sd->ctrl_handler = &t->hdl; in tda7432_probe()
[all …]
H A Dadv7393.c49 struct v4l2_ctrl_handler hdl; member
67 return &container_of(ctrl->handler, struct adv7393_state, hdl)->sd; in to_sd()
411 v4l2_ctrl_handler_init(&state->hdl, 3); in adv7393_probe()
412 v4l2_ctrl_new_std(&state->hdl, &adv7393_ctrl_ops, in adv7393_probe()
416 v4l2_ctrl_new_std(&state->hdl, &adv7393_ctrl_ops, in adv7393_probe()
420 v4l2_ctrl_new_std(&state->hdl, &adv7393_ctrl_ops, in adv7393_probe()
424 state->sd.ctrl_handler = &state->hdl; in adv7393_probe()
425 if (state->hdl.error) { in adv7393_probe()
426 int err = state->hdl.error; in adv7393_probe()
428 v4l2_ctrl_handler_free(&state->hdl); in adv7393_probe()
[all …]
H A Dlm3560.c284 struct v4l2_ctrl_handler *hdl = &flash->ctrls_led[led_no]; in lm3560_init_controls() local
287 v4l2_ctrl_handler_init(hdl, 8); in lm3560_init_controls()
290 v4l2_ctrl_new_std_menu(hdl, ops, V4L2_CID_FLASH_LED_MODE, in lm3560_init_controls()
296 v4l2_ctrl_new_std_menu(hdl, ops, V4L2_CID_FLASH_STROBE_SOURCE, in lm3560_init_controls()
300 v4l2_ctrl_new_std(hdl, ops, V4L2_CID_FLASH_STROBE, 0, 0, 0, 0); in lm3560_init_controls()
303 v4l2_ctrl_new_std(hdl, ops, V4L2_CID_FLASH_STROBE_STOP, 0, 0, 0, 0); in lm3560_init_controls()
306 v4l2_ctrl_new_std(hdl, ops, V4L2_CID_FLASH_TIMEOUT, in lm3560_init_controls()
313 v4l2_ctrl_new_std(hdl, ops, V4L2_CID_FLASH_INTENSITY, in lm3560_init_controls()
318 v4l2_ctrl_new_std(hdl, ops, V4L2_CID_FLASH_TORCH_INTENSITY, in lm3560_init_controls()
323 fault = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_FLASH_FAULT, 0, in lm3560_init_controls()
[all …]
H A Dadv7183.c26 struct v4l2_ctrl_handler hdl; member
69 return &container_of(ctrl->handler, struct adv7183, hdl)->sd; in to_sd()
185 v4l2_ctrl_handler_log_status(&decoder->hdl, sd->name); in adv7183_log_status()
526 struct v4l2_ctrl_handler *hdl; in adv7183_probe() local
565 hdl = &decoder->hdl; in adv7183_probe()
566 v4l2_ctrl_handler_init(hdl, 4); in adv7183_probe()
567 v4l2_ctrl_new_std(hdl, &adv7183_ctrl_ops, in adv7183_probe()
569 v4l2_ctrl_new_std(hdl, &adv7183_ctrl_ops, in adv7183_probe()
571 v4l2_ctrl_new_std(hdl, &adv7183_ctrl_ops, in adv7183_probe()
573 v4l2_ctrl_new_std(hdl, &adv7183_ctrl_ops, in adv7183_probe()
[all …]
H A Dadv7343.c47 struct v4l2_ctrl_handler hdl; member
66 return &container_of(ctrl->handler, struct adv7343_state, hdl)->sd; in to_sd()
462 v4l2_ctrl_handler_init(&state->hdl, 2); in adv7343_probe()
463 v4l2_ctrl_new_std(&state->hdl, &adv7343_ctrl_ops, in adv7343_probe()
467 v4l2_ctrl_new_std(&state->hdl, &adv7343_ctrl_ops, in adv7343_probe()
471 v4l2_ctrl_new_std(&state->hdl, &adv7343_ctrl_ops, in adv7343_probe()
475 state->sd.ctrl_handler = &state->hdl; in adv7343_probe()
476 if (state->hdl.error) { in adv7343_probe()
477 err = state->hdl.error; in adv7343_probe()
480 v4l2_ctrl_handler_setup(&state->hdl); in adv7343_probe()
[all …]
/linux/drivers/media/platform/st/sti/delta/
H A Ddelta-ipc.h35 * @hdl: (out) handle of decoding instance.
40 struct delta_buf **ipc_buf, void **hdl);
44 * @hdl: (in) handle of decoding instance.
50 int delta_ipc_set_stream(void *hdl, struct delta_ipc_param *param);
55 * @hdl: (in) handle of decoding instance.
67 int delta_ipc_decode(void *hdl, struct delta_ipc_param *param,
72 * @hdl: (in) handle of decoding instance to close.
74 void delta_ipc_close(void *hdl);
/linux/drivers/media/usb/pwc/
H A Dpwc-v4l.c152 struct v4l2_ctrl_handler *hdl; in pwc_init_controls() local
156 hdl = &pdev->ctrl_handler; in pwc_init_controls()
157 r = v4l2_ctrl_handler_init(hdl, 20); in pwc_init_controls()
165 pdev->brightness = v4l2_ctrl_new_std(hdl, &pwc_ctrl_ops, in pwc_init_controls()
171 pdev->contrast = v4l2_ctrl_new_std(hdl, &pwc_ctrl_ops, in pwc_init_controls()
183 pdev->saturation = v4l2_ctrl_new_std(hdl, &pwc_ctrl_ops, in pwc_init_controls()
190 pdev->gamma = v4l2_ctrl_new_std(hdl, &pwc_ctrl_ops, in pwc_init_controls()
200 pdev->auto_white_balance = v4l2_ctrl_new_custom(hdl, &cfg, NULL); in pwc_init_controls()
203 return hdl->error; in pwc_init_controls()
209 pdev->red_balance = v4l2_ctrl_new_std(hdl, &pwc_ctrl_ops, in pwc_init_controls()
[all …]
/linux/drivers/media/radio/
H A Dradio-sf16fmi.c50 struct v4l2_ctrl_handler hdl; member
192 struct fmi *fmi = container_of(ctrl->handler, struct fmi, hdl); in fmi_s_ctrl()
276 struct v4l2_ctrl_handler *hdl = &fmi->hdl; in fmi_init() local
329 v4l2_ctrl_handler_init(hdl, 1); in fmi_init()
330 v4l2_ctrl_new_std(hdl, &fmi_ctrl_ops, in fmi_init()
332 v4l2_dev->ctrl_handler = hdl; in fmi_init()
333 if (hdl->error) { in fmi_init()
334 res = hdl->error; in fmi_init()
336 v4l2_ctrl_handler_free(hdl); in fmi_init()
357 v4l2_ctrl_handler_free(hdl); in fmi_init()
[all …]
/linux/drivers/media/radio/si4713/
H A Dsi4713.c1433 struct v4l2_ctrl_handler *hdl; in si4713_probe() local
1479 hdl = &sdev->ctrl_handler; in si4713_probe()
1480 v4l2_ctrl_handler_init(hdl, 20); in si4713_probe()
1481 sdev->mute = v4l2_ctrl_new_std(hdl, &si4713_ctrl_ops, in si4713_probe()
1484 sdev->rds_pi = v4l2_ctrl_new_std(hdl, &si4713_ctrl_ops, in si4713_probe()
1486 sdev->rds_pty = v4l2_ctrl_new_std(hdl, &si4713_ctrl_ops, in si4713_probe()
1488 sdev->rds_compressed = v4l2_ctrl_new_std(hdl, &si4713_ctrl_ops, in si4713_probe()
1490 sdev->rds_art_head = v4l2_ctrl_new_std(hdl, &si4713_ctrl_ops, in si4713_probe()
1492 sdev->rds_stereo = v4l2_ctrl_new_std(hdl, &si4713_ctrl_ops, in si4713_probe()
1494 sdev->rds_tp = v4l2_ctrl_new_std(hdl, &si4713_ctrl_ops, in si4713_probe()
[all …]
/linux/drivers/media/tuners/
H A Dmsi001.c35 struct v4l2_ctrl_handler hdl; member
381 struct msi001_dev *dev = container_of(ctrl->handler, struct msi001_dev, hdl); in msi001_s_ctrl()
440 v4l2_ctrl_handler_init(&dev->hdl, 5); in msi001_probe()
441 dev->bandwidth_auto = v4l2_ctrl_new_std(&dev->hdl, &msi001_ctrl_ops, in msi001_probe()
443 dev->bandwidth = v4l2_ctrl_new_std(&dev->hdl, &msi001_ctrl_ops, in msi001_probe()
445 if (dev->hdl.error) { in msi001_probe()
446 ret = dev->hdl.error; in msi001_probe()
453 dev->lna_gain = v4l2_ctrl_new_std(&dev->hdl, &msi001_ctrl_ops, in msi001_probe()
455 dev->mixer_gain = v4l2_ctrl_new_std(&dev->hdl, &msi001_ctrl_ops, in msi001_probe()
457 dev->if_gain = v4l2_ctrl_new_std(&dev->hdl, &msi001_ctrl_ops, in msi001_probe()
[all …]
H A De4000.c502 struct e4000_dev *dev = container_of(ctrl->handler, struct e4000_dev, hdl); in e4000_g_volatile_ctrl()
524 struct e4000_dev *dev = container_of(ctrl->handler, struct e4000_dev, hdl); in e4000_s_ctrl()
658 v4l2_ctrl_handler_init(&dev->hdl, 9); in e4000_probe()
659 dev->bandwidth_auto = v4l2_ctrl_new_std(&dev->hdl, &e4000_ctrl_ops, in e4000_probe()
661 dev->bandwidth = v4l2_ctrl_new_std(&dev->hdl, &e4000_ctrl_ops, in e4000_probe()
664 dev->lna_gain_auto = v4l2_ctrl_new_std(&dev->hdl, &e4000_ctrl_ops, in e4000_probe()
666 dev->lna_gain = v4l2_ctrl_new_std(&dev->hdl, &e4000_ctrl_ops, in e4000_probe()
669 dev->mixer_gain_auto = v4l2_ctrl_new_std(&dev->hdl, &e4000_ctrl_ops, in e4000_probe()
671 dev->mixer_gain = v4l2_ctrl_new_std(&dev->hdl, &e4000_ctrl_ops, in e4000_probe()
674 dev->if_gain_auto = v4l2_ctrl_new_std(&dev->hdl, &e4000_ctrl_ops, in e4000_probe()
[all …]
/linux/drivers/media/usb/gspca/m5602/
H A Dm5602_po1030.c239 struct v4l2_ctrl_handler *hdl = &sd->gspca_dev.ctrl_handler; in po1030_init_controls() local
241 sd->gspca_dev.vdev.ctrl_handler = hdl; in po1030_init_controls()
242 v4l2_ctrl_handler_init(hdl, 9); in po1030_init_controls()
244 sd->auto_white_bal = v4l2_ctrl_new_std(hdl, &po1030_ctrl_ops, in po1030_init_controls()
247 sd->green_bal = v4l2_ctrl_new_custom(hdl, &po1030_greenbal_cfg, NULL); in po1030_init_controls()
248 sd->red_bal = v4l2_ctrl_new_std(hdl, &po1030_ctrl_ops, in po1030_init_controls()
251 sd->blue_bal = v4l2_ctrl_new_std(hdl, &po1030_ctrl_ops, in po1030_init_controls()
255 sd->autoexpo = v4l2_ctrl_new_std_menu(hdl, &po1030_ctrl_ops, in po1030_init_controls()
257 sd->expo = v4l2_ctrl_new_std(hdl, &po1030_ctrl_ops, V4L2_CID_EXPOSURE, in po1030_init_controls()
260 sd->gain = v4l2_ctrl_new_std(hdl, &po1030_ctrl_ops, V4L2_CID_GAIN, 0, in po1030_init_controls()
[all …]
/linux/drivers/media/usb/gspca/stv06xx/
H A Dstv06xx_pb0100.c108 struct v4l2_ctrl_handler *hdl = &sd->gspca_dev.ctrl_handler; in pb0100_init_controls() local
133 v4l2_ctrl_handler_init(hdl, 6); 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()
146 if (hdl->error) { in pb0100_init_controls()
[all …]
/linux/drivers/media/usb/gspca/
H A Dmars.c193 struct v4l2_ctrl_handler *hdl = &gspca_dev->ctrl_handler; in sd_init_controls() local
195 gspca_dev->vdev.ctrl_handler = hdl; in sd_init_controls()
196 v4l2_ctrl_handler_init(hdl, 6); in sd_init_controls()
197 sd->brightness = v4l2_ctrl_new_std(hdl, &mars_ctrl_ops, in sd_init_controls()
199 sd->saturation = v4l2_ctrl_new_std(hdl, &mars_ctrl_ops, in sd_init_controls()
201 sd->gamma = v4l2_ctrl_new_std(hdl, &mars_ctrl_ops, in sd_init_controls()
203 sd->sharpness = v4l2_ctrl_new_std(hdl, &mars_ctrl_ops, in sd_init_controls()
205 sd->illum_top = v4l2_ctrl_new_std(hdl, &mars_ctrl_ops, in sd_init_controls()
208 sd->illum_bottom = v4l2_ctrl_new_std(hdl, &mars_ctrl_ops, in sd_init_controls()
211 if (hdl->error) { in sd_init_controls()
[all …]

1234567