Home
last modified time | relevance | path

Searched refs:v4l2_flash (Results 1 – 12 of 12) sorted by relevance

/linux/drivers/media/v4l2-core/ !
H A Dv4l2-flash-led-class.c17 #define has_flash_op(v4l2_flash, op) \ argument
18 (v4l2_flash && v4l2_flash->ops && v4l2_flash->ops->op)
20 #define call_flash_op(v4l2_flash, op, arg) \ argument
21 (has_flash_op(v4l2_flash, op) ? \
22 v4l2_flash->ops->op(v4l2_flash, arg) : \
34 * the 'ctrls' array in the struct v4l2_flash.
79 static int v4l2_flash_set_led_brightness(struct v4l2_flash *v4l2_flas argument
122 v4l2_flash_update_led_brightness(struct v4l2_flash * v4l2_flash,struct v4l2_ctrl * ctrl) v4l2_flash_update_led_brightness() argument
167 struct v4l2_flash *v4l2_flash = v4l2_ctrl_to_v4l2_flash(c); v4l2_flash_g_volatile_ctrl() local
215 struct v4l2_flash *v4l2_flash = v4l2_ctrl_to_v4l2_flash(c); v4l2_flash_s_ctrl() local
320 __fill_ctrl_init_data(struct v4l2_flash * v4l2_flash,struct v4l2_flash_config * flash_cfg,struct v4l2_flash_ctrl_data * ctrl_init_data) __fill_ctrl_init_data() argument
429 v4l2_flash_init_controls(struct v4l2_flash * v4l2_flash,struct v4l2_flash_config * flash_cfg) v4l2_flash_init_controls() argument
506 __sync_device_with_v4l2_controls(struct v4l2_flash * v4l2_flash) __sync_device_with_v4l2_controls() argument
566 struct v4l2_flash *v4l2_flash = v4l2_subdev_to_v4l2_flash(sd); v4l2_flash_open() local
616 struct v4l2_flash *v4l2_flash = v4l2_subdev_to_v4l2_flash(sd); v4l2_flash_close() local
658 struct v4l2_flash *v4l2_flash; __v4l2_flash_init() local
726 v4l2_flash_release(struct v4l2_flash * v4l2_flash) v4l2_flash_release() argument
[all...]
/linux/include/media/ !
H A Dv4l2-flash-led-class.h17 struct v4l2_flash;
44 int (*external_strobe_set)(struct v4l2_flash *v4l2_flash,
47 (struct v4l2_flash *v4l2_flash, s32 intensity);
49 (struct v4l2_flash *v4l2_flash, enum led_brightness);
71 * struct v4l2_flash - Flash sub-device context
81 struct v4l2_flash { struct
92 * v4l2_subdev_to_v4l2_flash - Returns a &struct v4l2_flash fro argument
84 opsv4l2_flash global() argument
181 v4l2_flash_release(struct v4l2_flash * v4l2_flash) v4l2_flash_release() argument
[all...]
/linux/drivers/leds/flash/ !
H A Dleds-aat1290.c71 struct v4l2_flash *v4l2_flash; member
370 struct v4l2_flash *v4l2_flash, in aat1290_intensity_to_brightness() argument
373 struct led_classdev_flash *fled_cdev = v4l2_flash->fled_cdev; in aat1290_intensity_to_brightness()
384 static s32 aat1290_brightness_to_intensity(struct v4l2_flash *v4l2_flash, in aat1290_brightness_to_intensity() argument
387 struct led_classdev_flash *fled_cdev = v4l2_flash->fled_cdev; in aat1290_brightness_to_intensity()
393 static int aat1290_led_external_strobe_set(struct v4l2_flash *v4l2_flash, in aat1290_led_external_strobe_set() argument
[all...]
H A Dleds-qcom-flash.c150 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
661 struct v4l2_flash *v4l2_flash; qcom_flash_v4l2_init() local
[all...]
H A Dleds-rt4505.c49 struct v4l2_flash *v4l2_flash; member
240 static int rt4505_flash_external_strobe_set(struct v4l2_flash *v4l2_flash, in rt4505_flash_external_strobe_set() argument
243 struct led_classdev_flash *flash = v4l2_flash->fled_cdev; in rt4505_flash_external_strobe_set()
384 priv->v4l2_flash = v4l2_flash_init(priv->dev, init_data.fwnode, in rt4505_probe()
387 if (IS_ERR(priv->v4l2_flash)) { in rt4505_probe()
389 return PTR_ERR(priv->v4l2_flash); in rt4505_probe()
400 v4l2_flash_release(priv->v4l2_flash); in rt4505_remove()
H A Dleds-mt6370-flash.c72 struct v4l2_flash *v4l2_flash; member
343 static int mt6370_flash_external_strobe_set(struct v4l2_flash *v4l2_flash, in mt6370_flash_external_strobe_set() argument
346 struct led_classdev_flash *flash = v4l2_flash->fled_cdev; in mt6370_flash_external_strobe_set()
398 static void mt6370_v4l2_flash_release(void *v4l2_flash) in mt6370_v4l2_flash_release() argument
400 v4l2_flash_release(v4l2_flash); in mt6370_v4l2_flash_release()
415 led->v4l2_flash = v4l2_flash_init(parent, fwnode, &led->flash, &v4l2_flash_ops, in mt6370_led_register()
417 if (IS_ERR(led->v4l2_flash)) in mt6370_led_register()
418 return dev_err_probe(parent, PTR_ERR(led->v4l2_flash), in mt6370_led_register()
[all...]
H A Dleds-rt8515.c50 struct v4l2_flash *v4l2_flash; member
216 v4l2_flash_release(rt->v4l2_flash); in rt8515_v4l2_flash_release()
355 rt->v4l2_flash = v4l2_flash_init(dev, child, fled, NULL, &v4l2_sd_cfg); in rt8515_probe()
356 if (IS_ERR(rt->v4l2_flash)) { in rt8515_probe()
357 ret = PTR_ERR(rt->v4l2_flash); in rt8515_probe()
H A Dleds-tps6131x.c121 struct v4l2_flash *v4l2_flash; member
695 static int tps6131x_flash_external_strobe_set(struct v4l2_flash *v4l2_flash, bool enable) in tps6131x_flash_external_strobe_set() argument
697 struct led_classdev_flash *fled_cdev = v4l2_flash->fled_cdev; in tps6131x_flash_external_strobe_set()
728 tps6131x->v4l2_flash = v4l2_flash_init(tps6131x->dev, tps6131x->led_node, in tps6131x_v4l2_setup()
731 if (IS_ERR(tps6131x->v4l2_flash)) { in tps6131x_v4l2_setup()
733 return PTR_ERR(tps6131x->v4l2_flash); in tps6131x_v4l2_setup()
792 v4l2_flash_release(tps6131x->v4l2_flash); in tps6131x_remove()
H A Dleds-mt6360.c80 struct v4l2_flash *v4l2_flash; member
468 static int mt6360_flash_external_strobe_set(struct v4l2_flash *v4l2_flash, in mt6360_flash_external_strobe_set() argument
471 struct led_classdev_flash *flash = v4l2_flash->fled_cdev; in mt6360_flash_external_strobe_set()
598 led->v4l2_flash = v4l2_flash_init(parent, init_data->fwnode, in mt6360_led_register()
602 if (IS_ERR(led->v4l2_flash)) { in mt6360_led_register()
605 return PTR_ERR(led->v4l2_flash); in mt6360_led_register()
779 if (led->v4l2_flash) in mt6360_v4l2_flash_release()
780 v4l2_flash_release(led->v4l2_flash); in mt6360_v4l2_flash_release()
[all...]
H A Dleds-as3645a.c135 struct v4l2_flash *vf;
136 struct v4l2_flash *vfind;
/linux/drivers/staging/greybus/ !
H A Dlight.c53 struct v4l2_flash *v4l2_flash; member
54 struct v4l2_flash *v4l2_flash_ind;
552 light->v4l2_flash = v4l2_flash_init(dev, NULL, fled, &v4l2_flash_ops, in gb_lights_light_v4l2_register()
554 if (IS_ERR(light->v4l2_flash)) in gb_lights_light_v4l2_register()
555 return PTR_ERR(light->v4l2_flash); in gb_lights_light_v4l2_register()
561 v4l2_flash_release(light->v4l2_flash); in gb_lights_light_v4l2_register()
572 v4l2_flash_release(light->v4l2_flash); in gb_lights_light_v4l2_unregister()
/linux/Documentation/leds/ !
H A Dleds-class-flash.rst78 argument - struct v4l2_flash pointer returned previously by v4l2_flash_init.