| /linux-6.15/drivers/leds/ |
| H A D | Makefile | 13 obj-$(CONFIG_LEDS_ADP5520) += leds-adp5520.o 15 obj-$(CONFIG_LEDS_APU) += leds-apu.o 16 obj-$(CONFIG_LEDS_ARIEL) += leds-ariel.o 18 obj-$(CONFIG_LEDS_AW2013) += leds-aw2013.o 22 obj-$(CONFIG_LEDS_BD2802) += leds-bd2802.o 28 obj-$(CONFIG_LEDS_CPCAP) += leds-cpcap.o 32 obj-$(CONFIG_LEDS_GPIO) += leds-gpio.o 34 obj-$(CONFIG_LEDS_HP6XX) += leds-hp6xx.o 36 obj-$(CONFIG_LEDS_IP30) += leds-ip30.o 75 obj-$(CONFIG_LEDS_NS2) += leds-ns2.o [all …]
|
| H A D | leds-mc13783.c | 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() 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() 190 leds->master = mcdev; in mc13xxx_led_probe() 208 leds->led = devm_kcalloc(dev, leds->num_leds, sizeof(*leds->led), in mc13xxx_led_probe() 210 if (!leds->led) in mc13xxx_led_probe() 240 leds->led[i].id = id; in mc13xxx_led_probe() [all …]
|
| H A D | leds-mt6323.c | 332 mutex_lock(&leds->lock); in mt6323_led_set_blink() 366 mutex_lock(&leds->lock); in mt6323_led_set_brightness() 540 leds = devm_kzalloc(dev, sizeof(*leds), GFP_KERNEL); in mt6323_led_probe() 541 if (!leds) in mt6323_led_probe() 545 leds->dev = dev; in mt6323_led_probe() 555 leds->hw = hw; in mt6323_led_probe() 562 dev_err(leds->dev, in mt6323_led_probe() 578 leds->led[reg]) { in mt6323_led_probe() 589 leds->led[reg] = led; in mt6323_led_probe() 605 leds->led[reg]->parent = leds; in mt6323_led_probe() [all …]
|
| H A D | leds-cht-wcove.c | 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[0].regmap = pmic->regmap; in cht_wc_leds_probe() 363 ret = cht_wc_led_save_regs(&leds->leds[0], &leds->led1_initial_regs); in cht_wc_leds_probe() 384 struct cht_wc_led *led = &leds->leds[i]; in cht_wc_leds_probe() 412 cht_wc_led_restore_regs(&leds->leds[0], &leds->led1_initial_regs); in cht_wc_leds_remove() 421 cht_wc_leds_brightness_set(&leds->leds[i].cdev, 0); in cht_wc_leds_disable() 425 cht_wc_led_restore_regs(&leds->leds[0], &leds->led1_initial_regs); in cht_wc_leds_disable() 435 ret = cht_wc_led_save_regs(&leds->leds[i], &leds->leds[i].saved_regs); in cht_wc_leds_suspend() [all …]
|
| H A D | leds-turris-omnia.c | 54 struct omnia_led leds[]; member 100 mutex_lock(&leds->lock); in omnia_led_brightness_set_blocking() 136 mutex_unlock(&leds->lock); in omnia_led_brightness_set_blocking() 150 mutex_lock(&leds->lock); in omnia_hwtrig_activate() 183 mutex_lock(&leds->lock); in omnia_hwtrig_deactivate() 472 struct omnia_leds *leds; in omnia_leds_probe() local 482 leds = devm_kzalloc(dev, struct_size(leds, leds, count), GFP_KERNEL); in omnia_leds_probe() 483 if (!leds) in omnia_leds_probe() 486 leds->client = client; in omnia_leds_probe() 501 mutex_init(&leds->lock); in omnia_leds_probe() [all …]
|
| H A D | leds-sc27xx-bltc.c | 56 struct sc27xx_led leds[SC27XX_LEDS_MAX]; member 84 return leds->priv->base + SC27XX_LEDS_OFFSET * leds->line; in sc27xx_led_get_offset() 122 mutex_lock(&leds->priv->lock); in sc27xx_led_set() 125 err = sc27xx_led_disable(leds); in sc27xx_led_set() 127 err = sc27xx_led_enable(leds, value); in sc27xx_led_set() 129 mutex_unlock(&leds->priv->lock); in sc27xx_led_set() 155 mutex_lock(&leds->priv->lock); in sc27xx_led_pattern_clear() 166 mutex_unlock(&leds->priv->lock); in sc27xx_led_pattern_clear() 189 mutex_lock(&leds->priv->lock); in sc27xx_led_pattern_set() 236 mutex_unlock(&leds->priv->lock); in sc27xx_led_pattern_set() [all …]
|
| H A D | leds-ariel.c | 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() 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() 110 leds[i].ec_ram = ec_ram; in ariel_led_probe() [all …]
|
| /linux-6.15/drivers/leds/blink/ |
| H A D | leds-bcm63138.c | 59 struct bcm63138_leds *leds; member 86 bcm63138_leds_write(leds, reg, (bcm63138_leds_read(leds, reg) & ~mask) | (val & mask)); in bcm63138_leds_update_bits() 132 struct bcm63138_leds *leds = led->leds; in bcm63138_leds_brightness_set() local 148 struct bcm63138_leds *leds = led->leds; in bcm63138_leds_blink_set() local 213 led->leds = leds; in bcm63138_leds_create_led() 260 struct bcm63138_leds *leds; in bcm63138_leds_probe() local 263 leds = devm_kzalloc(dev, sizeof(*leds), GFP_KERNEL); in bcm63138_leds_probe() 264 if (!leds) in bcm63138_leds_probe() 267 leds->dev = dev; in bcm63138_leds_probe() 270 if (IS_ERR(leds->base)) in bcm63138_leds_probe() [all …]
|
| /linux-6.15/Documentation/leds/ |
| H A D | index.rst | 10 leds-class 11 leds-class-flash 19 leds-blinkm 22 leds-lm3556 23 leds-lp3944 24 leds-lp5521 25 leds-lp5523 26 leds-lp5562 27 leds-lp55xx 28 leds-mlxcpld [all …]
|
| H A D | leds-lm3556.rst | 35 #echo 0 > /sys/class/leds/flash/brightness 39 #echo 1 > /sys/class/leds/flash/brightness 45 #echo 16 > /sys/class/leds/flash/brightness 62 #echo 0 > /sys/class/leds/torch/brightness 66 #echo 1 > /sys/class/leds/torch/brightness 72 #echo 8 > /sys/class/leds/torch/brightness 90 #echo 0 > /sys/class/leds/indicator/pattern 96 #echo 3 > /sys/class/leds/indicator/pattern 99 sys/class/leds/indicator/brightness file. 105 #echo 0 > /sys/class/leds/indicator/brightness [all …]
|
| /linux-6.15/drivers/input/ |
| H A D | input-leds.c | 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() 113 leds->handle.private = leds; in input_leds_connect() 128 led = &leds->leds[led_no]; in input_leds_connect() 160 struct input_led *led = &leds->leds[led_no]; in input_leds_connect() 172 kfree(leds); in input_leds_connect() 182 struct input_led *led = &leds->leds[i]; in input_leds_disconnect() [all …]
|
| /linux-6.15/drivers/net/wireless/ath/ath10k/ |
| H A D | leds.c | 21 leds.cdev); in ath10k_leds_set_brightness_blocking() 22 struct gpio_led *led = &ar->leds.wifi_led; 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() 64 snprintf(ar->leds.label, sizeof(ar->leds.label), "ath10k-%s", in ath10k_leds_register() 66 ar->leds.wifi_led.active_low = 1; in ath10k_leds_register() 67 ar->leds.wifi_led.gpio = ar->hw_params.led_pin; in ath10k_leds_register() 68 ar->leds.wifi_led.name = ar->leds.label; in ath10k_leds_register() 69 ar->leds.wifi_led.default_state = LEDS_GPIO_DEFSTATE_KEEP; in ath10k_leds_register() 71 ar->leds.cdev.name = ar->leds.label; in ath10k_leds_register() 73 ar->leds.cdev.default_trigger = ar->leds.wifi_led.default_trigger; in ath10k_leds_register() [all …]
|
| /linux-6.15/drivers/net/wireless/broadcom/b43/ |
| H A D | leds.c | 78 struct b43_wl *wl = container_of(leds, struct b43_wl, leds); in b43_leds_work() 102 if (likely(!wl->leds.stop)) { in b43_led_brightness_set() 306 dev->wl->leds.stop = 0; in b43_leds_init() 311 struct b43_leds *leds = &dev->wl->leds; in b43_leds_exit() local 313 b43_led_turn_off(dev, leds->led_tx.index, leds->led_tx.activelow); in b43_leds_exit() 314 b43_led_turn_off(dev, leds->led_rx.index, leds->led_rx.activelow); in b43_leds_exit() 315 b43_led_turn_off(dev, leds->led_assoc.index, leds->led_assoc.activelow); in b43_leds_exit() 316 b43_led_turn_off(dev, leds->led_radio.index, leds->led_radio.activelow); in b43_leds_exit() 321 struct b43_leds *leds = &dev->wl->leds; in b43_leds_stop() local 323 leds->stop = 1; in b43_leds_stop() [all …]
|
| /linux-6.15/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/SRWS1::<serial>::RPM10 [all …]
|
| H A D | sysfs-class-led-trigger-netdev | 1 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 …]
|
| /linux-6.15/drivers/net/wireless/ath/carl9170/ |
| H A D | led.c | 78 if (ar->leds[i].registered) { in carl9170_led_update() 80 ar->leds[i].toggled) { in carl9170_led_update() 82 if (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() 135 ar->leds[i].l.brightness = 0; in carl9170_led_register_led() 139 &ar->leds[i].l); in carl9170_led_register_led() 142 ar->leds[i].name, err); in carl9170_led_register_led() [all …]
|
| /linux-6.15/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 11 obj-$(CONFIG_LEDS_RT4505) += leds-rt4505.o 12 obj-$(CONFIG_LEDS_RT8515) += leds-rt8515.o 13 obj-$(CONFIG_LEDS_SGM3140) += leds-sgm3140.o [all …]
|
| /linux-6.15/drivers/video/backlight/ |
| H A D | led_bl.c | 17 struct led_classdev **leds; member 76 struct led_classdev **leds; in led_bl_get_leds() local 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() 113 default_brightness = leds[0]->brightness; in led_bl_get_leds() 116 priv->leds = leds; in led_bl_get_leds() 214 led_sysfs_disable(priv->leds[i]); in led_bl_probe() [all …]
|
| /linux-6.15/Documentation/devicetree/bindings/leds/ |
| H A D | leds-group-multicolor.yaml | 4 $id: http://devicetree.org/schemas/leds/leds-group-multicolor.yaml# 18 const: leds-group-multicolor 20 leds: 22 An aray of monochromatic leds 26 - leds 29 - $ref: leds-class-multicolor.yaml# 36 #include <dt-bindings/leds/common.h> 38 monochromatic-leds { 39 compatible = "gpio-leds"; 58 compatible = "leds-group-multicolor"; [all …]
|
| H A D | leds-bcm63138.yaml | 4 $id: http://devicetree.org/schemas/leds/leds-bcm63138.yaml# 26 - brcm,bcm4908-leds 27 - brcm,bcm6848-leds 28 - brcm,bcm6858-leds 29 - brcm,bcm63148-leds 30 - brcm,bcm63381-leds 31 - brcm,bcm68360-leds 32 - const: brcm,bcm63138-leds 33 - const: brcm,bcm63138-leds 81 leds@ff800800 { [all …]
|
| /linux-6.15/drivers/hid/ |
| H A D | hid-lg-g15.c | 216 g15->leds[i].red = in lg_g510_get_initial_led_brightness() 218 g15->leds[i].green = in lg_g510_get_initial_led_brightness() 220 g15->leds[i].blue = in lg_g510_get_initial_led_brightness() 222 g15->leds[i].brightness = high; in lg_g510_get_initial_led_brightness() 224 g15->leds[i].red = 255; in lg_g510_get_initial_led_brightness() 225 g15->leds[i].green = 255; in lg_g510_get_initial_led_brightness() 226 g15->leds[i].blue = 255; in lg_g510_get_initial_led_brightness() 227 g15->leds[i].brightness = 0; in lg_g510_get_initial_led_brightness() 655 g15->leds[i].led = i; in lg_g15_register_led() 656 g15->leds[i].cdev.name = name; in lg_g15_register_led() [all …]
|
| /linux-6.15/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-… 4 obj-$(CONFIG_LEDS_SIEMENS_SIMATIC_IPC_F7188X) += simatic-ipc-leds-gpio-core.o simatic-ipc-leds-gpi… 5 obj-$(CONFIG_LEDS_SIEMENS_SIMATIC_IPC_ELKHARTLAKE) += simatic-ipc-leds-gpio-core.o simatic-ipc-leds…
|
| /linux-6.15/drivers/net/wireless/intersil/p54/ |
| H A D | led.c | 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[i].registered) { in p54_unregister_leds() 151 priv->leds[i].registered = false; in p54_unregister_leds() [all …]
|
| /linux-6.15/drivers/net/ethernet/realtek/ |
| H A D | r8169_leds.c | 154 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() 263 return leds; in rtl8125_init_leds() 268 if (!leds) in r8169_remove_leds() [all …]
|
| /linux-6.15/drivers/parisc/ |
| H A D | led.c | 147 static void led_ASP_driver(unsigned char leds) in led_ASP_driver() argument 151 leds = ~leds; in led_ASP_driver() 154 value = (leds & 0x80) >> 7; in led_ASP_driver() 157 leds <<= 1; in led_ASP_driver() 168 leds = ~leds; in led_LASI_driver() 169 gsc_writeb( leds, LED_DATA_REG ); in led_LASI_driver() 177 static void led_LCD_driver(unsigned char leds) in led_LCD_driver() argument 199 gsc_writeb( leds & mask[i] ? blockp[i]->on : in led_LCD_driver() 203 latest_leds = leds; in led_LCD_driver() 259 struct hppa_led leds[NUM_LEDS_PER_BOARD]; member [all …]
|