Home
last modified time | relevance | path

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

12345678910>>...51

/linux/drivers/leds/
H A DMakefile12 obj-$(CONFIG_LEDS_88PM860X) += leds-88pm860x.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_AW200XX) += leds-aw200xx.o
19 obj-$(CONFIG_LEDS_AW2013) += leds-aw2013.o
20 obj-$(CONFIG_LEDS_BCM6328) += leds-bcm6328.o
21 obj-$(CONFIG_LEDS_BCM6358) += leds-bcm6358.o
[all …]
H A Dleds-mc13783.c33 struct mc13xxx_leds *leds; member
58 struct mc13xxx_leds *leds = led->leds; in mc13xxx_led_set() local
106 return mc13xxx_reg_rmw(leds->master, leds->devtype->ledctrl_base + reg, in mc13xxx_led_set()
115 struct mc13xxx_leds *leds = platform_get_drvdata(pdev); in mc13xxx_led_probe_dt() local
132 leds->devtype->num_regs); in mc13xxx_led_probe_dt()
149 pdata->led[i].id = leds->devtype->led_min + tmp; in mc13xxx_led_probe_dt()
181 struct mc13xxx_leds *leds; in mc13xxx_led_probe() local
185 leds = devm_kzalloc(dev, sizeof(*leds), GFP_KERNEL); in mc13xxx_led_probe()
186 if (!leds) in mc13xxx_led_probe()
189 leds->devtype = devtype; in mc13xxx_led_probe()
[all …]
H A Dleds-mt6323.c156 struct mt6323_leds *leds = led->parent; in mt6323_led_hw_brightness() local
157 const struct mt6323_regs *regs = leds->pdata->regs; in mt6323_led_hw_brightness()
158 struct regmap *regmap = leds->hw->regmap; in mt6323_led_hw_brightness()
181 struct mt6323_leds *leds = led->parent; in mt6323_led_hw_off() local
182 const struct mt6323_regs *regs = leds->pdata->regs; in mt6323_led_hw_off()
183 struct regmap *regmap = leds->hw->regmap; in mt6323_led_hw_off()
207 struct mt6323_leds *leds = led->parent; in mt6323_get_led_hw_brightness() local
208 const struct mt6323_regs *regs = leds->pdata->regs; in mt6323_get_led_hw_brightness()
209 struct regmap *regmap = leds->hw->regmap; in mt6323_get_led_hw_brightness()
239 struct mt6323_leds *leds = led->parent; in mt6323_led_hw_on() local
[all …]
H A Dleds-turris-omnia.c54 struct omnia_led leds[]; member
96 struct omnia_leds *leds = dev_get_drvdata(cdev->dev->parent); in omnia_led_brightness_set_blocking() local
100 mutex_lock(&leds->lock); in omnia_led_brightness_set_blocking()
118 err = omnia_led_send_color_cmd(leds->client, led); in omnia_led_brightness_set_blocking()
131 err = omnia_cmd_write_u8(leds->client, OMNIA_CMD_LED_STATE, state); in omnia_led_brightness_set_blocking()
136 mutex_unlock(&leds->lock); in omnia_led_brightness_set_blocking()
146 struct omnia_leds *leds = dev_get_drvdata(cdev->dev->parent); in omnia_hwtrig_activate() local
150 mutex_lock(&leds->lock); in omnia_hwtrig_activate()
161 err = omnia_led_send_color_cmd(leds->client, led); in omnia_hwtrig_activate()
166 err = omnia_cmd_write_u8(leds->client, OMNIA_CMD_LED_MODE, in omnia_hwtrig_activate()
[all …]
H A 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 …]
H 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()
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 …]
H 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()
H A Dleds-gpio-register.c32 _pdata.leds = kmemdup(pdata->leds, in gpio_led_register_device()
33 pdata->num_leds * sizeof(*pdata->leds), GFP_KERNEL); in gpio_led_register_device()
34 if (!_pdata.leds) in gpio_led_register_device()
40 kfree(_pdata.leds); in gpio_led_register_device()
/linux/drivers/leds/blink/
H A Dleds-bcm63138.c59 struct bcm63138_leds *leds; member
69 static void bcm63138_leds_write(struct bcm63138_leds *leds, unsigned int reg, in bcm63138_leds_write() argument
72 writel(data, leds->base + reg); in bcm63138_leds_write()
75 static unsigned long bcm63138_leds_read(struct bcm63138_leds *leds, in bcm63138_leds_read() argument
78 return readl(leds->base + reg); in bcm63138_leds_read()
81 static void bcm63138_leds_update_bits(struct bcm63138_leds *leds, in bcm63138_leds_update_bits() argument
86 bcm63138_leds_write(leds, reg, (bcm63138_leds_read(leds, reg) & ~mask) | (val & mask)); in bcm63138_leds_update_bits()
93 static void bcm63138_leds_set_flash_rate(struct bcm63138_leds *leds, in bcm63138_leds_set_flash_rate() argument
100 bcm63138_leds_update_bits(leds, BCM63138_FLASH_RATE_CTRL1 + reg_offset, in bcm63138_leds_set_flash_rate()
104 static void bcm63138_leds_set_bright(struct bcm63138_leds *leds, in bcm63138_leds_set_bright() argument
[all …]
/linux/Documentation/leds/
H A Dindex.rst10 leds-class
11 leds-class-flash
12 leds-class-multicolor
19 leds-blinkm
20 leds-cht-wcove
21 leds-el15203000
22 leds-lm3556
23 leds-lp3944
24 leds-lp5521
25 leds-lp5523
[all …]
H A 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 …]
/linux/drivers/input/
H A Dinput-leds.c53 struct input_led leds[] __counted_by(num_leds);
93 struct input_leds *leds; in input_leds_connect() local
104 leds = kzalloc(struct_size(leds, leds, num_leds), GFP_KERNEL); in input_leds_connect()
105 if (!leds) in input_leds_connect()
108 leds->num_leds = num_leds; in input_leds_connect()
110 leds->handle.dev = dev; in input_leds_connect()
111 leds->handle.handler = handler; in input_leds_connect()
112 leds->handle.name = "leds"; in input_leds_connect()
113 leds->handle.private = leds; in input_leds_connect()
115 error = input_register_handle(&leds->handle); in input_leds_connect()
[all …]
/linux/drivers/net/wireless/broadcom/b43/
H A 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 …]
/linux/Documentation/ABI/testing/
H 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 …]
H 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
21 What: /sys/class/leds/<led>/link
24 Contact: linux-leds@vger.kernel.org
35 What: /sys/class/leds/<led>/tx
38 Contact: linux-leds@vger.kernel.org
50 What: /sys/class/leds/<led>/rx
53 Contact: linux-leds@vger.kernel.org
[all …]
H 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.
H 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/net/wireless/ath/carl9170/
H A 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/drivers/leds/flash/
H A DMakefile3 obj-$(CONFIG_LEDS_MT6360) += leds-mt6360.o
4 obj-$(CONFIG_LEDS_MT6370_FLASH) += leds-mt6370-flash.o
5 obj-$(CONFIG_LEDS_AAT1290) += leds-aat1290.o
6 obj-$(CONFIG_LEDS_AS3645A) += leds-as3645a.o
7 obj-$(CONFIG_LEDS_KTD2692) += leds-ktd2692.o
8 obj-$(CONFIG_LEDS_LM3601X) += leds-lm3601x.o
9 obj-$(CONFIG_LEDS_MAX77693) += leds-max77693.o
10 obj-$(CONFIG_LEDS_QCOM_FLASH) += leds-qcom-flash.o
11 obj-$(CONFIG_LEDS_RT4505) += leds-rt4505.o
12 obj-$(CONFIG_LEDS_RT8515) += leds-rt8515.o
[all …]
/linux/drivers/net/wireless/intersil/p54/
H 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/drivers/net/ethernet/realtek/
H A Dr8169_leds.c154 struct r8169_led_classdev *leds; in rtl8168_init_leds() local
157 leds = kcalloc(RTL8168_NUM_LEDS + 1, sizeof(*leds), GFP_KERNEL); in rtl8168_init_leds()
158 if (!leds) in rtl8168_init_leds()
162 rtl8168_setup_ldev(leds + i, ndev, i); in rtl8168_init_leds()
164 return leds; in rtl8168_init_leds()
253 struct r8169_led_classdev *leds; in rtl8125_init_leds() local
256 leds = kcalloc(RTL8125_NUM_LEDS + 1, sizeof(*leds), GFP_KERNEL); in rtl8125_init_leds()
257 if (!leds) in rtl8125_init_leds()
261 rtl8125_setup_led_ldev(leds + i, ndev, i); in rtl8125_init_leds()
263 return leds; in rtl8125_init_leds()
[all …]
/linux/drivers/leds/rgb/
H A DMakefile3 obj-$(CONFIG_LEDS_GROUP_MULTICOLOR) += leds-group-multicolor.o
4 obj-$(CONFIG_LEDS_KTD202X) += leds-ktd202x.o
5 obj-$(CONFIG_LEDS_NCP5623) += leds-ncp5623.o
6 obj-$(CONFIG_LEDS_PWM_MULTICOLOR) += leds-pwm-multicolor.o
7 obj-$(CONFIG_LEDS_QCOM_LPG) += leds-qcom-lpg.o
8 obj-$(CONFIG_LEDS_MT6370_RGB) += leds-mt6370-rgb.o
H A Dleds-pwm-multicolor.c28 struct pwm_led leds[]; member
45 duty = priv->leds[i].state.period; in led_pwm_mc_set()
49 if (priv->leds[i].active_low) in led_pwm_mc_set()
50 duty = priv->leds[i].state.period - duty; in led_pwm_mc_set()
52 priv->leds[i].state.duty_cycle = duty; in led_pwm_mc_set()
59 priv->leds[i].state.enabled = !(cdev->flags & LED_SUSPENDED); in led_pwm_mc_set()
60 ret = pwm_apply_might_sleep(priv->leds[i].pwm, in led_pwm_mc_set()
61 &priv->leds[i].state); in led_pwm_mc_set()
82 pwmled = &priv->leds[priv->mc_cdev.num_colors]; in iterate_subleds()
126 priv = devm_kzalloc(&pdev->dev, struct_size(priv, leds, count), in led_pwm_mc_probe()
/linux/drivers/net/ethernet/intel/igc/
H A Digc_leds.c266 struct igc_led_classdev *leds; in igc_led_setup() local
271 leds = kcalloc(IGC_NUM_LEDS, sizeof(*leds), GFP_KERNEL); in igc_led_setup()
272 if (!leds) in igc_led_setup()
276 err = igc_setup_ldev(leds + i, netdev, i); in igc_led_setup()
281 adapter->leds = leds; in igc_led_setup()
287 led_classdev_unregister(&((leds + i)->led)); in igc_led_setup()
289 kfree(leds); in igc_led_setup()
295 struct igc_led_classdev *leds = adapter->leds; in igc_led_free() local
299 led_classdev_unregister(&((leds + i)->led)); in igc_led_free()
301 kfree(leds); in igc_led_free()
/linux/arch/arm/boot/dts/marvell/
H 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";

12345678910>>...51