Lines Matching refs:fled_cdev

108 		if (WARN_ON_ONCE(!v4l2_flash->fled_cdev))  in v4l2_flash_set_led_brightness()
111 led_cdev = &v4l2_flash->fled_cdev->led_cdev; in v4l2_flash_set_led_brightness()
139 if (WARN_ON_ONCE(!v4l2_flash->fled_cdev)) in v4l2_flash_update_led_brightness()
142 led_cdev = &v4l2_flash->fled_cdev->led_cdev; in v4l2_flash_update_led_brightness()
168 struct led_classdev_flash *fled_cdev = v4l2_flash->fled_cdev; in v4l2_flash_g_volatile_ctrl() local
178 if (!fled_cdev) in v4l2_flash_g_volatile_ctrl()
183 ret = led_update_flash_brightness(fled_cdev); in v4l2_flash_g_volatile_ctrl()
190 c->val = fled_cdev->brightness.val; in v4l2_flash_g_volatile_ctrl()
193 ret = led_get_flash_strobe(fled_cdev, &is_strobing); in v4l2_flash_g_volatile_ctrl()
200 return led_get_flash_fault(fled_cdev, &c->val); in v4l2_flash_g_volatile_ctrl()
216 struct led_classdev_flash *fled_cdev = v4l2_flash->fled_cdev; in v4l2_flash_s_ctrl() local
228 if (!fled_cdev) in v4l2_flash_s_ctrl()
231 led_cdev = &fled_cdev->led_cdev; in v4l2_flash_s_ctrl()
238 return led_set_flash_strobe(fled_cdev, false); in v4l2_flash_s_ctrl()
260 ret = led_set_flash_strobe(fled_cdev, false); in v4l2_flash_s_ctrl()
284 return led_set_flash_strobe(fled_cdev, true); in v4l2_flash_s_ctrl()
288 return led_set_flash_strobe(fled_cdev, false); in v4l2_flash_s_ctrl()
294 return led_set_flash_timeout(fled_cdev, c->val); in v4l2_flash_s_ctrl()
300 return led_set_flash_brightness(fled_cdev, c->val); in v4l2_flash_s_ctrl()
324 struct led_classdev_flash *fled_cdev = v4l2_flash->fled_cdev; in __fill_ctrl_init_data() local
325 struct led_classdev *led_cdev = fled_cdev ? &fled_cdev->led_cdev : NULL; in __fill_ctrl_init_data()
401 if (has_flash_op(fled_cdev, strobe_get)) { in __fill_ctrl_init_data()
411 if (has_flash_op(fled_cdev, timeout_set)) { in __fill_ctrl_init_data()
414 __lfs_to_v4l2_ctrl_config(&fled_cdev->timeout, ctrl_cfg); in __fill_ctrl_init_data()
419 if (has_flash_op(fled_cdev, flash_brightness_set)) { in __fill_ctrl_init_data()
422 __lfs_to_v4l2_ctrl_config(&fled_cdev->brightness, ctrl_cfg); in __fill_ctrl_init_data()
508 struct led_classdev_flash *fled_cdev = v4l2_flash->fled_cdev; in __sync_device_with_v4l2_controls() local
527 if (WARN_ON_ONCE(!fled_cdev)) in __sync_device_with_v4l2_controls()
530 ret = led_set_flash_timeout(fled_cdev, in __sync_device_with_v4l2_controls()
537 if (WARN_ON_ONCE(!fled_cdev)) in __sync_device_with_v4l2_controls()
540 ret = led_set_flash_brightness(fled_cdev, in __sync_device_with_v4l2_controls()
567 struct led_classdev_flash *fled_cdev = v4l2_flash->fled_cdev; in v4l2_flash_open() local
568 struct led_classdev *led_cdev = fled_cdev ? &fled_cdev->led_cdev : NULL; in v4l2_flash_open()
617 struct led_classdev_flash *fled_cdev = v4l2_flash->fled_cdev; in v4l2_flash_close() local
618 struct led_classdev *led_cdev = fled_cdev ? &fled_cdev->led_cdev : NULL; in v4l2_flash_close()
655 struct led_classdev_flash *fled_cdev, struct led_classdev *iled_cdev, in __v4l2_flash_init() argument
670 v4l2_flash->fled_cdev = fled_cdev; in __v4l2_flash_init()
709 struct led_classdev_flash *fled_cdev, in v4l2_flash_init() argument
713 return __v4l2_flash_init(dev, fwn, fled_cdev, NULL, ops, config); in v4l2_flash_init()