Home
last modified time | relevance | path

Searched refs:led_classdev (Results 1 – 25 of 254) sorted by relevance

1234567891011

/Linux-v5.15/include/linux/
Dleds.h70 struct led_classdev { struct
103 void (*brightness_set)(struct led_classdev *led_cdev, argument
109 int (*brightness_set_blocking)(struct led_classdev *led_cdev, argument
112 enum led_brightness (*brightness_get)(struct led_classdev *led_cdev); argument
122 int (*blink_set)(struct led_classdev *led_cdev, argument
126 int (*pattern_set)(struct led_classdev *led_cdev, argument
128 int (*pattern_clear)(struct led_classdev *led_cdev); argument
140 void (*flash_resume)(struct led_classdev *led_cdev); argument
180 struct led_classdev *led_cdev,
194 struct led_classdev *led_cdev) in led_classdev_register()
[all …]
/Linux-v5.15/drivers/leds/
Dled-class.c30 struct led_classdev *led_cdev = dev_get_drvdata(dev); in brightness_show()
41 struct led_classdev *led_cdev = dev_get_drvdata(dev); in brightness_store()
71 struct led_classdev *led_cdev = dev_get_drvdata(dev); in max_brightness_show()
110 struct led_classdev *led_cdev = dev_get_drvdata(dev); in brightness_hw_changed_show()
120 static int led_add_brightness_hw_changed(struct led_classdev *led_cdev) in led_add_brightness_hw_changed()
142 static void led_remove_brightness_hw_changed(struct led_classdev *led_cdev) in led_remove_brightness_hw_changed()
148 void led_classdev_notify_brightness_hw_changed(struct led_classdev *led_cdev, unsigned int brightne… in led_classdev_notify_brightness_hw_changed()
158 static int led_add_brightness_hw_changed(struct led_classdev *led_cdev) in led_add_brightness_hw_changed()
162 static void led_remove_brightness_hw_changed(struct led_classdev *led_cdev) in led_remove_brightness_hw_changed()
171 void led_classdev_suspend(struct led_classdev *led_cdev) in led_classdev_suspend()
[all …]
Dleds-fsg.c32 static void fsg_led_wlan_set(struct led_classdev *led_cdev, in fsg_led_wlan_set()
44 static void fsg_led_wan_set(struct led_classdev *led_cdev, in fsg_led_wan_set()
56 static void fsg_led_sata_set(struct led_classdev *led_cdev, in fsg_led_sata_set()
68 static void fsg_led_usb_set(struct led_classdev *led_cdev, in fsg_led_usb_set()
80 static void fsg_led_sync_set(struct led_classdev *led_cdev, in fsg_led_sync_set()
92 static void fsg_led_ring_set(struct led_classdev *led_cdev, in fsg_led_ring_set()
105 static struct led_classdev fsg_wlan_led = {
111 static struct led_classdev fsg_wan_led = {
117 static struct led_classdev fsg_sata_led = {
123 static struct led_classdev fsg_usb_led = {
[all …]
Dled-core.c42 static int __led_set_brightness(struct led_classdev *led_cdev, unsigned int value) in __led_set_brightness()
52 static int __led_set_brightness_blocking(struct led_classdev *led_cdev, unsigned int value) in __led_set_brightness_blocking()
62 struct led_classdev *led_cdev = from_timer(led_cdev, t, blink_timer); in led_timer_function()
119 struct led_classdev *led_cdev = in set_brightness_delayed()
120 container_of(ws, struct led_classdev, set_brightness_work); in set_brightness_delayed()
140 static void led_set_software_blink(struct led_classdev *led_cdev, in led_set_software_blink()
173 static void led_blink_setup(struct led_classdev *led_cdev, in led_blink_setup()
189 void led_init_core(struct led_classdev *led_cdev) in led_init_core()
197 void led_blink_set(struct led_classdev *led_cdev, in led_blink_set()
211 void led_blink_set_oneshot(struct led_classdev *led_cdev, in led_blink_set_oneshot()
[all …]
Dleds-sunfire.c25 struct led_classdev led_cdev;
30 static void __clockboard_set(struct led_classdev *led_cdev, in __clockboard_set()
54 static void clockboard_left_set(struct led_classdev *led_cdev, in clockboard_left_set()
60 static void clockboard_middle_set(struct led_classdev *led_cdev, in clockboard_middle_set()
66 static void clockboard_right_set(struct led_classdev *led_cdev, in clockboard_right_set()
72 static void __fhc_set(struct led_classdev *led_cdev, in __fhc_set()
96 static void fhc_left_set(struct led_classdev *led_cdev, in fhc_left_set()
102 static void fhc_middle_set(struct led_classdev *led_cdev, in fhc_middle_set()
108 static void fhc_right_set(struct led_classdev *led_cdev, in fhc_right_set()
114 typedef void (*set_handler)(struct led_classdev *, enum led_brightness);
[all …]
Dleds.h15 static inline int led_get_brightness(struct led_classdev *led_cdev) in led_get_brightness()
20 void led_init_core(struct led_classdev *led_cdev);
21 void led_stop_software_blink(struct led_classdev *led_cdev);
22 void led_set_brightness_nopm(struct led_classdev *led_cdev, unsigned int value);
23 void led_set_brightness_nosleep(struct led_classdev *led_cdev, unsigned int value);
Dleds-wrap.c26 static void wrap_power_led_set(struct led_classdev *led_cdev, in wrap_power_led_set()
35 static void wrap_error_led_set(struct led_classdev *led_cdev, in wrap_error_led_set()
44 static void wrap_extra_led_set(struct led_classdev *led_cdev, in wrap_extra_led_set()
53 static struct led_classdev wrap_power_led = {
60 static struct led_classdev wrap_error_led = {
66 static struct led_classdev wrap_extra_led = {
Dleds-locomo.c17 static void locomoled_brightness_set(struct led_classdev *led_cdev, in locomoled_brightness_set()
31 static void locomoled_brightness_set0(struct led_classdev *led_cdev, in locomoled_brightness_set0()
37 static void locomoled_brightness_set1(struct led_classdev *led_cdev, in locomoled_brightness_set1()
43 static struct led_classdev locomo_led0 = {
49 static struct led_classdev locomo_led1 = {
Dleds-ss4200.c128 struct led_classdev led_cdev;
150 led_classdev_to_nasgpio_led(struct led_classdev *led_cdev) in led_classdev_to_nasgpio_led()
178 static void __nasgpio_led_set_attr(struct led_classdev *led_cdev, in __nasgpio_led_set_attr()
193 static void nasgpio_led_set_attr(struct led_classdev *led_cdev, in nasgpio_led_set_attr()
201 static u32 nasgpio_led_get_attr(struct led_classdev *led_cdev, u32 port) in nasgpio_led_get_attr()
219 static void nasgpio_led_set_brightness(struct led_classdev *led_cdev, in nasgpio_led_set_brightness()
241 static int nasgpio_led_set_blink(struct led_classdev *led_cdev, in nasgpio_led_set_blink()
420 static struct led_classdev *get_classdev_for_led_nr(int nr) in get_classdev_for_led_nr()
423 struct led_classdev *led = &nas_led->led_cdev; in get_classdev_for_led_nr()
447 struct led_classdev *led = dev_get_drvdata(dev); in blink_show()
[all …]
Dled-class-flash.c40 struct led_classdev *led_cdev = dev_get_drvdata(dev); in flash_brightness_store()
69 struct led_classdev *led_cdev = dev_get_drvdata(dev); in flash_brightness_show()
82 struct led_classdev *led_cdev = dev_get_drvdata(dev); in max_flash_brightness_show()
92 struct led_classdev *led_cdev = dev_get_drvdata(dev); in flash_strobe_store()
123 struct led_classdev *led_cdev = dev_get_drvdata(dev); in flash_strobe_show()
140 struct led_classdev *led_cdev = dev_get_drvdata(dev); in flash_timeout_store()
169 struct led_classdev *led_cdev = dev_get_drvdata(dev); in flash_timeout_show()
179 struct led_classdev *led_cdev = dev_get_drvdata(dev); in max_flash_timeout_show()
189 struct led_classdev *led_cdev = dev_get_drvdata(dev); in flash_fault_show()
252 static void led_flash_resume(struct led_classdev *led_cdev) in led_flash_resume()
[all …]
Dleds-lm3533.c46 struct led_classdev cdev;
54 static inline struct lm3533_led *to_lm3533_led(struct led_classdev *cdev) in to_lm3533_led()
118 static int lm3533_led_set(struct led_classdev *cdev, in lm3533_led_set()
131 static enum led_brightness lm3533_led_get(struct led_classdev *cdev) in lm3533_led_get()
281 static int lm3533_led_blink_set(struct led_classdev *cdev, in lm3533_led_blink_set()
314 struct led_classdev *led_cdev = dev_get_drvdata(dev); in show_id()
336 struct led_classdev *led_cdev = dev_get_drvdata(dev); in show_risefalltime()
368 struct led_classdev *led_cdev = dev_get_drvdata(dev); in store_risefalltime()
404 struct led_classdev *led_cdev = dev_get_drvdata(dev); in show_als_channel()
425 struct led_classdev *led_cdev = dev_get_drvdata(dev); in store_als_channel()
[all …]
Dleds-hp6xx.c17 static void hp6xxled_green_set(struct led_classdev *led_cdev, in hp6xxled_green_set()
29 static void hp6xxled_red_set(struct led_classdev *led_cdev, in hp6xxled_red_set()
41 static struct led_classdev hp6xx_red_led = {
48 static struct led_classdev hp6xx_green_led = {
Dled-triggers.c31 trigger_relevant(struct led_classdev *led_cdev, struct led_trigger *trig) in trigger_relevant()
41 struct led_classdev *led_cdev = dev_get_drvdata(dev); in led_trigger_write()
95 struct led_classdev *led_cdev) in led_trigger_format()
130 struct led_classdev *led_cdev = dev_get_drvdata(dev); in led_trigger_read()
158 int led_trigger_set(struct led_classdev *led_cdev, struct led_trigger *trig) in led_trigger_set()
238 void led_trigger_remove(struct led_classdev *led_cdev) in led_trigger_remove()
246 void led_trigger_set_default(struct led_classdev *led_cdev) in led_trigger_set_default()
285 struct led_classdev *led_cdev; in led_trigger_register()
325 struct led_classdev *led_cdev; in led_trigger_unregister()
380 struct led_classdev *led_cdev; in led_trigger_event()
[all …]
Dleds-cobalt-raq.c23 static void raq_web_led_set(struct led_classdev *led_cdev, in raq_web_led_set()
39 static struct led_classdev raq_web_led = {
44 static void raq_power_off_led_set(struct led_classdev *led_cdev, in raq_power_off_led_set()
60 static struct led_classdev raq_power_off_led = {
Dleds-rb532.c19 static void rb532_led_set(struct led_classdev *cdev, in rb532_led_set()
28 static enum led_brightness rb532_led_get(struct led_classdev *cdev) in rb532_led_get()
33 static struct led_classdev rb532_uled = {
/Linux-v5.15/drivers/leds/trigger/
Dledtrig-oneshot.c28 struct led_classdev *led_cdev = led_trigger_get_led(dev); in led_shot()
49 struct led_classdev *led_cdev = led_trigger_get_led(dev); in led_invert_store()
71 struct led_classdev *led_cdev = led_trigger_get_led(dev); in led_delay_on_show()
79 struct led_classdev *led_cdev = led_trigger_get_led(dev); in led_delay_on_store()
95 struct led_classdev *led_cdev = led_trigger_get_led(dev); in led_delay_off_show()
103 struct led_classdev *led_cdev = led_trigger_get_led(dev); in led_delay_off_store()
130 static void pattern_init(struct led_classdev *led_cdev) in pattern_init()
158 static int oneshot_trig_activate(struct led_classdev *led_cdev) in oneshot_trig_activate()
180 static void oneshot_trig_deactivate(struct led_classdev *led_cdev) in oneshot_trig_deactivate()
Dledtrig-timer.c21 struct led_classdev *led_cdev = led_trigger_get_led(dev); in led_delay_on_show()
29 struct led_classdev *led_cdev = led_trigger_get_led(dev); in led_delay_on_store()
46 struct led_classdev *led_cdev = led_trigger_get_led(dev); in led_delay_off_show()
54 struct led_classdev *led_cdev = led_trigger_get_led(dev); in led_delay_off_store()
78 static void pattern_init(struct led_classdev *led_cdev) in pattern_init()
102 static int timer_trig_activate(struct led_classdev *led_cdev) in timer_trig_activate()
124 static void timer_trig_deactivate(struct led_classdev *led_cdev) in timer_trig_deactivate()
Dledtrig-pattern.c25 struct led_classdev *led_cdev;
120 static int pattern_trig_start_pattern(struct led_classdev *led_cdev) in pattern_trig_start_pattern()
148 struct led_classdev *led_cdev = dev_get_drvdata(dev); in repeat_show()
164 struct led_classdev *led_cdev = dev_get_drvdata(dev); in repeat_store()
261 static ssize_t pattern_trig_store_patterns(struct led_classdev *led_cdev, in pattern_trig_store_patterns()
297 struct led_classdev *led_cdev = dev_get_drvdata(dev); in pattern_show()
306 struct led_classdev *led_cdev = dev_get_drvdata(dev); in pattern_store()
316 struct led_classdev *led_cdev = dev_get_drvdata(dev); in hw_pattern_show()
326 struct led_classdev *led_cdev = dev_get_drvdata(dev); in hw_pattern_store()
337 struct led_classdev *led_cdev = dev_get_drvdata(dev); in pattern_trig_attrs_mode()
[all …]
Dledtrig-backlight.c21 struct led_classdev *led;
33 struct led_classdev *led = n->led; in fb_notifier_callback()
71 struct led_classdev *led = led_trigger_get_led(dev); in bl_trig_invert_store()
101 static int bl_trig_activate(struct led_classdev *led) in bl_trig_activate()
124 static void bl_trig_deactivate(struct led_classdev *led) in bl_trig_deactivate()
Dledtrig-gpio.c18 struct led_classdev *led;
27 struct led_classdev *led = _led; in gpio_trig_irq()
87 struct led_classdev *led = led_trigger_get_led(dev); in gpio_trig_inverted_store()
121 struct led_classdev *led = led_trigger_get_led(dev); in gpio_trig_gpio_store()
167 static int gpio_trig_activate(struct led_classdev *led) in gpio_trig_activate()
183 static void gpio_trig_deactivate(struct led_classdev *led) in gpio_trig_deactivate()
/Linux-v5.15/drivers/platform/x86/
Dsystem76_acpi.c22 struct led_classdev ap_led;
23 struct led_classdev kb_led;
92 static enum led_brightness ap_led_get(struct led_classdev *led) in ap_led_get()
106 static int ap_led_set(struct led_classdev *led, enum led_brightness value) in ap_led_set()
115 static enum led_brightness kb_led_get(struct led_classdev *led) in kb_led_get()
124 static int kb_led_set(struct led_classdev *led, enum led_brightness value) in kb_led_set()
139 struct led_classdev *led; in kb_led_color_show()
142 led = (struct led_classdev *)dev->driver_data; in kb_led_color_show()
154 struct led_classdev *led; in kb_led_color_store()
159 led = (struct led_classdev *)dev->driver_data; in kb_led_color_store()
/Linux-v5.15/drivers/hid/
Dhid-steelseries.c23 struct led_classdev *led[SRWS1_NUMBER_LEDS + 1];
137 static void steelseries_srws1_led_all_set_brightness(struct led_classdev *led_cdev, in steelseries_srws1_led_all_set_brightness()
157 static enum led_brightness steelseries_srws1_led_all_get_brightness(struct led_classdev *led_cdev) in steelseries_srws1_led_all_get_brightness()
173 static void steelseries_srws1_led_set_brightness(struct led_classdev *led_cdev, in steelseries_srws1_led_set_brightness()
202 static enum led_brightness steelseries_srws1_led_get_brightness(struct led_classdev *led_cdev) in steelseries_srws1_led_get_brightness()
229 struct led_classdev *led; in steelseries_srws1_probe()
269 led = kzalloc(sizeof(struct led_classdev)+name_sz, GFP_KERNEL); in steelseries_srws1_probe()
290 led = kzalloc(sizeof(struct led_classdev)+name_sz, GFP_KERNEL); in steelseries_srws1_probe()
332 struct led_classdev *led; in steelseries_srws1_remove()
Dhid-picolcd_leds.c50 static void picolcd_led_set_brightness(struct led_classdev *led_cdev, in picolcd_led_set_brightness()
78 static enum led_brightness picolcd_led_get_brightness(struct led_classdev *led_cdev) in picolcd_led_get_brightness()
99 struct led_classdev *led; in picolcd_init_leds()
113 led = kzalloc(sizeof(struct led_classdev)+name_sz, GFP_KERNEL); in picolcd_init_leds()
150 struct led_classdev *led; in picolcd_exit_leds()
/Linux-v5.15/net/mac80211/
Dled.c52 static int ieee80211_tx_led_activate(struct led_classdev *led_cdev) in ieee80211_tx_led_activate()
63 static void ieee80211_tx_led_deactivate(struct led_classdev *led_cdev) in ieee80211_tx_led_deactivate()
72 static int ieee80211_rx_led_activate(struct led_classdev *led_cdev) in ieee80211_rx_led_activate()
83 static void ieee80211_rx_led_deactivate(struct led_classdev *led_cdev) in ieee80211_rx_led_deactivate()
92 static int ieee80211_assoc_led_activate(struct led_classdev *led_cdev) in ieee80211_assoc_led_activate()
103 static void ieee80211_assoc_led_deactivate(struct led_classdev *led_cdev) in ieee80211_assoc_led_deactivate()
112 static int ieee80211_radio_led_activate(struct led_classdev *led_cdev) in ieee80211_radio_led_activate()
123 static void ieee80211_radio_led_deactivate(struct led_classdev *led_cdev) in ieee80211_radio_led_deactivate()
132 static int ieee80211_tpt_led_activate(struct led_classdev *led_cdev) in ieee80211_tpt_led_activate()
143 static void ieee80211_tpt_led_deactivate(struct led_classdev *led_cdev) in ieee80211_tpt_led_deactivate()
/Linux-v5.15/include/media/
Dv4l2-flash-led-class.h16 struct led_classdev;
83 struct led_classdev *iled_cdev;
155 struct led_classdev *iled_cdev, struct v4l2_flash_config *config);
176 struct led_classdev *iled_cdev, struct v4l2_flash_config *config) in v4l2_flash_indicator_init()

1234567891011