Home
last modified time | relevance | path

Searched refs:num_leds (Results 1 – 122 of 122) sorted by relevance

/linux-4.4.14/drivers/leds/
Dleds-gpio.c158 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 …]
Dleds-pwm.c38 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()
Dleds-ns2.c266 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 …]
Dleds-mc13783.c44 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 …]
Dleds-pca9532.c36 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 …]
Dleds-gpio-register.c31 if (!pdata->num_leds) in gpio_led_register_device()
35 pdata->num_leds * sizeof(*pdata->leds), GFP_KERNEL); in gpio_led_register_device()
Dleds-adp5520.c115 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()
Dleds-netxbig.c392 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()
Dleds-lt3593.c145 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()
Dleds-da9052.c127 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()
Dleds-pca963x.c311 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()
Dleds-pca955x.c288 if (pdata->num_leds != chip->bits) { in pca955x_probe()
291 pdata->num_leds, chip->bits); in pca955x_probe()
Dleds-lp55xx-common.h154 int num_leds; member
Dleds-max77693.c54 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()
Dleds-lp55xx-common.c486 chip->num_leds++; in lp55xx_register_leds()
507 for (i = 0; i < chip->num_leds; i++) { in lp55xx_unregister_leds()
Dleds-tca6507.c727 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/
Ddev-leds-gpio.c19 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()
Ddev-leds-gpio.h18 unsigned num_leds,
/linux-4.4.14/drivers/input/
Dinput-leds.c49 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/
Dcap11xx.c89 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/
Dplatform.c511 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/
Dlm3533-core.c443 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()
Ddm355evm_msp.c288 .num_leds = ARRAY_SIZE(evm_leds), in add_children()
D88pm860x-core.c776 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/
Dleds_pwm.h17 int num_leds; member
Dleds.h329 int num_leds; member
349 int num_leds; member
/linux-4.4.14/include/linux/platform_data/
Dleds-kirkwood-ns2.h34 int num_leds; member
Dleds-kirkwood-netxbig.h51 int num_leds; member
/linux-4.4.14/include/linux/mfd/
Dhtc-pasic3.h44 unsigned int num_leds; member
Dlm3533.h87 int num_leds; member
Dadp5520.h197 int num_leds; member
Dmc13xxx.h180 int num_leds; member
D88pm860x.h465 int num_leds; member
/linux-4.4.14/arch/arm/mach-orion5x/
Dboard-d2net.c71 .num_leds = ARRAY_SIZE(d2net_leds),
Ddns323-setup.c243 .num_leds = ARRAY_SIZE(dns323ab_leds),
249 .num_leds = ARRAY_SIZE(dns323c_leds),
Dls_hgl-setup.c110 .num_leds = ARRAY_SIZE(ls_hgl_led_pins),
Drd88f5182-setup.c96 .num_leds = ARRAY_SIZE(rd88f5182_gpio_led_pins),
Dmv2120-setup.c172 .num_leds = ARRAY_SIZE(mv2120_led_pins),
Dwrt350n-v2-setup.c58 .num_leds = ARRAY_SIZE(wrt350n_v2_led_pins),
Dls-chl-setup.c110 .num_leds = ARRAY_SIZE(lschl_led_pins),
Dts409-setup.c194 .num_leds = ARRAY_SIZE(ts409_led_pins),
Dnet2big-setup.c237 .num_leds = ARRAY_SIZE(net2big_leds),
/linux-4.4.14/arch/arm/mach-pxa/
Dcsb701.c43 .num_leds = ARRAY_SIZE(csb701_leds),
Dcolibri-pxa270-income.c105 .num_leds = ARRAY_SIZE(income_gpio_leds),
Dpcm027.c192 .num_leds = ARRAY_SIZE(pcm027_led),
Dpalmtreo.c364 .num_leds = ARRAY_SIZE(treo680_gpio_leds),
388 .num_leds = ARRAY_SIZE(centro_gpio_leds),
Dballoon3.c405 .num_leds = ARRAY_SIZE(balloon3_gpio_leds),
454 .num_leds = ARRAY_SIZE(balloon3_pcf_gpio_leds),
Dpalmz72.c194 .num_leds = ARRAY_SIZE(gpio_leds),
Dpalmld.c263 .num_leds = ARRAY_SIZE(gpio_leds),
Draumfeld.c483 .num_leds = ARRAY_SIZE(raumfeld_leds),
564 .num_leds = 1,
Dzylonite.c101 .num_leds = ARRAY_SIZE(zylonite_debug_leds),
Dcm-x2xx.c159 .num_leds = ARRAY_SIZE(cmx2xx_leds),
Dpalmtc.c376 .num_leds = ARRAY_SIZE(palmtc_gpio_leds),
Dtrizeps4.c256 .num_leds = ARRAY_SIZE(trizeps4_led),
Dvpac270.c300 .num_leds = ARRAY_SIZE(vpac270_gpio_leds),
Dz2.c332 .num_leds = ARRAY_SIZE(z2_gpio_leds),
Dcorgi.c467 .num_leds = ARRAY_SIZE(corgi_gpio_leds),
Dcm-x300.c592 .num_leds = ARRAY_SIZE(cm_x300_leds),
Dmioa701.c288 .num_leds = ARRAY_SIZE(gpio_leds),
Dmagician.c442 .num_leds = ARRAY_SIZE(gpio_leds),
Dstargate2.c460 .num_leds = ARRAY_SIZE(imote2_led_pins),
Dzeus.c463 .num_leds = ARRAY_SIZE(zeus_leds),
Dspitz.c474 .num_leds = ARRAY_SIZE(spitz_gpio_leds),
Dtosa.c576 .num_leds = ARRAY_SIZE(tosa_gpio_leds),
/linux-4.4.14/arch/arm/mach-gemini/
Dboard-rut1xx.c63 .num_leds = ARRAY_SIZE(rut100_leds),
Dboard-nas4220b.c47 .num_leds = ARRAY_SIZE(ib4220b_leds),
Dboard-wbd222.c70 .num_leds = ARRAY_SIZE(wbd222_leds),
Dboard-wbd111.c70 .num_leds = ARRAY_SIZE(wbd111_leds),
/linux-4.4.14/arch/arm/mach-omap2/
Dboard-rx51.c51 .num_leds = ARRAY_SIZE(gpio_leds),
/linux-4.4.14/arch/x86/platform/geode/
Dgeos.c80 .num_leds = ARRAY_SIZE(geos_leds),
Dnet5501.c71 .num_leds = ARRAY_SIZE(net5501_leds),
Dalix.c91 .num_leds = ARRAY_SIZE(alix_leds),
/linux-4.4.14/include/linux/i2c/
Dadp8860.h129 int num_leds; member
Dadp8870.h145 int num_leds; member
/linux-4.4.14/arch/sh/boards/mach-rsk/
Ddevices-rsk7203.c78 .num_leds = ARRAY_SIZE(rsk7203_gpio_leds),
/linux-4.4.14/arch/avr32/boards/atstk1000/
Dsetup.c100 .num_leds = ARRAY_SIZE(stk1000_j2_led),
/linux-4.4.14/arch/unicore32/kernel/
Dgpio.c32 .num_leds = ARRAY_SIZE(puv3_gpio_leds),
/linux-4.4.14/arch/arm/mach-s3c64xx/
Dmach-smartq5.c51 .num_leds = ARRAY_SIZE(smartq5_leds),
Dmach-smartq7.c51 .num_leds = ARRAY_SIZE(smartq7_leds),
Dmach-hmt.c230 .num_leds = ARRAY_SIZE(hmt_leds),
Dmach-smdk6410.c509 .num_leds = ARRAY_SIZE(wm1192_pmic_leds),
Dmach-crag6410.c813 .num_leds = ARRAY_SIZE(gpio_leds),
/linux-4.4.14/arch/arm/mach-sa1100/
Dcerf.c75 .num_leds = ARRAY_SIZE(cerf_gpio_leds),
Dlart.c140 .num_leds = ARRAY_SIZE(lart_gpio_leds),
Dhackkit.c206 .num_leds = ARRAY_SIZE(hackkit_gpio_leds),
Dbadge4.c97 .num_leds = ARRAY_SIZE(badge4_gpio_leds),
Dsimpad.c311 .num_leds = ARRAY_SIZE(simpad_leds),
/linux-4.4.14/arch/arm/mach-omap1/
Dboard-osk.c182 .num_leds = 3,
403 .num_leds = ARRAY_SIZE(mistral_gpio_led_pins),
Dboard-h2.c292 .num_leds = ARRAY_SIZE(h2_gpio_led_pins),
Dboard-h3.c344 .num_leds = ARRAY_SIZE(h3_gpio_led_pins),
Dboard-htcherald.c311 .num_leds = ARRAY_SIZE(gpio_leds),
Dboard-ams-delta.c399 .num_leds = ARRAY_SIZE(gpio_leds),
/linux-4.4.14/drivers/video/backlight/
Dadp8860_bl.c226 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()
Dadp8870_bl.c249 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/
Dmx31lite-db.c182 .num_leds = ARRAY_SIZE(litekit_leds),
Dmach-mx31moboard.c252 .num_leds = ARRAY_SIZE(moboard_led),
460 .num_leds = ARRAY_SIZE(mx31moboard_leds),
Dmach-imx27_visstrim_m10.c336 .num_leds = ARRAY_SIZE(visstrim_m10_leds),
/linux-4.4.14/arch/arm/mach-davinci/
Dboard-neuros-osd2.c140 .num_leds = ARRAY_SIZE(ntosd2_leds),
Dboard-dm644x-evm.c295 .num_leds = ARRAY_SIZE(evm_leds),
Dboard-dm646x-evm.c179 .num_leds = ARRAY_SIZE(evm_leds),
Dboard-da850-evm.c649 .num_leds = ARRAY_SIZE(da850_evm_bb_leds),
/linux-4.4.14/arch/mips/alchemy/
Dboard-gpr.c206 .num_leds = ARRAY_SIZE(gpr_gpio_leds),
Dboard-mtx1.c159 .num_leds = ARRAY_SIZE(default_leds),
/linux-4.4.14/arch/arm/mach-ixp4xx/
Ddsmg600-setup.c104 .num_leds = ARRAY_SIZE(dsmg600_led_pins),
Dnslu2-setup.c104 .num_leds = ARRAY_SIZE(nslu2_led_pins),
Domixp-setup.c163 .num_leds = ARRAY_SIZE(mic256_led_pins),
Dnas100d-setup.c93 .num_leds = ARRAY_SIZE(nas100d_led_pins),
/linux-4.4.14/arch/mips/mti-sead3/
Dsead3-platform.c126 .num_leds = ARRAY_SIZE(led_data_info),
/linux-4.4.14/arch/avr32/boards/merisc/
Dsetup.c186 .num_leds = ARRAY_SIZE(pwm_leds),
/linux-4.4.14/arch/avr32/boards/atngw100/
Dsetup.c214 .num_leds = ARRAY_SIZE(ngw_leds),
Dmrmt.c172 .num_leds = ARRAY_SIZE(pwm_leds),
/linux-4.4.14/arch/mips/txx9/rbtx4927/
Dsetup.c315 .num_leds = ARRAY_SIZE(leds), in rbtx4927_gpioled_init()
/linux-4.4.14/arch/avr32/boards/favr-32/
Dsetup.c158 .num_leds = ARRAY_SIZE(favr32_leds),
/linux-4.4.14/arch/arm/mach-clps711x/
Dboard-p720t.c332 .num_leds = ARRAY_SIZE(p720t_gpio_leds),
/linux-4.4.14/arch/mips/bcm63xx/boards/
Dboard_bcm963xx.c923 bcm63xx_led_data.num_leds = ARRAY_SIZE(board.leds); in board_register_devices()
/linux-4.4.14/arch/mips/bcm47xx/
Dleds.c473 bcm47xx_leds_pdata.num_leds = ARRAY_SIZE(dev_leds); \
/linux-4.4.14/arch/blackfin/mach-bf537/boards/
Dstamp.c1929 .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/
Dmach-h1940.c433 .num_leds = ARRAY_SIZE(h1940_leds_desc),
Dmach-rx1950.c321 .num_leds = ARRAY_SIZE(rx1950_leds_desc),
/linux-4.4.14/arch/arm/mach-ep93xx/
Dcore.c423 .num_leds = ARRAY_SIZE(ep93xx_led_pins),
/linux-4.4.14/arch/mips/txx9/generic/
Dsetup.c760 iocled->pdata.num_leds = num; in txx9_iocled_init()
/linux-4.4.14/arch/blackfin/mach-bf527/boards/
Dezkit.c905 .num_leds = ARRAY_SIZE(adp5520_leds),