Home
last modified time | relevance | path

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

12345678910>>...35

/Linux-v4.19/drivers/leds/
DMakefile10 obj-$(CONFIG_LEDS_88PM860X) += leds-88pm860x.o
11 obj-$(CONFIG_LEDS_AAT1290) += leds-aat1290.o
12 obj-$(CONFIG_LEDS_APU) += leds-apu.o
13 obj-$(CONFIG_LEDS_AS3645A) += leds-as3645a.o
14 obj-$(CONFIG_LEDS_BCM6328) += leds-bcm6328.o
15 obj-$(CONFIG_LEDS_BCM6358) += leds-bcm6358.o
16 obj-$(CONFIG_LEDS_BD2802) += leds-bd2802.o
17 obj-$(CONFIG_LEDS_CPCAP) += leds-cpcap.o
18 obj-$(CONFIG_LEDS_LOCOMO) += leds-locomo.o
19 obj-$(CONFIG_LEDS_LM3530) += leds-lm3530.o
[all …]
Dleds-mc13783.c35 struct mc13xxx_leds *leds; member
60 struct mc13xxx_leds *leds = led->leds; in mc13xxx_led_set() local
108 return mc13xxx_reg_rmw(leds->master, leds->devtype->ledctrl_base + reg, in mc13xxx_led_set()
117 struct mc13xxx_leds *leds = platform_get_drvdata(pdev); in mc13xxx_led_probe_dt() local
133 leds->devtype->num_regs); in mc13xxx_led_probe_dt()
152 pdata->led[i].id = leds->devtype->led_min + tmp; in mc13xxx_led_probe_dt()
186 struct mc13xxx_leds *leds; in mc13xxx_led_probe() local
190 leds = devm_kzalloc(dev, sizeof(*leds), GFP_KERNEL); in mc13xxx_led_probe()
191 if (!leds) in mc13xxx_led_probe()
194 leds->devtype = devtype; in mc13xxx_led_probe()
[all …]
Dleds-mt6323.c120 struct mt6323_leds *leds = led->parent; in mt6323_led_hw_brightness() local
121 struct regmap *regmap = leds->hw->regmap; in mt6323_led_hw_brightness()
144 struct mt6323_leds *leds = led->parent; in mt6323_led_hw_off() local
145 struct regmap *regmap = leds->hw->regmap; in mt6323_led_hw_off()
169 struct mt6323_leds *leds = led->parent; in mt6323_get_led_hw_brightness() local
170 struct regmap *regmap = leds->hw->regmap; in mt6323_get_led_hw_brightness()
200 struct mt6323_leds *leds = led->parent; in mt6323_led_hw_on() local
201 struct regmap *regmap = leds->hw->regmap; in mt6323_led_hw_on()
254 struct mt6323_leds *leds = led->parent; in mt6323_led_set_blink() local
255 struct regmap *regmap = leds->hw->regmap; in mt6323_led_set_blink()
[all …]
Dleds-sc27xx-bltc.c47 struct sc27xx_led leds[SC27XX_LEDS_MAX]; member
73 static u32 sc27xx_led_get_offset(struct sc27xx_led *leds) in sc27xx_led_get_offset() argument
75 return leds->priv->base + SC27XX_LEDS_OFFSET * leds->line; in sc27xx_led_get_offset()
78 static int sc27xx_led_enable(struct sc27xx_led *leds, enum led_brightness value) in sc27xx_led_enable() argument
80 u32 base = sc27xx_led_get_offset(leds); in sc27xx_led_enable()
81 u32 ctrl_base = leds->priv->base + SC27XX_LEDS_CTRL; in sc27xx_led_enable()
82 u8 ctrl_shift = SC27XX_CTRL_SHIFT * leds->line; in sc27xx_led_enable()
83 struct regmap *regmap = leds->priv->regmap; in sc27xx_led_enable()
98 static int sc27xx_led_disable(struct sc27xx_led *leds) in sc27xx_led_disable() argument
100 struct regmap *regmap = leds->priv->regmap; in sc27xx_led_disable()
[all …]
Dleds-pca955x.c124 struct pca955x_led *leds; member
142 struct pca955x_led *leds; member
321 struct pca955x_led *led = &pca955x->leds[offset]; in pca955x_gpio_request_pin()
333 struct pca955x_led *led = &pca955x->leds[offset]; in pca955x_set_value()
350 struct pca955x_led *led = &pca955x->leds[offset]; in pca955x_gpio_get_value()
363 struct pca955x_led *led = &pca955x->leds[offset]; in pca955x_gpio_direction_input()
393 pdata->leds = devm_kcalloc(&client->dev, in pca955x_pdata_of_init()
396 if (!pdata->leds) in pca955x_pdata_of_init()
411 snprintf(pdata->leds[reg].name, sizeof(pdata->leds[reg].name), in pca955x_pdata_of_init()
414 pdata->leds[reg].type = PCA955X_TYPE_LED; in pca955x_pdata_of_init()
[all …]
Dleds-pca963x.c115 struct pca963x_led *leds; member
327 pdata->leds.leds = pca963x_leds; in pca963x_dt_init()
328 pdata->leds.num_leds = chip->n_leds; in pca963x_dt_init()
399 if (pdata && (pdata->leds.num_leds < 1 || in pca963x_probe()
400 pdata->leds.num_leds > chip->n_leds)) { in pca963x_probe()
420 pca963x_chip->leds = pca963x; in pca963x_probe()
431 if (pdata && i < pdata->leds.num_leds) { in pca963x_probe()
432 if (pdata->leds.leds[i].name) in pca963x_probe()
435 pdata->leds.leds[i].name); in pca963x_probe()
436 if (pdata->leds.leds[i].default_trigger) in pca963x_probe()
[all …]
Dleds-menf21bmc.c35 static struct menf21bmc_led leds[] = { variable
86 for (i = 0; i < ARRAY_SIZE(leds); i++) { in menf21bmc_led_probe()
87 leds[i].cdev.name = leds[i].name; in menf21bmc_led_probe()
88 leds[i].cdev.brightness_set = menf21bmc_led_set; in menf21bmc_led_probe()
89 leds[i].i2c_client = i2c_client; in menf21bmc_led_probe()
90 ret = devm_led_classdev_register(&pdev->dev, &leds[i].cdev); in menf21bmc_led_probe()
Dleds-gpio-register.c34 _pdata.leds = kmemdup(pdata->leds, in gpio_led_register_device()
35 pdata->num_leds * sizeof(*pdata->leds), GFP_KERNEL); in gpio_led_register_device()
36 if (!_pdata.leds) in gpio_led_register_device()
42 kfree(_pdata.leds); in gpio_led_register_device()
Dleds-ot200.c30 static struct ot200_led leds[] = { variable
122 for (i = 0; i < ARRAY_SIZE(leds); i++) { in ot200_led_probe()
124 leds[i].cdev.name = leds[i].name; in ot200_led_probe()
125 leds[i].cdev.brightness_set = ot200_led_brightness_set; in ot200_led_probe()
127 ret = devm_led_classdev_register(&pdev->dev, &leds[i].cdev); in ot200_led_probe()
Dleds-tca6507.c188 } leds[NUM_LEDS]; member
639 if (pdata->leds.leds[i].name && pdata->leds.leds[i].flags) { in tca6507_probe_gpios()
641 tca->gpio_name[gpios] = pdata->leds.leds[i].name; in tca6507_probe_gpios()
728 pdata->leds.leds = tca_leds; in tca6507_led_dt_init()
729 pdata->leds.num_leds = NUM_LEDS; in tca6507_led_dt_init()
766 if (!pdata || pdata->leds.num_leds != NUM_LEDS) { in tca6507_probe()
784 struct tca6507_led *l = tca->leds + i; in tca6507_probe()
788 if (pdata->leds.leds[i].name && !pdata->leds.leds[i].flags) { in tca6507_probe()
789 l->led_cdev.name = pdata->leds.leds[i].name; in tca6507_probe()
791 = pdata->leds.leds[i].default_trigger; in tca6507_probe()
[all …]
Dleds-dac124s085.c28 struct dac124s085_led leds[4]; member
65 for (i = 0; i < ARRAY_SIZE(dac->leds); i++) { in dac124s085_probe()
66 led = dac->leds + i; in dac124s085_probe()
86 led_classdev_unregister(&dac->leds[i].ldev); in dac124s085_probe()
96 for (i = 0; i < ARRAY_SIZE(dac->leds); i++) in dac124s085_remove()
97 led_classdev_unregister(&dac->leds[i].ldev); in dac124s085_remove()
/Linux-v4.19/drivers/input/
Dinput-leds.c50 struct input_led leds[]; member
90 struct input_leds *leds; in input_leds_connect() local
101 leds = kzalloc(struct_size(leds, leds, num_leds), GFP_KERNEL); in input_leds_connect()
102 if (!leds) in input_leds_connect()
105 leds->num_leds = num_leds; in input_leds_connect()
107 leds->handle.dev = dev; in input_leds_connect()
108 leds->handle.handler = handler; in input_leds_connect()
109 leds->handle.name = "leds"; in input_leds_connect()
110 leds->handle.private = leds; in input_leds_connect()
112 error = input_register_handle(&leds->handle); in input_leds_connect()
[all …]
/Linux-v4.19/drivers/net/wireless/broadcom/b43/
Dleds.c90 struct b43_leds *leds = container_of(work, struct b43_leds, work); in b43_leds_work() local
91 struct b43_wl *wl = container_of(leds, struct b43_wl, leds); in b43_leds_work()
99 b43_led_update(dev, &wl->leds.led_tx); in b43_leds_work()
100 b43_led_update(dev, &wl->leds.led_rx); in b43_leds_work()
101 b43_led_update(dev, &wl->leds.led_radio); in b43_leds_work()
102 b43_led_update(dev, &wl->leds.led_assoc); in b43_leds_work()
115 if (likely(!wl->leds.stop)) { in b43_led_brightness_set()
117 ieee80211_queue_work(wl->hw, &wl->leds.work); in b43_led_brightness_set()
179 b43_register_led(dev, &dev->wl->leds.led_tx, name, in b43_map_led()
184 b43_register_led(dev, &dev->wl->leds.led_rx, name, in b43_map_led()
[all …]
/Linux-v4.19/Documentation/leds/
D00-INDEX3 leds-blinkm.txt
5 leds-class.txt
7 leds-class-flash.txt
9 leds-lm3556.txt
10 - notes on how to use the leds-lm3556 driver.
11 leds-lp3944.txt
12 - notes on how to use the leds-lp3944 driver.
13 leds-lp5521.txt
14 - notes on how to use the leds-lp5521 driver.
15 leds-lp5523.txt
[all …]
Dleds-lm3556.txt21 LM3556 Flash can be controlled through sys/class/leds/flash/brightness file
26 OFF : #echo 0 > sys/class/leds/flash/brightness
27 93.75 mA: #echo 1 > sys/class/leds/flash/brightness
29 1500 mA: #echo 16 > sys/class/leds/flash/brightness
35 LM3556 torch can be controlled through sys/class/leds/torch/brightness file.
40 OFF : #echo 0 > sys/class/leds/torch/brightness
41 46.88 mA: #echo 1 > sys/class/leds/torch/brightness
43 375 mA : #echo 8 > sys/class/leds/torch/brightness
46 Indicator pattern can be set through sys/class/leds/indicator/pattern file,
54 pattern 0: #echo 0 > sys/class/leds/indicator/pattern
[all …]
/Linux-v4.19/Documentation/ABI/testing/
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 …]
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
27 What: /sys/class/leds/<led>/tx
30 Contact: linux-leds@vger.kernel.org
37 What: /sys/class/leds/<led>/rx
40 Contact: linux-leds@vger.kernel.org
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
Dsysfs-class-led-driver-lm35331 What: /sys/class/leds/<led>/als_channel
12 What: /sys/class/leds/<led>/als_en
19 What: /sys/class/leds/<led>/falltime
20 What: /sys/class/leds/<led>/risetime
36 What: /sys/class/leds/<led>/id
43 What: /sys/class/leds/<led>/linear
53 What: /sys/class/leds/<led>/pwm
/Linux-v4.19/drivers/net/wireless/ath/carl9170/
Dled.c78 if (ar->leds[i].registered) { in carl9170_led_update()
79 if (ar->leds[i].last_state || in carl9170_led_update()
80 ar->leds[i].toggled) { in carl9170_led_update()
82 if (ar->leds[i].toggled) in carl9170_led_update()
83 tmp = 70 + 200 / (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()
134 ar->leds[i].l.brightness_set = carl9170_led_set_brightness; in carl9170_led_register_led()
[all …]
/Linux-v4.19/drivers/net/wireless/intersil/p54/
Dled.c41 for (i = 0; i < ARRAY_SIZE(priv->leds); i++) in p54_update_leds()
42 if (priv->leds[i].toggled) { in p54_update_leds()
45 tmp = 70 + 200 / (priv->leds[i].toggled); in p54_update_leds()
49 if (priv->leds[i].led_dev.brightness == LED_OFF) in p54_update_leds()
52 priv->leds[i].toggled = in p54_update_leds()
53 !!priv->leds[i].led_dev.brightness; in p54_update_leds()
88 struct p54_led_dev *led = &priv->leds[led_index]; in p54_register_led()
152 for (i = 0; i < ARRAY_SIZE(priv->leds); i++) { in p54_unregister_leds()
153 if (priv->leds[i].registered) { in p54_unregister_leds()
154 priv->leds[i].registered = false; in p54_unregister_leds()
[all …]
/Linux-v4.19/Documentation/devicetree/bindings/leds/
Dleds-gpio.txt4 - compatible : should be "gpio-leds".
6 Each LED is represented as a sub-node of the gpio-leds device. Each
14 see Documentation/devicetree/bindings/leds/common.txt
16 see Documentation/devicetree/bindings/leds/common.txt
18 see Documentation/devicetree/bindings/leds/common.txt
25 see Documentation/devicetree/bindings/leds/common.txt
31 leds {
32 compatible = "gpio-leds";
47 compatible = "gpio-leds";
58 leds {
[all …]
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-v4.19/arch/arm/plat-omap/
Ddebug-leds.c35 u16 leds; member
88 reg = readw_relaxed(&fpga->leds); in dbg_led_set()
93 writew_relaxed(reg, &fpga->leds); in dbg_led_set()
101 reg = readw_relaxed(&fpga->leds); in dbg_led_get()
115 writew_relaxed(0xff, &fpga->leds); in fpga_probe()
141 fpga_led_state = readw_relaxed(&fpga->leds); in fpga_suspend_noirq()
142 writew_relaxed(0xff, &fpga->leds); in fpga_suspend_noirq()
149 writew_relaxed(~fpga_led_state, &fpga->leds); in fpga_resume_noirq()
/Linux-v4.19/arch/arm/boot/dts/
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";

12345678910>>...35