Home
last modified time | relevance | path

Searched refs:ctrls (Results 1 – 71 of 71) sorted by relevance

/linux-4.4.14/drivers/media/i2c/s5c73m3/
Ds5c73m3-ctrls.c79 ret = s5c73m3_get_af_status(state, state->ctrls.af_status); in s5c73m3_g_volatile_ctrl()
105 v4l2_ctrl_get_menu(state->ctrls.colorfx->id)[i]); in s5c73m3_set_colorfx()
117 struct s5c73m3_ctrls *ctrls = &state->ctrls; in s5c73m3_set_exposure() local
120 if (ctrls->exposure_metering->is_new) { in s5c73m3_set_exposure()
123 switch (ctrls->exposure_metering->val) { in s5c73m3_set_exposure()
138 if (!ret && ctrls->exposure_bias->is_new) { in s5c73m3_set_exposure()
139 u16 exp_bias = ctrls->exposure_bias->val; in s5c73m3_set_exposure()
145 ctrls->exposure_bias->val, ctrls->exposure_metering->val, ret); in s5c73m3_set_exposure()
168 v4l2_ctrl_get_menu(state->ctrls.auto_wb->id)[i]); in s5c73m3_set_white_balance()
178 struct s5c73m3_ctrls *c = &state->ctrls; in s5c73m3_af_run()
[all …]
DMakefile1 s5c73m3-objs := s5c73m3-core.o s5c73m3-spi.o s5c73m3-ctrls.o
Ds5c73m3.h413 struct s5c73m3_ctrls ctrls; member
451 ctrls.handler)->sensor_sd; in ctrl_to_sensor_sd()
Ds5c73m3-core.c407 if (state->ctrls.stabilization->val) in s5c73m3_set_frame_rate()
/linux-4.4.14/drivers/media/usb/gspca/stv06xx/
Dstv06xx_pb0100.c93 struct pb0100_ctrls *ctrls = sd->sensor_priv; in pb0100_s_ctrl() local
103 err = pb0100_set_gain(gspca_dev, ctrls->gain->val); in pb0100_s_ctrl()
106 err = pb0100_set_exposure(gspca_dev, ctrls->exposure->val); in pb0100_s_ctrl()
122 struct pb0100_ctrls *ctrls; in pb0100_init_controls() local
142 ctrls = kzalloc(sizeof(*ctrls), GFP_KERNEL); in pb0100_init_controls()
143 if (!ctrls) in pb0100_init_controls()
147 ctrls->autogain = v4l2_ctrl_new_std(hdl, &pb0100_ctrl_ops, in pb0100_init_controls()
149 ctrls->exposure = v4l2_ctrl_new_std(hdl, &pb0100_ctrl_ops, in pb0100_init_controls()
151 ctrls->gain = v4l2_ctrl_new_std(hdl, &pb0100_ctrl_ops, in pb0100_init_controls()
153 ctrls->red = v4l2_ctrl_new_std(hdl, &pb0100_ctrl_ops, in pb0100_init_controls()
[all …]
/linux-4.4.14/drivers/media/v4l2-core/
Dv4l2-flash-led-class.c85 struct v4l2_ctrl **ctrls = v4l2_flash->ctrls; in v4l2_flash_set_led_brightness() local
106 if (ctrl == ctrls[TORCH_INTENSITY]) { in v4l2_flash_set_led_brightness()
107 if (ctrls[LED_MODE]->val != V4L2_FLASH_LED_MODE_TORCH) in v4l2_flash_set_led_brightness()
121 struct v4l2_ctrl **ctrls = v4l2_flash->ctrls; in v4l2_flash_update_led_brightness() local
125 if (ctrl == ctrls[TORCH_INTENSITY]) { in v4l2_flash_update_led_brightness()
132 if (ctrls[LED_MODE]->val != V4L2_FLASH_LED_MODE_TORCH) in v4l2_flash_update_led_brightness()
189 static bool __software_strobe_mode_inactive(struct v4l2_ctrl **ctrls) in __software_strobe_mode_inactive() argument
191 return ((ctrls[LED_MODE]->val != V4L2_FLASH_LED_MODE_FLASH) || in __software_strobe_mode_inactive()
192 (ctrls[STROBE_SOURCE] && (ctrls[STROBE_SOURCE]->val != in __software_strobe_mode_inactive()
201 struct v4l2_ctrl **ctrls = v4l2_flash->ctrls; in v4l2_flash_s_ctrl() local
[all …]
Dv4l2-ioctl.c1960 struct v4l2_ext_controls ctrls; in v4l_g_ctrl() local
1972 ctrls.ctrl_class = V4L2_CTRL_ID2CLASS(p->id); in v4l_g_ctrl()
1973 ctrls.count = 1; in v4l_g_ctrl()
1974 ctrls.controls = &ctrl; in v4l_g_ctrl()
1977 if (check_ext_ctrls(&ctrls, 1)) { in v4l_g_ctrl()
1978 int ret = ops->vidioc_g_ext_ctrls(file, fh, &ctrls); in v4l_g_ctrl()
1994 struct v4l2_ext_controls ctrls; in v4l_s_ctrl() local
2006 ctrls.ctrl_class = V4L2_CTRL_ID2CLASS(p->id); in v4l_s_ctrl()
2007 ctrls.count = 1; in v4l_s_ctrl()
2008 ctrls.controls = &ctrl; in v4l_s_ctrl()
[all …]
DMakefile8 v4l2-event.o v4l2-ctrls.o v4l2-subdev.o v4l2-clk.o \
Dv4l2-ctrls.c1709 INIT_LIST_HEAD(&hdl->ctrls); in v4l2_ctrl_handler_init_class()
1736 list_for_each_entry_safe(ctrl, next_ctrl, &hdl->ctrls, node) { in v4l2_ctrl_handler_free()
2042 list_add_tail(&ctrl->node, &hdl->ctrls); in v4l2_ctrl_new()
2412 list_for_each_entry(ctrl, &hdl->ctrls, node) in v4l2_ctrl_handler_log_status()
2435 list_for_each_entry(ctrl, &hdl->ctrls, node) in v4l2_ctrl_handler_setup()
2438 list_for_each_entry(ctrl, &hdl->ctrls, node) { in v4l2_ctrl_handler_setup()
/linux-4.4.14/drivers/media/i2c/
Dadp1653.c157 container_of(ctrl->handler, struct adp1653_flash, ctrls); in adp1653_get_ctrl()
183 container_of(ctrl->handler, struct adp1653_flash, ctrls); in adp1653_set_ctrl()
216 v4l2_ctrl_handler_init(&flash->ctrls, 9); in adp1653_init_controls()
219 v4l2_ctrl_new_std_menu(&flash->ctrls, &adp1653_ctrl_ops, in adp1653_init_controls()
222 v4l2_ctrl_new_std_menu(&flash->ctrls, &adp1653_ctrl_ops, in adp1653_init_controls()
225 v4l2_ctrl_new_std(&flash->ctrls, &adp1653_ctrl_ops, in adp1653_init_controls()
227 v4l2_ctrl_new_std(&flash->ctrls, &adp1653_ctrl_ops, in adp1653_init_controls()
230 v4l2_ctrl_new_std(&flash->ctrls, &adp1653_ctrl_ops, in adp1653_init_controls()
236 v4l2_ctrl_new_std(&flash->ctrls, &adp1653_ctrl_ops, in adp1653_init_controls()
242 v4l2_ctrl_new_std(&flash->ctrls, &adp1653_ctrl_ops, in adp1653_init_controls()
[all …]
Dov9650.c269 struct ov965x_ctrls ctrls; member
415 return &container_of(ctrl->handler, struct ov965x, ctrls.handler)->sd; in ctrl_to_sd()
548 ov965x->ctrls.update = 1; in ov965x_s_power()
565 struct v4l2_ctrl *ctrl = ov965x->ctrls.exposure; in ov965x_update_exposure_ctrl()
640 ov965x->ctrls.blue_balance->val); in ov965x_set_white_balance()
644 ov965x->ctrls.red_balance->val); in ov965x_set_white_balance()
679 struct ov965x_ctrls *ctrls = &ov965x->ctrls; in ov965x_set_gain() local
686 if (ctrls->auto_gain->is_new) { in ov965x_set_gain()
690 if (ctrls->auto_gain->val) in ov965x_set_gain()
699 if (ctrls->gain->is_new && !auto_gain) { in ov965x_set_gain()
[all …]
Das3645a.c126 struct v4l2_ctrl_handler ctrls; member
327 container_of(ctrl->handler, struct as3645a, ctrls); in as3645a_get_ctrl()
374 container_of(ctrl->handler, struct as3645a, ctrls); in as3645a_set_ctrl()
722 v4l2_ctrl_handler_init(&flash->ctrls, 10); in as3645a_init_controls()
725 v4l2_ctrl_new_std_menu(&flash->ctrls, &as3645a_ctrl_ops, in as3645a_init_controls()
730 v4l2_ctrl_new_std_menu(&flash->ctrls, &as3645a_ctrl_ops, in as3645a_init_controls()
739 v4l2_ctrl_new_std(&flash->ctrls, &as3645a_ctrl_ops, in as3645a_init_controls()
743 v4l2_ctrl_new_std(&flash->ctrls, &as3645a_ctrl_ops, in as3645a_init_controls()
747 ctrl = v4l2_ctrl_new_std(&flash->ctrls, &as3645a_ctrl_ops, in as3645a_init_controls()
755 v4l2_ctrl_new_std(&flash->ctrls, &as3645a_ctrl_ops, in as3645a_init_controls()
[all …]
Dmt9v011.c53 struct v4l2_ctrl_handler ctrls; member
425 container_of(ctrl->handler, struct mt9v011, ctrls); in mt9v011_s_ctrl()
518 v4l2_ctrl_handler_init(&core->ctrls, 5); in mt9v011_probe()
519 v4l2_ctrl_new_std(&core->ctrls, &mt9v011_ctrl_ops, in mt9v011_probe()
521 v4l2_ctrl_new_std(&core->ctrls, &mt9v011_ctrl_ops, in mt9v011_probe()
523 v4l2_ctrl_new_std(&core->ctrls, &mt9v011_ctrl_ops, in mt9v011_probe()
525 v4l2_ctrl_new_std(&core->ctrls, &mt9v011_ctrl_ops, in mt9v011_probe()
527 v4l2_ctrl_new_std(&core->ctrls, &mt9v011_ctrl_ops, in mt9v011_probe()
529 v4l2_ctrl_new_std(&core->ctrls, &mt9v011_ctrl_ops, in mt9v011_probe()
532 if (core->ctrls.error) { in mt9v011_probe()
[all …]
Dmt9v032.c243 struct v4l2_ctrl_handler ctrls; member
369 return v4l2_ctrl_handler_setup(&mt9v032->ctrls); in __mt9v032_set_power()
636 container_of(ctrl->handler, struct mt9v032, ctrls); in mt9v032_s_ctrl()
961 v4l2_ctrl_handler_init(&mt9v032->ctrls, 10); in mt9v032_probe()
963 v4l2_ctrl_new_std(&mt9v032->ctrls, &mt9v032_ctrl_ops, in mt9v032_probe()
965 v4l2_ctrl_new_std(&mt9v032->ctrls, &mt9v032_ctrl_ops, in mt9v032_probe()
968 v4l2_ctrl_new_std_menu(&mt9v032->ctrls, &mt9v032_ctrl_ops, in mt9v032_probe()
971 v4l2_ctrl_new_std(&mt9v032->ctrls, &mt9v032_ctrl_ops, in mt9v032_probe()
975 v4l2_ctrl_new_std(&mt9v032->ctrls, &mt9v032_ctrl_ops, in mt9v032_probe()
979 v4l2_ctrl_new_std(&mt9v032->ctrls, &mt9v032_ctrl_ops, in mt9v032_probe()
[all …]
Dmt9m032.c152 struct v4l2_ctrl_handler ctrls; member
648 container_of(ctrl->handler, struct mt9m032, ctrls); in mt9m032_set_ctrl()
772 v4l2_ctrl_handler_init(&sensor->ctrls, 5); in mt9m032_probe()
774 v4l2_ctrl_new_std(&sensor->ctrls, &mt9m032_ctrl_ops, in mt9m032_probe()
777 sensor->hflip = v4l2_ctrl_new_std(&sensor->ctrls, in mt9m032_probe()
780 sensor->vflip = v4l2_ctrl_new_std(&sensor->ctrls, in mt9m032_probe()
784 v4l2_ctrl_new_std(&sensor->ctrls, &mt9m032_ctrl_ops, in mt9m032_probe()
788 v4l2_ctrl_new_std(&sensor->ctrls, &mt9m032_ctrl_ops, in mt9m032_probe()
792 if (sensor->ctrls.error) { in mt9m032_probe()
793 ret = sensor->ctrls.error; in mt9m032_probe()
[all …]
Dmt9p031.c140 struct v4l2_ctrl_handler ctrls; member
376 return v4l2_ctrl_handler_setup(&mt9p031->ctrls); in __mt9p031_set_power()
680 container_of(ctrl->handler, struct mt9p031, ctrls); in mt9p031_s_ctrl()
1074 v4l2_ctrl_handler_init(&mt9p031->ctrls, ARRAY_SIZE(mt9p031_ctrls) + 6); in mt9p031_probe()
1076 v4l2_ctrl_new_std(&mt9p031->ctrls, &mt9p031_ctrl_ops, in mt9p031_probe()
1080 v4l2_ctrl_new_std(&mt9p031->ctrls, &mt9p031_ctrl_ops, in mt9p031_probe()
1083 v4l2_ctrl_new_std(&mt9p031->ctrls, &mt9p031_ctrl_ops, in mt9p031_probe()
1085 v4l2_ctrl_new_std(&mt9p031->ctrls, &mt9p031_ctrl_ops, in mt9p031_probe()
1087 v4l2_ctrl_new_std(&mt9p031->ctrls, &mt9p031_ctrl_ops, in mt9p031_probe()
1090 v4l2_ctrl_new_std_menu_items(&mt9p031->ctrls, &mt9p031_ctrl_ops, in mt9p031_probe()
[all …]
Dmt9t001.c131 struct v4l2_ctrl_handler ctrls; member
239 return v4l2_ctrl_handler_setup(&mt9t001->ctrls); in __mt9t001_set_power()
525 container_of(ctrl->handler, struct mt9t001, ctrls); in mt9t001_s_ctrl()
885 v4l2_ctrl_handler_init(&mt9t001->ctrls, ARRAY_SIZE(mt9t001_ctrls) + in mt9t001_probe()
888 v4l2_ctrl_new_std(&mt9t001->ctrls, &mt9t001_ctrl_ops, in mt9t001_probe()
892 v4l2_ctrl_new_std(&mt9t001->ctrls, &mt9t001_ctrl_ops, in mt9t001_probe()
894 v4l2_ctrl_new_std(&mt9t001->ctrls, &mt9t001_ctrl_ops, in mt9t001_probe()
897 v4l2_ctrl_new_std_menu_items(&mt9t001->ctrls, &mt9t001_ctrl_ops, in mt9t001_probe()
903 v4l2_ctrl_new_custom(&mt9t001->ctrls, &mt9t001_ctrls[i], NULL); in mt9t001_probe()
906 mt9t001->gains[i] = v4l2_ctrl_new_custom(&mt9t001->ctrls, in mt9t001_probe()
[all …]
Ds5k6aa.c258 struct s5k6aa_ctrls ctrls; member
306 return &container_of(ctrl->handler, struct s5k6aa, ctrls.handler)->sd; in ctrl_to_sd()
472 unsigned int vflip = s5k6aa->ctrls.vflip->val ^ s5k6aa->inv_vflip; in s5k6aa_set_mirror()
482 struct s5k6aa_ctrls *ctrls = &s5k6aa->ctrls; in s5k6aa_set_awb() local
488 ret = s5k6aa_write(c, REG_SF_RGAIN, ctrls->gain_red->val); in s5k6aa_set_awb()
494 ret = s5k6aa_write(c, REG_SF_GGAIN, ctrls->gain_green->val); in s5k6aa_set_awb()
500 ret = s5k6aa_write(c, REG_SF_BGAIN, ctrls->gain_blue->val); in s5k6aa_set_awb()
537 unsigned int exp_time = s5k6aa->ctrls.exposure->val; in s5k6aa_set_auto_exposure()
553 ret = s5k6aa_set_user_gain(c, s5k6aa->ctrls.gain->val); in s5k6aa_set_auto_exposure()
1368 struct s5k6aa_ctrls *ctrls = &s5k6aa->ctrls; in s5k6aa_initialize_ctrls() local
[all …]
Ds5k5baf.c324 struct s5k5baf_ctrls ctrls; member
406 return &container_of(ctrl->handler, struct s5k5baf, ctrls.handler)->sd; in ctrl_to_sd()
645 u16 flip = state->ctrls.vflip->val | (state->ctrls.vflip->val << 1); in s5k5baf_hw_set_mirror()
676 struct s5k5baf_ctrls *ctrls = &state->ctrls; in s5k5baf_hw_set_awb() local
680 ctrls->gain_red->val, 1, in s5k5baf_hw_set_awb()
682 ctrls->gain_blue->val, 1, in s5k5baf_hw_set_awb()
708 unsigned int exp_time = state->ctrls.exposure->val; in s5k5baf_hw_set_auto_exposure()
711 s5k5baf_hw_set_user_gain(state, state->ctrls.gain->val); in s5k5baf_hw_set_auto_exposure()
1093 ret = v4l2_ctrl_handler_setup(&state->ctrls.handler); in s5k5baf_set_power()
1634 struct s5k5baf_ctrls *ctrls = &state->ctrls; in s5k5baf_initialize_ctrls() local
[all …]
Dov2659.c229 struct v4l2_ctrl_handler ctrls; member
1242 container_of(ctrl->handler, struct ov2659, ctrls); in ov2659_s_ctrl()
1417 v4l2_ctrl_handler_init(&ov2659->ctrls, 2); in ov2659_probe()
1419 v4l2_ctrl_new_std(&ov2659->ctrls, &ov2659_ctrl_ops, in ov2659_probe()
1424 v4l2_ctrl_new_std_menu_items(&ov2659->ctrls, &ov2659_ctrl_ops, in ov2659_probe()
1428 ov2659->sd.ctrl_handler = &ov2659->ctrls; in ov2659_probe()
1430 if (ov2659->ctrls.error) { in ov2659_probe()
1432 __func__, ov2659->ctrls.error); in ov2659_probe()
1433 return ov2659->ctrls.error; in ov2659_probe()
1451 v4l2_ctrl_handler_free(&ov2659->ctrls); in ov2659_probe()
[all …]
/linux-4.4.14/drivers/media/platform/exynos4-is/
Dfimc-core.c515 effect->pat_cb = ctx->ctrls.colorfx_cbcr->val >> 8; in fimc_set_color_effect()
516 effect->pat_cr = ctx->ctrls.colorfx_cbcr->val & 0xff; in fimc_set_color_effect()
529 container_of((__ctrl)->handler, struct fimc_ctx, ctrls.handler)
600 struct fimc_ctrls *ctrls = &ctx->ctrls; in fimc_ctrls_create() local
601 struct v4l2_ctrl_handler *handler = &ctrls->handler; in fimc_ctrls_create()
603 if (ctx->ctrls.ready) in fimc_ctrls_create()
608 ctrls->rotate = v4l2_ctrl_new_std(handler, &fimc_ctrl_ops, in fimc_ctrls_create()
610 ctrls->hflip = v4l2_ctrl_new_std(handler, &fimc_ctrl_ops, in fimc_ctrls_create()
612 ctrls->vflip = v4l2_ctrl_new_std(handler, &fimc_ctrl_ops, in fimc_ctrls_create()
616 ctrls->alpha = v4l2_ctrl_new_std(handler, &fimc_ctrl_ops, in fimc_ctrls_create()
[all …]
Dfimc-isp.c513 idx = is->isp.ctrls.iso->val; in __ctrl_set_iso()
694 struct v4l2_ctrl_handler *handler = &isp->ctrls.handler; in fimc_isp_subdev_create()
696 struct fimc_isp_ctrls *ctrls = &isp->ctrls; in fimc_isp_subdev_create() local
718 ctrls->saturation = v4l2_ctrl_new_std(handler, ops, V4L2_CID_SATURATION, in fimc_isp_subdev_create()
720 ctrls->brightness = v4l2_ctrl_new_std(handler, ops, V4L2_CID_BRIGHTNESS, in fimc_isp_subdev_create()
722 ctrls->contrast = v4l2_ctrl_new_std(handler, ops, V4L2_CID_CONTRAST, in fimc_isp_subdev_create()
724 ctrls->sharpness = v4l2_ctrl_new_std(handler, ops, V4L2_CID_SHARPNESS, in fimc_isp_subdev_create()
726 ctrls->hue = v4l2_ctrl_new_std(handler, ops, V4L2_CID_HUE, in fimc_isp_subdev_create()
729 ctrls->auto_wb = v4l2_ctrl_new_std_menu(handler, ops, in fimc_isp_subdev_create()
733 ctrls->exposure = v4l2_ctrl_new_std(handler, ops, in fimc_isp_subdev_create()
[all …]
Dfimc-isp.h170 struct fimc_isp_ctrls ctrls; member
184 container_of(ctrl->handler, struct fimc_isp, ctrls.handler)
Dfimc-core.h505 struct fimc_ctrls ctrls; member
Dfimc-m2m.c639 ctx->fh.ctrl_handler = &ctx->ctrls.handler; in fimc_m2m_open()
Dfimc-capture.c1424 return v4l2_ctrl_add_handler(&vc->ctx->ctrls.handler, in fimc_link_setup()
1819 vfd->ctrl_handler = &ctx->ctrls.handler; in fimc_register_capture_device()
/linux-4.4.14/drivers/media/platform/vsp1/
Dvsp1_wpf.c48 container_of(ctrl->handler, struct vsp1_rwpf, ctrls); in wpf_s_ctrl()
154 mutex_lock(wpf->ctrls.lock); in wpf_s_stream()
157 mutex_unlock(wpf->ctrls.lock); in wpf_s_stream()
254 v4l2_ctrl_handler_init(&wpf->ctrls, 1); in vsp1_wpf_create()
255 v4l2_ctrl_new_std(&wpf->ctrls, &wpf_ctrl_ops, V4L2_CID_ALPHA_COMPONENT, in vsp1_wpf_create()
258 wpf->entity.subdev.ctrl_handler = &wpf->ctrls; in vsp1_wpf_create()
260 if (wpf->ctrls.error) { in vsp1_wpf_create()
263 ret = wpf->ctrls.error; in vsp1_wpf_create()
Dvsp1_sru.c84 container_of(ctrl->handler, struct vsp1_sru, ctrls); in sru_s_ctrl()
154 mutex_lock(sru->ctrls.lock); in sru_s_stream()
158 mutex_unlock(sru->ctrls.lock); in sru_s_stream()
374 v4l2_ctrl_handler_init(&sru->ctrls, 1); in vsp1_sru_create()
375 v4l2_ctrl_new_custom(&sru->ctrls, &sru_intensity_control, NULL); in vsp1_sru_create()
377 sru->entity.subdev.ctrl_handler = &sru->ctrls; in vsp1_sru_create()
379 if (sru->ctrls.error) { in vsp1_sru_create()
381 ret = sru->ctrls.error; in vsp1_sru_create()
Dvsp1_rpf.c48 container_of(ctrl->handler, struct vsp1_rwpf, ctrls); in rpf_s_ctrl()
254 v4l2_ctrl_handler_init(&rpf->ctrls, 1); in vsp1_rpf_create()
255 v4l2_ctrl_new_std(&rpf->ctrls, &rpf_ctrl_ops, V4L2_CID_ALPHA_COMPONENT, in vsp1_rpf_create()
258 rpf->entity.subdev.ctrl_handler = &rpf->ctrls; in vsp1_rpf_create()
260 if (rpf->ctrls.error) { in vsp1_rpf_create()
263 ret = rpf->ctrls.error; in vsp1_rpf_create()
Dvsp1_bru.c47 container_of(ctrl->handler, struct vsp1_bru, ctrls); in bru_s_ctrl()
440 v4l2_ctrl_handler_init(&bru->ctrls, 1); in vsp1_bru_create()
441 v4l2_ctrl_new_std(&bru->ctrls, &bru_ctrl_ops, V4L2_CID_BG_COLOR, in vsp1_bru_create()
444 bru->entity.subdev.ctrl_handler = &bru->ctrls; in vsp1_bru_create()
446 if (bru->ctrls.error) { in vsp1_bru_create()
448 ret = bru->ctrls.error; in vsp1_bru_create()
Dvsp1_sru.h30 struct v4l2_ctrl_handler ctrls; member
Dvsp1_bru.h31 struct v4l2_ctrl_handler ctrls; member
Dvsp1_rwpf.h30 struct v4l2_ctrl_handler ctrls; member
/linux-4.4.14/arch/arm/mach-integrator/
Dintegrator_ap.c216 unsigned int ctrls = 0, ctrlc = 0, rts_mask, dtr_mask; in integrator_uart_set_mctrl() local
232 ctrls |= rts_mask; in integrator_uart_set_mctrl()
237 ctrls |= dtr_mask; in integrator_uart_set_mctrl()
239 __raw_writel(ctrls, ap_syscon_base + INTEGRATOR_SC_CTRLS_OFFSET); in integrator_uart_set_mctrl()
/linux-4.4.14/drivers/media/platform/coda/
Dcoda-common.c1409 container_of(ctrl->handler, struct coda_ctx, ctrls); in coda_s_ctrl()
1503 v4l2_ctrl_new_std(&ctx->ctrls, &coda_ctrl_ops, in coda_encode_ctrls()
1505 v4l2_ctrl_new_std(&ctx->ctrls, &coda_ctrl_ops, in coda_encode_ctrls()
1507 v4l2_ctrl_new_std(&ctx->ctrls, &coda_ctrl_ops, in coda_encode_ctrls()
1509 v4l2_ctrl_new_std(&ctx->ctrls, &coda_ctrl_ops, in coda_encode_ctrls()
1512 v4l2_ctrl_new_std(&ctx->ctrls, &coda_ctrl_ops, in coda_encode_ctrls()
1515 v4l2_ctrl_new_std(&ctx->ctrls, &coda_ctrl_ops, in coda_encode_ctrls()
1517 v4l2_ctrl_new_std(&ctx->ctrls, &coda_ctrl_ops, in coda_encode_ctrls()
1519 v4l2_ctrl_new_std(&ctx->ctrls, &coda_ctrl_ops, in coda_encode_ctrls()
1521 v4l2_ctrl_new_std_menu(&ctx->ctrls, &coda_ctrl_ops, in coda_encode_ctrls()
[all …]
Dcoda.h207 struct v4l2_ctrl_handler ctrls; member
/linux-4.4.14/arch/arm64/kvm/
Dtrace.h102 __array(u64, ctrls, 16)
108 memcpy(__entry->ctrls, control, len << 3);
112 __print_array(__entry->ctrls, __entry->len, sizeof(__u64)),
/linux-4.4.14/drivers/media/usb/uvc/
Duvc_v4l2.c978 struct v4l2_ext_controls *ctrls) in uvc_ioctl_g_ext_ctrls() argument
982 struct v4l2_ext_control *ctrl = ctrls->controls; in uvc_ioctl_g_ext_ctrls()
990 for (i = 0; i < ctrls->count; ++ctrl, ++i) { in uvc_ioctl_g_ext_ctrls()
994 ctrls->error_idx = i; in uvc_ioctl_g_ext_ctrls()
999 ctrls->error_idx = 0; in uvc_ioctl_g_ext_ctrls()
1005 struct v4l2_ext_controls *ctrls, in uvc_ioctl_s_try_ext_ctrls() argument
1008 struct v4l2_ext_control *ctrl = ctrls->controls; in uvc_ioctl_s_try_ext_ctrls()
1017 for (i = 0; i < ctrls->count; ++ctrl, ++i) { in uvc_ioctl_s_try_ext_ctrls()
1021 ctrls->error_idx = commit ? ctrls->count : i; in uvc_ioctl_s_try_ext_ctrls()
1026 ctrls->error_idx = 0; in uvc_ioctl_s_try_ext_ctrls()
[all …]
/linux-4.4.14/sound/synth/emux/
Demux_hwdep.c72 emu->portptrs[i]->ctrls[info.mode] = info.value; in snd_emux_hwdep_misc_mode()
75 emu->portptrs[info.port]->ctrls[info.mode] = info.value; in snd_emux_hwdep_misc_mode()
Demux_seq.c237 port->ctrls[EMUX_MD_DEF_BANK] = 0; in snd_emux_reset_port()
238 port->ctrls[EMUX_MD_DEF_DRUM] = 0; in snd_emux_reset_port()
239 port->ctrls[EMUX_MD_REALTIME_PAN] = 1; in snd_emux_reset_port()
Demux_synth.c913 def_preset = port->ctrls[EMUX_MD_DEF_DRUM]; in get_zone()
917 def_bank = port->ctrls[EMUX_MD_DEF_BANK]; in get_zone()
Demux_oss.c411 port->ctrls[p1] = p2; in emuspec_control()
/linux-4.4.14/drivers/staging/media/davinci_vpfe/
Ddm365_ipipeif.c487 container_of(ctrl->handler, struct vpfe_ipipeif_device, ctrls); in ipipeif_s_ctrl()
1033 v4l2_ctrl_handler_init(&ipipeif->ctrls, 2); in vpfe_ipipeif_init()
1034 v4l2_ctrl_new_std(&ipipeif->ctrls, &ipipeif_ctrl_ops, in vpfe_ipipeif_init()
1037 v4l2_ctrl_new_custom(&ipipeif->ctrls, &vpfe_ipipeif_dpcm_pred, NULL); in vpfe_ipipeif_init()
1038 v4l2_ctrl_handler_setup(&ipipeif->ctrls); in vpfe_ipipeif_init()
1039 sd->ctrl_handler = &ipipeif->ctrls; in vpfe_ipipeif_init()
1061 v4l2_ctrl_handler_free(&ipipeif->ctrls); in vpfe_ipipeif_cleanup()
Ddm365_isif.c1840 container_of(ctrl->handler, struct vpfe_isif_device, ctrls); in vpfe_isif_s_ctrl()
2064 v4l2_ctrl_handler_init(&isif->ctrls, 6); in vpfe_isif_init()
2065 v4l2_ctrl_new_custom(&isif->ctrls, &vpfe_isif_crgain, NULL); in vpfe_isif_init()
2066 v4l2_ctrl_new_custom(&isif->ctrls, &vpfe_isif_cgrgain, NULL); in vpfe_isif_init()
2067 v4l2_ctrl_new_custom(&isif->ctrls, &vpfe_isif_cgbgain, NULL); in vpfe_isif_init()
2068 v4l2_ctrl_new_custom(&isif->ctrls, &vpfe_isif_cbgain, NULL); in vpfe_isif_init()
2069 v4l2_ctrl_new_custom(&isif->ctrls, &vpfe_isif_gain_offset, NULL); in vpfe_isif_init()
2070 v4l2_ctrl_new_custom(&isif->ctrls, &vpfe_isif_dpcm_pred, NULL); in vpfe_isif_init()
2072 v4l2_ctrl_handler_setup(&isif->ctrls); in vpfe_isif_init()
2073 sd->ctrl_handler = &isif->ctrls; in vpfe_isif_init()
[all …]
Ddm365_isif.h187 struct v4l2_ctrl_handler ctrls; member
Ddm365_ipipe.h122 struct v4l2_ctrl_handler ctrls; member
Ddm365_ipipeif.h136 struct v4l2_ctrl_handler ctrls; member
Ddm365_ipipe.c1605 container_of(ctrl->handler, struct vpfe_ipipe_device, ctrls); in ipipe_s_ctrl()
1830 v4l2_ctrl_handler_init(&ipipe->ctrls, 2); in vpfe_ipipe_init()
1831 v4l2_ctrl_new_std(&ipipe->ctrls, &ipipe_ctrl_ops, in vpfe_ipipe_init()
1834 v4l2_ctrl_new_std(&ipipe->ctrls, &ipipe_ctrl_ops, in vpfe_ipipe_init()
1839 v4l2_ctrl_handler_setup(&ipipe->ctrls); in vpfe_ipipe_init()
1840 sd->ctrl_handler = &ipipe->ctrls; in vpfe_ipipe_init()
1855 v4l2_ctrl_handler_free(&ipipe->ctrls); in vpfe_ipipe_cleanup()
/linux-4.4.14/drivers/media/platform/vivid/
DMakefile1 vivid-objs := vivid-core.o vivid-ctrls.o vivid-vid-common.o vivid-vbi-gen.o \
/linux-4.4.14/include/media/
Dv4l2-flash-led-class.h86 struct v4l2_ctrl **ctrls; member
Dadp1653.h116 struct v4l2_ctrl_handler ctrls; member
Dv4l2-subdev.h194 int (*g_ext_ctrls)(struct v4l2_subdev *sd, struct v4l2_ext_controls *ctrls);
195 int (*s_ext_ctrls)(struct v4l2_subdev *sd, struct v4l2_ext_controls *ctrls);
196 int (*try_ext_ctrls)(struct v4l2_subdev *sd, struct v4l2_ext_controls *ctrls);
Dcx2341x.h100 struct v4l2_ext_controls *ctrls, unsigned int cmd);
Dv4l2-ctrls.h265 struct list_head ctrls; member
/linux-4.4.14/drivers/media/common/
Dcx2341x.c964 struct v4l2_ext_controls *ctrls, unsigned int cmd) in cx2341x_ext_ctrls() argument
970 for (i = 0; i < ctrls->count; i++) { in cx2341x_ext_ctrls()
971 struct v4l2_ext_control *ctrl = ctrls->controls + i; in cx2341x_ext_ctrls()
975 ctrls->error_idx = i; in cx2341x_ext_ctrls()
981 for (i = 0; i < ctrls->count; i++) { in cx2341x_ext_ctrls()
982 struct v4l2_ext_control *ctrl = ctrls->controls + i; in cx2341x_ext_ctrls()
1003 ctrls->error_idx = ctrls->count; in cx2341x_ext_ctrls()
1006 ctrls->error_idx = i; in cx2341x_ext_ctrls()
/linux-4.4.14/drivers/media/platform/omap3isp/
Disppreview.h129 struct v4l2_ctrl_handler ctrls; member
Dispvideo.c893 struct v4l2_ext_controls ctrls; in isp_video_check_external_subdevs() local
939 memset(&ctrls, 0, sizeof(ctrls)); in isp_video_check_external_subdevs()
944 ctrls.count = 1; in isp_video_check_external_subdevs()
945 ctrls.controls = &ctrl; in isp_video_check_external_subdevs()
947 ret = v4l2_g_ext_ctrls(pipe->external->ctrl_handler, &ctrls); in isp_video_check_external_subdevs()
Disppreview.c1587 container_of(ctrl->handler, struct isp_prev_device, ctrls); in preview_s_ctrl()
2270 v4l2_ctrl_handler_init(&prev->ctrls, 2); in preview_init_entities()
2271 v4l2_ctrl_new_std(&prev->ctrls, &preview_ctrl_ops, V4L2_CID_BRIGHTNESS, in preview_init_entities()
2274 v4l2_ctrl_new_std(&prev->ctrls, &preview_ctrl_ops, V4L2_CID_CONTRAST, in preview_init_entities()
2277 v4l2_ctrl_handler_setup(&prev->ctrls); in preview_init_entities()
2278 sd->ctrl_handler = &prev->ctrls; in preview_init_entities()
2356 v4l2_ctrl_handler_free(&prev->ctrls); in omap3isp_preview_cleanup()
/linux-4.4.14/include/sound/
Demux_synth.h149 int ctrls[EMUX_MD_END]; /* control parameters */ member
/linux-4.4.14/drivers/media/platform/s5p-mfc/
Ds5p_mfc_dec.c1150 ctx->ctrls[i] = v4l2_ctrl_new_custom(&ctx->ctrl_handler, in s5p_mfc_dec_ctrls_setup()
1153 ctx->ctrls[i] = v4l2_ctrl_new_std(&ctx->ctrl_handler, in s5p_mfc_dec_ctrls_setup()
1163 if (controls[i].is_volatile && ctx->ctrls[i]) in s5p_mfc_dec_ctrls_setup()
1164 ctx->ctrls[i]->flags |= V4L2_CTRL_FLAG_VOLATILE; in s5p_mfc_dec_ctrls_setup()
1175 ctx->ctrls[i] = NULL; in s5p_mfc_dec_ctrls_delete()
Ds5p_mfc_enc.c2103 ctx->ctrls[i] = v4l2_ctrl_new_custom(&ctx->ctrl_handler, in s5p_mfc_enc_ctrls_setup()
2109 ctx->ctrls[i] = v4l2_ctrl_new_std_menu( in s5p_mfc_enc_ctrls_setup()
2115 ctx->ctrls[i] = v4l2_ctrl_new_std( in s5p_mfc_enc_ctrls_setup()
2127 if (controls[i].is_volatile && ctx->ctrls[i]) in s5p_mfc_enc_ctrls_setup()
2128 ctx->ctrls[i]->flags |= V4L2_CTRL_FLAG_VOLATILE; in s5p_mfc_enc_ctrls_setup()
2140 ctx->ctrls[i] = NULL; in s5p_mfc_enc_ctrls_delete()
Ds5p_mfc_common.h658 struct v4l2_ctrl *ctrls[MFC_MAX_CTRLS]; member
/linux-4.4.14/arch/x86/include/asm/xen/
Dinterface.h261 uint32_t ctrls; member
/linux-4.4.14/drivers/scsi/cxlflash/
Dsislite.h392 } ctrls[CXLFLASH_MAX_CONTEXT]; member
Dsuperpipe.c786 ctxi->ctrl_map = &afu->afu_map->ctrls[ctxid].ctrl; in create_context()
1532 ctxi->ctrl_map = &afu->afu_map->ctrls[ctxid].ctrl; in recover_context()
Dmain.c1471 ctrl_map = &afu->afu_map->ctrls[i].ctrl; in init_pcr()
1482 afu->ctrl_map = &afu->afu_map->ctrls[afu->ctx_hndl].ctrl; in init_pcr()
/linux-4.4.14/drivers/video/fbdev/omap/
Domapfb_main.c109 static const struct lcd_ctrl *ctrls[] = { variable
1612 for (i = 0; i < ARRAY_SIZE(ctrls); i++) { in omapfb_find_ctrl()
1613 dev_dbg(fbdev->dev, "ctrl %s\n", ctrls[i]->name); in omapfb_find_ctrl()
1614 if (strcmp(ctrls[i]->name, name) == 0) { in omapfb_find_ctrl()
1615 fbdev->ctrl = ctrls[i]; in omapfb_find_ctrl()
/linux-4.4.14/Documentation/DocBook/
D.device-drivers.xml.cmd2 ….h include/media/tveeprom.h include/media/v4l2-async.h include/media/v4l2-ctrls.h include/media/v4…
/linux-4.4.14/arch/x86/xen/
Dpmu.c263 ctrl_regs = field_offset(ctxt, ctrls); in xen_amd_pmu_emulate()
/linux-4.4.14/sound/isa/sb/
Demu8000_callback.c134 vp->port->ctrls[EMUX_MD_REALTIME_PAN]) in update_voice()
/linux-4.4.14/drivers/net/ethernet/rocker/
Drocker.c225 bool ctrls[ROCKER_CTRL_MAX]; member
3395 if (rocker_port->ctrls[i]) { in rocker_port_ctrl_vlan_add()
3820 memcpy(prev_ctrls, rocker_port->ctrls, sizeof(prev_ctrls)); in rocker_port_stp_update()
3853 if (want[i] != rocker_port->ctrls[i]) { in rocker_port_stp_update()
3860 rocker_port->ctrls[i] = want[i]; in rocker_port_stp_update()
3872 memcpy(rocker_port->ctrls, prev_ctrls, sizeof(prev_ctrls)); in rocker_port_stp_update()