/linux-master/include/media/ |
H A 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); 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 181 v4l2_flash_release(struct v4l2_flash *v4l2_flash) argument [all...] |
/linux-master/drivers/media/v4l2-core/ |
H A D | v4l2-flash-led-class.c | 17 #define has_flash_op(v4l2_flash, op) \ 18 (v4l2_flash && v4l2_flash->ops && v4l2_flash->ops->op) 20 #define call_flash_op(v4l2_flash, op, arg) \ 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) argument 167 struct v4l2_flash *v4l2_flash = v4l2_ctrl_to_v4l2_flash(c); local 215 struct v4l2_flash *v4l2_flash = v4l2_ctrl_to_v4l2_flash(c); 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) argument 429 v4l2_flash_init_controls(struct v4l2_flash *v4l2_flash, struct v4l2_flash_config *flash_cfg) argument 506 __sync_device_with_v4l2_controls(struct v4l2_flash *v4l2_flash) argument 566 struct v4l2_flash *v4l2_flash = v4l2_subdev_to_v4l2_flash(sd); local 616 struct v4l2_flash *v4l2_flash = v4l2_subdev_to_v4l2_flash(sd); local 658 struct v4l2_flash *v4l2_flash; local 726 v4l2_flash_release(struct v4l2_flash *v4l2_flash) argument [all...] |
/linux-master/drivers/leds/flash/ |
H A D | leds-aat1290.c | 70 struct v4l2_flash *v4l2_flash; member in struct:aat1290_led 374 struct v4l2_flash *v4l2_flash, 377 struct led_classdev_flash *fled_cdev = v4l2_flash->fled_cdev; 388 static s32 aat1290_brightness_to_intensity(struct v4l2_flash *v4l2_flash, argument 391 struct led_classdev_flash *fled_cdev = v4l2_flash->fled_cdev; 397 static int aat1290_led_external_strobe_set(struct v4l2_flash *v4l2_flash, argument 373 aat1290_intensity_to_brightness( struct v4l2_flash *v4l2_flash, s32 intensity) argument [all...] |
H A D | leds-sgm3140.c | 17 struct v4l2_flash *v4l2_flash; member in struct:sgm3140 268 priv->v4l2_flash = v4l2_flash_init(&pdev->dev, 272 if (IS_ERR(priv->v4l2_flash)) { 273 ret = PTR_ERR(priv->v4l2_flash); 290 v4l2_flash_release(priv->v4l2_flash);
|
H A D | leds-rt4505.c | 49 struct v4l2_flash *v4l2_flash; member in struct:rt4505_priv 240 static int rt4505_flash_external_strobe_set(struct v4l2_flash *v4l2_flash, argument 243 struct led_classdev_flash *flash = v4l2_flash->fled_cdev; 384 priv->v4l2_flash = v4l2_flash_init(priv->dev, init_data.fwnode, 387 if (IS_ERR(priv->v4l2_flash)) { 389 return PTR_ERR(priv->v4l2_flash); 400 v4l2_flash_release(priv->v4l2_flash);
|
H A D | leds-qcom-flash.c | 129 struct v4l2_flash **v4l2_flash; member in struct:qcom_flash_data 457 static int qcom_flash_external_strobe_set(struct v4l2_flash *v4l2_flash, bool enable) argument 459 struct led_classdev_flash *fled_cdev = v4l2_flash->fled_cdev; 474 qcom_flash_intensity_to_led_brightness(struct v4l2_flash *v4l2_flash, s32 intensity) argument 476 struct led_classdev_flash *fled_cdev = v4l2_flash->fled_cdev; 487 static s32 qcom_flash_brightness_to_led_intensity(struct v4l2_flash *v4l2_flash, argument [all...] |
H A D | leds-rt8515.c | 50 struct v4l2_flash *v4l2_flash; member in struct:rt8515 216 v4l2_flash_release(rt->v4l2_flash); 355 rt->v4l2_flash = v4l2_flash_init(dev, child, fled, NULL, &v4l2_sd_cfg); 356 if (IS_ERR(rt->v4l2_flash)) { 357 ret = PTR_ERR(rt->v4l2_flash);
|
H A D | leds-mt6370-flash.c | 72 struct v4l2_flash *v4l2_flash; member in struct:mt6370_led 343 static int mt6370_flash_external_strobe_set(struct v4l2_flash *v4l2_flash, argument 346 struct led_classdev_flash *flash = v4l2_flash->fled_cdev; 398 static void mt6370_v4l2_flash_release(void *v4l2_flash) argument 400 v4l2_flash_release(v4l2_flash); 415 led->v4l2_flash = v4l2_flash_init(parent, fwnode, &led->flash, &v4l2_flash_ops, 417 if (IS_ERR(led->v4l2_flash)) 418 return dev_err_probe(parent, PTR_ERR(led->v4l2_flash), [all...] |
H A D | leds-max77693.c | 62 struct v4l2_flash *v4l2_flash; member in struct:max77693_sub_led 821 struct v4l2_flash *v4l2_flash, 825 flcdev_to_sub_led(v4l2_flash->fled_cdev); 930 sub_led->v4l2_flash = v4l2_flash_init(dev, of_fwnode_handle(sub_node), 933 if (IS_ERR(sub_led->v4l2_flash)) { 934 ret = PTR_ERR(sub_led->v4l2_flash); 1011 v4l2_flash_release(sub_leds[FLED1].v4l2_flash); 1025 v4l2_flash_release(sub_leds[FLED1].v4l2_flash); 820 max77693_led_external_strobe_set( struct v4l2_flash *v4l2_flash, bool enable) argument [all...] |
H A D | leds-mt6360.c | 80 struct v4l2_flash *v4l2_flash; member in struct:mt6360_led 458 static int mt6360_flash_external_strobe_set(struct v4l2_flash *v4l2_flash, argument 461 struct led_classdev_flash *flash = v4l2_flash->fled_cdev; 588 led->v4l2_flash = v4l2_flash_init(parent, init_data->fwnode, 592 if (IS_ERR(led->v4l2_flash)) { 595 return PTR_ERR(led->v4l2_flash); 766 if (led->v4l2_flash) 767 v4l2_flash_release(led->v4l2_flash); [all...] |
H A D | leds-as3645a.c | 135 struct v4l2_flash *vf; 136 struct v4l2_flash *vfind;
|
/linux-master/drivers/staging/greybus/ |
H A D | light.c | 53 struct v4l2_flash *v4l2_flash; member in struct:gb_light 54 struct v4l2_flash *v4l2_flash_ind; 546 light->v4l2_flash = v4l2_flash_init(dev, NULL, fled, &v4l2_flash_ops, 548 if (IS_ERR(light->v4l2_flash)) 549 return PTR_ERR(light->v4l2_flash); 555 v4l2_flash_release(light->v4l2_flash); 566 v4l2_flash_release(light->v4l2_flash);
|