Lines Matching defs:flash

15 #include <linux/led-class-flash.h>
22 #include <media/v4l2-flash-led-class.h>
71 struct led_classdev_flash flash;
89 struct mt6370_led *led = to_mt6370_led(lcdev, flash.led_cdev);
101 * There is only one set of flash control logic, and this flag is used to check if 'strobe'
124 * There're two flash channels in MT6370. If joint flash output is used,
157 * Because of the current spikes when turning on the flash, the brightness should be kept
166 struct mt6370_led *led = to_mt6370_led(fl_cdev, flash);
176 * There're two flash channels in MT6370. If joint flash output is used, storbe
197 struct mt6370_led *led = to_mt6370_led(fl_cdev, flash);
211 * There is only one set of flash control logic, and this flag is used to check if 'torch'
235 * If the flash needs to turn on, configure the flash current to ramp up to the setting
245 * For the flash to turn on/off, we must wait for HW ramping up/down time 5ms/500us to
262 struct mt6370_led *led = to_mt6370_led(fl_cdev, flash);
274 struct mt6370_led *led = to_mt6370_led(fl_cdev, flash);
284 struct mt6370_led *led = to_mt6370_led(fl_cdev, flash);
346 struct led_classdev_flash *flash = v4l2_flash->fled_cdev;
347 struct mt6370_led *led = to_mt6370_led(flash, flash);
379 lcdev = &led->flash.led_cdev;
410 ret = devm_led_classdev_flash_register_ext(parent, &led->flash, &init_data);
412 return dev_err_probe(parent, ret, "Couldn't register flash %d\n", led->led_no);
415 led->v4l2_flash = v4l2_flash_init(parent, fwnode, &led->flash, &v4l2_flash_ops,
438 struct led_classdev_flash *flash = &led->flash;
439 struct led_classdev *lcdev = &flash->led_cdev;
463 /* If both channels are specified in 'led-sources', joint flash output mode is used */
478 ret = fwnode_property_read_u32(fwnode, "flash-max-microamp", &val);
482 s = &flash->brightness;
487 /* Always configure to the minimum level when off to prevent flash current spikes. */
488 ret = _mt6370_flash_brightness_set(flash, s->min);
493 ret = fwnode_property_read_u32(fwnode, "flash-max-timeout-us", &val);
498 s = &flash->timeout;
503 flash->ops = &mt6370_flash_ops;