Home
last modified time | relevance | path

Searched refs:led_classdev_flash (Results 1 – 14 of 14) sorted by relevance

/linux-6.1.9/include/linux/
Dled-class-flash.h14 struct led_classdev_flash;
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);
65 struct led_classdev_flash { struct
82 static inline struct led_classdev_flash *lcdev_to_flcdev( in lcdev_to_flcdev() argument
85 return container_of(lcdev, struct led_classdev_flash, led_cdev); in lcdev_to_flcdev()
[all …]
/linux-6.1.9/drivers/leds/
Dled-class-flash.c41 struct led_classdev_flash *fled_cdev = lcdev_to_flcdev(led_cdev); in flash_brightness_store()
70 struct led_classdev_flash *fled_cdev = lcdev_to_flcdev(led_cdev); in flash_brightness_show()
83 struct led_classdev_flash *fled_cdev = lcdev_to_flcdev(led_cdev); in max_flash_brightness_show()
93 struct led_classdev_flash *fled_cdev = lcdev_to_flcdev(led_cdev); in flash_strobe_store()
124 struct led_classdev_flash *fled_cdev = lcdev_to_flcdev(led_cdev); in flash_strobe_show()
141 struct led_classdev_flash *fled_cdev = lcdev_to_flcdev(led_cdev); in flash_timeout_store()
170 struct led_classdev_flash *fled_cdev = lcdev_to_flcdev(led_cdev); in flash_timeout_show()
180 struct led_classdev_flash *fled_cdev = lcdev_to_flcdev(led_cdev); in max_flash_timeout_show()
190 struct led_classdev_flash *fled_cdev = lcdev_to_flcdev(led_cdev); in flash_fault_show()
254 struct led_classdev_flash *fled_cdev = lcdev_to_flcdev(led_cdev); in led_flash_resume()
[all …]
/linux-6.1.9/drivers/leds/flash/
Dleds-aat1290.c68 struct led_classdev_flash fled_cdev;
85 struct led_classdev_flash *fled_cdev) in fled_cdev_to_led()
90 static struct led_classdev_flash *led_cdev_to_fled_cdev( in led_cdev_to_fled_cdev()
93 return container_of(led_cdev, struct led_classdev_flash, led_cdev); in led_cdev_to_fled_cdev()
129 struct led_classdev_flash *fled_cdev = &led->fled_cdev; 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()
171 static int aat1290_led_flash_strobe_set(struct led_classdev_flash *fled_cdev, in aat1290_led_flash_strobe_set()
203 static int aat1290_led_flash_timeout_set(struct led_classdev_flash *fled_cdev, in aat1290_led_flash_timeout_set()
361 struct led_classdev_flash *fled_cdev = &led->fled_cdev; in aat1290_init_flash_timeout()
377 struct led_classdev_flash *fled_cdev = v4l2_flash->fled_cdev; in aat1290_intensity_to_brightness()
[all …]
Dleds-sgm3140.c16 struct led_classdev_flash fled_cdev;
33 static struct sgm3140 *flcdev_to_sgm3140(struct led_classdev_flash *flcdev) in flcdev_to_sgm3140()
38 static int sgm3140_strobe_set(struct led_classdev_flash *fled_cdev, bool state) in sgm3140_strobe_set()
74 static int sgm3140_strobe_get(struct led_classdev_flash *fled_cdev, bool *state) in sgm3140_strobe_get()
83 static int sgm3140_timeout_set(struct led_classdev_flash *fled_cdev, in sgm3140_timeout_set()
102 struct led_classdev_flash *fled_cdev = lcdev_to_flcdev(led_cdev); in sgm3140_brightness_set()
146 struct led_classdev_flash *fled_cdev = &priv->fled_cdev; in sgm3140_init_flash_timeout()
186 struct led_classdev_flash *fled_cdev; in sgm3140_probe()
Dleds-rt8515.c48 struct led_classdev_flash fled;
61 static struct rt8515 *to_rt8515(struct led_classdev_flash *fled) in to_rt8515()
93 struct led_classdev_flash *fled = lcdev_to_flcdev(led); in rt8515_led_brightness_set()
114 static int rt8515_led_flash_strobe_set(struct led_classdev_flash *fled, in rt8515_led_flash_strobe_set()
143 static int rt8515_led_flash_strobe_get(struct led_classdev_flash *fled, in rt8515_led_flash_strobe_get()
153 static int rt8515_led_flash_timeout_set(struct led_classdev_flash *fled, in rt8515_led_flash_timeout_set()
176 struct led_classdev_flash *fled = &rt->fled; in rt8515_init_flash_timeout()
282 struct led_classdev_flash *fled; in rt8515_probe()
Dleds-rt4505.c48 struct led_classdev_flash flash;
116 static int rt4505_flash_brightness_set(struct led_classdev_flash *fled_cdev, in rt4505_flash_brightness_set()
133 static int rt4505_flash_strobe_set(struct led_classdev_flash *fled_cdev, in rt4505_flash_strobe_set()
149 static int rt4505_flash_strobe_get(struct led_classdev_flash *fled_cdev, in rt4505_flash_strobe_get()
170 static int rt4505_flash_timeout_set(struct led_classdev_flash *fled_cdev, in rt4505_flash_timeout_set()
187 static int rt4505_fault_get(struct led_classdev_flash *fled_cdev, u32 *fault) in rt4505_fault_get()
243 struct led_classdev_flash *flash = v4l2_flash->fled_cdev; in rt4505_flash_external_strobe_set()
264 struct led_classdev_flash *flash = &priv->flash; in rt4505_init_v4l2_config()
293 struct led_classdev_flash *flash = &priv->flash; in rt4505_init_flash_properties()
Dleds-ktd2692.c76 struct led_classdev_flash fled_cdev;
90 struct led_classdev_flash *fled_cdev) in fled_cdev_to_led()
159 struct led_classdev_flash *fled_cdev = lcdev_to_flcdev(led_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()
210 static int ktd2692_led_flash_timeout_set(struct led_classdev_flash *fled_cdev, in ktd2692_led_flash_timeout_set()
234 static void ktd2692_init_flash_timeout(struct led_classdev_flash *fled_cdev, in ktd2692_init_flash_timeout()
349 struct led_classdev_flash *fled_cdev; in ktd2692_probe()
Dleds-lm3601x.c87 struct led_classdev_flash fled_cdev;
130 static struct lm3601x_led *fled_cdev_to_led(struct led_classdev_flash *fled_cdev) in fled_cdev_to_led()
173 struct led_classdev_flash *fled_cdev = lcdev_to_flcdev(cdev); in lm3601x_brightness_set()
206 static int lm3601x_strobe_set(struct led_classdev_flash *fled_cdev, in lm3601x_strobe_set()
243 static int lm3601x_flash_brightness_set(struct led_classdev_flash *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()
283 static int lm3601x_strobe_get(struct led_classdev_flash *fled_cdev, bool *state) in lm3601x_strobe_get()
302 static int lm3601x_flash_fault_get(struct led_classdev_flash *fled_cdev, in lm3601x_flash_fault_get()
Dleds-mt6360.c82 struct led_classdev_flash flash;
212 static int mt6360_flash_brightness_set(struct led_classdev_flash *fl_cdev, in mt6360_flash_brightness_set()
224 static int _mt6360_flash_brightness_set(struct led_classdev_flash *fl_cdev, in _mt6360_flash_brightness_set()
238 static int mt6360_strobe_set(struct led_classdev_flash *fl_cdev, bool state) in mt6360_strobe_set()
304 static int mt6360_strobe_get(struct led_classdev_flash *fl_cdev, bool *state) in mt6360_strobe_get()
317 static int mt6360_timeout_set(struct led_classdev_flash *fl_cdev, u32 timeout) in mt6360_timeout_set()
334 static int mt6360_fault_get(struct led_classdev_flash *fl_cdev, u32 *fault) in mt6360_fault_get()
423 struct led_classdev_flash *flash = &led->flash; in mt6360_flash_init_default_state()
465 struct led_classdev_flash *flash = v4l2_flash->fled_cdev; in mt6360_flash_external_strobe_set()
698 struct led_classdev_flash *flash = &led->flash; in mt6360_init_flash_properties()
Dleds-max77693.c60 struct led_classdev_flash fled_cdev;
118 struct led_classdev_flash *fled_cdev) in flcdev_to_sub_led()
464 struct led_classdev_flash *fled_cdev = lcdev_to_flcdev(led_cdev); in max77693_led_brightness_set()
500 struct led_classdev_flash *fled_cdev, in max77693_led_flash_brightness_set()
515 struct led_classdev_flash *fled_cdev, in max77693_led_flash_strobe_set()
550 struct led_classdev_flash *fled_cdev, in max77693_led_flash_fault_get()
561 struct led_classdev_flash *fled_cdev, in max77693_led_flash_strobe_get()
583 struct led_classdev_flash *fled_cdev, in max77693_led_flash_timeout_set()
795 struct led_classdev_flash *fled_cdev = &sub_led->fled_cdev; in max77693_init_flash_settings()
888 struct led_classdev_flash *fled_cdev; in max77693_init_fled_cdev()
[all …]
Dleds-as3645a.c132 struct led_classdev_flash fled;
251 static int as3645a_get_fault(struct led_classdev_flash *fled, u32 *fault) in as3645a_get_fault()
329 struct led_classdev_flash *fled = lcdev_to_flcdev(fled_cdev); in as3645a_set_assist_brightness()
345 static int as3645a_set_flash_brightness(struct led_classdev_flash *fled, in as3645a_set_flash_brightness()
356 static int as3645a_set_flash_timeout(struct led_classdev_flash *fled, in as3645a_set_flash_timeout()
366 static int as3645a_set_strobe(struct led_classdev_flash *fled, bool state) in as3645a_set_strobe()
635 struct led_classdev_flash *fled = &flash->fled; in as3645a_v4l2_setup()
/linux-6.1.9/include/media/
Dv4l2-flash-led-class.h15 struct led_classdev_flash;
82 struct led_classdev_flash *fled_cdev;
134 struct led_classdev_flash *fled_cdev,
168 struct led_classdev_flash *fled_cdev, in v4l2_flash_init()
/linux-6.1.9/drivers/media/v4l2-core/
Dv4l2-flash-led-class.c168 struct led_classdev_flash *fled_cdev = v4l2_flash->fled_cdev; in v4l2_flash_g_volatile_ctrl()
216 struct led_classdev_flash *fled_cdev = v4l2_flash->fled_cdev; in v4l2_flash_s_ctrl()
324 struct led_classdev_flash *fled_cdev = v4l2_flash->fled_cdev; in __fill_ctrl_init_data()
508 struct led_classdev_flash *fled_cdev = v4l2_flash->fled_cdev; in __sync_device_with_v4l2_controls()
567 struct led_classdev_flash *fled_cdev = v4l2_flash->fled_cdev; in v4l2_flash_open()
617 struct led_classdev_flash *fled_cdev = v4l2_flash->fled_cdev; in v4l2_flash_close()
655 struct led_classdev_flash *fled_cdev, struct led_classdev *iled_cdev, in __v4l2_flash_init()
709 struct led_classdev_flash *fled_cdev, in v4l2_flash_init()
/linux-6.1.9/drivers/staging/greybus/
Dlight.c33 struct led_classdev_flash fled;
90 struct led_classdev_flash *fled_cdev = lcdev_to_flcdev(cdev); in get_channel_from_cdev()
535 struct led_classdev_flash *fled; in gb_lights_light_v4l2_register()
605 static int gb_lights_flash_intensity_set(struct led_classdev_flash *fcdev, in gb_lights_flash_intensity_set()
621 static int gb_lights_flash_intensity_get(struct led_classdev_flash *fcdev, in gb_lights_flash_intensity_get()
629 static int gb_lights_flash_strobe_set(struct led_classdev_flash *fcdev, in gb_lights_flash_strobe_set()
660 static int gb_lights_flash_strobe_get(struct led_classdev_flash *fcdev, in gb_lights_flash_strobe_get()
670 static int gb_lights_flash_timeout_set(struct led_classdev_flash *fcdev, in gb_lights_flash_timeout_set()
701 static int gb_lights_flash_fault_get(struct led_classdev_flash *fcdev, in gb_lights_flash_fault_get()
769 struct led_classdev_flash *fled = &channel->fled; in __gb_lights_flash_led_register()