Home
last modified time | relevance | path

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

12345

/Linux-v4.19/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 …]
/Linux-v4.19/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 …]
/Linux-v4.19/drivers/media/usb/gspca/stv06xx/
Dstv06xx_pb0100.c89 struct pb0100_ctrls *ctrls = sd->sensor_priv; in pb0100_s_ctrl() local
99 err = pb0100_set_gain(gspca_dev, ctrls->gain->val); in pb0100_s_ctrl()
102 err = pb0100_set_exposure(gspca_dev, ctrls->exposure->val); in pb0100_s_ctrl()
118 struct pb0100_ctrls *ctrls; in pb0100_init_controls() local
138 ctrls = kzalloc(sizeof(*ctrls), GFP_KERNEL); in pb0100_init_controls()
139 if (!ctrls) in pb0100_init_controls()
143 ctrls->autogain = v4l2_ctrl_new_std(hdl, &pb0100_ctrl_ops, in pb0100_init_controls()
145 ctrls->exposure = v4l2_ctrl_new_std(hdl, &pb0100_ctrl_ops, in pb0100_init_controls()
147 ctrls->gain = v4l2_ctrl_new_std(hdl, &pb0100_ctrl_ops, in pb0100_init_controls()
149 ctrls->red = v4l2_ctrl_new_std(hdl, &pb0100_ctrl_ops, in pb0100_init_controls()
[all …]
/Linux-v4.19/drivers/media/i2c/
Dadp1653.c152 container_of(ctrl->handler, struct adp1653_flash, ctrls); in adp1653_get_ctrl()
178 container_of(ctrl->handler, struct adp1653_flash, ctrls); in adp1653_set_ctrl()
211 v4l2_ctrl_handler_init(&flash->ctrls, 9); in adp1653_init_controls()
214 v4l2_ctrl_new_std_menu(&flash->ctrls, &adp1653_ctrl_ops, in adp1653_init_controls()
217 v4l2_ctrl_new_std_menu(&flash->ctrls, &adp1653_ctrl_ops, in adp1653_init_controls()
220 v4l2_ctrl_new_std(&flash->ctrls, &adp1653_ctrl_ops, in adp1653_init_controls()
222 v4l2_ctrl_new_std(&flash->ctrls, &adp1653_ctrl_ops, in adp1653_init_controls()
225 v4l2_ctrl_new_std(&flash->ctrls, &adp1653_ctrl_ops, in adp1653_init_controls()
231 v4l2_ctrl_new_std(&flash->ctrls, &adp1653_ctrl_ops, in adp1653_init_controls()
237 v4l2_ctrl_new_std(&flash->ctrls, &adp1653_ctrl_ops, in adp1653_init_controls()
[all …]
Dov2680.c118 struct ov2680_ctrls ctrls; member
194 ctrls.handler)->sd; in ctrl_to_sd()
410 struct ov2680_ctrls *ctrls = &sensor->ctrls; in ov2680_gain_set() local
419 if (auto_gain || !ctrls->gain->is_new) in ov2680_gain_set()
422 gain = ctrls->gain->val; in ov2680_gain_set()
443 struct ov2680_ctrls *ctrls = &sensor->ctrls; in ov2680_exposure_set() local
452 if (auto_exp || !ctrls->exposure->is_new) in ov2680_exposure_set()
455 exp = (u32)ctrls->exposure->val; in ov2680_exposure_set()
485 struct ov2680_ctrls *ctrls = &sensor->ctrls; in ov2680_mode_set() local
500 if (ctrls->auto_gain->val) { in ov2680_mode_set()
[all …]
Dov9650.c273 struct ov965x_ctrls ctrls; member
419 return &container_of(ctrl->handler, struct ov965x, ctrls.handler)->sd; in ctrl_to_sd()
557 ov965x->ctrls.update = 1; in ov965x_s_power()
574 struct v4l2_ctrl *ctrl = ov965x->ctrls.exposure; in ov965x_update_exposure_ctrl()
649 ov965x->ctrls.blue_balance->val); in ov965x_set_white_balance()
653 ov965x->ctrls.red_balance->val); in ov965x_set_white_balance()
688 struct ov965x_ctrls *ctrls = &ov965x->ctrls; in ov965x_set_gain() local
695 if (ctrls->auto_gain->is_new) { in ov965x_set_gain()
699 if (ctrls->auto_gain->val) in ov965x_set_gain()
708 if (ctrls->gain->is_new && !auto_gain) { in ov965x_set_gain()
[all …]
Dov5640.c231 struct ov5640_ctrls ctrls; member
248 ctrls.handler)->sd; in ctrl_to_sd()
1574 ret = __v4l2_ctrl_s_ctrl(sensor->ctrls.gain, cap_gain16); in ov5640_set_mode_exposure_calc()
1587 return __v4l2_ctrl_s_ctrl(sensor->ctrls.exposure, cap_shutter); in ov5640_set_mode_exposure_calc()
1609 ret = __v4l2_ctrl_s_ctrl(sensor->ctrls.auto_gain, 1); in ov5640_set_mode_direct()
1613 return __v4l2_ctrl_s_ctrl(sensor->ctrls.auto_exp, exposure); in ov5640_set_mode_direct()
1628 ret = __v4l2_ctrl_s_ctrl(sensor->ctrls.auto_gain, 0); in ov5640_set_mode()
1632 exposure = sensor->ctrls.auto_exp->val; in ov5640_set_mode()
1838 ret = v4l2_ctrl_handler_setup(&sensor->ctrls.handler); in ov5640_s_power()
2128 u16 red = (u16)sensor->ctrls.red_balance->val; in ov5640_set_ctrl_white_balance()
[all …]
Dimx274.c528 struct imx274_ctrls ctrls; member
566 struct stimx274, ctrls.handler)->sd; in ctrl_to_sd()
1163 v_pos = imx274->ctrls.vflip->cur.val ? in imx274_apply_trimming()
1231 struct v4l2_ctrl *ctrl = imx274->ctrls.exposure; in imx274_s_frame_interval()
1280 priv->ctrls.exposure->val = 1000000 / IMX274_DEF_FRAME_RATE; in imx274_load_default()
1281 priv->ctrls.gain->val = IMX274_DEF_GAIN; in imx274_load_default()
1282 priv->ctrls.vflip->val = 0; in imx274_load_default()
1283 priv->ctrls.test_pattern->val = TEST_PATTERN_DISABLED; in imx274_load_default()
1292 ret = v4l2_ctrl_s_ctrl(priv->ctrls.exposure, priv->ctrls.exposure->val); in imx274_load_default()
1297 ret = v4l2_ctrl_s_ctrl(priv->ctrls.gain, priv->ctrls.gain->val); in imx274_load_default()
[all …]
Dmt9v011.c55 struct v4l2_ctrl_handler ctrls; member
416 container_of(ctrl->handler, struct mt9v011, ctrls); in mt9v011_s_ctrl()
521 v4l2_ctrl_handler_init(&core->ctrls, 5); in mt9v011_probe()
522 v4l2_ctrl_new_std(&core->ctrls, &mt9v011_ctrl_ops, in mt9v011_probe()
524 v4l2_ctrl_new_std(&core->ctrls, &mt9v011_ctrl_ops, in mt9v011_probe()
526 v4l2_ctrl_new_std(&core->ctrls, &mt9v011_ctrl_ops, in mt9v011_probe()
528 v4l2_ctrl_new_std(&core->ctrls, &mt9v011_ctrl_ops, in mt9v011_probe()
530 v4l2_ctrl_new_std(&core->ctrls, &mt9v011_ctrl_ops, in mt9v011_probe()
532 v4l2_ctrl_new_std(&core->ctrls, &mt9v011_ctrl_ops, in mt9v011_probe()
535 if (core->ctrls.error) { in mt9v011_probe()
[all …]
Dad5820.c53 struct v4l2_ctrl_handler ctrls; member
161 container_of(ctrl->handler, struct ad5820_device, ctrls); in ad5820_set_ctrl()
179 v4l2_ctrl_handler_init(&coil->ctrls, 1); in ad5820_init_controls()
193 v4l2_ctrl_new_std(&coil->ctrls, &ad5820_ctrl_ops, in ad5820_init_controls()
196 if (coil->ctrls.error) in ad5820_init_controls()
197 return coil->ctrls.error; in ad5820_init_controls()
203 coil->subdev.ctrl_handler = &coil->ctrls; in ad5820_init_controls()
345 v4l2_ctrl_handler_free(&coil->ctrls); in ad5820_remove()
Dov5645.c103 struct v4l2_ctrl_handler ctrls; member
848 struct ov5645, ctrls); in ov5645_s_ctrl()
1055 ret = v4l2_ctrl_handler_setup(&ov5645->ctrls); in ov5645_s_stream()
1217 v4l2_ctrl_handler_init(&ov5645->ctrls, 9); in ov5645_probe()
1218 v4l2_ctrl_new_std(&ov5645->ctrls, &ov5645_ctrl_ops, in ov5645_probe()
1220 v4l2_ctrl_new_std(&ov5645->ctrls, &ov5645_ctrl_ops, in ov5645_probe()
1222 v4l2_ctrl_new_std(&ov5645->ctrls, &ov5645_ctrl_ops, in ov5645_probe()
1224 v4l2_ctrl_new_std(&ov5645->ctrls, &ov5645_ctrl_ops, in ov5645_probe()
1226 v4l2_ctrl_new_std(&ov5645->ctrls, &ov5645_ctrl_ops, in ov5645_probe()
1228 v4l2_ctrl_new_std_menu(&ov5645->ctrls, &ov5645_ctrl_ops, in ov5645_probe()
[all …]
Dmt9v032.c196 struct v4l2_ctrl_handler ctrls; member
347 return v4l2_ctrl_handler_setup(&mt9v032->ctrls); in __mt9v032_set_power()
641 container_of(ctrl->handler, struct mt9v032, ctrls); in mt9v032_s_ctrl()
1070 v4l2_ctrl_handler_init(&mt9v032->ctrls, 11 + in mt9v032_probe()
1073 v4l2_ctrl_new_std(&mt9v032->ctrls, &mt9v032_ctrl_ops, in mt9v032_probe()
1075 v4l2_ctrl_new_std(&mt9v032->ctrls, &mt9v032_ctrl_ops, in mt9v032_probe()
1078 v4l2_ctrl_new_std_menu(&mt9v032->ctrls, &mt9v032_ctrl_ops, in mt9v032_probe()
1081 v4l2_ctrl_new_std(&mt9v032->ctrls, &mt9v032_ctrl_ops, in mt9v032_probe()
1085 v4l2_ctrl_new_std(&mt9v032->ctrls, &mt9v032_ctrl_ops, in mt9v032_probe()
1089 v4l2_ctrl_new_std(&mt9v032->ctrls, &mt9v032_ctrl_ops, in mt9v032_probe()
[all …]
Dov7251.c79 struct v4l2_ctrl_handler ctrls; member
864 struct ov7251, ctrls); in ov7251_s_ctrl()
1151 ret = __v4l2_ctrl_handler_setup(&ov7251->ctrls); in ov7251_s_stream()
1341 v4l2_ctrl_handler_init(&ov7251->ctrls, 7); in ov7251_probe()
1342 ov7251->ctrls.lock = &ov7251->lock; in ov7251_probe()
1344 v4l2_ctrl_new_std(&ov7251->ctrls, &ov7251_ctrl_ops, in ov7251_probe()
1346 v4l2_ctrl_new_std(&ov7251->ctrls, &ov7251_ctrl_ops, in ov7251_probe()
1348 ov7251->exposure = v4l2_ctrl_new_std(&ov7251->ctrls, &ov7251_ctrl_ops, in ov7251_probe()
1350 ov7251->gain = v4l2_ctrl_new_std(&ov7251->ctrls, &ov7251_ctrl_ops, in ov7251_probe()
1352 v4l2_ctrl_new_std_menu_items(&ov7251->ctrls, &ov7251_ctrl_ops, in ov7251_probe()
[all …]
Dmt9m032.c147 struct v4l2_ctrl_handler ctrls; member
643 container_of(ctrl->handler, struct mt9m032, ctrls); in mt9m032_set_ctrl()
767 v4l2_ctrl_handler_init(&sensor->ctrls, 5); in mt9m032_probe()
769 v4l2_ctrl_new_std(&sensor->ctrls, &mt9m032_ctrl_ops, in mt9m032_probe()
772 sensor->hflip = v4l2_ctrl_new_std(&sensor->ctrls, in mt9m032_probe()
775 sensor->vflip = v4l2_ctrl_new_std(&sensor->ctrls, in mt9m032_probe()
779 v4l2_ctrl_new_std(&sensor->ctrls, &mt9m032_ctrl_ops, in mt9m032_probe()
783 v4l2_ctrl_new_std(&sensor->ctrls, &mt9m032_ctrl_ops, in mt9m032_probe()
787 if (sensor->ctrls.error) { in mt9m032_probe()
788 ret = sensor->ctrls.error; in mt9m032_probe()
[all …]
/Linux-v4.19/drivers/media/platform/sti/hva/
Dhva-debugfs.c17 struct hva_controls *ctrls = &ctx->ctrls; in format_ctx() local
52 v4l2_ctrl_get_menu(bitrate_mode)[ctrls->bitrate_mode], in format_ctx()
53 ctrls->bitrate, in format_ctx()
54 ctrls->gop_size, in format_ctx()
55 v4l2_ctrl_get_menu(aspect)[ctrls->aspect], in format_ctx()
56 ctrls->time_per_frame.denominator, in format_ctx()
57 ctrls->time_per_frame.numerator); in format_ctx()
72 v4l2_ctrl_get_menu(entropy)[ctrls->entropy_mode], in format_ctx()
73 ctrls->cpb_size, in format_ctx()
74 ctrls->dct8x8 ? "true" : "false", in format_ctx()
[all …]
Dhva-h264.c417 struct hva_controls *ctrls, in hva_h264_fill_slice_header() argument
435 u32 frame_order = frame_num % ctrls->gop_size; in hva_h264_fill_slice_header()
437 if (!(frame_num % ctrls->gop_size)) in hva_h264_fill_slice_header()
454 if ((frame_num / ctrls->gop_size) % 2) { in hva_h264_fill_slice_header()
467 if (ctrls->entropy_mode == cabac) { in hva_h264_fill_slice_header()
597 struct hva_controls *ctrls = &pctx->ctrls; in hva_h264_prepare_task() local
598 struct v4l2_fract *time_per_frame = &pctx->ctrls.time_per_frame; in hva_h264_prepare_task()
622 level = ctrls->level; in hva_h264_prepare_task()
642 td->brc_type = (ctrls->bitrate_mode == V4L2_MPEG_VIDEO_BITRATE_MODE_CBR) in hva_h264_prepare_task()
645 td->entropy_coding_mode = (ctrls->entropy_mode == cavlc) ? CAVLC : in hva_h264_prepare_task()
[all …]
/Linux-v4.19/drivers/media/platform/vsp1/
Dvsp1_hgo.c157 mutex_lock(hgo->ctrls.handler.lock); in hgo_configure_stream()
158 hgo->max_rgb = hgo->ctrls.max_rgb->cur.val; in hgo_configure_stream()
159 if (hgo->ctrls.num_bins) in hgo_configure_stream()
160 hgo->num_bins = hgo_num_bins[hgo->ctrls.num_bins->cur.val]; in hgo_configure_stream()
161 mutex_unlock(hgo->ctrls.handler.lock); in hgo_configure_stream()
197 v4l2_ctrl_handler_init(&hgo->ctrls.handler, in vsp1_hgo_create()
199 hgo->ctrls.max_rgb = v4l2_ctrl_new_custom(&hgo->ctrls.handler, in vsp1_hgo_create()
202 hgo->ctrls.num_bins = in vsp1_hgo_create()
203 v4l2_ctrl_new_custom(&hgo->ctrls.handler, in vsp1_hgo_create()
209 hgo->histo.entity.subdev.ctrl_handler = &hgo->ctrls.handler; in vsp1_hgo_create()
Dvsp1_lut.c64 container_of(ctrl->handler, struct vsp1_lut, ctrls); in lut_s_ctrl()
225 v4l2_ctrl_handler_init(&lut->ctrls, 1); in vsp1_lut_create()
226 v4l2_ctrl_new_custom(&lut->ctrls, &lut_table_control, NULL); in vsp1_lut_create()
228 lut->entity.subdev.ctrl_handler = &lut->ctrls; in vsp1_lut_create()
230 if (lut->ctrls.error) { in vsp1_lut_create()
232 ret = lut->ctrls.error; in vsp1_lut_create()
237 v4l2_ctrl_handler_setup(&lut->ctrls); in vsp1_lut_create()
Dvsp1_hgt.c101 ctrls); in hgt_hue_areas_s_ctrl()
156 mutex_lock(hgt->ctrls.lock); in hgt_configure_stream()
164 mutex_unlock(hgt->ctrls.lock); in hgt_configure_stream()
196 v4l2_ctrl_handler_init(&hgt->ctrls, 1); in vsp1_hgt_create()
197 v4l2_ctrl_new_custom(&hgt->ctrls, &hgt_hue_areas, NULL); in vsp1_hgt_create()
199 hgt->histo.entity.subdev.ctrl_handler = &hgt->ctrls; in vsp1_hgt_create()
211 v4l2_ctrl_handler_setup(&hgt->ctrls); in vsp1_hgt_create()
Dvsp1_wpf.c97 container_of(ctrl->handler, struct vsp1_rwpf, ctrls); in vsp1_wpf_s_ctrl()
103 rotation = wpf->flip.ctrls.rotate ? wpf->flip.ctrls.rotate->val : 0; in vsp1_wpf_s_ctrl()
114 if (wpf->flip.ctrls.vflip->val) in vsp1_wpf_s_ctrl()
117 if (wpf->flip.ctrls.hflip && wpf->flip.ctrls.hflip->val) in vsp1_wpf_s_ctrl()
164 wpf->flip.ctrls.vflip = in wpf_init_controls()
165 v4l2_ctrl_new_std(&wpf->ctrls, &vsp1_wpf_ctrl_ops, in wpf_init_controls()
170 wpf->flip.ctrls.hflip = in wpf_init_controls()
171 v4l2_ctrl_new_std(&wpf->ctrls, &vsp1_wpf_ctrl_ops, in wpf_init_controls()
173 wpf->flip.ctrls.rotate = in wpf_init_controls()
174 v4l2_ctrl_new_std(&wpf->ctrls, &vsp1_wpf_ctrl_ops, in wpf_init_controls()
[all …]
Dvsp1_clu.c67 container_of(ctrl->handler, struct vsp1_clu, ctrls); in clu_s_ctrl()
268 v4l2_ctrl_handler_init(&clu->ctrls, 2); in vsp1_clu_create()
269 v4l2_ctrl_new_custom(&clu->ctrls, &clu_table_control, NULL); in vsp1_clu_create()
270 v4l2_ctrl_new_custom(&clu->ctrls, &clu_mode_control, NULL); in vsp1_clu_create()
272 clu->entity.subdev.ctrl_handler = &clu->ctrls; in vsp1_clu_create()
274 if (clu->ctrls.error) { in vsp1_clu_create()
276 ret = clu->ctrls.error; in vsp1_clu_create()
281 v4l2_ctrl_handler_setup(&clu->ctrls); in vsp1_clu_create()
/Linux-v4.19/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
719 ctrls->saturation = v4l2_ctrl_new_std(handler, ops, V4L2_CID_SATURATION, in fimc_isp_subdev_create()
721 ctrls->brightness = v4l2_ctrl_new_std(handler, ops, V4L2_CID_BRIGHTNESS, in fimc_isp_subdev_create()
723 ctrls->contrast = v4l2_ctrl_new_std(handler, ops, V4L2_CID_CONTRAST, in fimc_isp_subdev_create()
725 ctrls->sharpness = v4l2_ctrl_new_std(handler, ops, V4L2_CID_SHARPNESS, in fimc_isp_subdev_create()
727 ctrls->hue = v4l2_ctrl_new_std(handler, ops, V4L2_CID_HUE, in fimc_isp_subdev_create()
730 ctrls->auto_wb = v4l2_ctrl_new_std_menu(handler, ops, in fimc_isp_subdev_create()
734 ctrls->exposure = v4l2_ctrl_new_std(handler, ops, in fimc_isp_subdev_create()
[all …]
/Linux-v4.19/drivers/media/platform/atmel/
Datmel-isc.c202 struct isc_ctrls ctrls; member
957 struct isc_ctrls *ctrls = &isc->ctrls; in isc_set_pipeline() local
977 regmap_write(regmap, ISC_WB_G_RGR, ctrls->r_gain | (0x1 << 25)); in isc_set_pipeline()
978 regmap_write(regmap, ISC_WB_G_BGR, ctrls->b_gain | (0x1 << 25)); in isc_set_pipeline()
982 gamma = &isc_gamma_table[ctrls->gamma_index][0]; in isc_set_pipeline()
995 regmap_write(regmap, ISC_CBC_BRIGHT, ctrls->brightness); in isc_set_pipeline()
996 regmap_write(regmap, ISC_CBC_CONTRAST, ctrls->contrast); in isc_set_pipeline()
1024 struct isc_ctrls *ctrls = &isc->ctrls; in isc_set_histogram() local
1027 if (ctrls->awb && (ctrls->hist_stat != HIST_ENABLED)) { in isc_set_histogram()
1034 ctrls->hist_id = ISC_HIS_CFG_MODE_R; in isc_set_histogram()
[all …]
/Linux-v4.19/drivers/net/dsa/b53/
Db53_srab.c71 u32 ctrls; in b53_srab_request_grant() local
74 ctrls = readl(regs + B53_SRAB_CTRLS); in b53_srab_request_grant()
75 ctrls |= B53_SRAB_CTRLS_RCAREQ; in b53_srab_request_grant()
76 writel(ctrls, regs + B53_SRAB_CTRLS); in b53_srab_request_grant()
79 ctrls = readl(regs + B53_SRAB_CTRLS); in b53_srab_request_grant()
80 if (ctrls & B53_SRAB_CTRLS_RCAGNT) in b53_srab_request_grant()
94 u32 ctrls; in b53_srab_release_grant() local
96 ctrls = readl(regs + B53_SRAB_CTRLS); in b53_srab_release_grant()
97 ctrls &= ~B53_SRAB_CTRLS_RCAREQ; in b53_srab_release_grant()
98 writel(ctrls, regs + B53_SRAB_CTRLS); in b53_srab_release_grant()

12345