Home
last modified time | relevance | path

Searched refs:leds (Results 1 - 25 of 748) sorted by relevance

12345678910>>...30

/kernel/linux/linux-6.6/drivers/leds/blink/
H A Dleds-bcm63138.c7 #include <linux/leds.h>
54 struct bcm63138_leds *leds; member
64 static void bcm63138_leds_write(struct bcm63138_leds *leds, unsigned int reg, in bcm63138_leds_write() argument
67 writel(data, leds->base + reg); in bcm63138_leds_write()
70 static unsigned long bcm63138_leds_read(struct bcm63138_leds *leds, in bcm63138_leds_read() argument
73 return readl(leds->base + reg); in bcm63138_leds_read()
76 static void bcm63138_leds_update_bits(struct bcm63138_leds *leds, in bcm63138_leds_update_bits() argument
81 bcm63138_leds_write(leds, reg, (bcm63138_leds_read(leds, reg) & ~mask) | (val & mask)); in bcm63138_leds_update_bits()
88 static void bcm63138_leds_set_flash_rate(struct bcm63138_leds *leds, in bcm63138_leds_set_flash_rate() argument
99 bcm63138_leds_set_bright(struct bcm63138_leds *leds, struct bcm63138_led *led, u8 value) bcm63138_leds_set_bright() argument
110 bcm63138_leds_enable_led(struct bcm63138_leds *leds, struct bcm63138_led *led, enum led_brightness value) bcm63138_leds_enable_led() argument
127 struct bcm63138_leds *leds = led->leds; bcm63138_leds_brightness_set() local
146 struct bcm63138_leds *leds = led->leds; bcm63138_leds_blink_set() local
196 bcm63138_leds_create_led(struct bcm63138_leds *leds, struct device_node *np) bcm63138_leds_create_led() argument
261 struct bcm63138_leds *leds; bcm63138_leds_probe() local
[all...]
/kernel/linux/linux-5.10/drivers/leds/
H A Dleds-mc13783.c7 * Based on leds-da903x:
18 #include <linux/leds.h>
32 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
124 parent = of_get_child_by_name(dev_of_node(dev->parent), "leds"); in mc13xxx_led_probe_dt()
130 leds in mc13xxx_led_probe_dt()
183 struct mc13xxx_leds *leds; mc13xxx_led_probe() local
266 struct mc13xxx_leds *leds = platform_get_drvdata(pdev); mc13xxx_led_remove() local
[all...]
H A Dleds-sc27xx-bltc.c4 #include <linux/leds.h>
56 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 in sc27xx_led_enable()
107 sc27xx_led_disable(struct sc27xx_led *leds) sc27xx_led_disable() argument
119 struct sc27xx_led *leds = to_sc27xx_led(ldev); sc27xx_led_set() local
148 struct sc27xx_led *leds = to_sc27xx_led(ldev); sc27xx_led_pattern_clear() local
175 struct sc27xx_led *leds = to_sc27xx_led(ldev); sc27xx_led_pattern_set() local
[all...]
H A Dleds-ariel.c9 #include <linux/leds.h>
85 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[ in ariel_led_probe()
[all...]
H A Dleds-mt6323.c8 #include <linux/leds.h>
111 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 in mt6323_led_set_blink() local
312 struct mt6323_leds *leds = led->parent; mt6323_led_set_brightness() local
370 struct mt6323_leds *leds; mt6323_led_probe() local
456 struct mt6323_leds *leds = platform_get_drvdata(pdev); mt6323_led_remove() local
[all...]
H A Dleds-turris-omnia.c13 #include "leds.h"
49 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 in brightness_show()
180 struct omnia_leds *leds = i2c_get_clientdata(client); brightness_store() local
212 struct omnia_leds *leds; omnia_leds_probe() local
[all...]
H A Dleds-pca955x.c45 #include <linux/leds.h>
52 #include <dt-bindings/leds/leds-pca955x.h>
118 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 in pca955x_get_pdata()
[all...]
/kernel/linux/linux-6.6/drivers/leds/
H A Dleds-mc13783.c7 * Based on leds-da903x:
18 #include <linux/leds.h>
32 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
124 parent = of_get_child_by_name(dev_of_node(dev->parent), "leds"); in mc13xxx_led_probe_dt()
130 leds in mc13xxx_led_probe_dt()
183 struct mc13xxx_leds *leds; mc13xxx_led_probe() local
266 struct mc13xxx_leds *leds = platform_get_drvdata(pdev); mc13xxx_led_remove() local
[all...]
H A Dleds-mt6323.c8 #include <linux/leds.h>
156 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 in mt6323_get_led_hw_brightness()
239 struct mt6323_leds *leds = led->parent; mt6323_led_hw_on() local
294 struct mt6323_leds *leds = led->parent; mt6323_led_set_blink() local
363 struct mt6323_leds *leds = led->parent; mt6323_led_set_brightness() local
392 struct mt6323_leds *leds = led->parent; mtk_wled_hw_on() local
426 struct mt6323_leds *leds = led->parent; mtk_wled_hw_off() local
457 struct mt6323_leds *leds = led->parent; mt6323_get_wled_brightness() local
477 struct mt6323_leds *leds = led->parent; mt6323_wled_set_brightness() local
532 struct mt6323_leds *leds; mt6323_led_probe() local
637 struct mt6323_leds *leds = platform_get_drvdata(pdev); mt6323_led_remove() local
[all...]
H A Dleds-sc27xx-bltc.c4 #include <linux/leds.h>
56 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 in sc27xx_led_enable()
107 sc27xx_led_disable(struct sc27xx_led *leds) sc27xx_led_disable() argument
119 struct sc27xx_led *leds = to_sc27xx_led(ldev); sc27xx_led_set() local
148 struct sc27xx_led *leds = to_sc27xx_led(ldev); sc27xx_led_pattern_clear() local
175 struct sc27xx_led *leds = to_sc27xx_led(ldev); sc27xx_led_pattern_set() local
[all...]
H A Dleds-cht-wcove.c14 #include <linux/leds.h>
77 struct cht_wc_led leds[CHT_WC_LED_COUNT]; member
340 struct cht_wc_leds *leds; in cht_wc_leds_probe() local
352 leds = devm_kzalloc(&pdev->dev, sizeof(*leds), GFP_KERNEL); in cht_wc_leds_probe()
353 if (!leds) in cht_wc_leds_probe()
361 leds->leds[0].regs = &cht_wc_led_regs[0]; in cht_wc_leds_probe()
362 leds->leds[ in cht_wc_leds_probe()
408 struct cht_wc_leds *leds = platform_get_drvdata(pdev); cht_wc_leds_remove() local
421 struct cht_wc_leds *leds = platform_get_drvdata(pdev); cht_wc_leds_disable() local
435 struct cht_wc_leds *leds = dev_get_drvdata(dev); cht_wc_leds_suspend() local
451 struct cht_wc_leds *leds = dev_get_drvdata(dev); cht_wc_leds_resume() local
[all...]
H A Dleds-ariel.c9 #include <linux/leds.h>
85 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[ in ariel_led_probe()
[all...]
/kernel/linux/linux-5.10/drivers/net/wireless/broadcom/b43/
H A Dleds.c17 #include "leds.h"
77 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 in b43_led_brightness_set()
311 struct b43_leds *leds = &dev->wl->leds; b43_leds_exit() local
321 struct b43_leds *leds = &dev->wl->leds; b43_leds_stop() local
344 struct b43_leds *leds = &wl->leds; b43_leds_unregister() local
[all...]
/kernel/linux/linux-6.6/drivers/net/wireless/broadcom/b43/
H A Dleds.c17 #include "leds.h"
77 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 in b43_led_brightness_set()
311 struct b43_leds *leds = &dev->wl->leds; b43_leds_exit() local
321 struct b43_leds *leds = &dev->wl->leds; b43_leds_stop() local
344 struct b43_leds *leds = &wl->leds; b43_leds_unregister() local
[all...]
/kernel/linux/linux-5.10/drivers/input/
H A Dinput-leds.c12 #include <linux/leds.h>
47 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 in input_leds_connect()
172 struct input_leds *leds = handle->private; input_leds_disconnect() local
[all...]
/kernel/linux/linux-6.6/drivers/input/
H A Dinput-leds.c12 #include <linux/leds.h>
47 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 in input_leds_connect()
172 struct input_leds *leds = handle->private; input_leds_disconnect() local
[all...]
/kernel/linux/linux-5.10/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[ in carl9170_led_register_led()
[all...]
/kernel/linux/linux-6.6/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[ in carl9170_led_register_led()
[all...]
/kernel/linux/linux-6.6/drivers/video/backlight/
H A Dled_bl.c10 #include <linux/leds.h>
17 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
80 ret = of_count_phandle_with_args(node, "leds", NULL); in led_bl_get_leds()
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[ in led_bl_get_leds()
[all...]
/kernel/linux/linux-5.10/drivers/video/backlight/
H A Dled_bl.c10 #include <linux/leds.h>
17 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
80 ret = of_count_phandle_with_args(node, "leds", NULL); in led_bl_get_leds()
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[ in led_bl_get_leds()
[all...]
/kernel/linux/linux-5.10/drivers/net/wireless/intersil/p54/
H A Dled.c21 #include <linux/leds.h>
38 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[ in p54_unregister_leds()
[all...]
/kernel/linux/linux-6.6/drivers/net/wireless/intersil/p54/
H A Dled.c21 #include <linux/leds.h>
38 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[ in p54_unregister_leds()
[all...]
/kernel/linux/linux-6.6/drivers/hid/
H A Dhid-lg-g15.c10 #include <linux/leds.h>
62 struct lg_g15_led leds[LG_G15_LED_MAX]; member
80 g15->leds[LG_G15_KBD_BRIGHTNESS].brightness = g15->transfer_buf[1]; in lg_g15_update_led_brightness()
81 g15->leds[LG_G15_LCD_BRIGHTNESS].brightness = g15->transfer_buf[2]; in lg_g15_update_led_brightness()
83 g15->leds[LG_G15_MACRO_PRESET1].brightness = in lg_g15_update_led_brightness()
85 g15->leds[LG_G15_MACRO_PRESET2].brightness = in lg_g15_update_led_brightness()
87 g15->leds[LG_G15_MACRO_PRESET3].brightness = in lg_g15_update_led_brightness()
89 g15->leds[LG_G15_MACRO_RECORD].brightness = in lg_g15_update_led_brightness()
104 brightness = g15->leds[g15_led->led].brightness; in lg_g15_led_get()
136 val = g15->leds[ in lg_g15_led_set()
[all...]
/kernel/linux/linux-5.10/drivers/hid/
H A 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[ in lg_g15_leds_changed_work()
[all...]
/kernel/linux/linux-6.6/drivers/parisc/
H A Dled.c13 * The LEDs can be configured at runtime in /sys/class/leds/
25 #include <linux/leds.h>
146 * @leds: bitmap representing the LED status
148 static void led_ASP_driver(unsigned char leds) in led_ASP_driver() argument
152 leds = ~leds; in led_ASP_driver()
155 value = (leds & 0x80) >> 7; in led_ASP_driver()
158 leds <<= 1; in led_ASP_driver()
165 * @leds: bitmap representing the LED status
167 static void led_LASI_driver(unsigned char leds) in led_LASI_driver() argument
178 led_LCD_driver(unsigned char leds) led_LCD_driver() argument
260 struct hppa_led leds[NUM_LEDS_PER_BOARD]; global() member
[all...]

Completed in 12 milliseconds

12345678910>>...30