Home
last modified time | relevance | path

Searched refs:leds (Results 1 – 25 of 1276) sorted by relevance

12345678910>>...52

/linux/drivers/leds/
A DMakefile15 obj-$(CONFIG_LEDS_APU) += leds-apu.o
16 obj-$(CONFIG_LEDS_ARIEL) += leds-ariel.o
17 obj-$(CONFIG_LEDS_ASIC3) += leds-asic3.o
18 obj-$(CONFIG_LEDS_AW2013) += leds-aw2013.o
26 obj-$(CONFIG_LEDS_CPCAP) += leds-cpcap.o
29 obj-$(CONFIG_LEDS_FSG) += leds-fsg.o
30 obj-$(CONFIG_LEDS_GPIO) += leds-gpio.o
32 obj-$(CONFIG_LEDS_HP6XX) += leds-hp6xx.o
34 obj-$(CONFIG_LEDS_IP30) += leds-ip30.o
69 obj-$(CONFIG_LEDS_NS2) += leds-ns2.o
[all …]
A Dleds-mc13783.c32 struct mc13xxx_leds *leds; member
57 struct mc13xxx_leds *leds = led->leds; in mc13xxx_led_set() local
105 return mc13xxx_reg_rmw(leds->master, leds->devtype->ledctrl_base + reg, in mc13xxx_led_set()
187 leds = devm_kzalloc(dev, sizeof(*leds), GFP_KERNEL); in mc13xxx_led_probe()
188 if (!leds) in mc13xxx_led_probe()
191 leds->devtype = devtype; in mc13xxx_led_probe()
192 leds->master = mcdev; in mc13xxx_led_probe()
210 leds->led = devm_kcalloc(dev, leds->num_leds, sizeof(*leds->led), in mc13xxx_led_probe()
212 if (!leds->led) in mc13xxx_led_probe()
242 leds->led[i].id = id; in mc13xxx_led_probe()
[all …]
A Dleds-mt6323.c281 mutex_lock(&leds->lock); in mt6323_led_set_blink()
315 mutex_lock(&leds->lock); in mt6323_led_set_brightness()
376 leds = devm_kzalloc(dev, sizeof(*leds), GFP_KERNEL); in mt6323_led_probe()
377 if (!leds) in mt6323_led_probe()
381 leds->dev = dev; in mt6323_led_probe()
387 leds->hw = hw; in mt6323_led_probe()
388 mutex_init(&leds->lock); in mt6323_led_probe()
394 dev_err(leds->dev, in mt6323_led_probe()
420 leds->led[reg] = led; in mt6323_led_probe()
428 leds->led[reg]->parent = leds; in mt6323_led_probe()
[all …]
A Dleds-sc27xx-bltc.c56 struct sc27xx_led leds[SC27XX_LEDS_MAX]; member
84 return leds->priv->base + SC27XX_LEDS_OFFSET * leds->line; in sc27xx_led_get_offset()
122 mutex_lock(&leds->priv->lock); in sc27xx_led_set()
125 err = sc27xx_led_disable(leds); in sc27xx_led_set()
127 err = sc27xx_led_enable(leds, value); in sc27xx_led_set()
129 mutex_unlock(&leds->priv->lock); in sc27xx_led_set()
155 mutex_lock(&leds->priv->lock); in sc27xx_led_pattern_clear()
166 mutex_unlock(&leds->priv->lock); in sc27xx_led_pattern_clear()
189 mutex_lock(&leds->priv->lock); in sc27xx_led_pattern_set()
236 mutex_unlock(&leds->priv->lock); in sc27xx_led_pattern_set()
[all …]
A D.built-in.a.cmd1leds/built-in.a := echo >/dev/null; rm -f drivers/leds/built-in.a; /usr/bin/ccache /home/test/work…
A Dleds-ariel.c85 struct ariel_led *leds; in ariel_led_probe() local
94 leds = devm_kcalloc(dev, NLEDS, sizeof(*leds), GFP_KERNEL); in ariel_led_probe()
95 if (!leds) in ariel_led_probe()
98 leds[0].ec_index = EC_BLUE_LED; in ariel_led_probe()
99 leds[0].led_cdev.name = "blue:power"; in ariel_led_probe()
102 leds[1].ec_index = EC_AMBER_LED; in ariel_led_probe()
103 leds[1].led_cdev.name = "amber:status"; in ariel_led_probe()
105 leds[2].ec_index = EC_GREEN_LED; in ariel_led_probe()
106 leds[2].led_cdev.name = "green:status"; in ariel_led_probe()
110 leds[i].ec_ram = ec_ram; in ariel_led_probe()
[all …]
A Dleds-turris-omnia.c41 struct omnia_led leds[]; member
53 mutex_lock(&leds->lock); in omnia_led_brightness_set_blocking()
71 mutex_unlock(&leds->lock); in omnia_led_brightness_set_blocking()
162 mutex_lock(&leds->lock); in brightness_show()
186 mutex_lock(&leds->lock); in brightness_store()
209 struct omnia_leds *leds; in omnia_leds_probe() local
222 leds = devm_kzalloc(dev, struct_size(leds, leds, count), GFP_KERNEL); in omnia_leds_probe()
223 if (!leds) in omnia_leds_probe()
226 leds->client = client; in omnia_leds_probe()
229 mutex_init(&leds->lock); in omnia_leds_probe()
[all …]
A Dleds-menf21bmc.c31 static struct menf21bmc_led leds[] = { variable
82 for (i = 0; i < ARRAY_SIZE(leds); i++) { in menf21bmc_led_probe()
83 leds[i].cdev.name = leds[i].name; in menf21bmc_led_probe()
84 leds[i].cdev.brightness_set = menf21bmc_led_set; in menf21bmc_led_probe()
85 leds[i].i2c_client = i2c_client; in menf21bmc_led_probe()
86 ret = devm_led_classdev_register(&pdev->dev, &leds[i].cdev); in menf21bmc_led_probe()
/linux/drivers/input/
A Dinput-leds.c47 struct input_led leds[]; member
87 struct input_leds *leds; in input_leds_connect() local
98 leds = kzalloc(struct_size(leds, leds, num_leds), GFP_KERNEL); in input_leds_connect()
99 if (!leds) in input_leds_connect()
104 leds->handle.dev = dev; in input_leds_connect()
107 leds->handle.private = leds; in input_leds_connect()
122 led = &leds->leds[led_no]; in input_leds_connect()
154 struct input_led *led = &leds->leds[led_no]; in input_leds_connect()
166 kfree(leds); in input_leds_connect()
176 struct input_led *led = &leds->leds[i]; in input_leds_disconnect()
[all …]
/linux/drivers/net/wireless/broadcom/b43/
A Dleds.c78 struct b43_wl *wl = container_of(leds, struct b43_wl, leds); in b43_leds_work()
102 if (likely(!wl->leds.stop)) { in b43_led_brightness_set()
306 dev->wl->leds.stop = 0; in b43_leds_init()
311 struct b43_leds *leds = &dev->wl->leds; in b43_leds_exit() local
313 b43_led_turn_off(dev, leds->led_tx.index, leds->led_tx.activelow); in b43_leds_exit()
314 b43_led_turn_off(dev, leds->led_rx.index, leds->led_rx.activelow); in b43_leds_exit()
315 b43_led_turn_off(dev, leds->led_assoc.index, leds->led_assoc.activelow); in b43_leds_exit()
316 b43_led_turn_off(dev, leds->led_radio.index, leds->led_radio.activelow); in b43_leds_exit()
321 struct b43_leds *leds = &dev->wl->leds; in b43_leds_stop() local
323 leds->stop = 1; in b43_leds_stop()
[all …]
/linux/Documentation/leds/
A Dindex.rst10 leds-class
11 leds-class-flash
19 leds-blinkm
21 leds-lm3556
22 leds-lp3944
23 leds-lp5521
24 leds-lp5523
25 leds-lp5562
26 leds-lp55xx
27 leds-mlxcpld
[all …]
A Dleds-lm3556.rst35 #echo 0 > /sys/class/leds/flash/brightness
39 #echo 1 > /sys/class/leds/flash/brightness
45 #echo 16 > /sys/class/leds/flash/brightness
62 #echo 0 > /sys/class/leds/torch/brightness
66 #echo 1 > /sys/class/leds/torch/brightness
72 #echo 8 > /sys/class/leds/torch/brightness
90 #echo 0 > /sys/class/leds/indicator/pattern
96 #echo 3 > /sys/class/leds/indicator/pattern
99 sys/class/leds/indicator/brightness file.
105 #echo 0 > /sys/class/leds/indicator/brightness
[all …]
/linux/drivers/net/wireless/ath/carl9170/
A Dled.c78 if (ar->leds[i].registered) { in carl9170_led_update()
80 ar->leds[i].toggled) { in carl9170_led_update()
82 if (ar->leds[i].toggled) in carl9170_led_update()
89 ar->leds[i].toggled = 0; in carl9170_led_update()
129 snprintf(ar->leds[i].name, sizeof(ar->leds[i].name), in carl9170_led_register_led()
132 ar->leds[i].ar = ar; in carl9170_led_register_led()
133 ar->leds[i].l.name = ar->leds[i].name; in carl9170_led_register_led()
135 ar->leds[i].l.brightness = 0; in carl9170_led_register_led()
139 &ar->leds[i].l); in carl9170_led_register_led()
142 ar->leds[i].name, err); in carl9170_led_register_led()
[all …]
/linux/Documentation/ABI/testing/
A Dsysfs-driver-hid-srws11 What: /sys/class/leds/SRWS1::<serial>::RPM1
2 What: /sys/class/leds/SRWS1::<serial>::RPM2
3 What: /sys/class/leds/SRWS1::<serial>::RPM3
4 What: /sys/class/leds/SRWS1::<serial>::RPM4
5 What: /sys/class/leds/SRWS1::<serial>::RPM5
6 What: /sys/class/leds/SRWS1::<serial>::RPM6
7 What: /sys/class/leds/SRWS1::<serial>::RPM7
8 What: /sys/class/leds/SRWS1::<serial>::RPM8
9 What: /sys/class/leds/SRWS1::<serial>::RPM9
10 What: /sys/class/leds/SRWS1::<serial>::RPM10
[all …]
A Dsysfs-class-led-trigger-netdev1 What: /sys/class/leds/<led>/device_name
4 Contact: linux-leds@vger.kernel.org
8 What: /sys/class/leds/<led>/interval
11 Contact: linux-leds@vger.kernel.org
16 What: /sys/class/leds/<led>/link
19 Contact: linux-leds@vger.kernel.org
30 What: /sys/class/leds/<led>/tx
33 Contact: linux-leds@vger.kernel.org
42 What: /sys/class/leds/<led>/rx
45 Contact: linux-leds@vger.kernel.org
A Dsysfs-class-led-multicolor2 What: /sys/class/leds/<led>/multi_index
12 Documentation/leds/leds-class-multicolor.rst.
14 What: /sys/class/leds/<led>/multi_intensity
21 not exceed /sys/class/leds/<led>/max_brightness.
24 Documentation/leds/leds-class-multicolor.rst.
A Dsysfs-class-led-trigger-oneshot1 What: /sys/class/leds/<led>/delay_on
4 Contact: linux-leds@vger.kernel.org
10 What: /sys/class/leds/<led>/delay_off
13 Contact: linux-leds@vger.kernel.org
19 What: /sys/class/leds/<led>/invert
22 Contact: linux-leds@vger.kernel.org
30 What: /sys/class/leds/<led>/shot
33 Contact: linux-leds@vger.kernel.org
/linux/drivers/leds/trigger/
A D.built-in.a.cmd1leds/trigger/built-in.a := echo >/dev/null; rm -f drivers/leds/trigger/built-in.a; /usr/bin/ccache…
/linux/drivers/leds/flash/
A DMakefile3 obj-$(CONFIG_LEDS_AAT1290) += leds-aat1290.o
4 obj-$(CONFIG_LEDS_AS3645A) += leds-as3645a.o
5 obj-$(CONFIG_LEDS_KTD2692) += leds-ktd2692.o
6 obj-$(CONFIG_LEDS_LM3601X) += leds-lm3601x.o
7 obj-$(CONFIG_LEDS_MAX77693) += leds-max77693.o
8 obj-$(CONFIG_LEDS_RT4505) += leds-rt4505.o
9 obj-$(CONFIG_LEDS_RT8515) += leds-rt8515.o
10 obj-$(CONFIG_LEDS_SGM3140) += leds-sgm3140.o
/linux/drivers/video/backlight/
A Dled_bl.c17 struct led_classdev **leds; member
76 struct led_classdev **leds; in led_bl_get_leds() local
94 if (!leds) in led_bl_get_leds()
98 leds[i] = devm_of_led_get(dev, i); in led_bl_get_leds()
99 if (IS_ERR(leds[i])) in led_bl_get_leds()
100 return PTR_ERR(leds[i]); in led_bl_get_leds()
104 max_brightness = leds[0]->max_brightness; in led_bl_get_leds()
113 default_brightness = leds[0]->brightness; in led_bl_get_leds()
116 priv->leds = leds; in led_bl_get_leds()
213 led_sysfs_disable(priv->leds[i]); in led_bl_probe()
[all …]
/linux/drivers/hid/
A Dhid-lg-g15.c135 val = g15->leds[i].brightness; in lg_g15_led_set()
209 g15->leds[i].red = in lg_g510_get_initial_led_brightness()
211 g15->leds[i].green = in lg_g510_get_initial_led_brightness()
213 g15->leds[i].blue = in lg_g510_get_initial_led_brightness()
215 g15->leds[i].brightness = high; in lg_g510_get_initial_led_brightness()
217 g15->leds[i].red = 255; in lg_g510_get_initial_led_brightness()
218 g15->leds[i].green = 255; in lg_g510_get_initial_led_brightness()
219 g15->leds[i].blue = 255; in lg_g510_get_initial_led_brightness()
220 g15->leds[i].brightness = 0; in lg_g510_get_initial_led_brightness()
671 g15->leds[i].led = i; in lg_g15_register_led()
[all …]
/linux/drivers/net/wireless/intersil/p54/
A Dled.c38 for (i = 0; i < ARRAY_SIZE(priv->leds); i++) in p54_update_leds()
39 if (priv->leds[i].toggled) { in p54_update_leds()
42 tmp = 70 + 200 / (priv->leds[i].toggled); in p54_update_leds()
46 if (priv->leds[i].led_dev.brightness == LED_OFF) in p54_update_leds()
49 priv->leds[i].toggled = in p54_update_leds()
50 !!priv->leds[i].led_dev.brightness; in p54_update_leds()
85 struct p54_led_dev *led = &priv->leds[led_index]; in p54_register_led()
149 for (i = 0; i < ARRAY_SIZE(priv->leds); i++) { in p54_unregister_leds()
150 if (priv->leds[i].registered) { in p54_unregister_leds()
151 priv->leds[i].registered = false; in p54_unregister_leds()
[all …]
/linux/Documentation/devicetree/bindings/leds/
A Dleds-pca9532.txt17 - label: see Documentation/devicetree/bindings/leds/common.txt
18 - type: Output configuration, see dt-bindings/leds/leds-pca9532.h (default NONE)
19 - linux,default-trigger: see Documentation/devicetree/bindings/leds/common.txt
20 - default-state: see Documentation/devicetree/bindings/leds/common.txt
24 #include <dt-bindings/leds/leds-pca9532.h>
26 leds: pca9530@60 {
/linux/arch/arm/plat-omap/
A Ddebug-leds.c32 u16 leds; member
85 reg = readw_relaxed(&fpga->leds); in dbg_led_set()
90 writew_relaxed(reg, &fpga->leds); in dbg_led_set()
98 reg = readw_relaxed(&fpga->leds); in dbg_led_get()
112 writew_relaxed(0xff, &fpga->leds); in fpga_probe()
138 fpga_led_state = readw_relaxed(&fpga->leds); in fpga_suspend_noirq()
139 writew_relaxed(0xff, &fpga->leds); in fpga_suspend_noirq()
146 writew_relaxed(~fpga_led_state, &fpga->leds); in fpga_resume_noirq()
/linux/arch/arm/boot/dts/
A Dkirkwood-d2net.dts11 #include <dt-bindings/leds/leds-ns2.h>
23 ns2-leds {
24 compatible = "lacie,ns2-leds";
37 gpio-leds {
38 compatible = "gpio-leds";

Completed in 1279 milliseconds

12345678910>>...52