Searched refs:v4l2_flash (Results 1 – 7 of 7) sorted by relevance
/Linux-v4.19/drivers/media/v4l2-core/ |
D | v4l2-flash-led-class.c | 20 #define has_flash_op(v4l2_flash, op) \ argument 21 (v4l2_flash && v4l2_flash->ops && v4l2_flash->ops->op) 23 #define call_flash_op(v4l2_flash, op, arg) \ argument 24 (has_flash_op(v4l2_flash, op) ? \ 25 v4l2_flash->ops->op(v4l2_flash, arg) : \ 82 static void v4l2_flash_set_led_brightness(struct v4l2_flash *v4l2_flash, in v4l2_flash_set_led_brightness() argument 85 struct v4l2_ctrl **ctrls = v4l2_flash->ctrls; in v4l2_flash_set_led_brightness() 88 if (has_flash_op(v4l2_flash, intensity_to_led_brightness)) in v4l2_flash_set_led_brightness() 89 brightness = call_flash_op(v4l2_flash, in v4l2_flash_set_led_brightness() 101 if (has_flash_op(v4l2_flash, led_brightness_to_intensity)) in v4l2_flash_set_led_brightness() [all …]
|
/Linux-v4.19/include/media/ |
D | v4l2-flash-led-class.h | 20 struct v4l2_flash; 47 int (*external_strobe_set)(struct v4l2_flash *v4l2_flash, 50 (struct v4l2_flash *v4l2_flash, s32 intensity); 52 (struct v4l2_flash *v4l2_flash, enum led_brightness); 84 struct v4l2_flash { struct 100 static inline struct v4l2_flash *v4l2_subdev_to_v4l2_flash( in v4l2_subdev_to_v4l2_flash() 103 return container_of(sd, struct v4l2_flash, sd); in v4l2_subdev_to_v4l2_flash() 112 static inline struct v4l2_flash *v4l2_ctrl_to_v4l2_flash(struct v4l2_ctrl *c) in v4l2_ctrl_to_v4l2_flash() 114 return container_of(c->handler, struct v4l2_flash, hdl); in v4l2_ctrl_to_v4l2_flash() 135 struct v4l2_flash *v4l2_flash_init( [all …]
|
/Linux-v4.19/drivers/leds/ |
D | leds-aat1290.c | 71 struct v4l2_flash *v4l2_flash; member 380 struct v4l2_flash *v4l2_flash, in aat1290_intensity_to_brightness() argument 383 struct led_classdev_flash *fled_cdev = v4l2_flash->fled_cdev; in aat1290_intensity_to_brightness() 394 static s32 aat1290_brightness_to_intensity(struct v4l2_flash *v4l2_flash, in aat1290_brightness_to_intensity() argument 397 struct led_classdev_flash *fled_cdev = v4l2_flash->fled_cdev; in aat1290_brightness_to_intensity() 403 static int aat1290_led_external_strobe_set(struct v4l2_flash *v4l2_flash, in aat1290_led_external_strobe_set() argument 406 struct aat1290_led *led = fled_cdev_to_led(v4l2_flash->fled_cdev); in aat1290_led_external_strobe_set() 407 struct led_classdev_flash *fled_cdev = v4l2_flash->fled_cdev; in aat1290_led_external_strobe_set() 508 led->v4l2_flash = v4l2_flash_init(dev, of_fwnode_handle(sub_node), in aat1290_led_probe() 511 if (IS_ERR(led->v4l2_flash)) { in aat1290_led_probe() [all …]
|
D | leds-max77693.c | 65 struct v4l2_flash *v4l2_flash; member 824 struct v4l2_flash *v4l2_flash, in max77693_led_external_strobe_set() argument 828 flcdev_to_sub_led(v4l2_flash->fled_cdev); in max77693_led_external_strobe_set() 933 sub_led->v4l2_flash = v4l2_flash_init(dev, of_fwnode_handle(sub_node), in max77693_register_led() 936 if (IS_ERR(sub_led->v4l2_flash)) { in max77693_register_led() 937 ret = PTR_ERR(sub_led->v4l2_flash); in max77693_register_led() 1014 v4l2_flash_release(sub_leds[FLED1].v4l2_flash); in max77693_led_probe() 1028 v4l2_flash_release(sub_leds[FLED1].v4l2_flash); in max77693_led_remove() 1033 v4l2_flash_release(sub_leds[FLED2].v4l2_flash); in max77693_led_remove()
|
D | leds-as3645a.c | 148 struct v4l2_flash *vf; 149 struct v4l2_flash *vfind;
|
/Linux-v4.19/drivers/staging/greybus/ |
D | light.c | 59 struct v4l2_flash *v4l2_flash; member 60 struct v4l2_flash *v4l2_flash_ind; 570 light->v4l2_flash = v4l2_flash_init(dev, NULL, fled, &v4l2_flash_ops, in gb_lights_light_v4l2_register() 572 if (IS_ERR(light->v4l2_flash)) in gb_lights_light_v4l2_register() 573 return PTR_ERR(light->v4l2_flash); in gb_lights_light_v4l2_register() 579 v4l2_flash_release(light->v4l2_flash); in gb_lights_light_v4l2_register() 590 v4l2_flash_release(light->v4l2_flash); in gb_lights_light_v4l2_unregister()
|
/Linux-v4.19/Documentation/leds/ |
D | leds-class-flash.txt | 61 argument - struct v4l2_flash pointer returned previously by v4l2_flash_init.
|