/linux-4.1.27/arch/mn10300/unit-asb2305/ |
H A D | leds.c | 18 #include <unit/leds.h> 38 u32 leds; peripheral_leds7x4_display_dec() local 40 leds = asb2305_led_hex_tbl[(val/1000) % 10]; peripheral_leds7x4_display_dec() 41 leds <<= 8; peripheral_leds7x4_display_dec() 42 leds |= asb2305_led_hex_tbl[(val/100) % 10]; peripheral_leds7x4_display_dec() 43 leds <<= 8; peripheral_leds7x4_display_dec() 44 leds |= asb2305_led_hex_tbl[(val/10) % 10]; peripheral_leds7x4_display_dec() 45 leds <<= 8; peripheral_leds7x4_display_dec() 46 leds |= asb2305_led_hex_tbl[val % 10]; peripheral_leds7x4_display_dec() 47 leds |= points^0x01010101; peripheral_leds7x4_display_dec() 49 ASB2305_7SEGLEDS = leds; peripheral_leds7x4_display_dec() 54 u32 leds; peripheral_leds7x4_display_hex() local 56 leds = asb2305_led_hex_tbl[(val/1000) % 10]; peripheral_leds7x4_display_hex() 57 leds <<= 8; peripheral_leds7x4_display_hex() 58 leds |= asb2305_led_hex_tbl[(val/100) % 10]; peripheral_leds7x4_display_hex() 59 leds <<= 8; peripheral_leds7x4_display_hex() 60 leds |= asb2305_led_hex_tbl[(val/10) % 10]; peripheral_leds7x4_display_hex() 61 leds <<= 8; peripheral_leds7x4_display_hex() 62 leds |= asb2305_led_hex_tbl[val % 10]; peripheral_leds7x4_display_hex() 63 leds |= points^0x01010101; peripheral_leds7x4_display_hex() 65 ASB2305_7SEGLEDS = leds; peripheral_leds7x4_display_hex() 70 u32 leds; peripheral_leds_display_exception() local 72 leds = asb2305_led_hex_tbl[(code/0x100) % 0x10]; peripheral_leds_display_exception() 73 leds <<= 8; peripheral_leds_display_exception() 74 leds |= asb2305_led_hex_tbl[(code/0x10) % 0x10]; peripheral_leds_display_exception() 75 leds <<= 8; peripheral_leds_display_exception() 76 leds |= asb2305_led_hex_tbl[code % 0x10]; peripheral_leds_display_exception() 77 leds |= 0x6d010101; peripheral_leds_display_exception() 79 ASB2305_7SEGLEDS = leds; peripheral_leds_display_exception() 84 u32 leds; peripheral_leds7x4_display_minssecs() local 86 leds = asb2305_led_hex_tbl[(time/600) % 6]; peripheral_leds7x4_display_minssecs() 87 leds <<= 8; peripheral_leds7x4_display_minssecs() 88 leds |= asb2305_led_hex_tbl[(time/60) % 10]; peripheral_leds7x4_display_minssecs() 89 leds <<= 8; peripheral_leds7x4_display_minssecs() 90 leds |= asb2305_led_hex_tbl[(time/10) % 6]; peripheral_leds7x4_display_minssecs() 91 leds <<= 8; peripheral_leds7x4_display_minssecs() 92 leds |= asb2305_led_hex_tbl[time % 10]; peripheral_leds7x4_display_minssecs() 93 leds |= points^0x01010101; peripheral_leds7x4_display_minssecs() 95 ASB2305_7SEGLEDS = leds; peripheral_leds7x4_display_minssecs()
|
H A D | Makefile | 6 obj-y := unit-init.o leds.o
|
/linux-4.1.27/arch/mn10300/unit-asb2364/ |
H A D | leds.c | 0 /* leds.c: ASB2364 peripheral 7seg LEDs x4 support 20 #include <unit/leds.h> 41 u32 leds; peripheral_leds7x4_display_dec() local 43 leds = asb2364_led_hex_tbl[(val/1000) % 10]; peripheral_leds7x4_display_dec() 44 leds <<= 8; peripheral_leds7x4_display_dec() 45 leds |= asb2364_led_hex_tbl[(val/100) % 10]; peripheral_leds7x4_display_dec() 46 leds <<= 8; peripheral_leds7x4_display_dec() 47 leds |= asb2364_led_hex_tbl[(val/10) % 10]; peripheral_leds7x4_display_dec() 48 leds <<= 8; peripheral_leds7x4_display_dec() 49 leds |= asb2364_led_hex_tbl[val % 10]; peripheral_leds7x4_display_dec() 50 leds |= points^0x01010101; peripheral_leds7x4_display_dec() 52 ASB2364_7SEGLEDS = leds; peripheral_leds7x4_display_dec() 57 u32 leds; peripheral_leds7x4_display_hex() local 59 leds = asb2364_led_hex_tbl[(val/1000) % 10]; peripheral_leds7x4_display_hex() 60 leds <<= 8; peripheral_leds7x4_display_hex() 61 leds |= asb2364_led_hex_tbl[(val/100) % 10]; peripheral_leds7x4_display_hex() 62 leds <<= 8; peripheral_leds7x4_display_hex() 63 leds |= asb2364_led_hex_tbl[(val/10) % 10]; peripheral_leds7x4_display_hex() 64 leds <<= 8; peripheral_leds7x4_display_hex() 65 leds |= asb2364_led_hex_tbl[val % 10]; peripheral_leds7x4_display_hex() 66 leds |= points^0x01010101; peripheral_leds7x4_display_hex() 68 ASB2364_7SEGLEDS = leds; peripheral_leds7x4_display_hex() 74 u32 leds; peripheral_leds_display_exception() local 76 leds = asb2364_led_hex_tbl[(code/0x100) % 0x10]; peripheral_leds_display_exception() 77 leds <<= 8; peripheral_leds_display_exception() 78 leds |= asb2364_led_hex_tbl[(code/0x10) % 0x10]; peripheral_leds_display_exception() 79 leds <<= 8; peripheral_leds_display_exception() 80 leds |= asb2364_led_hex_tbl[code % 0x10]; peripheral_leds_display_exception() 81 leds |= 0x6d010101; peripheral_leds_display_exception() 83 ASB2364_7SEGLEDS = leds; peripheral_leds_display_exception()
|
H A D | Makefile | 10 obj-y := unit-init.o leds.o irq-fpga.o
|
/linux-4.1.27/include/linux/ |
H A D | leds_pwm.h | 2 * PWM LED driver data - see drivers/leds/leds-pwm.c 18 struct led_pwm *leds; member in struct:led_pwm_platform_data
|
H A D | leds-regulator.h | 2 * leds-regulator.h - platform data structure for regulator driven LEDs. 19 * { .dev_name = "leds-regulator.0", .supply = "vled" }, 31 * .name = "leds-regulator", 39 #include <linux/leds.h>
|
H A D | leds-lp3944.h | 2 * leds-lp3944.h - platform data structure for lp3944 led controller 46 struct lp3944_led leds[LP3944_LEDS_MAX]; member in struct:lp3944_platform_data
|
H A D | leds-pca9532.h | 17 #include <linux/leds.h> 41 struct pca9532_led leds[16]; member in struct:pca9532_platform_data
|
H A D | leds-tca6507.h | 23 #include <linux/leds.h> 26 struct led_platform_data leds; member in struct:tca6507_platform_data
|
H A D | leds-bd2802.h | 2 * leds-bd2802.h - RGB LED Driver
|
H A D | leds.h | 2 * Driver model for leds and led triggers 298 struct led_info *leds; member in struct:led_platform_data 301 /* For the leds-gpio driver */ 318 const struct gpio_led *leds; member in struct:gpio_led_platform_data
|
/linux-4.1.27/drivers/net/wireless/rtl818x/rtl8187/ |
H A D | Makefile | 1 rtl8187-objs := dev.o rtl8225.o leds.o rfkill.o
|
H A D | leds.h | 2 * Definitions for RTL8187 leds 21 #include <linux/leds.h>
|
/linux-4.1.27/arch/mn10300/unit-asb2303/ |
H A D | Makefile | 6 obj-y := unit-init.o smc91111.o flash.o leds.o
|
H A D | leds.c | 19 #include <unit/leds.h>
|
/linux-4.1.27/arch/arm/mach-ebsa110/ |
H A D | Makefile | 7 obj-y := core.o io.o leds.o
|
H A D | leds.c | 12 #include <linux/leds.h>
|
/linux-4.1.27/drivers/leds/ |
H A D | leds-ot200.c | 2 * Bachmann ot200 leds driver. 13 #include <linux/leds.h> 26 * The device has three leds on the back panel (led_err, led_init and led_run) 27 * and can handle up to seven leds on the front panel. 30 static struct ot200_led leds[] = { variable in typeref:struct:ot200_led 122 for (i = 0; i < ARRAY_SIZE(leds); i++) { ot200_led_probe() 124 leds[i].cdev.name = leds[i].name; ot200_led_probe() 125 leds[i].cdev.brightness_set = ot200_led_brightness_set; ot200_led_probe() 127 ret = led_classdev_register(&pdev->dev, &leds[i].cdev); ot200_led_probe() 132 leds_front = 0; /* turn off all front leds */ ot200_led_probe() 141 led_classdev_unregister(&leds[i].cdev); ot200_led_probe() 150 for (i = 0; i < ARRAY_SIZE(leds); i++) ot200_led_remove() 151 led_classdev_unregister(&leds[i].cdev); ot200_led_remove() 160 .name = "leds-ot200", 169 MODULE_ALIAS("platform:leds-ot200");
|
H A D | leds-mc13783.c | 6 * Based on leds-da903x: 21 #include <linux/leds.h> 38 struct mc13xxx_leds *leds; member in struct:mc13xxx_led 61 struct mc13xxx_leds *leds = led->leds; mc13xxx_led_work() local 108 mc13xxx_reg_rmw(leds->master, leds->devtype->ledctrl_base + reg, mc13xxx_led_work() 127 struct mc13xxx_leds *leds = platform_get_drvdata(pdev); mc13xxx_led_probe_dt() local 137 parent = of_get_child_by_name(dev->parent->of_node, "leds"); mc13xxx_led_probe_dt() 143 leds->devtype->num_regs); mc13xxx_led_probe_dt() 162 pdata->led[i].id = leds->devtype->led_min + tmp; for_each_child_of_node() 196 struct mc13xxx_leds *leds; mc13xxx_led_probe() local 200 leds = devm_kzalloc(dev, sizeof(*leds), GFP_KERNEL); mc13xxx_led_probe() 201 if (!leds) mc13xxx_led_probe() 204 leds->devtype = devtype; mc13xxx_led_probe() 205 leds->master = mcdev; mc13xxx_led_probe() 206 platform_set_drvdata(pdev, leds); mc13xxx_led_probe() 215 leds->num_leds = pdata->num_leds; mc13xxx_led_probe() 217 if ((leds->num_leds < 1) || mc13xxx_led_probe() 218 (leds->num_leds > (devtype->led_max - devtype->led_min + 1))) { mc13xxx_led_probe() 219 dev_err(dev, "Invalid LED count %d\n", leds->num_leds); mc13xxx_led_probe() 223 leds->led = devm_kzalloc(dev, leds->num_leds * sizeof(*leds->led), mc13xxx_led_probe() 225 if (!leds->led) mc13xxx_led_probe() 229 ret = mc13xxx_reg_write(mcdev, leds->devtype->ledctrl_base + i, mc13xxx_led_probe() 235 for (i = 0; i < leds->num_leds; i++) { mc13xxx_led_probe() 255 leds->led[i].id = id; mc13xxx_led_probe() 256 leds->led[i].leds = leds; mc13xxx_led_probe() 257 leds->led[i].cdev.name = name; mc13xxx_led_probe() 258 leds->led[i].cdev.default_trigger = trig; mc13xxx_led_probe() 259 leds->led[i].cdev.flags = LED_CORE_SUSPENDRESUME; mc13xxx_led_probe() 260 leds->led[i].cdev.brightness_set = mc13xxx_led_set; mc13xxx_led_probe() 261 leds->led[i].cdev.max_brightness = mc13xxx_max_brightness(id); mc13xxx_led_probe() 263 INIT_WORK(&leds->led[i].work, mc13xxx_led_work); mc13xxx_led_probe() 265 ret = led_classdev_register(dev->parent, &leds->led[i].cdev); mc13xxx_led_probe() 274 led_classdev_unregister(&leds->led[i].cdev); mc13xxx_led_probe() 275 cancel_work_sync(&leds->led[i].work); mc13xxx_led_probe() 283 struct mc13xxx_leds *leds = platform_get_drvdata(pdev); mc13xxx_led_remove() local 286 for (i = 0; i < leds->num_leds; i++) { mc13xxx_led_remove() 287 led_classdev_unregister(&leds->led[i].cdev); mc13xxx_led_remove() 288 cancel_work_sync(&leds->led[i].work); mc13xxx_led_remove()
|
H A D | leds-gpio-register.c | 10 #include <linux/leds.h> 18 * Makes a copy of pdata and pdata->leds and registers a new leds-gpio device 19 * with the result. This allows to have pdata and pdata-leds in .init.rodata 34 _pdata.leds = kmemdup(pdata->leds, gpio_led_register_device() 35 pdata->num_leds * sizeof(*pdata->leds), GFP_KERNEL); gpio_led_register_device() 36 if (!_pdata.leds) gpio_led_register_device() 39 ret = platform_device_register_resndata(NULL, "leds-gpio", id, gpio_led_register_device() 42 kfree(_pdata.leds); gpio_led_register_device()
|
H A D | leds-menf21bmc.c | 19 #include <linux/leds.h> 35 static struct menf21bmc_led leds[] = { variable in typeref:struct:menf21bmc_led 86 for (i = 0; i < ARRAY_SIZE(leds); i++) { menf21bmc_led_probe() 87 leds[i].cdev.name = leds[i].name; menf21bmc_led_probe() 88 leds[i].cdev.brightness_set = menf21bmc_led_set; menf21bmc_led_probe() 89 leds[i].i2c_client = i2c_client; menf21bmc_led_probe() 90 ret = led_classdev_register(&pdev->dev, &leds[i].cdev); menf21bmc_led_probe() 102 led_classdev_unregister(&leds[i].cdev); menf21bmc_led_probe() 111 for (i = 0; i < ARRAY_SIZE(leds); i++) menf21bmc_led_remove() 112 led_classdev_unregister(&leds[i].cdev); menf21bmc_led_remove()
|
H A D | leds-dac124s085.c | 12 #include <linux/leds.h> 33 struct dac124s085_led leds[4]; member in struct:dac124s085 78 for (i = 0; i < ARRAY_SIZE(dac->leds); i++) { dac124s085_probe() 79 led = dac->leds + i; dac124s085_probe() 102 led_classdev_unregister(&dac->leds[i].ldev); dac124s085_probe() 112 for (i = 0; i < ARRAY_SIZE(dac->leds); i++) { dac124s085_remove() 113 led_classdev_unregister(&dac->leds[i].ldev); dac124s085_remove() 114 cancel_work_sync(&dac->leds[i].work); dac124s085_remove()
|
H A D | leds-pca963x.c | 8 * Based on leds-pca955x.c 17 * Note that hardware blinking violates the leds infrastructure driver 32 #include <linux/leds.h> 38 #include <linux/platform_data/leds-pca963x.h> 110 struct pca963x_led *leds; member in struct:pca963x 310 pdata->leds.leds = pca963x_leds; 311 pdata->leds.num_leds = chip->n_leds; 363 if (pdata && (pdata->leds.num_leds < 1 || pca963x_probe() 364 pdata->leds.num_leds > chip->n_leds)) { pca963x_probe() 384 pca963x_chip->leds = pca963x; pca963x_probe() 395 if (pdata && i < pdata->leds.num_leds) { pca963x_probe() 396 if (pdata->leds.leds[i].name) pca963x_probe() 399 pdata->leds.leds[i].name); pca963x_probe() 400 if (pdata->leds.leds[i].default_trigger) pca963x_probe() 402 pdata->leds.leds[i].default_trigger; pca963x_probe() 404 if (!pdata || i >= pdata->leds.num_leds || pca963x_probe() 405 !pdata->leds.leds[i].name) pca963x_probe() 451 led_classdev_unregister(&pca963x->leds[i].led_cdev); pca963x_remove() 452 cancel_work_sync(&pca963x->leds[i].work); pca963x_remove() 460 .name = "leds-pca963x",
|
H A D | leds-pwm.c | 2 * linux/drivers/leds-pwm.c 8 * based on leds-gpio.c by Raphael Assenat <raph@8d.com> 20 #include <linux/leds.h> 39 struct led_pwm_data leds[0]; member in struct:led_pwm_priv 93 led_classdev_unregister(&priv->leds[priv->num_leds].cdev); led_pwm_cleanup() 94 if (priv->leds[priv->num_leds].can_sleep) led_pwm_cleanup() 95 cancel_work_sync(&priv->leds[priv->num_leds].work); led_pwm_cleanup() 102 struct led_pwm_data *led_data = &priv->leds[priv->num_leds]; led_pwm_add() 193 ret = led_pwm_add(&pdev->dev, priv, &pdata->leds[i], led_pwm_probe() 222 { .compatible = "pwm-leds", }, 241 MODULE_ALIAS("platform:leds-pwm");
|
H A D | leds-sunfire.c | 0 /* leds-sunfire.c: SUNW,Ultra-Enterprise LED driver. 11 #include <linux/leds.h> 122 struct sunfire_led leds[NUM_LEDS_PER_BOARD]; member in struct:sunfire_drvdata 142 struct led_classdev *lp = &p->leds[i].led_cdev; sunfire_led_generic_probe() 144 p->leds[i].reg = (void __iomem *) pdev->resource[0].start; sunfire_led_generic_probe() 155 led_classdev_unregister(&p->leds[i].led_cdev); sunfire_led_generic_probe() 171 led_classdev_unregister(&p->leds[i].led_cdev); sunfire_led_generic_remove() 218 MODULE_ALIAS("platform:sunfire-clockboard-leds"); 219 MODULE_ALIAS("platform:sunfire-fhc-leds"); 225 .name = "sunfire-clockboard-leds", 233 .name = "sunfire-fhc-leds",
|
H A D | leds-ns2.c | 2 * leds-ns2.c - Driver for the Network Space v2 (and parents) dual-GPIO LED 8 * Based on leds-gpio.c by Raphael Assenat <raph@8d.com> 29 #include <linux/leds.h> 31 #include <linux/platform_data/leds-kirkwood-ns2.h> 262 struct ns2_led *leds; ns2_leds_get_of_pdata() local 270 leds = devm_kzalloc(dev, num_leds * sizeof(struct ns2_led), ns2_leds_get_of_pdata() 272 if (!leds) ns2_leds_get_of_pdata() 282 leds[i].cmd = ret; for_each_child_of_node() 286 leds[i].slow = ret; for_each_child_of_node() 288 leds[i].name = (ret == 0) ? string : child->name; for_each_child_of_node() 292 leds[i].default_trigger = string; for_each_child_of_node() 297 pdata->leds = leds; 304 { .compatible = "lacie,ns2-leds", }, 352 &pdata->leds[i]); ns2_led_probe() 382 .name = "leds-ns2", 392 MODULE_ALIAS("platform:leds-ns2");
|
H A D | leds-lp3944.c | 2 * leds-lp3944.c - driver for National Semiconductor LP3944 Funlight Chip 16 * This helper chip can drive up to 8 leds, with two programmable DIM modes; 20 * The DIM modes are used to set _blink_ patterns for leds, the pattern is 26 * leds, the camera flash light and the displays backlights. 32 #include <linux/leds.h> 35 #include <linux/leds-lp3944.h> 48 /* These registers are not used to control leds in LP3944, they can store 80 struct lp3944_led_data leds[LP3944_LEDS_MAX]; member in struct:lp3944_data 241 /* Special case: the leds subsystem requires a default user lp3944_led_set_blink() 254 /* invert duty cycle for inverted leds, this has the same effect of lp3944_led_set_blink() 260 /* NOTE: using always the first DIM mode, this means that all leds lp3944_led_set_blink() 263 * We could find a way later to have two leds blinking in hardware lp3944_led_set_blink() 311 struct lp3944_led *pled = &pdata->leds[i]; lp3944_configure() 312 struct lp3944_led_data *led = &data->leds[i]; lp3944_configure() 362 switch (pdata->leds[i].type) { lp3944_configure() 366 led_classdev_unregister(&data->leds[i].ldev); lp3944_configure() 367 cancel_work_sync(&data->leds[i].work); lp3944_configure() 423 switch (data->leds[i].type) { lp3944_remove() 426 led_classdev_unregister(&data->leds[i].ldev); lp3944_remove() 427 cancel_work_sync(&data->leds[i].work); lp3944_remove()
|
H A D | leds-rb532.c | 6 * Based on leds-cobalt-qube.c by Florian Fainelly and 11 #include <linux/leds.h>
|
H A D | leds-pca9532.c | 18 #include <linux/leds.h> 22 #include <linux/leds-pca9532.h> 41 struct pca9532_led leds[16]; member in struct:pca9532_data 91 .name = "leds-pca953x", 98 /* We have two pwm/blinkers, but 16 possible leds to drive. Additionally, 101 * leds that are not ON/OFF. 109 if (data->leds[i].type == PCA9532_TYPE_LED && pca9532_calcpwm() 110 data->leds[i].state == PCA9532_PWM0+pwm) { pca9532_calcpwm() 112 b += data->leds[i].ldev.brightness; pca9532_calcpwm() 249 struct pca9532_led *led = &data->leds[offset]; pca9532_gpio_request_pin() 260 struct pca9532_led *led = &data->leds[offset]; pca9532_gpio_set_value() 304 switch (data->leds[i].type) { pca9532_destroy_devices() 309 led_classdev_unregister(&data->leds[i].ldev); pca9532_destroy_devices() 310 cancel_work_sync(&data->leds[i].work); pca9532_destroy_devices() 346 struct pca9532_led *led = &data->leds[i]; pca9532_configure() 347 struct pca9532_led *pled = &pdata->leds[i]; pca9532_configure()
|
H A D | leds-cobalt-qube.c | 8 #include <linux/leds.h> 78 .name = "cobalt-qube-leds", 87 MODULE_ALIAS("platform:cobalt-qube-leds");
|
H A D | leds-gpio.c | 17 #include <linux/leds.h> 104 /* skip leds that aren't available */ create_gpio_led() 158 struct gpio_led_data leds[]; member in struct:gpio_leds_priv 220 ret = create_gpio_led(&led, &priv->leds[priv->num_leds++], device_for_each_child_node() 232 delete_gpio_led(&priv->leds[count]); 237 { .compatible = "gpio-leds", }, 258 ret = create_gpio_led(&pdata->leds[i], gpio_led_probe() 259 &priv->leds[i], gpio_led_probe() 264 delete_gpio_led(&priv->leds[i]); gpio_led_probe() 285 delete_gpio_led(&priv->leds[i]); gpio_led_remove() 294 .name = "leds-gpio", 304 MODULE_ALIAS("platform:leds-gpio");
|
H A D | leds-locomo.c | 2 * linux/drivers/leds/leds-locomo.c 15 #include <linux/leds.h>
|
H A D | leds-pca955x.c | 47 #include <linux/leds.h> 106 struct pca955x_led *leds; member in struct:pca955x 280 dev_info(&client->dev, "leds-pca955x: Using %s %d-bit LED driver at " pca955x_probe() 300 pca955x->leds = devm_kzalloc(&client->dev, pca955x_probe() 302 if (!pca955x->leds) pca955x_probe() 312 pca955x_led = &pca955x->leds[i]; pca955x_probe() 318 if (pdata->leds[i].name) pca955x_probe() 321 pdata->leds[i].name); pca955x_probe() 322 if (pdata->leds[i].default_trigger) pca955x_probe() 324 pdata->leds[i].default_trigger; pca955x_probe() 359 led_classdev_unregister(&pca955x->leds[i].led_cdev); pca955x_probe() 360 cancel_work_sync(&pca955x->leds[i].work); pca955x_probe() 372 led_classdev_unregister(&pca955x->leds[i].led_cdev); pca955x_remove() 373 cancel_work_sync(&pca955x->leds[i].work); pca955x_remove() 381 .name = "leds-pca955x",
|
H A D | leds-lt3593.c | 8 * Based on leds-gpio.c, 21 #include <linux/leds.h> 89 /* skip leds on GPIOs that aren't available */ create_lt3593_led() 151 ret = create_lt3593_led(&pdata->leds[i], &leds_data[i], lt3593_led_probe() 186 .name = "leds-lt3593", 195 MODULE_ALIAS("platform:leds-lt3593");
|
H A D | leds-regulator.c | 2 * leds-regulator.c - LED class driver for regulator driven LEDs. 6 * Inspired by leds-wm8350 driver. 18 #include <linux/leds.h> 19 #include <linux/leds-regulator.h> 215 .name = "leds-regulator", 226 MODULE_ALIAS("platform:leds-regulator");
|
H A D | leds-ipaq-micro.c | 14 #include <linux/leds.h> 132 .name = "ipaq-micro-leds", 140 MODULE_DESCRIPTION("driver for iPAQ Atmel micro leds"); 141 MODULE_ALIAS("platform:ipaq-micro-leds");
|
H A D | leds-s3c24xx.c | 1 /* drivers/leds/leds-s3c24xx.c 16 #include <linux/leds.h> 20 #include <linux/platform_data/leds-s3c24xx.h>
|
H A D | leds-hp6xx.c | 6 * this driver is based on leds-spitz.c by Richard Purdie. 16 #include <linux/leds.h>
|
H A D | leds-net48xx.c | 6 * Based on leds-ams-delta.c 16 #include <linux/leds.h>
|
H A D | leds-tca6507.c | 2 * leds-tca6507 49 * first-served basis. Access can be shared by multiple leds if they 58 * Max at '2', then other leds will have to choose between '2' and 92 #include <linux/leds.h> 97 #include <linux/leds-tca6507.h> 188 } leds[NUM_LEDS]; member in struct:tca6507_chip 637 if (pdata->leds.leds[i].name && pdata->leds.leds[i].flags) { tca6507_probe_gpios() 639 tca->gpio_name[gpios] = pdata->leds.leds[i].name; tca6507_probe_gpios() 726 pdata->leds.leds = tca_leds; 727 pdata->leds.num_leds = NUM_LEDS; 763 if (!pdata || pdata->leds.num_leds != NUM_LEDS) { tca6507_probe() 781 struct tca6507_led *l = tca->leds + i; tca6507_probe() 785 if (pdata->leds.leds[i].name && !pdata->leds.leds[i].flags) { tca6507_probe() 786 l->led_cdev.name = pdata->leds.leds[i].name; tca6507_probe() 788 = pdata->leds.leds[i].default_trigger; tca6507_probe() 808 if (tca->leds[i].led_cdev.name) tca6507_probe() 809 led_classdev_unregister(&tca->leds[i].led_cdev); tca6507_probe() 818 struct tca6507_led *tca_leds = tca->leds; tca6507_remove() 832 .name = "leds-tca6507",
|
H A D | leds-da9052.c | 18 #include <linux/leds.h> 135 led[i].cdev.name = pled->leds[i].name; da9052_led_probe() 140 led[i].led_index = pled->leds[i].flags; da9052_led_probe() 201 .name = "da9052-leds",
|
H A D | leds-versatile.c | 13 #include <linux/leds.h> 101 .name = "versatile-leds",
|
H A D | leds-wrap.c | 6 * Based on leds-net48xx.c 16 #include <linux/leds.h>
|
H A D | leds-adp5520.c | 6 * Loosely derived from leds-da903x: 19 #include <linux/leds.h> 133 cur_led = &pdata->leds[i]; adp5520_led_probe()
|
H A D | leds-asic3.c | 11 #include <linux/leds.h> 170 .name = "leds-asic3", 180 MODULE_ALIAS("platform:leds-asic3");
|
H A D | leds-netxbig.c | 2 * leds-netxbig.c - Driver for the 2Big and 5Big Network series LEDs 29 #include <linux/leds.h> 30 #include <linux/platform_data/leds-kirkwood-netxbig.h> 369 ret = create_netxbig_led(pdev, &leds_data[i], &pdata->leds[i]); netxbig_led_probe() 406 .name = "leds-netxbig", 415 MODULE_ALIAS("platform:leds-netxbig");
|
H A D | led-core.c | 15 #include <linux/leds.h> 20 #include "leds.h"
|
H A D | leds-cobalt-raq.c | 23 #include <linux/leds.h> 126 .name = "cobalt-raq-leds",
|
H A D | leds-fsg.c | 8 * Based on leds-spitz.c 20 #include <linux/leds.h>
|
H A D | led-class.c | 17 #include <linux/leds.h> 23 #include "leds.h" 269 /* add to the list of leds */ led_classdev_register() 387 leds_class = class_create(THIS_MODULE, "leds"); leds_init()
|
H A D | leds.h | 18 #include <linux/leds.h>
|
H A D | leds-clevo-mail.c | 7 #include <linux/leds.h> 119 /* Special case: the leds subsystem requested us to clevo_mail_led_blink()
|
H A D | leds-lp55xx-common.h | 12 * Derived from leds-lp5521.c, leds-lp5523.c
|
H A D | leds-syscon.c | 30 #include <linux/leds.h> 80 /* Only check for register-bit-leds */ for_each_available_child_of_node()
|
H A D | leds-88pm860x.c | 17 #include <linux/leds.h> 135 nproot = of_get_child_by_name(pdev->dev.parent->of_node, "leds"); pm860x_led_dt_init() 137 dev_err(&pdev->dev, "failed to find leds node\n"); pm860x_led_dt_init()
|
H A D | leds-lp8501.c | 18 #include <linux/leds.h> 22 #include <linux/platform_data/leds-lp55xx.h> 25 #include "leds-lp55xx-common.h"
|
H A D | leds-lp55xx-common.c | 12 * Derived from leds-lp5521.c, leds-lp5523.c 19 #include <linux/leds.h> 21 #include <linux/platform_data/leds-lp55xx.h> 26 #include "leds-lp55xx-common.h"
|
/linux-4.1.27/arch/m68k/sun3/ |
H A D | Makefile | 7 obj-$(CONFIG_SUN3) += config.o mmu_emu.o leds.o dvma.o intersil.o
|
/linux-4.1.27/drivers/net/wireless/ath/carl9170/ |
H A D | led.c | 78 if (ar->leds[i].registered) { carl9170_led_update() 79 if (ar->leds[i].last_state || carl9170_led_update() 80 ar->leds[i].toggled) { carl9170_led_update() 82 if (ar->leds[i].toggled) carl9170_led_update() 83 tmp = 70 + 200 / (ar->leds[i].toggled); carl9170_led_update() 89 ar->leds[i].toggled = 0; carl9170_led_update() 129 snprintf(ar->leds[i].name, sizeof(ar->leds[i].name), carl9170_led_register_led() 132 ar->leds[i].ar = ar; carl9170_led_register_led() 133 ar->leds[i].l.name = ar->leds[i].name; carl9170_led_register_led() 134 ar->leds[i].l.brightness_set = carl9170_led_set_brightness; carl9170_led_register_led() 135 ar->leds[i].l.brightness = 0; carl9170_led_register_led() 136 ar->leds[i].l.default_trigger = trigger; carl9170_led_register_led() 139 &ar->leds[i].l); carl9170_led_register_led() 142 ar->leds[i].name, err); carl9170_led_register_led() 144 ar->leds[i].registered = true; carl9170_led_register_led() 155 if (ar->leds[i].registered) { carl9170_led_unregister() 156 led_classdev_unregister(&ar->leds[i].l); carl9170_led_unregister() 157 ar->leds[i].registered = false; carl9170_led_unregister() 158 ar->leds[i].toggled = 0; carl9170_led_unregister()
|
/linux-4.1.27/drivers/net/wireless/b43/ |
H A D | leds.c | 30 #include "leds.h" 90 struct b43_leds *leds = container_of(work, struct b43_leds, work); b43_leds_work() local 91 struct b43_wl *wl = container_of(leds, struct b43_wl, leds); b43_leds_work() 99 b43_led_update(dev, &wl->leds.led_tx); b43_leds_work() 100 b43_led_update(dev, &wl->leds.led_rx); b43_leds_work() 101 b43_led_update(dev, &wl->leds.led_radio); b43_leds_work() 102 b43_led_update(dev, &wl->leds.led_assoc); b43_leds_work() 115 if (likely(!wl->leds.stop)) { b43_led_brightness_set() 117 ieee80211_queue_work(wl->hw, &wl->leds.work); b43_led_brightness_set() 179 b43_register_led(dev, &dev->wl->leds.led_tx, name, b43_map_led() 184 b43_register_led(dev, &dev->wl->leds.led_rx, name, b43_map_led() 194 b43_register_led(dev, &dev->wl->leds.led_radio, name, b43_map_led() 202 b43_register_led(dev, &dev->wl->leds.led_assoc, name, b43_map_led() 266 led = &dev->wl->leds.led_radio; b43_leds_init() 279 /* Initialize TX/RX/ASSOC leds */ b43_leds_init() 280 led = &dev->wl->leds.led_tx; b43_leds_init() 286 led = &dev->wl->leds.led_rx; b43_leds_init() 292 led = &dev->wl->leds.led_assoc; b43_leds_init() 315 dev->wl->leds.stop = 0; b43_leds_init() 320 struct b43_leds *leds = &dev->wl->leds; b43_leds_exit() local 322 b43_led_turn_off(dev, leds->led_tx.index, leds->led_tx.activelow); b43_leds_exit() 323 b43_led_turn_off(dev, leds->led_rx.index, leds->led_rx.activelow); b43_leds_exit() 324 b43_led_turn_off(dev, leds->led_assoc.index, leds->led_assoc.activelow); b43_leds_exit() 325 b43_led_turn_off(dev, leds->led_radio.index, leds->led_radio.activelow); b43_leds_exit() 330 struct b43_leds *leds = &dev->wl->leds; b43_leds_stop() local 332 leds->stop = 1; b43_leds_stop() 333 cancel_work_sync(&leds->work); b43_leds_stop() 342 INIT_WORK(&dev->wl->leds.work, b43_leds_work); b43_leds_register() 353 struct b43_leds *leds = &wl->leds; b43_leds_unregister() local 355 b43_unregister_led(&leds->led_tx); b43_leds_unregister() 356 b43_unregister_led(&leds->led_rx); b43_leds_unregister() 357 b43_unregister_led(&leds->led_assoc); b43_leds_unregister() 358 b43_unregister_led(&leds->led_radio); b43_leds_unregister()
|
H A D | leds.h | 10 #include <linux/leds.h>
|
/linux-4.1.27/arch/mips/ath79/ |
H A D | dev-leds-gpio.c | 16 #include "dev-leds-gpio.h" 20 struct gpio_led *leds) ath79_register_leds_gpio() 27 p = kmemdup(leds, num_leds * sizeof(*p), GFP_KERNEL); ath79_register_leds_gpio() 31 pdev = platform_device_alloc("leds-gpio", id); ath79_register_leds_gpio() 37 pdata.leds = p; ath79_register_leds_gpio() 18 ath79_register_leds_gpio(int id, unsigned num_leds, struct gpio_led *leds) ath79_register_leds_gpio() argument
|
H A D | dev-leds-gpio.h | 15 #include <linux/leds.h> 19 struct gpio_led *leds);
|
H A D | Makefile | 21 obj-$(CONFIG_ATH79_DEV_LEDS_GPIO) += dev-leds-gpio.o
|
H A D | mach-ap121.c | 13 #include "dev-leds-gpio.h"
|
H A D | mach-ap81.c | 15 #include "dev-leds-gpio.h"
|
H A D | mach-pb44.c | 19 #include "dev-leds-gpio.h"
|
H A D | mach-ubnt-xm.c | 21 #include "dev-leds-gpio.h"
|
H A D | mach-db120.c | 26 #include "dev-leds-gpio.h"
|
/linux-4.1.27/drivers/net/wireless/p54/ |
H A D | led.c | 24 #include <linux/leds.h> 41 for (i = 0; i < ARRAY_SIZE(priv->leds); i++) p54_update_leds() 42 if (priv->leds[i].toggled) { p54_update_leds() 45 tmp = 70 + 200 / (priv->leds[i].toggled); p54_update_leds() 49 if (priv->leds[i].led_dev.brightness == LED_OFF) p54_update_leds() 52 priv->leds[i].toggled = p54_update_leds() 53 !!priv->leds[i].led_dev.brightness; p54_update_leds() 88 struct p54_led_dev *led = &priv->leds[led_index]; p54_register_led() 152 for (i = 0; i < ARRAY_SIZE(priv->leds); i++) { p54_unregister_leds() 153 if (priv->leds[i].registered) { p54_unregister_leds() 154 priv->leds[i].registered = false; p54_unregister_leds() 155 priv->leds[i].toggled = 0; p54_unregister_leds() 156 led_classdev_unregister(&priv->leds[i].led_dev); p54_unregister_leds()
|
/linux-4.1.27/arch/arm/mach-pxa/ |
H A D | csb701.c | 6 #include <linux/leds.h> 42 .leds = csb701_leds, 47 .name = "leds-gpio",
|
H A D | pcm027.c | 29 #include <linux/leds.h> 193 .leds = pcm027_led 197 .name = "leds-gpio",
|
H A D | colibri-pxa270-income.c | 103 .leds = income_gpio_leds, 108 .name = "leds-gpio",
|
H A D | cm-x2xx.c | 19 #include <linux/leds.h> 51 /* leds */ 160 .leds = cmx2xx_leds, 164 .name = "leds-gpio",
|
H A D | palmld.c | 262 .leds = gpio_leds, 267 .name = "leds-gpio",
|
/linux-4.1.27/arch/arm/plat-omap/ |
H A D | debug-leds.c | 2 * linux/arch/arm/plat-omap/debug-leds.c 15 #include <linux/leds.h> 35 u16 leds; member in struct:h2p2_dbg_fpga 88 reg = readw_relaxed(&fpga->leds); dbg_led_set() 93 writew_relaxed(reg, &fpga->leds); dbg_led_set() 101 reg = readw_relaxed(&fpga->leds); dbg_led_get() 115 writew_relaxed(0xff, &fpga->leds); fpga_probe() 141 fpga_led_state = readw_relaxed(&fpga->leds); fpga_suspend_noirq() 142 writew_relaxed(0xff, &fpga->leds); fpga_suspend_noirq() 149 writew_relaxed(~fpga_led_state, &fpga->leds); fpga_resume_noirq()
|
H A D | Makefile | 13 obj-$(CONFIG_OMAP_DEBUG_LEDS) += debug-leds.o
|
/linux-4.1.27/include/linux/platform_data/ |
H A D | leds-lm355x.h | 12 #define LM355x_NAME "leds-lm355x" 13 #define LM3554_NAME "leds-lm3554" 14 #define LM3556_NAME "leds-lm3556"
|
H A D | leds-kirkwood-ns2.h | 21 struct ns2_led *leds; member in struct:ns2_led_platform_data
|
H A D | leds-omap.h | 19 struct omap_led_config *leds; member in struct:omap_led_platform_data
|
H A D | leds-pca963x.h | 24 #include <linux/leds.h> 37 struct led_platform_data leds; member in struct:pca963x_platform_data
|
H A D | leds-lm3642.h | 15 #define LM3642_NAME "leds-lm3642"
|
H A D | leds-kirkwood-netxbig.h | 49 struct netxbig_led *leds; member in struct:netxbig_led_platform_data
|
H A D | leds-lp55xx.h | 12 * Derived from leds-lp5521.h, leds-lp5523.h
|
H A D | atmel.h | 14 #include <linux/leds.h>
|
/linux-4.1.27/arch/x86/platform/geode/ |
H A D | geos.c | 9 * TODO: There are large similarities with leds-net5501.c 11 * In the future leds-net5501.c should be migrated over to platform 23 #include <linux/leds.h> 81 .leds = geos_leds, 85 .name = "leds-gpio", 97 /* Setup LED control through leds-gpio driver */ register_geos()
|
H A D | net5501.c | 24 #include <linux/leds.h> 72 .leds = net5501_leds, 76 .name = "leds-gpio", 88 /* Setup LED control through leds-gpio driver */ register_net5501()
|
H A D | alix.c | 11 * TODO: There are large similarities with leds-net5501.c 13 * In the future leds-net5501.c should be migrated over to platform 25 #include <linux/leds.h> 92 .leds = alix_leds, 96 .name = "leds-gpio", 108 /* Setup LED control through leds-gpio driver */ register_alix()
|
/linux-4.1.27/arch/mips/bcm47xx/ |
H A D | bcm47xx_private.h | 19 /* leds.c */
|
/linux-4.1.27/drivers/leds/trigger/ |
H A D | ledtrig-default-on.c | 17 #include <linux/leds.h> 18 #include "../leds.h"
|
H A D | ledtrig-ide-disk.c | 17 #include <linux/leds.h>
|
H A D | ledtrig-camera.c | 19 #include <linux/leds.h>
|
H A D | ledtrig-gpio.c | 18 #include <linux/leds.h> 20 #include "../leds.h" 28 unsigned gpio; /* gpio that triggers the leds */
|
H A D | ledtrig-transient.c | 18 * Documentation/leds/ledtrig-transient.txt for details 27 #include <linux/leds.h> 28 #include "../leds.h"
|
H A D | ledtrig-backlight.c | 18 #include <linux/leds.h> 19 #include "../leds.h"
|
H A D | ledtrig-heartbeat.c | 20 #include <linux/leds.h> 22 #include "../leds.h"
|
H A D | ledtrig-oneshot.c | 20 #include <linux/leds.h> 21 #include "../leds.h"
|
H A D | ledtrig-timer.c | 19 #include <linux/leds.h>
|
/linux-4.1.27/arch/mips/include/asm/mach-bcm63xx/ |
H A D | board_bcm963xx.h | 6 #include <linux/leds.h> 49 struct gpio_led leds[5]; member in struct:board_info
|
/linux-4.1.27/include/linux/mfd/ |
H A D | htc-pasic3.h | 16 #include <linux/leds.h> 46 struct pasic3_led *leds; member in struct:pasic3_leds_machinfo
|
H A D | lm3533.h | 86 struct lm3533_led_platform_data *leds; member in struct:lm3533_platform_data
|
/linux-4.1.27/arch/mips/mti-sead3/ |
H A D | Makefile | 15 obj-y += leds-sead3.o
|
H A D | sead3-platform.c | 12 #include <linux/leds.h> 127 .leds = led_data_info
|
H A D | leds-sead3.c | 13 #include <linux/leds.h>
|
/linux-4.1.27/arch/ia64/sn/kernel/ |
H A D | idle.c | 9 #include <asm/sn/leds.h>
|
/linux-4.1.27/arch/arm/mach-gemini/ |
H A D | board-nas4220b.c | 18 #include <linux/leds.h> 49 .leds = ib4220b_leds, 53 .name = "leds-gpio",
|
H A D | board-rut1xx.c | 14 #include <linux/leds.h> 64 .leds = rut100_leds, 68 .name = "leds-gpio",
|
H A D | board-wbd111.c | 14 #include <linux/leds.h> 72 .leds = wbd111_leds, 76 .name = "leds-gpio",
|
H A D | board-wbd222.c | 14 #include <linux/leds.h> 72 .leds = wbd222_leds, 76 .name = "leds-gpio",
|
/linux-4.1.27/arch/mips/bcm63xx/boards/ |
H A D | board_bcm963xx.c | 59 .leds = { 89 .leds = { 137 .leds = { 178 .leds = { 238 .leds = { 299 .leds = { 353 .leds = { 411 .leds = { 554 .leds = { 606 .leds = { 867 .name = "leds-gpio", 923 bcm63xx_led_data.num_leds = ARRAY_SIZE(board.leds); board_register_devices() 924 bcm63xx_led_data.leds = board.leds; board_register_devices()
|
/linux-4.1.27/drivers/net/wireless/brcm80211/brcmsmac/ |
H A D | led.c | 10 /* number of leds */ 59 u8 *leds[] = { &sprom->gpio0, brcms_led_register() local 75 u8 led = *leds[i]; brcms_led_register()
|
/linux-4.1.27/arch/unicore32/kernel/ |
H A D | gpio.c | 21 #include <linux/leds.h> 33 .leds = (void *) puv3_gpio_leds, 37 .name = "leds-gpio",
|
/linux-4.1.27/drivers/hid/usbhid/ |
H A D | usbkbd.c | 85 * @leds: Buffer for the @led URB 88 * @leds_lock: spinlock that protects @leds, @newleds, and @led_urb_submitted 104 unsigned char *leds; member in struct:usb_kbd 185 if (*(kbd->leds) == kbd->newleds){ usb_kbd_event() 190 *(kbd->leds) = kbd->newleds; usb_kbd_event() 194 pr_err("usb_submit_urb(leds) failed\n"); usb_kbd_event() 214 if (*(kbd->leds) == kbd->newleds){ usb_kbd_led() 220 *(kbd->leds) = kbd->newleds; usb_kbd_led() 224 hid_err(urb->dev, "usb_submit_urb(leds) failed\n"); usb_kbd_led() 259 if (!(kbd->leds = usb_alloc_coherent(dev, 1, GFP_ATOMIC, &kbd->leds_dma))) usb_kbd_alloc_mem() 271 usb_free_coherent(dev, 1, kbd->leds, kbd->leds_dma); usb_kbd_free_mem() 361 (void *) kbd->cr, kbd->leds, 1, usb_kbd_probe()
|
/linux-4.1.27/arch/sh/boards/mach-rsk/ |
H A D | devices-rsk7203.c | 18 #include <linux/leds.h> 77 .leds = rsk7203_gpio_leds, 82 .name = "leds-gpio",
|
/linux-4.1.27/arch/avr32/boards/atstk1000/ |
H A D | setup.c | 70 #include <linux/leds.h> 101 .leds = stk1000_j2_led, 105 .name = "leds-gpio",
|
/linux-4.1.27/arch/arm/mach-orion5x/ |
H A D | board-d2net.c | 18 #include <linux/leds.h> 72 .leds = d2net_leds, 76 .name = "leds-gpio",
|
H A D | ls-chl-setup.c | 16 #include <linux/leds.h> 109 .leds = lschl_led_pins, 114 .name = "leds-gpio",
|
H A D | ls_hgl-setup.c | 16 #include <linux/leds.h> 109 .leds = ls_hgl_led_pins, 114 .name = "leds-gpio",
|
H A D | lsmini-setup.c | 16 #include <linux/leds.h> 108 .leds = lsmini_led_pins, 113 .name = "leds-gpio",
|
H A D | mv2120-setup.c | 17 #include <linux/leds.h> 171 .leds = mv2120_led_pins, 176 .name = "leds-gpio",
|
H A D | rd88f5182-setup.c | 22 #include <linux/leds.h> 95 .leds = rd88f5182_gpio_led_pins, 100 .name = "leds-gpio",
|
H A D | ts409-setup.c | 22 #include <linux/leds.h> 193 .leds = ts409_led_pins, 198 .name = "leds-gpio",
|
H A D | wrt350n-v2-setup.c | 18 #include <linux/leds.h> 57 .leds = wrt350n_v2_led_pins, 62 .name = "leds-gpio",
|
H A D | net2big-setup.c | 18 #include <linux/leds.h> 192 * single GPIO line and are compatible with the leds-gpio driver. 238 .leds = net2big_leds, 242 .name = "leds-gpio",
|
H A D | dns323-setup.c | 25 #include <linux/leds.h> 293 .leds = dns323ab_leds, 299 .leds = dns323c_leds, 304 .name = "leds-gpio", 680 * controlled via leds-gpio. dns323_init()
|
/linux-4.1.27/arch/arm/mach-s3c64xx/ |
H A D | mach-smartq5.c | 17 #include <linux/leds.h> 52 .leds = smartq5_leds, 56 .name = "leds-gpio",
|
H A D | mach-smartq7.c | 17 #include <linux/leds.h> 52 .leds = smartq7_leds, 56 .name = "leds-gpio",
|
H A D | mach-hmt.c | 21 #include <linux/leds.h> 227 .leds = hmt_leds, 231 .name = "leds-gpio",
|
/linux-4.1.27/arch/arm/mach-sa1100/ |
H A D | lart.c | 10 #include <linux/leds.h> 139 .leds = lart_gpio_leds, 144 .name = "leds-gpio",
|
H A D | cerf.c | 22 #include <linux/leds.h> 74 .leds = cerf_gpio_leds, 79 .name = "leds-gpio",
|
H A D | hackkit.c | 27 #include <linux/leds.h> 205 .leds = hackkit_gpio_leds, 210 .name = "leds-gpio",
|
H A D | badge4.c | 27 #include <linux/leds.h> 96 .leds = badge4_gpio_leds, 101 .name = "leds-gpio",
|
H A D | simpad.c | 36 #include <linux/leds.h> 312 .leds = simpad_leds, 316 .name = "leds-gpio",
|
/linux-4.1.27/arch/arm/mach-omap2/ |
H A D | board-rx51.c | 21 #include <linux/leds.h> 50 .leds = gpio_leds, 55 .name = "leds-gpio",
|
H A D | board-omap3beagle.c | 22 #include <linux/leds.h> 77 .leds = pwm_leds, 435 .leds = gpio_leds, 440 .name = "leds-gpio",
|
/linux-4.1.27/drivers/media/radio/ |
H A D | radio-shark2.c | 30 #include <linux/leds.h> 68 struct led_classdev leds[NO_LEDS]; member in struct:shark_device 175 container_of(led_cdev, struct shark_device, leds[BLUE_LED]); shark_led_set_blue() 186 container_of(led_cdev, struct shark_device, leds[RED_LED]); shark_led_set_red() 215 shark->leds[i] = shark_led_templates[i]; shark_register_leds() 217 shark->leds[i].name, shark->v4l2_dev.name); shark_register_leds() 218 shark->leds[i].name = shark->led_names[i]; shark_register_leds() 219 retval = led_classdev_register(dev, &shark->leds[i]); shark_register_leds() 235 led_classdev_unregister(&shark->leds[i]); shark_unregister_leds()
|
H A D | radio-shark.c | 30 #include <linux/leds.h> 72 struct led_classdev leds[NO_LEDS]; member in struct:shark_device 190 container_of(led_cdev, struct shark_device, leds[BLUE_LED]); shark_led_set_blue() 202 struct shark_device, leds[BLUE_PULSE_LED]); shark_led_set_blue_pulse() 214 container_of(led_cdev, struct shark_device, leds[RED_LED]); shark_led_set_red() 249 shark->leds[i] = shark_led_templates[i]; shark_register_leds() 251 shark->leds[i].name, shark->v4l2_dev.name); shark_register_leds() 252 shark->leds[i].name = shark->led_names[i]; shark_register_leds() 253 retval = led_classdev_register(dev, &shark->leds[i]); shark_register_leds() 269 led_classdev_unregister(&shark->leds[i]); shark_unregister_leds()
|
/linux-4.1.27/arch/mips/cobalt/ |
H A D | led.c | 40 pdev = platform_device_alloc("cobalt-qube-leds", -1); cobalt_led_add() 42 pdev = platform_device_alloc("cobalt-raq-leds", -1); cobalt_led_add()
|
H A D | reset.c | 13 #include <linux/leds.h>
|
/linux-4.1.27/drivers/isdn/hisax/ |
H A D | st5481_b.c | 149 u_char leds = adapter->leds; led_blink() local 157 leds |= GREEN_LED; led_blink() 159 leds &= ~GREEN_LED; led_blink() 162 st5481_usb_device_ctrl_msg(adapter, GPIO_OUT, leds, NULL, NULL); led_blink() 236 adapter->leds |= B1_LED; st5481B_mode() 238 adapter->leds |= B2_LED; st5481B_mode() 250 adapter->leds &= ~B1_LED; st5481B_mode() 252 adapter->leds &= ~B2_LED; st5481B_mode() 255 st5481_usb_device_ctrl_msg(adapter, GPIO_OUT, adapter->leds, NULL, NULL); st5481B_mode()
|
/linux-4.1.27/drivers/hid/ |
H A D | hid-gt683r.c | 21 #include <linux/leds.h> 151 static int gt683r_leds_set(struct gt683r_led *led, u8 leds) gt683r_leds_set() argument 163 buffer[3] = leds; gt683r_leds_set() 193 u8 leds = 0; gt683r_led_work() local 201 leds |= BIT(i); gt683r_led_work() 204 if (gt683r_leds_set(led, leds)) gt683r_led_work() 207 if (leds) gt683r_led_work()
|
H A D | hid-steelseries.c | 25 /* the last element is used for setting all leds simultaneously */ 112 static void steelseries_srws1_set_leds(struct hid_device *hdev, __u16 leds) steelseries_srws1_set_leds() argument 119 value[1] = leds & 0xFF; steelseries_srws1_set_leds() 120 value[2] = leds >> 8; steelseries_srws1_set_leds()
|
H A D | hid-wiimote.h | 20 #include <linux/leds.h> 147 struct led_classdev *leds[4]; member in struct:wiimote_data 266 extern void wiiproto_req_leds(struct wiimote_data *wdata, int leds);
|
H A D | hid-sony.c | 33 #include <linux/leds.h> 816 struct led_classdev *leds[MAX_LEDS]; member in struct:sony_sc 1257 static void buzz_set_leds(struct hid_device *hdev, const __u8 *leds) buzz_set_leds() argument 1266 value[1] = leds[0] ? 0xff : 0x00; buzz_set_leds() 1267 value[2] = leds[1] ? 0xff : 0x00; buzz_set_leds() 1268 value[3] = leds[2] ? 0xff : 0x00; buzz_set_leds() 1269 value[4] = leds[3] ? 0xff : 0x00; buzz_set_leds() 1275 static void sony_set_leds(struct sony_sc *sc, const __u8 *leds, int count) sony_set_leds() argument 1282 buzz_set_leds(sc->hdev, leds); sony_set_leds() 1285 sc->led_state[n] = leds[n]; sony_set_leds() 1316 if (led == drv_data->leds[n] && (force_update || sony_led_set_brightness() 1349 if (led == drv_data->leds[n]) sony_led_get_brightness() 1384 if (led == drv_data->leds[n]) sony_led_blink_set() 1411 led = sc->leds[n]; sony_leds_remove() 1412 sc->leds[n] = NULL; sony_leds_remove() 1502 sc->leds[n] = led; sony_leds_init() 1507 sc->leds[n] = NULL; sony_leds_init() 1553 /* Set flag for all leds off, required for 3rd party INTEC controller */ sixaxis_state_worker()
|
/linux-4.1.27/drivers/mfd/ |
H A D | lp3943.c | 19 * LP3943 MFD ---- GPIO expander leds-gpio eg) HW enable pin 21 * --- PWM generator leds-pwm eg) PWM input 26 * LEDs can be controlled with legacy leds-gpio(static brightness) or 27 * leds-pwm drivers(dynamic brightness control).
|
H A D | htc-pasic3.c | 47 EXPORT_SYMBOL(pasic3_write_register); /* for leds-pasic3 */ 62 EXPORT_SYMBOL(pasic3_read_register); /* for leds-pasic3 */ 69 .name = "leds-pasic3",
|
H A D | adp5520.c | 4 * LEDs : drivers/led/leds-adp5520 274 if (pdata->leds) { adp5520_probe() 276 chip->id, pdata->leds, sizeof(*pdata->leds)); adp5520_probe()
|
H A D | lm3533-core.c | 70 .name = "lm3533-leds", 74 .name = "lm3533-leds", 78 .name = "lm3533-leds", 82 .name = "lm3533-leds", 443 if (!pdata->leds || pdata->num_leds == 0) lm3533_device_led_init() 450 lm3533_led_devs[i].platform_data = &pdata->leds[i]; lm3533_device_led_init() 451 lm3533_led_devs[i].pdata_size = sizeof(pdata->leds[i]); lm3533_device_led_init()
|
H A D | dm355evm_msp.c | 19 #include <linux/leds.h> 101 /* eight leds */ 289 .leds = evm_leds, add_children() 300 child = add_child(client, "leds-gpio", add_children()
|
/linux-4.1.27/drivers/net/wireless/b43legacy/ |
H A D | leds.h | 9 #include <linux/leds.h>
|
/linux-4.1.27/arch/sparc/kernel/ |
H A D | central.c | 104 p->leds_resource.name = "leds"; clock_board_probe() 106 p->leds_pdev.name = "sunfire-clockboard-leds"; clock_board_probe() 198 p->leds_resource.name = "leds"; fhc_probe() 200 p->leds_pdev.name = "sunfire-fhc-leds"; fhc_probe()
|
/linux-4.1.27/drivers/usb/common/ |
H A D | led.c | 15 #include <linux/leds.h>
|
/linux-4.1.27/arch/ia64/sn/kernel/sn2/ |
H A D | timer.c | 19 #include <asm/sn/leds.h>
|
H A D | timer_interrupt.c | 32 #include <asm/sn/leds.h>
|
/linux-4.1.27/arch/arm/mach-davinci/ |
H A D | board-neuros-osd2.c | 17 * with PATA interface, two muxed red-green leds. 141 .leds = ntosd2_leds, 145 .name = "leds-gpio", 213 * gpio(10,11,12,13) for leds any combination of bits works except davinci_ntosd2_init()
|
H A D | board-dm646x-evm.c | 21 #include <linux/leds.h> 180 .leds = evm_leds, 188 struct gpio_led *leds = evm_leds; evm_led_setup() local 192 leds->gpio = gpio++; evm_led_setup() 193 leds++; evm_led_setup() 196 evm_led_dev = platform_device_alloc("leds-gpio", 0); evm_led_setup()
|
H A D | board-dm644x-evm.c | 296 .leds = evm_leds, 304 struct gpio_led *leds = evm_leds; evm_led_setup() local 308 leds->gpio = gpio++; evm_led_setup() 309 leds++; evm_led_setup() 315 evm_led_dev = platform_device_alloc("leds-gpio", 0); evm_led_setup()
|
/linux-4.1.27/arch/arm/mach-footbridge/ |
H A D | isa-rtc.c | 12 * 28-Dec-1998 APH Made leds optional
|
H A D | ebsa285.c | 10 #include <linux/leds.h>
|
/linux-4.1.27/arch/arm/mach-mvebu/ |
H A D | netxbig.c | 22 #include <linux/platform_data/leds-kirkwood-netxbig.h> 150 .leds = net2big_v2_leds_ctrl, 173 .leds = net5big_v2_leds_ctrl, 178 .name = "leds-netxbig",
|
/linux-4.1.27/include/linux/can/ |
H A D | led.h | 13 #include <linux/leds.h>
|
/linux-4.1.27/sound/usb/line6/ |
H A D | toneport.c | 17 #include <linux/leds.h> 64 struct toneport_led leds[2]; member in struct:usb_line6_toneport 300 (toneport->leds[0].dev.brightness << 8) | 0x0002, toneport_update_led() 301 toneport->leds[1].dev.brightness); toneport_update_led() 307 struct toneport_led *leds = toneport_led_brightness_set() local 309 toneport_update_led(leds->toneport); toneport_led_brightness_set() 318 struct toneport_led *led = &toneport->leds[i]; toneport_init_leds() 343 led = &toneport->leds[i]; toneport_remove_leds()
|
/linux-4.1.27/arch/mips/txx9/rbtx4927/ |
H A D | setup.c | 52 #include <linux/leds.h> 310 static struct gpio_led leds[] = { rbtx4927_gpioled_init() local 315 .num_leds = ARRAY_SIZE(leds), rbtx4927_gpioled_init() 316 .leds = leds, rbtx4927_gpioled_init() 318 struct platform_device *pdev = platform_device_alloc("leds-gpio", 0); rbtx4927_gpioled_init()
|
/linux-4.1.27/arch/cris/include/uapi/asm/ |
H A D | etraxgpio.h | 8 * /dev/leds minor 2, Access to leds depending on kernelconfig 21 * /dev/leds minor 2, Access to leds depending on kernelconfig 28 * /dev/leds minor 2, Access to leds depending on kernelconfig
|
/linux-4.1.27/arch/mips/ar7/ |
H A D | platform.c | 32 #include <linux/leds.h> 501 .name = "leds-gpio", 513 ar7_led_data.leds = default_leds; detect_leds() 525 ar7_led_data.leds = fb_fon_leds; detect_leds() 528 ar7_led_data.leds = fb_sl_leds; detect_leds() 532 ar7_led_data.leds = dsl502t_leds; detect_leds() 535 ar7_led_data.leds = dg834g_leds; detect_leds() 538 ar7_led_data.leds = titan_leds; detect_leds() 541 ar7_led_data.leds = gt701_leds; detect_leds() 707 pr_warn("unable to register leds: %d\n", res); ar7_register_devices()
|
/linux-4.1.27/drivers/parisc/ |
H A D | led.c | 281 static void led_ASP_driver(unsigned char leds) led_ASP_driver() argument 285 leds = ~leds; led_ASP_driver() 288 value = (leds & 0x80) >> 7; led_ASP_driver() 291 leds <<= 1; led_ASP_driver() 301 static void led_LASI_driver(unsigned char leds) led_LASI_driver() argument 303 leds = ~leds; led_LASI_driver() 304 gsc_writeb( leds, LED_DATA_REG ); led_LASI_driver() 313 static void led_LCD_driver(unsigned char leds) led_LCD_driver() argument 331 if ((leds & mask[i]) != (lastleds & mask[i])) led_LCD_driver() 336 gsc_writeb( leds & mask[i] ? blockp[i]->on : led_LCD_driver()
|
/linux-4.1.27/arch/mips/alchemy/ |
H A D | board-gpr.c | 29 #include <linux/leds.h> 206 .leds = gpr_gpio_leds, 210 .name = "leds-gpio",
|
H A D | board-mtx1.c | 25 #include <linux/leds.h> 159 .leds = default_leds, 163 .name = "leds-gpio",
|
/linux-4.1.27/arch/arm/mach-ixp4xx/ |
H A D | omixp-setup.c | 20 #include <linux/leds.h> 164 .leds = mic256_led_pins, 168 .name = "leds-gpio",
|
H A D | dsmg600-setup.c | 25 #include <linux/leds.h> 105 .leds = dsmg600_led_pins, 109 .name = "leds-gpio",
|
H A D | nas100d-setup.c | 27 #include <linux/leds.h> 94 .leds = nas100d_led_pins, 98 .name = "leds-gpio",
|
H A D | nslu2-setup.c | 24 #include <linux/leds.h> 105 .leds = nslu2_led_pins, 109 .name = "leds-gpio",
|
/linux-4.1.27/arch/arm/mach-omap1/ |
H A D | board-palmtt.c | 26 #include <linux/leds.h> 31 #include <linux/platform_data/leds-omap.h> 193 .leds = palmtt_led_config,
|
H A D | Makefile | 25 led-y := leds.o
|
H A D | board-osk.c | 35 #include <linux/leds.h> 183 .leds = tps_leds, 187 .name = "leds-gpio", 215 /* Let LED1 (D9) blink; leds-gpio may override it */ osk_tps_setup() 402 .leds = mistral_gpio_led_pins, 407 .name = "leds-gpio",
|
H A D | board-h2.c | 35 #include <linux/leds.h> 291 .leds = h2_gpio_led_pins, 296 .name = "leds-gpio",
|
H A D | board-h3.c | 35 #include <linux/leds.h> 343 .leds = h3_gpio_led_pins, 348 .name = "leds-gpio",
|
/linux-4.1.27/drivers/input/keyboard/ |
H A D | qt2160.c | 22 #include <linux/leds.h> 76 struct qt2160_led leds[QT2160_NUM_LEDS_X]; member in struct:qt2160_data 299 struct qt2160_led *led = &qt2160->leds[i]; qt2160_register_leds() 328 led_classdev_unregister(&qt2160->leds[i].cdev); qt2160_unregister_leds() 329 cancel_work_sync(&qt2160->leds[i].work); qt2160_unregister_leds() 445 dev_err(&client->dev, "Failed to register leds\n"); qt2160_probe()
|
/linux-4.1.27/arch/arm/mach-imx/ |
H A D | mx31lite-db.c | 27 #include <linux/leds.h> 181 .leds = litekit_leds,
|
H A D | eukrea_mbimxsd35-baseboard.c | 27 #include <linux/leds.h> 203 .leds = eukrea_mbimxsd_leds,
|
/linux-4.1.27/Documentation/laptops/ |
H A D | freefall.c | 78 write_int("/sys/class/leds/hp::hddprotect/brightness", on); set_led() 132 if (stat("/sys/class/leds/hp::hddprotect/brightness", &st)) main()
|
/linux-4.1.27/include/linux/i2c/ |
H A D | adp8860.h | 13 #include <linux/leds.h> 130 struct led_info *leds; member in struct:adp8860_backlight_platform_data
|
/linux-4.1.27/drivers/staging/nvec/ |
H A D | nvec_paz00.c | 17 #include <linux/leds.h>
|
/linux-4.1.27/arch/mn10300/unit-asb2364/include/unit/ |
H A D | leds.h | 1 /* Unit-specific leds
|
/linux-4.1.27/arch/m68k/hp300/ |
H A D | time.c | 44 /* Turn off the network and SCSI leds */ hp300_tick()
|
/linux-4.1.27/arch/m68k/include/asm/ |
H A D | nettel.h | 68 * NETtel/5206e based hardware has leds on latch on CS3.
|
/linux-4.1.27/net/mac80211/ |
H A D | led.h | 11 #include <linux/leds.h>
|
/linux-4.1.27/include/linux/mfd/da9063/ |
H A D | core.h | 25 #define DA9063_DRVNAME_LEDS "da9063-leds"
|
/linux-4.1.27/drivers/net/can/sja1000/ |
H A D | peak_pcmcia.c | 166 * start timer which controls leds state 175 * stop the timer which controls leds state 198 /* sja1000 register changes control the leds state */ pcan_write_canreg() 382 * set leds state according to channel activity 420 /* write the new leds state */ pcan_led_timer() 473 * free all resources used by the channels and switch off leds and can power 528 /* init common registers (reset channels and leds off) */ pcan_add_channels() 596 /* write new ccr (change leds state) */ pcan_add_channels() 694 /* init the timer which controls the leds */ pcan_probe()
|
/linux-4.1.27/drivers/isdn/hardware/mISDN/ |
H A D | hfc_multi_8xx.h | 106 hc->leds = m->leds; setup_embedded()
|
/linux-4.1.27/arch/avr32/boards/merisc/ |
H A D | setup.c | 19 #include <linux/leds.h> 187 .leds = pwm_leds,
|
/linux-4.1.27/arch/powerpc/platforms/83xx/ |
H A D | misc.c | 122 { .compatible = "gpio-leds", },
|
/linux-4.1.27/arch/powerpc/platforms/85xx/ |
H A D | common.c | 32 { .compatible = "gpio-leds", },
|
/linux-4.1.27/arch/ia64/include/asm/sn/ |
H A D | pda.h | 31 u8 hb_state; /* supports blinking heartbeat leds */
|
/linux-4.1.27/arch/arm/mach-s3c24xx/ |
H A D | h1940-bluetooth.c | 18 #include <linux/leds.h>
|
/linux-4.1.27/arch/avr32/boards/atngw100/ |
H A D | setup.c | 20 #include <linux/leds.h> 215 .leds = (void *) ngw_leds, 219 .name = "leds-gpio",
|
/linux-4.1.27/arch/avr32/boards/favr-32/ |
H A D | setup.c | 19 #include <linux/leds.h> 159 .leds = favr32_leds, 163 .name = "leds-gpio",
|
/linux-4.1.27/arch/arm/mach-shmobile/ |
H A D | board-marzen.c | 25 #include <linux/leds.h> 191 .leds = marzen_leds, 196 .name = "leds-gpio",
|
/linux-4.1.27/arch/arm/mach-clps711x/ |
H A D | board-p720t.c | 28 #include <linux/leds.h> 331 .leds = p720t_gpio_leds, 358 platform_device_register_data(NULL, "leds-gpio", 0, p720t_init_late()
|
/linux-4.1.27/drivers/macintosh/ |
H A D | adbhid.c | 61 #define KEYB_LEDREG 2 /* register # for leds on ADB keyboard */ 638 int leds = 0, device = 0, pending = 0; leds_done() local 645 leds = leds_pending[device] & 0xff; leds_done() 655 ADB_WRITEREG(device, KEYB_LEDREG), 0xff, ~leds); leds_done() 658 static void real_leds(unsigned char leds, int device) real_leds() argument 667 ADB_WRITEREG(device, KEYB_LEDREG), 0xff, ~leds); real_leds() 675 leds_pending[device] = leds | 0x100; real_leds() 687 unsigned char leds; adbhid_kbd_event() local 691 leds = (test_bit(LED_SCROLLL, dev->led) ? 4 : 0) | adbhid_kbd_event() 694 real_leds(leds, adbhid->id); adbhid_kbd_event() 967 /* turn off all leds */ adbhid_probe()
|