/linux/drivers/leds/ |
H A D | Makefile | 12 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 [all...] |
H A D | leds-mc13783.c | 7 * Based on leds-da903x: 19 #include <linux/leds.h> 33 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 126 of_get_child_by_name(dev_of_node(dev->parent), "leds"); in mc13xxx_led_probe_dt() 132 leds in mc13xxx_led_probe_dt() 181 struct mc13xxx_leds *leds; mc13xxx_led_probe() local 264 struct mc13xxx_leds *leds = platform_get_drvdata(pdev); mc13xxx_led_remove() local [all...] |
H A D | leds-cht-wcove.c | 14 #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 417 struct cht_wc_leds *leds = platform_get_drvdata(pdev); cht_wc_leds_disable() local 431 struct cht_wc_leds *leds = dev_get_drvdata(dev); cht_wc_leds_suspend() local 447 struct cht_wc_leds *leds = dev_get_drvdata(dev); cht_wc_leds_resume() local [all...] |
H A D | leds-turris-omnia.c | 47 * @leds: flexible array of per-LED data 54 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 in omnia_hwtrig_activate() 179 struct omnia_leds *leds = dev_get_drvdata(cdev->dev->parent); omnia_hwtrig_deactivate() local 327 struct omnia_leds *leds = i2c_get_clientdata(client); gamma_correction_show() local 345 struct omnia_leds *leds = i2c_get_clientdata(client); gamma_correction_store() local 370 struct omnia_leds *leds = data; omnia_brightness_changed_threaded_fn() local 389 struct omnia_leds *leds = data; omnia_brightness_knode_put() local 395 omnia_request_brightness_irq(struct omnia_leds * leds) omnia_request_brightness_irq() argument 472 struct omnia_leds *leds; omnia_leds_probe() local [all...] |
H A D | leds-sc27xx-bltc.c | 4 #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 D | leds-ariel.c | 9 #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 D | leds-menf21bmc.c | 15 #include <linux/leds.h> 31 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 D | leds-gpio-register.c | 7 #include <linux/leds.h> 16 * Makes a copy of pdata and pdata->leds and registers a new leds-gpio device 17 * with the result. This allows to have pdata and pdata-leds in .init.rodata 32 _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() 37 ret = platform_device_register_resndata(NULL, "leds-gpio", id, in gpio_led_register_device() 40 kfree(_pdata.leds); in gpio_led_register_device() [all...] |
/linux/drivers/leds/blink/ |
H A D | leds-bcm63138.c | 9 #include <linux/leds.h> 59 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 104 bcm63138_leds_set_bright(struct bcm63138_leds * leds,struct bcm63138_led * led,u8 value) bcm63138_leds_set_bright() argument 115 bcm63138_leds_enable_led(struct bcm63138_leds * leds,struct bcm63138_led * led,enum led_brightness value) bcm63138_leds_enable_led() argument 132 struct bcm63138_leds *leds = led->leds; bcm63138_leds_brightness_set() local 148 struct bcm63138_leds *leds = led->leds; bcm63138_leds_blink_set() local 195 bcm63138_leds_create_led(struct bcm63138_leds * leds,struct device_node * np) bcm63138_leds_create_led() argument 260 struct bcm63138_leds *leds; bcm63138_leds_probe() local [all...] |
/linux/Documentation/leds/ |
H A D | index.rst | 10 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 [all...] |
H A D | leds-lm3556.rst | 26 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/indicato [all...] |
/linux/drivers/input/ |
H A D | input-leds.c | 12 #include <linux/leds.h> 53 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 in input_leds_connect() 178 struct input_leds *leds = handle->private; input_leds_disconnect() local [all...] |
/linux/drivers/net/wireless/ath/ath10k/ |
H A D | leds.c | 9 #include <linux/leds.h> 15 #include "leds.h" 21 leds.cdev); in ath10k_leds_set_brightness_blocking() 22 struct gpio_led *led = &ar->leds.wifi_led; in ath10k_leds_set_brightness_blocking() 29 ar->leds.gpio_state_pin = (brightness != LED_OFF) ^ led->active_low; in ath10k_leds_set_brightness_blocking() 30 ath10k_wmi_gpio_output(ar, led->gpio, ar->leds.gpio_state_pin); in ath10k_leds_set_brightness_blocking() 41 /* leds not supported */ in ath10k_leds_start() 61 /* leds not supported */ in ath10k_leds_register() 64 snprintf(ar->leds.label, sizeof(ar->leds in ath10k_leds_register() [all...] |
/linux/drivers/net/wireless/broadcom/b43/ |
H A D | leds.c | 17 #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...] |
/linux/drivers/leds/flash/ |
H A D | Makefile | 3 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 [all...] |
/linux/Documentation/ABI/testing/ |
H A D | sysfs-driver-hid-srws1 | 1 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/SRWS [all...] |
H A D | sysfs-class-led-multicolor | 2 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 D | sysfs-class-led-trigger-oneshot | 1 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
|
H A D | sysfs-class-led-trigger-pattern | 1 What: /sys/class/leds/<led>/pattern 13 Documentation/devicetree/bindings/leds/leds-trigger-pattern.txt 15 What: /sys/class/leds/<led>/hr_pattern 22 Unlike the /sys/class/leds/<led>/pattern, this attribute runs 25 What: /sys/class/leds/<led>/hw_pattern 37 file at Documentation/leds/. 39 What: /sys/class/leds/<led>/repeat 49 It should be noticed that some leds, like EL15203000 may
|
/linux/drivers/net/wireless/ath/carl9170/ |
H A D | led.c | 78 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...] |
/linux/drivers/hid/ |
H A D | hid-lg-g15.c | 10 #include <linux/leds.h> 17 #include <dt-bindings/leds/common.h> 68 struct lg_g15_led leds[LG_G15_LED_MAX]; member 86 g15->leds[LG_G15_KBD_BRIGHTNESS].brightness = g15->transfer_buf[1]; in lg_g15_update_led_brightness() 87 g15->leds[LG_G15_LCD_BRIGHTNESS].brightness = g15->transfer_buf[2]; in lg_g15_update_led_brightness() 89 g15->leds[LG_G15_MACRO_PRESET1].brightness = in lg_g15_update_led_brightness() 91 g15->leds[LG_G15_MACRO_PRESET2].brightness = in lg_g15_update_led_brightness() 93 g15->leds[LG_G15_MACRO_PRESET3].brightness = in lg_g15_update_led_brightness() 95 g15->leds[LG_G15_MACRO_RECORD].brightness = in lg_g15_update_led_brightness() 110 brightness = g15->leds[g15_le in lg_g15_led_get() [all...] |
/linux/drivers/leds/simatic/ |
H A D | Makefile | 2 obj-$(CONFIG_LEDS_SIEMENS_SIMATIC_IPC) += simatic-ipc-leds.o 3 obj-$(CONFIG_LEDS_SIEMENS_SIMATIC_IPC_APOLLOLAKE) += simatic-ipc-leds-gpio-core.o simatic-ipc-leds-gpio-apollolake.o 4 obj-$(CONFIG_LEDS_SIEMENS_SIMATIC_IPC_F7188X) += simatic-ipc-leds-gpio-core.o simatic-ipc-leds-gpio-f7188x.o 5 obj-$(CONFIG_LEDS_SIEMENS_SIMATIC_IPC_ELKHARTLAKE) += simatic-ipc-leds-gpio-core.o simatic-ipc-leds-gpio-elkhartlake.o
|
/linux/drivers/net/wireless/intersil/p54/ |
H A D | led.c | 21 #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...] |
/linux/drivers/leds/rgb/ |
H A D | Makefile | 3 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
|
/linux/arch/arm/boot/dts/marvell/ |
H A D | kirkwood-d2net.dts | 11 #include <dt-bindings/leds/leds-ns2.h> 23 ns2-leds { 24 compatible = "lacie,ns2-leds"; 37 gpio-leds { 38 compatible = "gpio-leds";
|