/linux-6.1.9/include/linux/ |
D | led-class-flash.h | 35 int (*flash_brightness_set)(struct led_classdev_flash *fled_cdev, 38 int (*flash_brightness_get)(struct led_classdev_flash *fled_cdev, 41 int (*strobe_set)(struct led_classdev_flash *fled_cdev, bool state); 43 int (*strobe_get)(struct led_classdev_flash *fled_cdev, bool *state); 45 int (*timeout_set)(struct led_classdev_flash *fled_cdev, u32 timeout); 47 int (*fault_get)(struct led_classdev_flash *fled_cdev, u32 *fault); 99 struct led_classdev_flash *fled_cdev, 109 void led_classdev_flash_unregister(struct led_classdev_flash *fled_cdev); 112 struct led_classdev_flash *fled_cdev, 117 struct led_classdev_flash *fled_cdev); [all …]
|
/linux-6.1.9/drivers/leds/ |
D | led-class-flash.c | 17 #define has_flash_op(fled_cdev, op) \ argument 18 (fled_cdev && fled_cdev->ops->op) 20 #define call_flash_op(fled_cdev, op, args...) \ argument 21 ((has_flash_op(fled_cdev, op)) ? \ 22 (fled_cdev->ops->op(fled_cdev, args)) : \ 41 struct led_classdev_flash *fled_cdev = lcdev_to_flcdev(led_cdev); in flash_brightness_store() local 56 ret = led_set_flash_brightness(fled_cdev, state); in flash_brightness_store() 70 struct led_classdev_flash *fled_cdev = lcdev_to_flcdev(led_cdev); in flash_brightness_show() local 73 led_update_flash_brightness(fled_cdev); in flash_brightness_show() 75 return sprintf(buf, "%u\n", fled_cdev->brightness.val); in flash_brightness_show() [all …]
|
/linux-6.1.9/drivers/leds/flash/ |
D | leds-aat1290.c | 68 struct led_classdev_flash fled_cdev; member 85 struct led_classdev_flash *fled_cdev) in fled_cdev_to_led() argument 87 return container_of(fled_cdev, struct aat1290_led, fled_cdev); in fled_cdev_to_led() 129 struct led_classdev_flash *fled_cdev = &led->fled_cdev; in aat1290_set_flash_safety_timer() local 130 struct led_flash_setting *flash_tm = &fled_cdev->timeout; in aat1290_set_flash_safety_timer() 143 struct led_classdev_flash *fled_cdev = led_cdev_to_fled_cdev(led_cdev); in aat1290_led_brightness_set() local 144 struct aat1290_led *led = fled_cdev_to_led(fled_cdev); in aat1290_led_brightness_set() 171 static int aat1290_led_flash_strobe_set(struct led_classdev_flash *fled_cdev, in aat1290_led_flash_strobe_set() argument 175 struct aat1290_led *led = fled_cdev_to_led(fled_cdev); in aat1290_led_flash_strobe_set() 176 struct led_classdev *led_cdev = &fled_cdev->led_cdev; in aat1290_led_flash_strobe_set() [all …]
|
D | leds-sgm3140.c | 16 struct led_classdev_flash fled_cdev; member 35 return container_of(flcdev, struct sgm3140, fled_cdev); in flcdev_to_sgm3140() 38 static int sgm3140_strobe_set(struct led_classdev_flash *fled_cdev, bool state) in sgm3140_strobe_set() argument 40 struct sgm3140 *priv = flcdev_to_sgm3140(fled_cdev); in sgm3140_strobe_set() 49 dev_err(fled_cdev->led_cdev.dev, in sgm3140_strobe_set() 63 dev_err(fled_cdev->led_cdev.dev, in sgm3140_strobe_set() 74 static int sgm3140_strobe_get(struct led_classdev_flash *fled_cdev, bool *state) in sgm3140_strobe_get() argument 76 struct sgm3140 *priv = flcdev_to_sgm3140(fled_cdev); in sgm3140_strobe_get() 83 static int sgm3140_timeout_set(struct led_classdev_flash *fled_cdev, in sgm3140_timeout_set() argument 86 struct sgm3140 *priv = flcdev_to_sgm3140(fled_cdev); in sgm3140_timeout_set() [all …]
|
D | leds-ktd2692.c | 76 struct led_classdev_flash fled_cdev; member 90 struct led_classdev_flash *fled_cdev) in fled_cdev_to_led() argument 92 return container_of(fled_cdev, struct ktd2692_context, fled_cdev); in fled_cdev_to_led() 159 struct led_classdev_flash *fled_cdev = lcdev_to_flcdev(led_cdev); in ktd2692_led_brightness_set() local 160 struct ktd2692_context *led = fled_cdev_to_led(fled_cdev); in ktd2692_led_brightness_set() 179 static int ktd2692_led_flash_strobe_set(struct led_classdev_flash *fled_cdev, in ktd2692_led_flash_strobe_set() argument 182 struct ktd2692_context *led = fled_cdev_to_led(fled_cdev); in ktd2692_led_flash_strobe_set() 183 struct led_flash_setting *timeout = &fled_cdev->timeout; in ktd2692_led_flash_strobe_set() 202 fled_cdev->led_cdev.brightness = LED_OFF; in ktd2692_led_flash_strobe_set() 210 static int ktd2692_led_flash_timeout_set(struct led_classdev_flash *fled_cdev, in ktd2692_led_flash_timeout_set() argument [all …]
|
D | leds-lm3601x.c | 87 struct led_classdev_flash fled_cdev; member 130 static struct lm3601x_led *fled_cdev_to_led(struct led_classdev_flash *fled_cdev) in fled_cdev_to_led() argument 132 return container_of(fled_cdev, struct lm3601x_led, fled_cdev); in fled_cdev_to_led() 173 struct led_classdev_flash *fled_cdev = lcdev_to_flcdev(cdev); in lm3601x_brightness_set() local 174 struct lm3601x_led *led = fled_cdev_to_led(fled_cdev); in lm3601x_brightness_set() 206 static int lm3601x_strobe_set(struct led_classdev_flash *fled_cdev, in lm3601x_strobe_set() argument 209 struct lm3601x_led *led = fled_cdev_to_led(fled_cdev); in lm3601x_strobe_set() 243 static int lm3601x_flash_brightness_set(struct led_classdev_flash *fled_cdev, in lm3601x_flash_brightness_set() argument 246 struct lm3601x_led *led = fled_cdev_to_led(fled_cdev); in lm3601x_flash_brightness_set() 269 static int lm3601x_flash_timeout_set(struct led_classdev_flash *fled_cdev, in lm3601x_flash_timeout_set() argument [all …]
|
D | leds-max77693.c | 60 struct led_classdev_flash fled_cdev; member 118 struct led_classdev_flash *fled_cdev) in flcdev_to_sub_led() argument 120 return container_of(fled_cdev, struct max77693_sub_led, fled_cdev); in flcdev_to_sub_led() 464 struct led_classdev_flash *fled_cdev = lcdev_to_flcdev(led_cdev); in max77693_led_brightness_set() local 465 struct max77693_sub_led *sub_led = flcdev_to_sub_led(fled_cdev); in max77693_led_brightness_set() 500 struct led_classdev_flash *fled_cdev, in max77693_led_flash_brightness_set() argument 503 struct max77693_sub_led *sub_led = flcdev_to_sub_led(fled_cdev); in max77693_led_flash_brightness_set() 515 struct led_classdev_flash *fled_cdev, in max77693_led_flash_strobe_set() argument 518 struct max77693_sub_led *sub_led = flcdev_to_sub_led(fled_cdev); in max77693_led_flash_strobe_set() 550 struct led_classdev_flash *fled_cdev, in max77693_led_flash_fault_get() argument [all …]
|
D | leds-rt4505.c | 116 static int rt4505_flash_brightness_set(struct led_classdev_flash *fled_cdev, in rt4505_flash_brightness_set() argument 120 container_of(fled_cdev, struct rt4505_priv, flash); in rt4505_flash_brightness_set() 121 struct led_flash_setting *s = &fled_cdev->brightness; in rt4505_flash_brightness_set() 133 static int rt4505_flash_strobe_set(struct led_classdev_flash *fled_cdev, in rt4505_flash_strobe_set() argument 137 container_of(fled_cdev, struct rt4505_priv, flash); in rt4505_flash_strobe_set() 149 static int rt4505_flash_strobe_get(struct led_classdev_flash *fled_cdev, in rt4505_flash_strobe_get() argument 153 container_of(fled_cdev, struct rt4505_priv, flash); in rt4505_flash_strobe_get() 170 static int rt4505_flash_timeout_set(struct led_classdev_flash *fled_cdev, in rt4505_flash_timeout_set() argument 174 container_of(fled_cdev, struct rt4505_priv, flash); in rt4505_flash_timeout_set() 175 struct led_flash_setting *s = &fled_cdev->timeout; in rt4505_flash_timeout_set() [all …]
|
D | leds-as3645a.c | 326 static int as3645a_set_assist_brightness(struct led_classdev *fled_cdev, in as3645a_set_assist_brightness() argument 329 struct led_classdev_flash *fled = lcdev_to_flcdev(fled_cdev); in as3645a_set_assist_brightness() 573 struct led_classdev *fled_cdev = &flash->fled.led_cdev; in as3645a_led_class_setup() local 607 fled_cdev->brightness_set_blocking = as3645a_set_assist_brightness; in as3645a_led_class_setup() 609 fled_cdev->max_brightness = in as3645a_led_class_setup() 612 fled_cdev->flags = LED_DEV_CAP_FLASH | LED_CORE_SUSPENDRESUME; in as3645a_led_class_setup()
|
D | leds-mt6360.c | 465 struct led_classdev_flash *flash = v4l2_flash->fled_cdev; in mt6360_flash_external_strobe_set()
|
/linux-6.1.9/drivers/media/v4l2-core/ |
D | v4l2-flash-led-class.c | 108 if (WARN_ON_ONCE(!v4l2_flash->fled_cdev)) in v4l2_flash_set_led_brightness() 111 led_cdev = &v4l2_flash->fled_cdev->led_cdev; in v4l2_flash_set_led_brightness() 139 if (WARN_ON_ONCE(!v4l2_flash->fled_cdev)) in v4l2_flash_update_led_brightness() 142 led_cdev = &v4l2_flash->fled_cdev->led_cdev; in v4l2_flash_update_led_brightness() 168 struct led_classdev_flash *fled_cdev = v4l2_flash->fled_cdev; in v4l2_flash_g_volatile_ctrl() local 178 if (!fled_cdev) in v4l2_flash_g_volatile_ctrl() 183 ret = led_update_flash_brightness(fled_cdev); in v4l2_flash_g_volatile_ctrl() 190 c->val = fled_cdev->brightness.val; in v4l2_flash_g_volatile_ctrl() 193 ret = led_get_flash_strobe(fled_cdev, &is_strobing); in v4l2_flash_g_volatile_ctrl() 200 return led_get_flash_fault(fled_cdev, &c->val); in v4l2_flash_g_volatile_ctrl() [all …]
|
/linux-6.1.9/include/media/ |
D | v4l2-flash-led-class.h | 82 struct led_classdev_flash *fled_cdev; member 134 struct led_classdev_flash *fled_cdev, 168 struct led_classdev_flash *fled_cdev, in v4l2_flash_init() argument
|
/linux-6.1.9/Documentation/leds/ |
D | leds-class-flash.rst | 40 - fled_cdev: 44 fled_cdev, may be NULL
|
/linux-6.1.9/drivers/staging/greybus/ |
D | light.c | 90 struct led_classdev_flash *fled_cdev = lcdev_to_flcdev(cdev); in get_channel_from_cdev() local 92 return container_of(fled_cdev, struct gb_channel, fled); in get_channel_from_cdev()
|