/linux-4.4.14/drivers/leds/ |
D | leds-gpio.c | 158 int num_leds; member 162 static inline int sizeof_gpio_leds_priv(int num_leds) in sizeof_gpio_leds_priv() argument 165 (sizeof(struct gpio_led_data) * num_leds); in sizeof_gpio_leds_priv() 223 ret = create_gpio_led(&led, &priv->leds[priv->num_leds], in gpio_leds_create() 229 priv->num_leds++; in gpio_leds_create() 235 for (count = priv->num_leds - 1; count >= 0; count--) in gpio_leds_create() 253 if (pdata && pdata->num_leds) { in gpio_led_probe() 255 sizeof_gpio_leds_priv(pdata->num_leds), in gpio_led_probe() 260 priv->num_leds = pdata->num_leds; in gpio_led_probe() 261 for (i = 0; i < priv->num_leds; i++) { in gpio_led_probe() [all …]
|
D | leds-pwm.c | 38 int num_leds; member 84 static inline size_t sizeof_pwm_leds_priv(int num_leds) in sizeof_pwm_leds_priv() argument 87 (sizeof(struct led_pwm_data) * num_leds); in sizeof_pwm_leds_priv() 92 while (priv->num_leds--) { in led_pwm_cleanup() 93 led_classdev_unregister(&priv->leds[priv->num_leds].cdev); in led_pwm_cleanup() 94 if (priv->leds[priv->num_leds].can_sleep) in led_pwm_cleanup() 95 cancel_work_sync(&priv->leds[priv->num_leds].work); in led_pwm_cleanup() 102 struct led_pwm_data *led_data = &priv->leds[priv->num_leds]; in led_pwm_add() 134 priv->num_leds++; in led_pwm_add() 179 count = pdata->num_leds; in led_pwm_probe()
|
D | leds-ns2.c | 266 int num_leds = 0; in ns2_leds_get_of_pdata() local 268 num_leds = of_get_child_count(np); in ns2_leds_get_of_pdata() 269 if (!num_leds) in ns2_leds_get_of_pdata() 272 leds = devm_kzalloc(dev, num_leds * sizeof(struct ns2_led), in ns2_leds_get_of_pdata() 331 pdata->num_leds = num_leds; in ns2_leds_get_of_pdata() 344 int num_leds; member 348 static inline int sizeof_ns2_led_priv(int num_leds) in sizeof_ns2_led_priv() argument 351 (sizeof(struct ns2_led_data) * num_leds); in sizeof_ns2_led_priv() 379 sizeof_ns2_led_priv(pdata->num_leds), GFP_KERNEL); in ns2_led_probe() 382 priv->num_leds = pdata->num_leds; in ns2_led_probe() [all …]
|
D | leds-mc13783.c | 44 int num_leds; member 147 pdata->num_leds = of_get_child_count(parent); in mc13xxx_led_probe_dt() 149 pdata->led = devm_kzalloc(dev, pdata->num_leds * sizeof(*pdata->led), in mc13xxx_led_probe_dt() 173 pdata->num_leds = i; in mc13xxx_led_probe_dt() 215 leds->num_leds = pdata->num_leds; in mc13xxx_led_probe() 217 if ((leds->num_leds < 1) || in mc13xxx_led_probe() 218 (leds->num_leds > (devtype->led_max - devtype->led_min + 1))) { in mc13xxx_led_probe() 219 dev_err(dev, "Invalid LED count %d\n", leds->num_leds); in mc13xxx_led_probe() 223 leds->led = devm_kzalloc(dev, leds->num_leds * sizeof(*leds->led), in mc13xxx_led_probe() 235 for (i = 0; i < leds->num_leds; i++) { in mc13xxx_led_probe() [all …]
|
D | leds-pca9532.c | 36 u8 num_leds; member 76 .num_leds = 2, 79 .num_leds = 8, 82 .num_leds = 16, 85 .num_leds = 4, 108 for (i = 0; i < data->chip_info->num_leds; i++) { in pca9532_calcpwm() 132 u8 maxleds = data->chip_info->num_leds; in pca9532_setpwm() 148 u8 maxleds = data->chip_info->num_leds; in pca9532_setled() 228 u8 maxleds = data->chip_info->num_leds; in pca9532_input_work() 334 u8 maxleds = data->chip_info->num_leds; in pca9532_configure() [all …]
|
D | leds-gpio-register.c | 31 if (!pdata->num_leds) in gpio_led_register_device() 35 pdata->num_leds * sizeof(*pdata->leds), GFP_KERNEL); in gpio_led_register_device()
|
D | leds-adp5520.c | 115 if (pdata->num_leds > ADP5520_01_MAXLEDS) { in adp5520_led_probe() 121 led = devm_kzalloc(&pdev->dev, sizeof(*led) * pdata->num_leds, in adp5520_led_probe() 132 for (i = 0; i < pdata->num_leds; ++i) { in adp5520_led_probe() 193 for (i = 0; i < pdata->num_leds; i++) { in adp5520_led_remove()
|
D | leds-netxbig.c | 392 int num_leds = 0; in netxbig_leds_get_of_pdata() local 441 num_leds = of_get_child_count(np); in netxbig_leds_get_of_pdata() 442 if (!num_leds) { in netxbig_leds_get_of_pdata() 447 leds = devm_kzalloc(dev, num_leds * sizeof(*leds), GFP_KERNEL); in netxbig_leds_get_of_pdata() 524 pdata->num_leds = num_leds; in netxbig_leds_get_of_pdata() 563 pdata->num_leds * sizeof(*leds_data), in netxbig_led_probe() 572 for (i = 0; i < pdata->num_leds; i++) { in netxbig_led_probe()
|
D | leds-lt3593.c | 145 sizeof(struct lt3593_led_data) * pdata->num_leds, in lt3593_led_probe() 150 for (i = 0; i < pdata->num_leds; i++) { in lt3593_led_probe() 176 for (i = 0; i < pdata->num_leds; i++) in lt3593_led_remove()
|
D | leds-da9052.c | 127 sizeof(struct da9052_led) * pled->num_leds, in da9052_led_probe() 134 for (i = 0; i < pled->num_leds; i++) { in da9052_led_probe() 189 for (i = 0; i < pled->num_leds; i++) { in da9052_led_remove()
|
D | leds-pca963x.c | 311 pdata->leds.num_leds = chip->n_leds; in pca963x_dt_init() 364 if (pdata && (pdata->leds.num_leds < 1 || in pca963x_probe() 365 pdata->leds.num_leds > chip->n_leds)) { in pca963x_probe() 396 if (pdata && i < pdata->leds.num_leds) { in pca963x_probe() 405 if (!pdata || i >= pdata->leds.num_leds || in pca963x_probe()
|
D | leds-pca955x.c | 288 if (pdata->num_leds != chip->bits) { in pca955x_probe() 291 pdata->num_leds, chip->bits); in pca955x_probe()
|
D | leds-lp55xx-common.h | 154 int num_leds; member
|
D | leds-max77693.c | 54 u32 num_leds; member 718 if (++cfg->num_leds == 2 || in max77693_led_parse_dt() 726 if (cfg->num_leds == 0) { in max77693_led_parse_dt() 771 if (cfg->num_leds == 1 && in max77693_led_validate_configuration()
|
D | leds-lp55xx-common.c | 486 chip->num_leds++; in lp55xx_register_leds() 507 for (i = 0; i < chip->num_leds; i++) { in lp55xx_unregister_leds()
|
D | leds-tca6507.c | 727 pdata->leds.num_leds = NUM_LEDS; in tca6507_led_dt_init() 764 if (!pdata || pdata->leds.num_leds != NUM_LEDS) { in tca6507_probe()
|
/linux-4.4.14/arch/mips/ath79/ |
D | dev-leds-gpio.c | 19 unsigned num_leds, in ath79_register_leds_gpio() argument 27 p = kmemdup(leds, num_leds * sizeof(*p), GFP_KERNEL); in ath79_register_leds_gpio() 36 pdata.num_leds = num_leds; in ath79_register_leds_gpio()
|
D | dev-leds-gpio.h | 18 unsigned num_leds,
|
/linux-4.4.14/drivers/input/ |
D | input-leds.c | 49 unsigned int num_leds; member 91 unsigned int num_leds; in input_leds_connect() local 96 num_leds = input_leds_get_count(dev); in input_leds_connect() 97 if (!num_leds) in input_leds_connect() 100 leds = kzalloc(sizeof(*leds) + num_leds * sizeof(*leds->leds), in input_leds_connect() 105 leds->num_leds = num_leds; in input_leds_connect() 179 for (i = 0; i < leds->num_leds; i++) { in input_leds_disconnect()
|
/linux-4.4.14/drivers/input/keyboard/ |
D | cap11xx.c | 89 int num_leds; member 98 unsigned int num_leds; member 108 [CAP1106] = { .product_id = 0x55, .num_channels = 6, .num_leds = 0 }, 109 [CAP1126] = { .product_id = 0x53, .num_channels = 6, .num_leds = 2 }, 110 [CAP1188] = { .product_id = 0x50, .num_channels = 8, .num_leds = 8 }, 213 if (IS_ENABLED(CONFIG_LEDS_CLASS) && priv->num_leds) in cap11xx_set_sleep() 263 struct cap11xx_priv *priv, int num_leds) in cap11xx_init_leds() argument 270 if (!num_leds || !cnt) in cap11xx_init_leds() 273 if (cnt > num_leds) in cap11xx_init_leds() 307 if (error != 0 || reg >= num_leds) in cap11xx_init_leds() [all …]
|
/linux-4.4.14/arch/mips/ar7/ |
D | platform.c | 511 ar7_led_data.num_leds = ARRAY_SIZE(default_leds); in detect_leds() 523 ar7_led_data.num_leds = ARRAY_SIZE(fb_fon_leds); in detect_leds() 526 ar7_led_data.num_leds = ARRAY_SIZE(fb_sl_leds); in detect_leds() 530 ar7_led_data.num_leds = ARRAY_SIZE(dsl502t_leds); in detect_leds() 533 ar7_led_data.num_leds = ARRAY_SIZE(dg834g_leds); in detect_leds() 536 ar7_led_data.num_leds = ARRAY_SIZE(titan_leds); in detect_leds() 539 ar7_led_data.num_leds = ARRAY_SIZE(gt701_leds); in detect_leds()
|
/linux-4.4.14/drivers/mfd/ |
D | lm3533-core.c | 443 if (!pdata->leds || pdata->num_leds == 0) in lm3533_device_led_init() 446 if (pdata->num_leds > ARRAY_SIZE(lm3533_led_devs)) in lm3533_device_led_init() 447 pdata->num_leds = ARRAY_SIZE(lm3533_led_devs); in lm3533_device_led_init() 449 for (i = 0; i < pdata->num_leds; ++i) { in lm3533_device_led_init() 455 pdata->num_leds, NULL, 0, NULL); in lm3533_device_led_init()
|
D | dm355evm_msp.c | 288 .num_leds = ARRAY_SIZE(evm_leds), in add_children()
|
D | 88pm860x-core.c | 776 if (pdata->num_leds > ARRAY_SIZE(led_devs)) in device_led_init() 777 pdata->num_leds = ARRAY_SIZE(led_devs); in device_led_init() 778 for (i = 0; i < pdata->num_leds; i++) { in device_led_init()
|
/linux-4.4.14/include/linux/ |
D | leds_pwm.h | 17 int num_leds; member
|
D | leds.h | 329 int num_leds; member 349 int num_leds; member
|
/linux-4.4.14/include/linux/platform_data/ |
D | leds-kirkwood-ns2.h | 34 int num_leds; member
|
D | leds-kirkwood-netxbig.h | 51 int num_leds; member
|
/linux-4.4.14/include/linux/mfd/ |
D | htc-pasic3.h | 44 unsigned int num_leds; member
|
D | lm3533.h | 87 int num_leds; member
|
D | adp5520.h | 197 int num_leds; member
|
D | mc13xxx.h | 180 int num_leds; member
|
D | 88pm860x.h | 465 int num_leds; member
|
/linux-4.4.14/arch/arm/mach-orion5x/ |
D | board-d2net.c | 71 .num_leds = ARRAY_SIZE(d2net_leds),
|
D | dns323-setup.c | 243 .num_leds = ARRAY_SIZE(dns323ab_leds), 249 .num_leds = ARRAY_SIZE(dns323c_leds),
|
D | ls_hgl-setup.c | 110 .num_leds = ARRAY_SIZE(ls_hgl_led_pins),
|
D | rd88f5182-setup.c | 96 .num_leds = ARRAY_SIZE(rd88f5182_gpio_led_pins),
|
D | mv2120-setup.c | 172 .num_leds = ARRAY_SIZE(mv2120_led_pins),
|
D | wrt350n-v2-setup.c | 58 .num_leds = ARRAY_SIZE(wrt350n_v2_led_pins),
|
D | ls-chl-setup.c | 110 .num_leds = ARRAY_SIZE(lschl_led_pins),
|
D | ts409-setup.c | 194 .num_leds = ARRAY_SIZE(ts409_led_pins),
|
D | net2big-setup.c | 237 .num_leds = ARRAY_SIZE(net2big_leds),
|
/linux-4.4.14/arch/arm/mach-pxa/ |
D | csb701.c | 43 .num_leds = ARRAY_SIZE(csb701_leds),
|
D | colibri-pxa270-income.c | 105 .num_leds = ARRAY_SIZE(income_gpio_leds),
|
D | pcm027.c | 192 .num_leds = ARRAY_SIZE(pcm027_led),
|
D | palmtreo.c | 364 .num_leds = ARRAY_SIZE(treo680_gpio_leds), 388 .num_leds = ARRAY_SIZE(centro_gpio_leds),
|
D | balloon3.c | 405 .num_leds = ARRAY_SIZE(balloon3_gpio_leds), 454 .num_leds = ARRAY_SIZE(balloon3_pcf_gpio_leds),
|
D | palmz72.c | 194 .num_leds = ARRAY_SIZE(gpio_leds),
|
D | palmld.c | 263 .num_leds = ARRAY_SIZE(gpio_leds),
|
D | raumfeld.c | 483 .num_leds = ARRAY_SIZE(raumfeld_leds), 564 .num_leds = 1,
|
D | zylonite.c | 101 .num_leds = ARRAY_SIZE(zylonite_debug_leds),
|
D | cm-x2xx.c | 159 .num_leds = ARRAY_SIZE(cmx2xx_leds),
|
D | palmtc.c | 376 .num_leds = ARRAY_SIZE(palmtc_gpio_leds),
|
D | trizeps4.c | 256 .num_leds = ARRAY_SIZE(trizeps4_led),
|
D | vpac270.c | 300 .num_leds = ARRAY_SIZE(vpac270_gpio_leds),
|
D | z2.c | 332 .num_leds = ARRAY_SIZE(z2_gpio_leds),
|
D | corgi.c | 467 .num_leds = ARRAY_SIZE(corgi_gpio_leds),
|
D | cm-x300.c | 592 .num_leds = ARRAY_SIZE(cm_x300_leds),
|
D | mioa701.c | 288 .num_leds = ARRAY_SIZE(gpio_leds),
|
D | magician.c | 442 .num_leds = ARRAY_SIZE(gpio_leds),
|
D | stargate2.c | 460 .num_leds = ARRAY_SIZE(imote2_led_pins),
|
D | zeus.c | 463 .num_leds = ARRAY_SIZE(zeus_leds),
|
D | spitz.c | 474 .num_leds = ARRAY_SIZE(spitz_gpio_leds),
|
D | tosa.c | 576 .num_leds = ARRAY_SIZE(tosa_gpio_leds),
|
/linux-4.4.14/arch/arm/mach-gemini/ |
D | board-rut1xx.c | 63 .num_leds = ARRAY_SIZE(rut100_leds),
|
D | board-nas4220b.c | 47 .num_leds = ARRAY_SIZE(ib4220b_leds),
|
D | board-wbd222.c | 70 .num_leds = ARRAY_SIZE(wbd222_leds),
|
D | board-wbd111.c | 70 .num_leds = ARRAY_SIZE(wbd111_leds),
|
/linux-4.4.14/arch/arm/mach-omap2/ |
D | board-rx51.c | 51 .num_leds = ARRAY_SIZE(gpio_leds),
|
/linux-4.4.14/arch/x86/platform/geode/ |
D | geos.c | 80 .num_leds = ARRAY_SIZE(geos_leds),
|
D | net5501.c | 71 .num_leds = ARRAY_SIZE(net5501_leds),
|
D | alix.c | 91 .num_leds = ARRAY_SIZE(alix_leds),
|
/linux-4.4.14/include/linux/i2c/ |
D | adp8860.h | 129 int num_leds; member
|
D | adp8870.h | 145 int num_leds; member
|
/linux-4.4.14/arch/sh/boards/mach-rsk/ |
D | devices-rsk7203.c | 78 .num_leds = ARRAY_SIZE(rsk7203_gpio_leds),
|
/linux-4.4.14/arch/avr32/boards/atstk1000/ |
D | setup.c | 100 .num_leds = ARRAY_SIZE(stk1000_j2_led),
|
/linux-4.4.14/arch/unicore32/kernel/ |
D | gpio.c | 32 .num_leds = ARRAY_SIZE(puv3_gpio_leds),
|
/linux-4.4.14/arch/arm/mach-s3c64xx/ |
D | mach-smartq5.c | 51 .num_leds = ARRAY_SIZE(smartq5_leds),
|
D | mach-smartq7.c | 51 .num_leds = ARRAY_SIZE(smartq7_leds),
|
D | mach-hmt.c | 230 .num_leds = ARRAY_SIZE(hmt_leds),
|
D | mach-smdk6410.c | 509 .num_leds = ARRAY_SIZE(wm1192_pmic_leds),
|
D | mach-crag6410.c | 813 .num_leds = ARRAY_SIZE(gpio_leds),
|
/linux-4.4.14/arch/arm/mach-sa1100/ |
D | cerf.c | 75 .num_leds = ARRAY_SIZE(cerf_gpio_leds),
|
D | lart.c | 140 .num_leds = ARRAY_SIZE(lart_gpio_leds),
|
D | hackkit.c | 206 .num_leds = ARRAY_SIZE(hackkit_gpio_leds),
|
D | badge4.c | 97 .num_leds = ARRAY_SIZE(badge4_gpio_leds),
|
D | simpad.c | 311 .num_leds = ARRAY_SIZE(simpad_leds),
|
/linux-4.4.14/arch/arm/mach-omap1/ |
D | board-osk.c | 182 .num_leds = 3, 403 .num_leds = ARRAY_SIZE(mistral_gpio_led_pins),
|
D | board-h2.c | 292 .num_leds = ARRAY_SIZE(h2_gpio_led_pins),
|
D | board-h3.c | 344 .num_leds = ARRAY_SIZE(h3_gpio_led_pins),
|
D | board-htcherald.c | 311 .num_leds = ARRAY_SIZE(gpio_leds),
|
D | board-ams-delta.c | 399 .num_leds = ARRAY_SIZE(gpio_leds),
|
/linux-4.4.14/drivers/video/backlight/ |
D | adp8860_bl.c | 226 led = devm_kzalloc(&client->dev, sizeof(*led) * pdata->num_leds, in adp8860_led_probe() 242 for (i = 0; i < pdata->num_leds; ++i) { in adp8860_led_probe() 306 for (i = 0; i < pdata->num_leds; i++) { in adp8860_led_remove() 747 if (pdata->num_leds) in adp8860_probe()
|
D | adp8870_bl.c | 249 led = devm_kzalloc(&client->dev, pdata->num_leds * sizeof(*led), in adp8870_led_probe() 268 for (i = 0; i < pdata->num_leds; ++i) { in adp8870_led_probe() 332 for (i = 0; i < pdata->num_leds; i++) { in adp8870_led_remove() 922 if (pdata->num_leds) in adp8870_probe()
|
/linux-4.4.14/arch/arm/mach-imx/ |
D | mx31lite-db.c | 182 .num_leds = ARRAY_SIZE(litekit_leds),
|
D | mach-mx31moboard.c | 252 .num_leds = ARRAY_SIZE(moboard_led), 460 .num_leds = ARRAY_SIZE(mx31moboard_leds),
|
D | mach-imx27_visstrim_m10.c | 336 .num_leds = ARRAY_SIZE(visstrim_m10_leds),
|
/linux-4.4.14/arch/arm/mach-davinci/ |
D | board-neuros-osd2.c | 140 .num_leds = ARRAY_SIZE(ntosd2_leds),
|
D | board-dm644x-evm.c | 295 .num_leds = ARRAY_SIZE(evm_leds),
|
D | board-dm646x-evm.c | 179 .num_leds = ARRAY_SIZE(evm_leds),
|
D | board-da850-evm.c | 649 .num_leds = ARRAY_SIZE(da850_evm_bb_leds),
|
/linux-4.4.14/arch/mips/alchemy/ |
D | board-gpr.c | 206 .num_leds = ARRAY_SIZE(gpr_gpio_leds),
|
D | board-mtx1.c | 159 .num_leds = ARRAY_SIZE(default_leds),
|
/linux-4.4.14/arch/arm/mach-ixp4xx/ |
D | dsmg600-setup.c | 104 .num_leds = ARRAY_SIZE(dsmg600_led_pins),
|
D | nslu2-setup.c | 104 .num_leds = ARRAY_SIZE(nslu2_led_pins),
|
D | omixp-setup.c | 163 .num_leds = ARRAY_SIZE(mic256_led_pins),
|
D | nas100d-setup.c | 93 .num_leds = ARRAY_SIZE(nas100d_led_pins),
|
/linux-4.4.14/arch/mips/mti-sead3/ |
D | sead3-platform.c | 126 .num_leds = ARRAY_SIZE(led_data_info),
|
/linux-4.4.14/arch/avr32/boards/merisc/ |
D | setup.c | 186 .num_leds = ARRAY_SIZE(pwm_leds),
|
/linux-4.4.14/arch/avr32/boards/atngw100/ |
D | setup.c | 214 .num_leds = ARRAY_SIZE(ngw_leds),
|
D | mrmt.c | 172 .num_leds = ARRAY_SIZE(pwm_leds),
|
/linux-4.4.14/arch/mips/txx9/rbtx4927/ |
D | setup.c | 315 .num_leds = ARRAY_SIZE(leds), in rbtx4927_gpioled_init()
|
/linux-4.4.14/arch/avr32/boards/favr-32/ |
D | setup.c | 158 .num_leds = ARRAY_SIZE(favr32_leds),
|
/linux-4.4.14/arch/arm/mach-clps711x/ |
D | board-p720t.c | 332 .num_leds = ARRAY_SIZE(p720t_gpio_leds),
|
/linux-4.4.14/arch/mips/bcm63xx/boards/ |
D | board_bcm963xx.c | 923 bcm63xx_led_data.num_leds = ARRAY_SIZE(board.leds); in board_register_devices()
|
/linux-4.4.14/arch/mips/bcm47xx/ |
D | leds.c | 473 bcm47xx_leds_pdata.num_leds = ARRAY_SIZE(dev_leds); \
|
/linux-4.4.14/arch/blackfin/mach-bf537/boards/ |
D | stamp.c | 1929 .num_leds = ARRAY_SIZE(adp5520_leds), 2041 .num_leds = ARRAY_SIZE(adp8870_leds), 2083 .num_leds = ARRAY_SIZE(adp8860_leds),
|
/linux-4.4.14/arch/arm/mach-s3c24xx/ |
D | mach-h1940.c | 433 .num_leds = ARRAY_SIZE(h1940_leds_desc),
|
D | mach-rx1950.c | 321 .num_leds = ARRAY_SIZE(rx1950_leds_desc),
|
/linux-4.4.14/arch/arm/mach-ep93xx/ |
D | core.c | 423 .num_leds = ARRAY_SIZE(ep93xx_led_pins),
|
/linux-4.4.14/arch/mips/txx9/generic/ |
D | setup.c | 760 iocled->pdata.num_leds = num; in txx9_iocled_init()
|
/linux-4.4.14/arch/blackfin/mach-bf527/boards/ |
D | ezkit.c | 905 .num_leds = ARRAY_SIZE(adp5520_leds),
|