Searched refs:v4l2_flash (Results 1 – 7 of 7) sorted by relevance
/Linux-v5.4/drivers/media/v4l2-core/ |
D | v4l2-flash-led-class.c | 17 #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) : \ 79 static void v4l2_flash_set_led_brightness(struct v4l2_flash *v4l2_flash, in v4l2_flash_set_led_brightness() argument 82 struct v4l2_ctrl **ctrls = v4l2_flash->ctrls; in v4l2_flash_set_led_brightness() 85 if (has_flash_op(v4l2_flash, intensity_to_led_brightness)) in v4l2_flash_set_led_brightness() 86 brightness = call_flash_op(v4l2_flash, in v4l2_flash_set_led_brightness() 98 if (has_flash_op(v4l2_flash, led_brightness_to_intensity)) in v4l2_flash_set_led_brightness() [all …]
|
/Linux-v5.4/include/media/ |
D | v4l2-flash-led-class.h | 17 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); 81 struct v4l2_flash { struct 97 static inline struct v4l2_flash *v4l2_subdev_to_v4l2_flash( in v4l2_subdev_to_v4l2_flash() 100 return container_of(sd, struct v4l2_flash, sd); in v4l2_subdev_to_v4l2_flash() 109 static inline struct v4l2_flash *v4l2_ctrl_to_v4l2_flash(struct v4l2_ctrl *c) in v4l2_ctrl_to_v4l2_flash() 111 return container_of(c->handler, struct v4l2_flash, hdl); in v4l2_ctrl_to_v4l2_flash() 132 struct v4l2_flash *v4l2_flash_init( [all …]
|
/Linux-v5.4/drivers/leds/ |
D | leds-aat1290.c | 70 struct v4l2_flash *v4l2_flash; member 374 struct v4l2_flash *v4l2_flash, in aat1290_intensity_to_brightness() argument 377 struct led_classdev_flash *fled_cdev = v4l2_flash->fled_cdev; in aat1290_intensity_to_brightness() 388 static s32 aat1290_brightness_to_intensity(struct v4l2_flash *v4l2_flash, in aat1290_brightness_to_intensity() argument 391 struct led_classdev_flash *fled_cdev = v4l2_flash->fled_cdev; in aat1290_brightness_to_intensity() 397 static int aat1290_led_external_strobe_set(struct v4l2_flash *v4l2_flash, in aat1290_led_external_strobe_set() argument 400 struct aat1290_led *led = fled_cdev_to_led(v4l2_flash->fled_cdev); in aat1290_led_external_strobe_set() 401 struct led_classdev_flash *fled_cdev = v4l2_flash->fled_cdev; in aat1290_led_external_strobe_set() 507 led->v4l2_flash = v4l2_flash_init(dev, of_fwnode_handle(sub_node), in aat1290_led_probe() 510 if (IS_ERR(led->v4l2_flash)) { in aat1290_led_probe() [all …]
|
D | leds-max77693.c | 62 struct v4l2_flash *v4l2_flash; member 821 struct v4l2_flash *v4l2_flash, in max77693_led_external_strobe_set() argument 825 flcdev_to_sub_led(v4l2_flash->fled_cdev); in max77693_led_external_strobe_set() 930 sub_led->v4l2_flash = v4l2_flash_init(dev, of_fwnode_handle(sub_node), in max77693_register_led() 933 if (IS_ERR(sub_led->v4l2_flash)) { in max77693_register_led() 934 ret = PTR_ERR(sub_led->v4l2_flash); in max77693_register_led() 1011 v4l2_flash_release(sub_leds[FLED1].v4l2_flash); in max77693_led_probe() 1025 v4l2_flash_release(sub_leds[FLED1].v4l2_flash); in max77693_led_remove() 1030 v4l2_flash_release(sub_leds[FLED2].v4l2_flash); in max77693_led_remove()
|
D | leds-as3645a.c | 135 struct v4l2_flash *vf; 136 struct v4l2_flash *vfind;
|
/Linux-v5.4/drivers/staging/greybus/ |
D | light.c | 57 struct v4l2_flash *v4l2_flash; member 58 struct v4l2_flash *v4l2_flash_ind; 568 light->v4l2_flash = v4l2_flash_init(dev, NULL, fled, &v4l2_flash_ops, in gb_lights_light_v4l2_register() 570 if (IS_ERR(light->v4l2_flash)) in gb_lights_light_v4l2_register() 571 return PTR_ERR(light->v4l2_flash); in gb_lights_light_v4l2_register() 577 v4l2_flash_release(light->v4l2_flash); in gb_lights_light_v4l2_register() 588 v4l2_flash_release(light->v4l2_flash); in gb_lights_light_v4l2_unregister()
|
/Linux-v5.4/Documentation/leds/ |
D | leds-class-flash.rst | 78 argument - struct v4l2_flash pointer returned previously by v4l2_flash_init.
|