Lines Matching refs:ctrls
82 struct v4l2_ctrl **ctrls = v4l2_flash->ctrls; in v4l2_flash_set_led_brightness() local
104 if (ctrl == ctrls[TORCH_INTENSITY]) { in v4l2_flash_set_led_brightness()
105 if (ctrls[LED_MODE]->val != V4L2_FLASH_LED_MODE_TORCH) in v4l2_flash_set_led_brightness()
125 struct v4l2_ctrl **ctrls = v4l2_flash->ctrls; in v4l2_flash_update_led_brightness() local
129 if (ctrl == ctrls[TORCH_INTENSITY]) { in v4l2_flash_update_led_brightness()
136 if (ctrls[LED_MODE]->val != V4L2_FLASH_LED_MODE_TORCH) in v4l2_flash_update_led_brightness()
206 static bool __software_strobe_mode_inactive(struct v4l2_ctrl **ctrls) in __software_strobe_mode_inactive() argument
208 return ((ctrls[LED_MODE]->val != V4L2_FLASH_LED_MODE_FLASH) || in __software_strobe_mode_inactive()
209 (ctrls[STROBE_SOURCE] && (ctrls[STROBE_SOURCE]->val != in __software_strobe_mode_inactive()
218 struct v4l2_ctrl **ctrls = v4l2_flash->ctrls; in v4l2_flash_s_ctrl() local
242 if (ctrls[STROBE_SOURCE]) { in v4l2_flash_s_ctrl()
243 external_strobe = (ctrls[STROBE_SOURCE]->val == in v4l2_flash_s_ctrl()
252 if (ctrls[STROBE_SOURCE]) { in v4l2_flash_s_ctrl()
265 ctrls[TORCH_INTENSITY]); in v4l2_flash_s_ctrl()
276 if (ctrls[LED_MODE]->val != V4L2_FLASH_LED_MODE_FLASH) in v4l2_flash_s_ctrl()
282 if (__software_strobe_mode_inactive(ctrls)) in v4l2_flash_s_ctrl()
286 if (__software_strobe_mode_inactive(ctrls)) in v4l2_flash_s_ctrl()
438 v4l2_flash->ctrls = devm_kcalloc(v4l2_flash->sd.dev, in v4l2_flash_init_controls()
440 sizeof(*v4l2_flash->ctrls), in v4l2_flash_init_controls()
442 if (!v4l2_flash->ctrls) in v4l2_flash_init_controls()
485 v4l2_flash->ctrls[i] = ctrl; in v4l2_flash_init_controls()
509 struct v4l2_ctrl **ctrls = v4l2_flash->ctrls; in __sync_device_with_v4l2_controls() local
512 if (ctrls[TORCH_INTENSITY]) { in __sync_device_with_v4l2_controls()
514 ctrls[TORCH_INTENSITY]); in __sync_device_with_v4l2_controls()
519 if (ctrls[INDICATOR_INTENSITY]) { in __sync_device_with_v4l2_controls()
521 ctrls[INDICATOR_INTENSITY]); in __sync_device_with_v4l2_controls()
526 if (ctrls[FLASH_TIMEOUT]) { in __sync_device_with_v4l2_controls()
531 ctrls[FLASH_TIMEOUT]->val); in __sync_device_with_v4l2_controls()
536 if (ctrls[FLASH_INTENSITY]) { in __sync_device_with_v4l2_controls()
541 ctrls[FLASH_INTENSITY]->val); in __sync_device_with_v4l2_controls()
552 if (ctrls[STROBE_SOURCE] && in __sync_device_with_v4l2_controls()
553 ctrls[LED_MODE]->val != V4L2_FLASH_LED_MODE_TORCH) in __sync_device_with_v4l2_controls()
555 ctrls[STROBE_SOURCE]->val); in __sync_device_with_v4l2_controls()
628 if (v4l2_flash->ctrls[STROBE_SOURCE]) in v4l2_flash_close()
630 v4l2_flash->ctrls[STROBE_SOURCE], in v4l2_flash_close()