| /linux/drivers/media/v4l2-core/ |
| H A D | v4l2-ctrls-request.c | 19 void v4l2_ctrl_handler_init_request(struct v4l2_ctrl_handler *hdl) in v4l2_ctrl_handler_init_request() argument 21 INIT_LIST_HEAD(&hdl->requests); in v4l2_ctrl_handler_init_request() 22 INIT_LIST_HEAD(&hdl->requests_queued); in v4l2_ctrl_handler_init_request() 23 hdl->request_is_queued = false; in v4l2_ctrl_handler_init_request() 24 media_request_object_init(&hdl->req_obj); in v4l2_ctrl_handler_init_request() 28 void v4l2_ctrl_handler_free_request(struct v4l2_ctrl_handler *hdl) in v4l2_ctrl_handler_free_request() argument 39 if (hdl->req_obj.ops || list_empty(&hdl->requests)) in v4l2_ctrl_handler_free_request() 47 list_for_each_entry_safe(req, next_req, &hdl->requests, requests) { in v4l2_ctrl_handler_free_request() 53 static int v4l2_ctrl_request_clone(struct v4l2_ctrl_handler *hdl, in v4l2_ctrl_request_clone() argument 59 if (WARN_ON(!hdl || hdl == from)) in v4l2_ctrl_request_clone() [all …]
|
| H A D | v4l2-ctrls-core.c | 1710 static inline int handler_set_err(struct v4l2_ctrl_handler *hdl, int err) in handler_set_err() argument 1712 if (hdl->error == 0) in handler_set_err() 1713 hdl->error = err; in handler_set_err() 1718 int v4l2_ctrl_handler_init_class(struct v4l2_ctrl_handler *hdl, in v4l2_ctrl_handler_init_class() argument 1722 mutex_init(&hdl->_lock); in v4l2_ctrl_handler_init_class() 1723 hdl->lock = &hdl->_lock; in v4l2_ctrl_handler_init_class() 1724 lockdep_set_class_and_name(hdl->lock, key, name); in v4l2_ctrl_handler_init_class() 1725 INIT_LIST_HEAD(&hdl->ctrls); in v4l2_ctrl_handler_init_class() 1726 INIT_LIST_HEAD(&hdl->ctrl_refs); in v4l2_ctrl_handler_init_class() 1727 hdl->nr_of_buckets = 1 + nr_of_controls_hint / 8; in v4l2_ctrl_handler_init_class() [all …]
|
| H A D | v4l2-ctrls-api.c | 229 static int prepare_ext_ctrls(struct v4l2_ctrl_handler *hdl, in prepare_ext_ctrls() argument 266 ref = find_ref_lock(hdl, id); in prepare_ext_ctrls() 290 ref = find_ref_lock(hdl, ctrl->cluster[0]->id); in prepare_ext_ctrls() 357 mutex_lock(hdl->lock); in prepare_ext_ctrls() 385 mutex_unlock(hdl->lock); in prepare_ext_ctrls() 394 static int class_check(struct v4l2_ctrl_handler *hdl, u32 which) in class_check() argument 399 return find_ref_lock(hdl, which | 1) ? 0 : -EINVAL; in class_check() 409 int v4l2_g_ext_ctrls_common(struct v4l2_ctrl_handler *hdl, in v4l2_g_ext_ctrls_common() argument 427 if (!hdl) in v4l2_g_ext_ctrls_common() 431 return class_check(hdl, cs->which); in v4l2_g_ext_ctrls_common() [all …]
|
| /linux/drivers/virtio/ |
| H A D | virtio_rtc_driver.c | 487 * @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 D | s5c73m3-ctrls.c | 445 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 D | vimc-lens.c | 20 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 D | vimc-sensor.c | 27 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/usb/pwc/ |
| H A D | pwc-v4l.c | 152 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/platform/st/sti/delta/ |
| H A D | delta-ipc.h | 35 * @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/i2c/ |
| H A D | ml86v7667.c | 87 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 D | tw2804.c | 29 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 D | cs53l32a.c | 33 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 D | cs5345.c | 28 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 D | lm3646.c | 206 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 D | tda7432.c | 64 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 D | adv7393.c | 49 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 D | lm3560.c | 284 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 D | adv7183.c | 26 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 …]
|
| /linux/drivers/media/radio/ |
| H A D | radio-keene.c | 52 struct v4l2_ctrl_handler hdl; member 235 container_of(ctrl->handler, struct keene_device, hdl); in keene_s_ctrl() 288 v4l2_ctrl_handler_free(&radio->hdl); in usb_keene_video_device_release() 299 struct v4l2_ctrl_handler *hdl; in usb_keene_probe() local 325 hdl = &radio->hdl; in usb_keene_probe() 326 v4l2_ctrl_handler_init(hdl, 4); in usb_keene_probe() 327 v4l2_ctrl_new_std(hdl, &keene_ctrl_ops, V4L2_CID_AUDIO_MUTE, in usb_keene_probe() 329 v4l2_ctrl_new_std_menu(hdl, &keene_ctrl_ops, V4L2_CID_TUNE_PREEMPHASIS, in usb_keene_probe() 331 v4l2_ctrl_new_std(hdl, &keene_ctrl_ops, V4L2_CID_TUNE_POWER_LEVEL, in usb_keene_probe() 333 v4l2_ctrl_new_std(hdl, &keene_ctrl_ops, V4L2_CID_AUDIO_COMPRESSION_GAIN, in usb_keene_probe() [all …]
|
| H A D | radio-sf16fmi.c | 50 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/test-drivers/visl/ |
| H A D | visl-core.c | 254 struct v4l2_ctrl_handler *hdl = &ctx->hdl; in visl_find_control() local 256 return v4l2_ctrl_find(hdl, id); in visl_find_control() 297 struct v4l2_ctrl_handler *hdl = &ctx->hdl; in visl_init_ctrls() local 306 v4l2_ctrl_handler_init(hdl, ctrl_cnt); in visl_init_ctrls() 311 v4l2_ctrl_new_custom(hdl, &ctrls->ctrls[j].cfg, NULL); in visl_init_ctrls() 314 if (hdl->error) { in visl_init_ctrls() 317 v4l2_ctrl_handler_free(hdl); in visl_init_ctrls() 318 return hdl->error; in visl_init_ctrls() 321 ctx->fh.ctrl_handler = hdl; in visl_init_ctrls() 322 v4l2_ctrl_handler_setup(hdl); in visl_init_ctrls() [all …]
|
| /linux/drivers/media/radio/si4713/ |
| H A D | si4713.c | 1433 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 D | msi001.c | 35 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 …]
|
| /linux/drivers/staging/media/sunxi/cedrus/ |
| H A D | cedrus.c | 47 struct cedrus_ctx *ctx = container_of(ctrl->handler, struct cedrus_ctx, hdl); in cedrus_try_ctrl() 272 struct v4l2_ctrl_handler *hdl = &ctx->hdl; in cedrus_init_ctrls() local 277 v4l2_ctrl_handler_init(hdl, CEDRUS_CONTROLS_COUNT); in cedrus_init_ctrls() 278 if (hdl->error) { in cedrus_init_ctrls() 281 hdl->error); in cedrus_init_ctrls() 282 return hdl->error; in cedrus_init_ctrls() 296 ctrl = v4l2_ctrl_new_custom(hdl, &cedrus_controls[i].cfg, in cedrus_init_ctrls() 298 if (hdl->error) { in cedrus_init_ctrls() 302 hdl->error); in cedrus_init_ctrls() 304 v4l2_ctrl_handler_free(hdl); in cedrus_init_ctrls() [all …]
|
| /linux/drivers/media/usb/hdpvr/ |
| H A D | hdpvr-video.c | 885 container_of(ctrl->handler, struct hdpvr_device, hdl); in hdpvr_try_ctrl() 901 container_of(ctrl->handler, struct hdpvr_device, hdl); in hdpvr_s_ctrl() 1138 v4l2_ctrl_handler_free(&dev->hdl); in hdpvr_device_release() 1168 struct v4l2_ctrl_handler *hdl = &dev->hdl; in hdpvr_register_videodev() local 1179 v4l2_ctrl_handler_init(hdl, 11); in hdpvr_register_videodev() 1181 v4l2_ctrl_new_std(hdl, &hdpvr_ctrl_ops, in hdpvr_register_videodev() 1183 v4l2_ctrl_new_std(hdl, &hdpvr_ctrl_ops, in hdpvr_register_videodev() 1185 v4l2_ctrl_new_std(hdl, &hdpvr_ctrl_ops, in hdpvr_register_videodev() 1187 v4l2_ctrl_new_std(hdl, &hdpvr_ctrl_ops, in hdpvr_register_videodev() 1189 v4l2_ctrl_new_std(hdl, &hdpvr_ctrl_ops, in hdpvr_register_videodev() [all …]
|