Searched refs:num_leds (Results 1 - 128 of 128) sorted by relevance

/linux-4.1.27/arch/mips/ath79/
H A Ddev-leds-gpio.c19 unsigned num_leds, ath79_register_leds_gpio()
27 p = kmemdup(leds, num_leds * sizeof(*p), GFP_KERNEL); ath79_register_leds_gpio()
36 pdata.num_leds = num_leds; 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 Ddev-leds-gpio.h18 unsigned num_leds,
/linux-4.1.27/include/linux/
H A Dleds_pwm.h17 int num_leds; member in struct:led_pwm_platform_data
H A Dleds.h297 int num_leds; member in struct:led_platform_data
317 int num_leds; member in struct:gpio_led_platform_data
/linux-4.1.27/include/linux/platform_data/
H A Dleds-kirkwood-ns2.h20 int num_leds; member in struct:ns2_led_platform_data
H A Dleds-kirkwood-netxbig.h50 int num_leds; member in struct:netxbig_led_platform_data
/linux-4.1.27/drivers/leds/
H A Dleds-pwm.c38 int num_leds; member in struct:led_pwm_priv
84 static inline size_t sizeof_pwm_leds_priv(int num_leds) sizeof_pwm_leds_priv() argument
87 (sizeof(struct led_pwm_data) * num_leds); sizeof_pwm_leds_priv()
92 while (priv->num_leds--) { led_pwm_cleanup()
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()
134 priv->num_leds++; led_pwm_add()
179 count = pdata->num_leds; led_pwm_probe()
H A Dleds-ns2.c263 int num_leds = 0; ns2_leds_get_of_pdata() local
266 num_leds = of_get_child_count(np); ns2_leds_get_of_pdata()
267 if (!num_leds) ns2_leds_get_of_pdata()
270 leds = devm_kzalloc(dev, num_leds * sizeof(struct ns2_led), ns2_leds_get_of_pdata()
298 pdata->num_leds = num_leds;
310 int num_leds; member in struct:ns2_led_priv
314 static inline int sizeof_ns2_led_priv(int num_leds) sizeof_ns2_led_priv() argument
317 (sizeof(struct ns2_led_data) * num_leds); sizeof_ns2_led_priv()
345 sizeof_ns2_led_priv(pdata->num_leds), GFP_KERNEL); ns2_led_probe()
348 priv->num_leds = pdata->num_leds; ns2_led_probe()
350 for (i = 0; i < priv->num_leds; i++) { ns2_led_probe()
372 for (i = 0; i < priv->num_leds; i++) ns2_led_remove()
H A Dleds-mc13783.c44 int num_leds; member in struct:mc13xxx_leds
147 pdata->num_leds = of_get_child_count(parent); mc13xxx_led_probe_dt()
149 pdata->led = devm_kzalloc(dev, pdata->num_leds * sizeof(*pdata->led), mc13xxx_led_probe_dt()
173 pdata->num_leds = i;
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()
235 for (i = 0; i < leds->num_leds; i++) { mc13xxx_led_probe()
286 for (i = 0; i < leds->num_leds; i++) { mc13xxx_led_remove()
H A Dleds-gpio.c157 int num_leds; member in struct:gpio_leds_priv
161 static inline int sizeof_gpio_leds_priv(int num_leds) sizeof_gpio_leds_priv() argument
164 (sizeof(struct gpio_led_data) * num_leds); sizeof_gpio_leds_priv()
220 ret = create_gpio_led(&led, &priv->leds[priv->num_leds++], device_for_each_child_node()
231 for (count = priv->num_leds - 2; count >= 0; count--)
249 if (pdata && pdata->num_leds) { gpio_led_probe()
251 sizeof_gpio_leds_priv(pdata->num_leds), gpio_led_probe()
256 priv->num_leds = pdata->num_leds; gpio_led_probe()
257 for (i = 0; i < priv->num_leds; i++) { gpio_led_probe()
284 for (i = 0; i < priv->num_leds; i++) gpio_led_remove()
H A Dleds-pca9532.c25 /* m = num_leds*/
36 u8 num_leds; member in struct:pca9532_chip_info
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++) { pca9532_calcpwm()
132 u8 maxleds = data->chip_info->num_leds; pca9532_setpwm()
148 u8 maxleds = data->chip_info->num_leds; pca9532_setled()
228 u8 maxleds = data->chip_info->num_leds; pca9532_input_work()
334 u8 maxleds = data->chip_info->num_leds; pca9532_configure()
345 for (i = 0; i < data->chip_info->num_leds; i++) { pca9532_configure()
415 data->gpio.ngpio = data->chip_info->num_leds; pca9532_configure()
472 err = pca9532_destroy_devices(data, data->chip_info->num_leds); pca9532_remove()
H A Dleds-gpio-register.c31 if (!pdata->num_leds) gpio_led_register_device()
35 pdata->num_leds * sizeof(*pdata->leds), GFP_KERNEL); gpio_led_register_device()
H A Dleds-adp5520.c115 if (pdata->num_leds > ADP5520_01_MAXLEDS) { adp5520_led_probe()
121 led = devm_kzalloc(&pdev->dev, sizeof(*led) * pdata->num_leds, adp5520_led_probe()
132 for (i = 0; i < pdata->num_leds; ++i) { adp5520_led_probe()
193 for (i = 0; i < pdata->num_leds; i++) { adp5520_led_remove()
H A Dleds-da9052.c127 sizeof(struct da9052_led) * pled->num_leds, da9052_led_probe()
134 for (i = 0; i < pled->num_leds; i++) { da9052_led_probe()
189 for (i = 0; i < pled->num_leds; i++) { da9052_led_remove()
H A Dleds-lt3593.c145 sizeof(struct lt3593_led_data) * pdata->num_leds, lt3593_led_probe()
150 for (i = 0; i < pdata->num_leds; i++) { lt3593_led_probe()
176 for (i = 0; i < pdata->num_leds; i++) lt3593_led_remove()
H A Dleds-pca963x.c311 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()
395 if (pdata && i < pdata->leds.num_leds) { pca963x_probe()
404 if (!pdata || i >= pdata->leds.num_leds || pca963x_probe()
H A Dleds-lp55xx-common.h143 * @num_leds : Number of registered LEDs
154 int num_leds; member in struct:lp55xx_chip
H A Dleds-netxbig.c360 sizeof(struct netxbig_led_data) * pdata->num_leds, GFP_KERNEL); netxbig_led_probe()
368 for (i = 0; i < pdata->num_leds; i++) { netxbig_led_probe()
394 for (i = 0; i < pdata->num_leds; i++) netxbig_led_remove()
H A Dleds-pca955x.c288 if (pdata->num_leds != chip->bits) { pca955x_probe()
291 pdata->num_leds, chip->bits); pca955x_probe()
H A Dleds-lp55xx-common.c486 chip->num_leds++; lp55xx_register_leds()
507 for (i = 0; i < chip->num_leds; i++) { lp55xx_unregister_leds()
H A Dleds-tca6507.c727 pdata->leds.num_leds = NUM_LEDS;
763 if (!pdata || pdata->leds.num_leds != NUM_LEDS) { tca6507_probe()
/linux-4.1.27/arch/arm/mach-pxa/
H A Dcsb701.c43 .num_leds = ARRAY_SIZE(csb701_leds),
H A Dcolibri-pxa270-income.c104 .num_leds = ARRAY_SIZE(income_gpio_leds),
H A Dpalmld.c263 .num_leds = ARRAY_SIZE(gpio_leds),
H A Dpcm027.c192 .num_leds = ARRAY_SIZE(pcm027_led),
H A Dmagician.c415 .num_leds = ARRAY_SIZE(gpio_leds),
457 .num_leds = ARRAY_SIZE(pasic3_leds),
H A Dpalmtreo.c364 .num_leds = ARRAY_SIZE(treo680_gpio_leds),
388 .num_leds = ARRAY_SIZE(centro_gpio_leds),
H A Dballoon3.c405 .num_leds = ARRAY_SIZE(balloon3_gpio_leds),
454 .num_leds = ARRAY_SIZE(balloon3_pcf_gpio_leds),
H A Dcm-x2xx.c159 .num_leds = ARRAY_SIZE(cmx2xx_leds),
H A Dpalmtc.c371 .num_leds = ARRAY_SIZE(palmtc_gpio_leds),
H A Dpalmz72.c194 .num_leds = ARRAY_SIZE(gpio_leds),
H A Dzylonite.c100 .num_leds = ARRAY_SIZE(zylonite_debug_leds),
H A Draumfeld.c483 .num_leds = ARRAY_SIZE(raumfeld_leds),
562 .num_leds = 1,
H A Dtrizeps4.c256 .num_leds = ARRAY_SIZE(trizeps4_led),
H A Dvpac270.c300 .num_leds = ARRAY_SIZE(vpac270_gpio_leds),
H A Dz2.c327 .num_leds = ARRAY_SIZE(z2_gpio_leds),
H A Dcm-x300.c587 .num_leds = ARRAY_SIZE(cm_x300_leds),
H A Dcorgi.c467 .num_leds = ARRAY_SIZE(corgi_gpio_leds),
H A Dmioa701.c284 .num_leds = ARRAY_SIZE(gpio_leds),
H A Dtosa.c576 .num_leds = ARRAY_SIZE(tosa_gpio_leds),
H A Dzeus.c462 .num_leds = ARRAY_SIZE(zeus_leds),
H A Dspitz.c474 .num_leds = ARRAY_SIZE(spitz_gpio_leds),
H A Dstargate2.c460 .num_leds = ARRAY_SIZE(imote2_led_pins),
/linux-4.1.27/include/linux/mfd/
H A Dhtc-pasic3.h44 unsigned int num_leds; member in struct:pasic3_leds_machinfo
H A Dlm3533.h87 int num_leds; member in struct:lm3533_platform_data
H A Dmc13xxx.h180 int num_leds; member in struct:mc13xxx_leds_platform_data
H A Dadp5520.h197 int num_leds; member in struct:adp5520_leds_platform_data
H A D88pm860x.h465 int num_leds; member in struct:pm860x_platform_data
/linux-4.1.27/arch/arm/mach-gemini/
H A Dboard-nas4220b.c48 .num_leds = ARRAY_SIZE(ib4220b_leds),
H A Dboard-rut1xx.c63 .num_leds = ARRAY_SIZE(rut100_leds),
H A Dboard-wbd111.c71 .num_leds = ARRAY_SIZE(wbd111_leds),
H A Dboard-wbd222.c71 .num_leds = ARRAY_SIZE(wbd222_leds),
/linux-4.1.27/arch/mips/ar7/
H A Dplatform.c512 ar7_led_data.num_leds = ARRAY_SIZE(default_leds); detect_leds()
524 ar7_led_data.num_leds = ARRAY_SIZE(fb_fon_leds); detect_leds()
527 ar7_led_data.num_leds = ARRAY_SIZE(fb_sl_leds); detect_leds()
531 ar7_led_data.num_leds = ARRAY_SIZE(dsl502t_leds); detect_leds()
534 ar7_led_data.num_leds = ARRAY_SIZE(dg834g_leds); detect_leds()
537 ar7_led_data.num_leds = ARRAY_SIZE(titan_leds); detect_leds()
540 ar7_led_data.num_leds = ARRAY_SIZE(gt701_leds); detect_leds()
/linux-4.1.27/arch/arm/mach-mvebu/
H A Dnetxbig.c151 .num_leds = ARRAY_SIZE(net2big_v2_leds_ctrl),
174 .num_leds = ARRAY_SIZE(net5big_v2_leds_ctrl),
/linux-4.1.27/arch/x86/platform/geode/
H A Dgeos.c80 .num_leds = ARRAY_SIZE(geos_leds),
H A Dnet5501.c71 .num_leds = ARRAY_SIZE(net5501_leds),
H A Dalix.c91 .num_leds = ARRAY_SIZE(alix_leds),
/linux-4.1.27/arch/unicore32/kernel/
H A Dgpio.c32 .num_leds = ARRAY_SIZE(puv3_gpio_leds),
/linux-4.1.27/arch/sh/boards/mach-rsk/
H A Ddevices-rsk7203.c78 .num_leds = ARRAY_SIZE(rsk7203_gpio_leds),
/linux-4.1.27/arch/avr32/boards/atstk1000/
H A Dsetup.c100 .num_leds = ARRAY_SIZE(stk1000_j2_led),
/linux-4.1.27/arch/arm/mach-orion5x/
H A Dboard-d2net.c71 .num_leds = ARRAY_SIZE(d2net_leds),
H A Dls-chl-setup.c110 .num_leds = ARRAY_SIZE(lschl_led_pins),
H A Dls_hgl-setup.c110 .num_leds = ARRAY_SIZE(ls_hgl_led_pins),
H A Dlsmini-setup.c109 .num_leds = ARRAY_SIZE(lsmini_led_pins),
H A Dmv2120-setup.c172 .num_leds = ARRAY_SIZE(mv2120_led_pins),
H A Drd88f5182-setup.c96 .num_leds = ARRAY_SIZE(rd88f5182_gpio_led_pins),
H A Dts409-setup.c194 .num_leds = ARRAY_SIZE(ts409_led_pins),
H A Dwrt350n-v2-setup.c58 .num_leds = ARRAY_SIZE(wrt350n_v2_led_pins),
H A Ddns323-setup.c292 .num_leds = ARRAY_SIZE(dns323ab_leds),
298 .num_leds = ARRAY_SIZE(dns323c_leds),
H A Dnet2big-setup.c237 .num_leds = ARRAY_SIZE(net2big_leds),
/linux-4.1.27/arch/arm/mach-s3c64xx/
H A Dmach-smartq5.c51 .num_leds = ARRAY_SIZE(smartq5_leds),
H A Dmach-smartq7.c51 .num_leds = ARRAY_SIZE(smartq7_leds),
H A Dmach-hmt.c226 .num_leds = ARRAY_SIZE(hmt_leds),
H A Dmach-smdk6410.c508 .num_leds = ARRAY_SIZE(wm1192_pmic_leds),
H A Dmach-crag6410.c809 .num_leds = ARRAY_SIZE(gpio_leds),
/linux-4.1.27/arch/arm/mach-sa1100/
H A Dlart.c140 .num_leds = ARRAY_SIZE(lart_gpio_leds),
H A Dcerf.c75 .num_leds = ARRAY_SIZE(cerf_gpio_leds),
H A Dhackkit.c206 .num_leds = ARRAY_SIZE(hackkit_gpio_leds),
H A Dbadge4.c97 .num_leds = ARRAY_SIZE(badge4_gpio_leds),
H A Dsimpad.c311 .num_leds = ARRAY_SIZE(simpad_leds),
/linux-4.1.27/arch/arm/mach-omap2/
H A Dboard-rx51.c51 .num_leds = ARRAY_SIZE(gpio_leds),
H A Dboard-omap3beagle.c76 .num_leds = ARRAY_SIZE(pwm_leds),
436 .num_leds = ARRAY_SIZE(gpio_leds),
H A Dboard-omap3pandora.c113 .num_leds = ARRAY_SIZE(pandora_gpio_leds),
H A Dboard-overo.c320 .num_leds = ARRAY_SIZE(gpio_leds),
H A Dboard-cm-t35.c121 .num_leds = ARRAY_SIZE(cm_t35_leds),
/linux-4.1.27/drivers/mfd/
H A Dlm3533-core.c443 if (!pdata->leds || pdata->num_leds == 0) lm3533_device_led_init()
446 if (pdata->num_leds > ARRAY_SIZE(lm3533_led_devs)) lm3533_device_led_init()
447 pdata->num_leds = ARRAY_SIZE(lm3533_led_devs); lm3533_device_led_init()
449 for (i = 0; i < pdata->num_leds; ++i) { lm3533_device_led_init()
455 pdata->num_leds, NULL, 0, NULL); lm3533_device_led_init()
H A Ddm355evm_msp.c288 .num_leds = ARRAY_SIZE(evm_leds), add_children()
H A D88pm860x-core.c780 if (pdata->num_leds > ARRAY_SIZE(led_devs)) device_led_init()
781 pdata->num_leds = ARRAY_SIZE(led_devs); device_led_init()
782 for (i = 0; i < pdata->num_leds; i++) { device_led_init()
/linux-4.1.27/arch/mips/mti-sead3/
H A Dsead3-platform.c126 .num_leds = ARRAY_SIZE(led_data_info),
/linux-4.1.27/arch/arm/mach-imx/
H A Dmx31lite-db.c182 .num_leds = ARRAY_SIZE(litekit_leds),
H A Deukrea_mbimxsd35-baseboard.c204 .num_leds = ARRAY_SIZE(eukrea_mbimxsd_leds),
H A Dmach-mx31moboard.c252 .num_leds = ARRAY_SIZE(moboard_led),
460 .num_leds = ARRAY_SIZE(mx31moboard_leds),
H A Dmach-imx27_visstrim_m10.c336 .num_leds = ARRAY_SIZE(visstrim_m10_leds),
/linux-4.1.27/include/linux/i2c/
H A Dadp8860.h129 int num_leds; member in struct:adp8860_backlight_platform_data
H A Dadp8870.h145 int num_leds; member in struct:adp8870_backlight_platform_data
/linux-4.1.27/arch/mips/alchemy/
H A Dboard-gpr.c205 .num_leds = ARRAY_SIZE(gpr_gpio_leds),
H A Dboard-mtx1.c158 .num_leds = ARRAY_SIZE(default_leds),
/linux-4.1.27/drivers/video/backlight/
H A Dadp8860_bl.c226 led = devm_kzalloc(&client->dev, sizeof(*led) * pdata->num_leds, adp8860_led_probe()
242 for (i = 0; i < pdata->num_leds; ++i) { adp8860_led_probe()
306 for (i = 0; i < pdata->num_leds; i++) { adp8860_led_remove()
747 if (pdata->num_leds) adp8860_probe()
H A Dadp8870_bl.c249 led = devm_kzalloc(&client->dev, pdata->num_leds * sizeof(*led), adp8870_led_probe()
268 for (i = 0; i < pdata->num_leds; ++i) { adp8870_led_probe()
332 for (i = 0; i < pdata->num_leds; i++) { adp8870_led_remove()
922 if (pdata->num_leds) adp8870_probe()
/linux-4.1.27/arch/avr32/boards/merisc/
H A Dsetup.c186 .num_leds = ARRAY_SIZE(pwm_leds),
/linux-4.1.27/arch/arm/mach-davinci/
H A Dboard-neuros-osd2.c140 .num_leds = ARRAY_SIZE(ntosd2_leds),
H A Dboard-dm644x-evm.c295 .num_leds = ARRAY_SIZE(evm_leds),
H A Dboard-dm646x-evm.c179 .num_leds = ARRAY_SIZE(evm_leds),
H A Dboard-da850-evm.c649 .num_leds = ARRAY_SIZE(da850_evm_bb_leds),
/linux-4.1.27/arch/arm/mach-ixp4xx/
H A Domixp-setup.c163 .num_leds = ARRAY_SIZE(mic256_led_pins),
H A Ddsmg600-setup.c104 .num_leds = ARRAY_SIZE(dsmg600_led_pins),
H A Dnas100d-setup.c93 .num_leds = ARRAY_SIZE(nas100d_led_pins),
H A Dnslu2-setup.c104 .num_leds = ARRAY_SIZE(nslu2_led_pins),
/linux-4.1.27/arch/arm/mach-omap1/
H A Dboard-osk.c182 .num_leds = 3,
403 .num_leds = ARRAY_SIZE(mistral_gpio_led_pins),
H A Dboard-h2.c292 .num_leds = ARRAY_SIZE(h2_gpio_led_pins),
H A Dboard-h3.c344 .num_leds = ARRAY_SIZE(h3_gpio_led_pins),
H A Dboard-ams-delta.c399 .num_leds = ARRAY_SIZE(gpio_leds),
H A Dboard-htcherald.c311 .num_leds = ARRAY_SIZE(gpio_leds),
/linux-4.1.27/arch/mips/txx9/rbtx4927/
H A Dsetup.c315 .num_leds = ARRAY_SIZE(leds), rbtx4927_gpioled_init()
/linux-4.1.27/arch/avr32/boards/atngw100/
H A Dmrmt.c173 .num_leds = ARRAY_SIZE(pwm_leds),
H A Dsetup.c214 .num_leds = ARRAY_SIZE(ngw_leds),
/linux-4.1.27/arch/avr32/boards/favr-32/
H A Dsetup.c158 .num_leds = ARRAY_SIZE(favr32_leds),
/linux-4.1.27/arch/arm/mach-shmobile/
H A Dboard-marzen.c192 .num_leds = ARRAY_SIZE(marzen_leds),
H A Dboard-armadillo800eva.c601 .num_leds = ARRAY_SIZE(gpio_leds),
/linux-4.1.27/arch/arm/mach-clps711x/
H A Dboard-p720t.c332 .num_leds = ARRAY_SIZE(p720t_gpio_leds),
/linux-4.1.27/arch/mips/bcm63xx/boards/
H A Dboard_bcm963xx.c923 bcm63xx_led_data.num_leds = ARRAY_SIZE(board.leds); board_register_devices()
/linux-4.1.27/arch/mips/bcm47xx/
H A Dleds.c463 bcm47xx_leds_pdata.num_leds = ARRAY_SIZE(dev_leds); \
/linux-4.1.27/arch/arm/mach-s3c24xx/
H A Dmach-h1940.c432 .num_leds = ARRAY_SIZE(h1940_leds_desc),
H A Dmach-rx1950.c321 .num_leds = ARRAY_SIZE(rx1950_leds_desc),
/linux-4.1.27/arch/blackfin/mach-bf537/boards/
H A Dstamp.c1929 .num_leds = ARRAY_SIZE(adp5520_leds),
2041 .num_leds = ARRAY_SIZE(adp8870_leds),
2083 .num_leds = ARRAY_SIZE(adp8860_leds),
/linux-4.1.27/arch/mips/txx9/generic/
H A Dsetup.c776 iocled->pdata.num_leds = num; txx9_iocled_init()
/linux-4.1.27/arch/blackfin/mach-bf527/boards/
H A Dezkit.c905 .num_leds = ARRAY_SIZE(adp5520_leds),
/linux-4.1.27/arch/arm/mach-ep93xx/
H A Dcore.c531 .num_leds = ARRAY_SIZE(ep93xx_led_pins),

Completed in 1289 milliseconds