Lines Matching refs:v4l2_flash

150 	struct v4l2_flash	**v4l2_flash;  member
610 static int qcom_flash_external_strobe_set(struct v4l2_flash *v4l2_flash, bool enable) in qcom_flash_external_strobe_set() argument
612 struct led_classdev_flash *fled_cdev = v4l2_flash->fled_cdev; in qcom_flash_external_strobe_set()
627 qcom_flash_intensity_to_led_brightness(struct v4l2_flash *v4l2_flash, s32 intensity) in qcom_flash_intensity_to_led_brightness() argument
629 struct led_classdev_flash *fled_cdev = v4l2_flash->fled_cdev; in qcom_flash_intensity_to_led_brightness()
640 static s32 qcom_flash_brightness_to_led_intensity(struct v4l2_flash *v4l2_flash, in qcom_flash_brightness_to_led_intensity() argument
643 struct led_classdev_flash *fled_cdev = v4l2_flash->fled_cdev; in qcom_flash_brightness_to_led_intensity()
661 struct v4l2_flash *v4l2_flash; in qcom_flash_v4l2_init() local
680 v4l2_flash = v4l2_flash_init(dev, fwnode, &led->flash, &qcom_v4l2_flash_ops, &v4l2_cfg); in qcom_flash_v4l2_init()
681 if (IS_ERR(v4l2_flash)) in qcom_flash_v4l2_init()
682 return PTR_ERR(v4l2_flash); in qcom_flash_v4l2_init()
684 flash_data->v4l2_flash[flash_data->leds_count] = v4l2_flash; in qcom_flash_v4l2_init()
894 flash_data->v4l2_flash = devm_kcalloc(dev, count, in qcom_flash_led_probe()
895 sizeof(*flash_data->v4l2_flash), GFP_KERNEL); in qcom_flash_led_probe()
896 if (!flash_data->v4l2_flash) in qcom_flash_led_probe()
918 while (flash_data->v4l2_flash[flash_data->leds_count] && flash_data->leds_count) in qcom_flash_led_probe()
919 v4l2_flash_release(flash_data->v4l2_flash[flash_data->leds_count--]); in qcom_flash_led_probe()
927 while (flash_data->v4l2_flash[flash_data->leds_count] && flash_data->leds_count) in qcom_flash_led_remove()
928 v4l2_flash_release(flash_data->v4l2_flash[flash_data->leds_count--]); in qcom_flash_led_remove()