Searched refs:v4l2_flash (Results 1 – 2 of 2) sorted by relevance
/linux-4.19.296/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-4.19.296/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 …]
|