v4l2_flash 70 drivers/leds/leds-aat1290.c struct v4l2_flash *v4l2_flash; v4l2_flash 374 drivers/leds/leds-aat1290.c struct v4l2_flash *v4l2_flash, v4l2_flash 377 drivers/leds/leds-aat1290.c struct led_classdev_flash *fled_cdev = v4l2_flash->fled_cdev; v4l2_flash 388 drivers/leds/leds-aat1290.c static s32 aat1290_brightness_to_intensity(struct v4l2_flash *v4l2_flash, v4l2_flash 391 drivers/leds/leds-aat1290.c struct led_classdev_flash *fled_cdev = v4l2_flash->fled_cdev; v4l2_flash 397 drivers/leds/leds-aat1290.c static int aat1290_led_external_strobe_set(struct v4l2_flash *v4l2_flash, v4l2_flash 400 drivers/leds/leds-aat1290.c struct aat1290_led *led = fled_cdev_to_led(v4l2_flash->fled_cdev); v4l2_flash 401 drivers/leds/leds-aat1290.c struct led_classdev_flash *fled_cdev = v4l2_flash->fled_cdev; v4l2_flash 507 drivers/leds/leds-aat1290.c led->v4l2_flash = v4l2_flash_init(dev, of_fwnode_handle(sub_node), v4l2_flash 510 drivers/leds/leds-aat1290.c if (IS_ERR(led->v4l2_flash)) { v4l2_flash 511 drivers/leds/leds-aat1290.c ret = PTR_ERR(led->v4l2_flash); v4l2_flash 529 drivers/leds/leds-aat1290.c v4l2_flash_release(led->v4l2_flash); v4l2_flash 135 drivers/leds/leds-as3645a.c struct v4l2_flash *vf; v4l2_flash 136 drivers/leds/leds-as3645a.c struct v4l2_flash *vfind; v4l2_flash 62 drivers/leds/leds-max77693.c struct v4l2_flash *v4l2_flash; v4l2_flash 821 drivers/leds/leds-max77693.c struct v4l2_flash *v4l2_flash, v4l2_flash 825 drivers/leds/leds-max77693.c flcdev_to_sub_led(v4l2_flash->fled_cdev); v4l2_flash 930 drivers/leds/leds-max77693.c sub_led->v4l2_flash = v4l2_flash_init(dev, of_fwnode_handle(sub_node), v4l2_flash 933 drivers/leds/leds-max77693.c if (IS_ERR(sub_led->v4l2_flash)) { v4l2_flash 934 drivers/leds/leds-max77693.c ret = PTR_ERR(sub_led->v4l2_flash); v4l2_flash 1011 drivers/leds/leds-max77693.c v4l2_flash_release(sub_leds[FLED1].v4l2_flash); v4l2_flash 1025 drivers/leds/leds-max77693.c v4l2_flash_release(sub_leds[FLED1].v4l2_flash); v4l2_flash 1030 drivers/leds/leds-max77693.c v4l2_flash_release(sub_leds[FLED2].v4l2_flash); v4l2_flash 17 drivers/media/v4l2-core/v4l2-flash-led-class.c #define has_flash_op(v4l2_flash, op) \ v4l2_flash 18 drivers/media/v4l2-core/v4l2-flash-led-class.c (v4l2_flash && v4l2_flash->ops && v4l2_flash->ops->op) v4l2_flash 20 drivers/media/v4l2-core/v4l2-flash-led-class.c #define call_flash_op(v4l2_flash, op, arg) \ v4l2_flash 21 drivers/media/v4l2-core/v4l2-flash-led-class.c (has_flash_op(v4l2_flash, op) ? \ v4l2_flash 22 drivers/media/v4l2-core/v4l2-flash-led-class.c v4l2_flash->ops->op(v4l2_flash, arg) : \ v4l2_flash 79 drivers/media/v4l2-core/v4l2-flash-led-class.c static void v4l2_flash_set_led_brightness(struct v4l2_flash *v4l2_flash, v4l2_flash 82 drivers/media/v4l2-core/v4l2-flash-led-class.c struct v4l2_ctrl **ctrls = v4l2_flash->ctrls; v4l2_flash 85 drivers/media/v4l2-core/v4l2-flash-led-class.c if (has_flash_op(v4l2_flash, intensity_to_led_brightness)) v4l2_flash 86 drivers/media/v4l2-core/v4l2-flash-led-class.c brightness = call_flash_op(v4l2_flash, v4l2_flash 98 drivers/media/v4l2-core/v4l2-flash-led-class.c if (has_flash_op(v4l2_flash, led_brightness_to_intensity)) v4l2_flash 99 drivers/media/v4l2-core/v4l2-flash-led-class.c ctrl->val = call_flash_op(v4l2_flash, v4l2_flash 107 drivers/media/v4l2-core/v4l2-flash-led-class.c led_set_brightness_sync(&v4l2_flash->fled_cdev->led_cdev, v4l2_flash 110 drivers/media/v4l2-core/v4l2-flash-led-class.c led_set_brightness_sync(v4l2_flash->iled_cdev, v4l2_flash 115 drivers/media/v4l2-core/v4l2-flash-led-class.c static int v4l2_flash_update_led_brightness(struct v4l2_flash *v4l2_flash, v4l2_flash 118 drivers/media/v4l2-core/v4l2-flash-led-class.c struct v4l2_ctrl **ctrls = v4l2_flash->ctrls; v4l2_flash 131 drivers/media/v4l2-core/v4l2-flash-led-class.c led_cdev = &v4l2_flash->fled_cdev->led_cdev; v4l2_flash 133 drivers/media/v4l2-core/v4l2-flash-led-class.c led_cdev = v4l2_flash->iled_cdev; v4l2_flash 140 drivers/media/v4l2-core/v4l2-flash-led-class.c if (has_flash_op(v4l2_flash, led_brightness_to_intensity)) v4l2_flash 141 drivers/media/v4l2-core/v4l2-flash-led-class.c ctrl->val = call_flash_op(v4l2_flash, v4l2_flash 153 drivers/media/v4l2-core/v4l2-flash-led-class.c struct v4l2_flash *v4l2_flash = v4l2_ctrl_to_v4l2_flash(c); v4l2_flash 154 drivers/media/v4l2-core/v4l2-flash-led-class.c struct led_classdev_flash *fled_cdev = v4l2_flash->fled_cdev; v4l2_flash 161 drivers/media/v4l2-core/v4l2-flash-led-class.c return v4l2_flash_update_led_brightness(v4l2_flash, c); v4l2_flash 195 drivers/media/v4l2-core/v4l2-flash-led-class.c struct v4l2_flash *v4l2_flash = v4l2_ctrl_to_v4l2_flash(c); v4l2_flash 196 drivers/media/v4l2-core/v4l2-flash-led-class.c struct led_classdev_flash *fled_cdev = v4l2_flash->fled_cdev; v4l2_flash 198 drivers/media/v4l2-core/v4l2-flash-led-class.c struct v4l2_ctrl **ctrls = v4l2_flash->ctrls; v4l2_flash 215 drivers/media/v4l2-core/v4l2-flash-led-class.c ret = call_flash_op(v4l2_flash, v4l2_flash 222 drivers/media/v4l2-core/v4l2-flash-led-class.c ret = call_flash_op(v4l2_flash, v4l2_flash 233 drivers/media/v4l2-core/v4l2-flash-led-class.c v4l2_flash_set_led_brightness(v4l2_flash, v4l2_flash 249 drivers/media/v4l2-core/v4l2-flash-led-class.c return call_flash_op(v4l2_flash, external_strobe_set, v4l2_flash 273 drivers/media/v4l2-core/v4l2-flash-led-class.c v4l2_flash_set_led_brightness(v4l2_flash, c); v4l2_flash 294 drivers/media/v4l2-core/v4l2-flash-led-class.c static void __fill_ctrl_init_data(struct v4l2_flash *v4l2_flash, v4l2_flash 298 drivers/media/v4l2-core/v4l2-flash-led-class.c struct led_classdev_flash *fled_cdev = v4l2_flash->fled_cdev; v4l2_flash 304 drivers/media/v4l2-core/v4l2-flash-led-class.c if (v4l2_flash->iled_cdev) { v4l2_flash 403 drivers/media/v4l2-core/v4l2-flash-led-class.c static int v4l2_flash_init_controls(struct v4l2_flash *v4l2_flash, v4l2_flash 412 drivers/media/v4l2-core/v4l2-flash-led-class.c v4l2_flash->ctrls = devm_kcalloc(v4l2_flash->sd.dev, v4l2_flash 414 drivers/media/v4l2-core/v4l2-flash-led-class.c sizeof(*v4l2_flash->ctrls), v4l2_flash 416 drivers/media/v4l2-core/v4l2-flash-led-class.c if (!v4l2_flash->ctrls) v4l2_flash 425 drivers/media/v4l2-core/v4l2-flash-led-class.c __fill_ctrl_init_data(v4l2_flash, flash_cfg, ctrl_init_data); v4l2_flash 431 drivers/media/v4l2-core/v4l2-flash-led-class.c v4l2_ctrl_handler_init(&v4l2_flash->hdl, num_ctrls); v4l2_flash 440 drivers/media/v4l2-core/v4l2-flash-led-class.c ctrl = v4l2_ctrl_new_std_menu(&v4l2_flash->hdl, v4l2_flash 447 drivers/media/v4l2-core/v4l2-flash-led-class.c ctrl = v4l2_ctrl_new_std(&v4l2_flash->hdl, v4l2_flash 459 drivers/media/v4l2-core/v4l2-flash-led-class.c v4l2_flash->ctrls[i] = ctrl; v4l2_flash 464 drivers/media/v4l2-core/v4l2-flash-led-class.c if (v4l2_flash->hdl.error) { v4l2_flash 465 drivers/media/v4l2-core/v4l2-flash-led-class.c ret = v4l2_flash->hdl.error; v4l2_flash 469 drivers/media/v4l2-core/v4l2-flash-led-class.c v4l2_ctrl_handler_setup(&v4l2_flash->hdl); v4l2_flash 471 drivers/media/v4l2-core/v4l2-flash-led-class.c v4l2_flash->sd.ctrl_handler = &v4l2_flash->hdl; v4l2_flash 476 drivers/media/v4l2-core/v4l2-flash-led-class.c v4l2_ctrl_handler_free(&v4l2_flash->hdl); v4l2_flash 480 drivers/media/v4l2-core/v4l2-flash-led-class.c static int __sync_device_with_v4l2_controls(struct v4l2_flash *v4l2_flash) v4l2_flash 482 drivers/media/v4l2-core/v4l2-flash-led-class.c struct led_classdev_flash *fled_cdev = v4l2_flash->fled_cdev; v4l2_flash 483 drivers/media/v4l2-core/v4l2-flash-led-class.c struct v4l2_ctrl **ctrls = v4l2_flash->ctrls; v4l2_flash 487 drivers/media/v4l2-core/v4l2-flash-led-class.c v4l2_flash_set_led_brightness(v4l2_flash, v4l2_flash 491 drivers/media/v4l2-core/v4l2-flash-led-class.c v4l2_flash_set_led_brightness(v4l2_flash, v4l2_flash 516 drivers/media/v4l2-core/v4l2-flash-led-class.c ret = call_flash_op(v4l2_flash, external_strobe_set, v4l2_flash 528 drivers/media/v4l2-core/v4l2-flash-led-class.c struct v4l2_flash *v4l2_flash = v4l2_subdev_to_v4l2_flash(sd); v4l2_flash 529 drivers/media/v4l2-core/v4l2-flash-led-class.c struct led_classdev_flash *fled_cdev = v4l2_flash->fled_cdev; v4l2_flash 531 drivers/media/v4l2-core/v4l2-flash-led-class.c struct led_classdev *led_cdev_ind = v4l2_flash->iled_cdev; v4l2_flash 555 drivers/media/v4l2-core/v4l2-flash-led-class.c ret = __sync_device_with_v4l2_controls(v4l2_flash); v4l2_flash 578 drivers/media/v4l2-core/v4l2-flash-led-class.c struct v4l2_flash *v4l2_flash = v4l2_subdev_to_v4l2_flash(sd); v4l2_flash 579 drivers/media/v4l2-core/v4l2-flash-led-class.c struct led_classdev_flash *fled_cdev = v4l2_flash->fled_cdev; v4l2_flash 581 drivers/media/v4l2-core/v4l2-flash-led-class.c struct led_classdev *led_cdev_ind = v4l2_flash->iled_cdev; v4l2_flash 590 drivers/media/v4l2-core/v4l2-flash-led-class.c if (v4l2_flash->ctrls[STROBE_SOURCE]) v4l2_flash 592 drivers/media/v4l2-core/v4l2-flash-led-class.c v4l2_flash->ctrls[STROBE_SOURCE], v4l2_flash 615 drivers/media/v4l2-core/v4l2-flash-led-class.c static struct v4l2_flash *__v4l2_flash_init( v4l2_flash 620 drivers/media/v4l2-core/v4l2-flash-led-class.c struct v4l2_flash *v4l2_flash; v4l2_flash 627 drivers/media/v4l2-core/v4l2-flash-led-class.c v4l2_flash = devm_kzalloc(dev, sizeof(*v4l2_flash), GFP_KERNEL); v4l2_flash 628 drivers/media/v4l2-core/v4l2-flash-led-class.c if (!v4l2_flash) v4l2_flash 631 drivers/media/v4l2-core/v4l2-flash-led-class.c sd = &v4l2_flash->sd; v4l2_flash 632 drivers/media/v4l2-core/v4l2-flash-led-class.c v4l2_flash->fled_cdev = fled_cdev; v4l2_flash 633 drivers/media/v4l2-core/v4l2-flash-led-class.c v4l2_flash->iled_cdev = iled_cdev; v4l2_flash 634 drivers/media/v4l2-core/v4l2-flash-led-class.c v4l2_flash->ops = ops; v4l2_flash 648 drivers/media/v4l2-core/v4l2-flash-led-class.c ret = v4l2_flash_init_controls(v4l2_flash, config); v4l2_flash 658 drivers/media/v4l2-core/v4l2-flash-led-class.c return v4l2_flash; v4l2_flash 669 drivers/media/v4l2-core/v4l2-flash-led-class.c struct v4l2_flash *v4l2_flash_init( v4l2_flash 679 drivers/media/v4l2-core/v4l2-flash-led-class.c struct v4l2_flash *v4l2_flash_indicator_init( v4l2_flash 688 drivers/media/v4l2-core/v4l2-flash-led-class.c void v4l2_flash_release(struct v4l2_flash *v4l2_flash) v4l2_flash 692 drivers/media/v4l2-core/v4l2-flash-led-class.c if (IS_ERR_OR_NULL(v4l2_flash)) v4l2_flash 695 drivers/media/v4l2-core/v4l2-flash-led-class.c sd = &v4l2_flash->sd; v4l2_flash 57 drivers/staging/greybus/light.c struct v4l2_flash *v4l2_flash; v4l2_flash 58 drivers/staging/greybus/light.c struct v4l2_flash *v4l2_flash_ind; v4l2_flash 568 drivers/staging/greybus/light.c light->v4l2_flash = v4l2_flash_init(dev, NULL, fled, &v4l2_flash_ops, v4l2_flash 570 drivers/staging/greybus/light.c if (IS_ERR(light->v4l2_flash)) v4l2_flash 571 drivers/staging/greybus/light.c return PTR_ERR(light->v4l2_flash); v4l2_flash 577 drivers/staging/greybus/light.c v4l2_flash_release(light->v4l2_flash); v4l2_flash 588 drivers/staging/greybus/light.c v4l2_flash_release(light->v4l2_flash); v4l2_flash 17 include/media/v4l2-flash-led-class.h struct v4l2_flash; v4l2_flash 44 include/media/v4l2-flash-led-class.h int (*external_strobe_set)(struct v4l2_flash *v4l2_flash, v4l2_flash 47 include/media/v4l2-flash-led-class.h (struct v4l2_flash *v4l2_flash, s32 intensity); v4l2_flash 49 include/media/v4l2-flash-led-class.h (struct v4l2_flash *v4l2_flash, enum led_brightness); v4l2_flash 97 include/media/v4l2-flash-led-class.h static inline struct v4l2_flash *v4l2_subdev_to_v4l2_flash( v4l2_flash 100 include/media/v4l2-flash-led-class.h return container_of(sd, struct v4l2_flash, sd); v4l2_flash 109 include/media/v4l2-flash-led-class.h static inline struct v4l2_flash *v4l2_ctrl_to_v4l2_flash(struct v4l2_ctrl *c) v4l2_flash 111 include/media/v4l2-flash-led-class.h return container_of(c->handler, struct v4l2_flash, hdl); v4l2_flash 132 include/media/v4l2-flash-led-class.h struct v4l2_flash *v4l2_flash_init( v4l2_flash 153 include/media/v4l2-flash-led-class.h struct v4l2_flash *v4l2_flash_indicator_init( v4l2_flash 163 include/media/v4l2-flash-led-class.h void v4l2_flash_release(struct v4l2_flash *v4l2_flash); v4l2_flash 166 include/media/v4l2-flash-led-class.h static inline struct v4l2_flash *v4l2_flash_init( v4l2_flash 174 include/media/v4l2-flash-led-class.h static inline struct v4l2_flash *v4l2_flash_indicator_init( v4l2_flash 181 include/media/v4l2-flash-led-class.h static inline void v4l2_flash_release(struct v4l2_flash *v4l2_flash)