Home
last modified time | relevance | path

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

12345678910>>...42

/kernel/linux/linux-5.10/drivers/leds/
DMakefile11 obj-$(CONFIG_LEDS_88PM860X) += leds-88pm860x.o
12 obj-$(CONFIG_LEDS_AAT1290) += leds-aat1290.o
13 obj-$(CONFIG_LEDS_ACER_A500) += leds-acer-a500.o
14 obj-$(CONFIG_LEDS_ADP5520) += leds-adp5520.o
15 obj-$(CONFIG_LEDS_AN30259A) += leds-an30259a.o
16 obj-$(CONFIG_LEDS_APU) += leds-apu.o
17 obj-$(CONFIG_LEDS_ARIEL) += leds-ariel.o
18 obj-$(CONFIG_LEDS_AS3645A) += leds-as3645a.o
19 obj-$(CONFIG_LEDS_ASIC3) += leds-asic3.o
20 obj-$(CONFIG_LEDS_AW2013) += leds-aw2013.o
[all …]
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()
114 struct mc13xxx_leds *leds = platform_get_drvdata(pdev); in mc13xxx_led_probe_dt() local
130 leds->devtype->num_regs); in mc13xxx_led_probe_dt()
149 pdata->led[i].id = leds->devtype->led_min + tmp; in mc13xxx_led_probe_dt()
183 struct mc13xxx_leds *leds; in mc13xxx_led_probe() local
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()
[all …]
Dleds-mt6323.c111 struct mt6323_leds *leds = led->parent; in mt6323_led_hw_brightness() local
112 struct regmap *regmap = leds->hw->regmap; in mt6323_led_hw_brightness()
135 struct mt6323_leds *leds = led->parent; in mt6323_led_hw_off() local
136 struct regmap *regmap = leds->hw->regmap; in mt6323_led_hw_off()
160 struct mt6323_leds *leds = led->parent; in mt6323_get_led_hw_brightness() local
161 struct regmap *regmap = leds->hw->regmap; in mt6323_get_led_hw_brightness()
191 struct mt6323_leds *leds = led->parent; in mt6323_led_hw_on() local
192 struct regmap *regmap = leds->hw->regmap; in mt6323_led_hw_on()
245 struct mt6323_leds *leds = led->parent; in mt6323_led_set_blink() local
246 struct regmap *regmap = leds->hw->regmap; in mt6323_led_set_blink()
[all …]
Dleds-sc27xx-bltc.c56 struct sc27xx_led leds[SC27XX_LEDS_MAX]; member
82 static u32 sc27xx_led_get_offset(struct sc27xx_led *leds) in sc27xx_led_get_offset() argument
84 return leds->priv->base + SC27XX_LEDS_OFFSET * leds->line; in sc27xx_led_get_offset()
87 static int sc27xx_led_enable(struct sc27xx_led *leds, enum led_brightness value) in sc27xx_led_enable() argument
89 u32 base = sc27xx_led_get_offset(leds); in sc27xx_led_enable()
90 u32 ctrl_base = leds->priv->base + SC27XX_LEDS_CTRL; in sc27xx_led_enable()
91 u8 ctrl_shift = SC27XX_CTRL_SHIFT * leds->line; in sc27xx_led_enable()
92 struct regmap *regmap = leds->priv->regmap; in sc27xx_led_enable()
107 static int sc27xx_led_disable(struct sc27xx_led *leds) in sc27xx_led_disable() argument
109 struct regmap *regmap = leds->priv->regmap; in sc27xx_led_disable()
[all …]
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()
100 leds[0].led_cdev.default_trigger = "default-on"; 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()
[all …]
Dleds-turris-omnia.c49 struct omnia_led leds[]; member
56 struct omnia_leds *leds = dev_get_drvdata(cdev->dev->parent); in omnia_led_brightness_set_blocking() local
61 mutex_lock(&leds->lock); in omnia_led_brightness_set_blocking()
75 ret = i2c_smbus_write_byte_data(leds->client, CMD_LED_STATE, state); in omnia_led_brightness_set_blocking()
77 ret = i2c_master_send(leds->client, buf, 5); in omnia_led_brightness_set_blocking()
79 mutex_unlock(&leds->lock); in omnia_led_brightness_set_blocking()
163 struct omnia_leds *leds = i2c_get_clientdata(client); in brightness_show() local
166 mutex_lock(&leds->lock); in brightness_show()
168 mutex_unlock(&leds->lock); in brightness_show()
180 struct omnia_leds *leds = i2c_get_clientdata(client); in brightness_store() local
[all …]
Dleds-pca955x.c118 struct pca955x_led *leds; member
136 struct pca955x_led *leds; member
315 struct pca955x_led *led = &pca955x->leds[offset]; in pca955x_gpio_request_pin()
327 struct pca955x_led *led = &pca955x->leds[offset]; in pca955x_set_value()
344 struct pca955x_led *led = &pca955x->leds[offset]; in pca955x_gpio_get_value()
357 struct pca955x_led *led = &pca955x->leds[offset]; in pca955x_gpio_direction_input()
385 pdata->leds = devm_kcalloc(&client->dev, in pca955x_get_pdata()
388 if (!pdata->leds) in pca955x_get_pdata()
404 snprintf(pdata->leds[reg].name, sizeof(pdata->leds[reg].name), in pca955x_get_pdata()
407 pdata->leds[reg].type = PCA955X_TYPE_LED; in pca955x_get_pdata()
[all …]
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()
Dleds-gpio-register.c31 _pdata.leds = kmemdup(pdata->leds, in gpio_led_register_device()
32 pdata->num_leds * sizeof(*pdata->leds), GFP_KERNEL); in gpio_led_register_device()
33 if (!_pdata.leds) in gpio_led_register_device()
39 kfree(_pdata.leds); in gpio_led_register_device()
/kernel/linux/linux-5.10/drivers/input/
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()
102 leds->num_leds = num_leds; in input_leds_connect()
104 leds->handle.dev = dev; in input_leds_connect()
105 leds->handle.handler = handler; in input_leds_connect()
106 leds->handle.name = "leds"; in input_leds_connect()
107 leds->handle.private = leds; in input_leds_connect()
109 error = input_register_handle(&leds->handle); in input_leds_connect()
[all …]
/kernel/linux/linux-5.10/Documentation/leds/
Dindex.rst10 leds-class
11 leds-class-flash
12 leds-class-multicolor
19 leds-blinkm
20 leds-el15203000
21 leds-lm3556
22 leds-lp3944
23 leds-lp5521
24 leds-lp5523
25 leds-lp5562
[all …]
Dleds-lm3556.rst26 LM3556 Flash can be controlled through sys/class/leds/flash/brightness file
35 #echo 0 > sys/class/leds/flash/brightness
39 #echo 1 > sys/class/leds/flash/brightness
45 #echo 16 > sys/class/leds/flash/brightness
54 LM3556 torch can be controlled through sys/class/leds/torch/brightness file.
62 #echo 0 > sys/class/leds/torch/brightness
66 #echo 1 > sys/class/leds/torch/brightness
72 #echo 8 > sys/class/leds/torch/brightness
77 Indicator pattern can be set through sys/class/leds/indicator/pattern file,
90 #echo 0 > sys/class/leds/indicator/pattern
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/broadcom/b43/
Dleds.c77 struct b43_leds *leds = container_of(work, struct b43_leds, work); in b43_leds_work() local
78 struct b43_wl *wl = container_of(leds, struct b43_wl, leds); in b43_leds_work()
86 b43_led_update(dev, &wl->leds.led_tx); in b43_leds_work()
87 b43_led_update(dev, &wl->leds.led_rx); in b43_leds_work()
88 b43_led_update(dev, &wl->leds.led_radio); in b43_leds_work()
89 b43_led_update(dev, &wl->leds.led_assoc); in b43_leds_work()
102 if (likely(!wl->leds.stop)) { in b43_led_brightness_set()
104 ieee80211_queue_work(wl->hw, &wl->leds.work); in b43_led_brightness_set()
166 b43_register_led(dev, &dev->wl->leds.led_tx, name, in b43_map_led()
171 b43_register_led(dev, &dev->wl->leds.led_rx, name, in b43_map_led()
[all …]
/kernel/linux/linux-5.10/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
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
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.
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
14 What: /sys/class/leds/<led>/als_en
21 What: /sys/class/leds/<led>/falltime
22 What: /sys/class/leds/<led>/risetime
40 What: /sys/class/leds/<led>/id
47 What: /sys/class/leds/<led>/linear
59 What: /sys/class/leds/<led>/pwm
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/drivers/video/backlight/
Dled_bl.c17 struct led_classdev **leds; member
36 led_set_brightness(priv->leds[i], bkl_brightness); in led_bl_set_brightness()
49 led_set_brightness(priv->leds[i], LED_OFF); in led_bl_power_off()
76 struct led_classdev **leds; in led_bl_get_leds() local
92 leds = devm_kzalloc(dev, sizeof(struct led_classdev *) * nb_leds, in led_bl_get_leds()
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()
[all …]
/kernel/linux/linux-5.10/drivers/hid/
Dhid-lg-g15.c60 struct lg_g15_led leds[LG_G15_LED_MAX]; member
78 g15->leds[LG_G15_KBD_BRIGHTNESS].brightness = g15->transfer_buf[1]; in lg_g15_update_led_brightness()
79 g15->leds[LG_G15_LCD_BRIGHTNESS].brightness = g15->transfer_buf[2]; in lg_g15_update_led_brightness()
81 g15->leds[LG_G15_MACRO_PRESET1].brightness = in lg_g15_update_led_brightness()
83 g15->leds[LG_G15_MACRO_PRESET2].brightness = in lg_g15_update_led_brightness()
85 g15->leds[LG_G15_MACRO_PRESET3].brightness = in lg_g15_update_led_brightness()
87 g15->leds[LG_G15_MACRO_RECORD].brightness = in lg_g15_update_led_brightness()
102 brightness = g15->leds[g15_led->led].brightness; in lg_g15_led_get()
134 val = g15->leds[i].brightness; in lg_g15_led_set()
170 old_brightness[i] = g15->leds[i].brightness; in lg_g15_leds_changed_work()
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/intersil/p54/
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 …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/leds/
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 {
/kernel/linux/linux-5.10/arch/arm/plat-omap/
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()
/kernel/linux/linux-5.10/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>>...42