Home
last modified time | relevance | path

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

1234567

/linux-3.4.99/arch/mips/ath79/
Ddev-leds-gpio.c19 unsigned num_leds, in ath79_register_leds_gpio() argument
27 p = kmalloc(num_leds * sizeof(*p), GFP_KERNEL); in ath79_register_leds_gpio()
31 memcpy(p, leds, num_leds * sizeof(*p)); in ath79_register_leds_gpio()
38 pdata.num_leds = num_leds; in ath79_register_leds_gpio()
Ddev-leds-gpio.h18 unsigned num_leds,
/linux-3.4.99/drivers/leds/
Dleds-gpio.c157 int num_leds; member
161 static inline int sizeof_gpio_leds_priv(int num_leds) in sizeof_gpio_leds_priv() argument
164 (sizeof(struct gpio_led_data) * num_leds); in sizeof_gpio_leds_priv()
205 ret = create_gpio_led(&led, &priv->leds[priv->num_leds++], in gpio_leds_create_of()
216 for (count = priv->num_leds - 2; count >= 0; count--) in gpio_leds_create_of()
241 if (pdata && pdata->num_leds) { in gpio_led_probe()
242 priv = kzalloc(sizeof_gpio_leds_priv(pdata->num_leds), in gpio_led_probe()
247 priv->num_leds = pdata->num_leds; in gpio_led_probe()
248 for (i = 0; i < priv->num_leds; i++) { in gpio_led_probe()
276 for (i = 0; i < priv->num_leds; i++) in gpio_led_remove()
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()
341 u8 maxleds = data->chip_info->num_leds; in pca9532_configure()
[all …]
Dleds-atmel-pwm.c46 if (!pdata || pdata->num_leds < 1) in pwmled_probe()
49 leds = kcalloc(pdata->num_leds, sizeof(*leds), GFP_KERNEL); in pwmled_probe()
53 for (i = 0; i < pdata->num_leds; i++) { in pwmled_probe()
125 for (i = 0; i < pdata->num_leds; i++) { in pwmled_remove()
Dleds-pwm.c60 leds_data = kzalloc(sizeof(struct led_pwm_data) * pdata->num_leds, in led_pwm_probe()
65 for (i = 0; i < pdata->num_leds; i++) { in led_pwm_probe()
119 for (i = 0; i < pdata->num_leds; i++) { in led_pwm_remove()
Dleds-mc13783.c278 if (pdata->num_leds < 1 || pdata->num_leds > (MC13783_LED_MAX + 1)) { in mc13783_led_probe()
279 dev_err(&pdev->dev, "Invalid led count %d\n", pdata->num_leds); in mc13783_led_probe()
283 led = kzalloc(sizeof(*led) * pdata->num_leds, GFP_KERNEL); in mc13783_led_probe()
295 for (i = 0; i < pdata->num_leds; i++) { in mc13783_led_probe()
359 for (i = 0; i < pdata->num_leds; i++) { in mc13783_led_remove()
Dleds-adp5520.c116 if (pdata->num_leds > ADP5520_01_MAXLEDS) { in adp5520_led_probe()
122 led = kzalloc(sizeof(*led) * pdata->num_leds, GFP_KERNEL); in adp5520_led_probe()
135 for (i = 0; i < pdata->num_leds; ++i) { in adp5520_led_probe()
198 for (i = 0; i < pdata->num_leds; i++) { in adp5520_led_remove()
Dleds-lt3593.c152 leds_data = kzalloc(sizeof(struct lt3593_led_data) * pdata->num_leds, in lt3593_led_probe()
157 for (i = 0; i < pdata->num_leds; i++) { in lt3593_led_probe()
185 for (i = 0; i < pdata->num_leds; i++) in lt3593_led_remove()
Dleds-pca9633.c105 if (pdata->num_leds <= 0 || pdata->num_leds > 4) { in pca9633_probe()
122 if (pdata && i < pdata->num_leds) { in pca9633_probe()
Dleds-ns2.c277 pdata->num_leds, GFP_KERNEL); in ns2_led_probe()
281 for (i = 0; i < pdata->num_leds; i++) { in ns2_led_probe()
309 for (i = 0; i < pdata->num_leds; i++) in ns2_led_remove()
Dleds-gpio-register.c32 pdata->num_leds * sizeof(*pdata->leds), GFP_KERNEL); in gpio_led_register_device()
Dleds-netxbig.c365 leds_data = kzalloc(sizeof(struct netxbig_led_data) * pdata->num_leds, in netxbig_led_probe()
374 for (i = 0; i < pdata->num_leds; i++) { in netxbig_led_probe()
403 for (i = 0; i < pdata->num_leds; i++) in netxbig_led_remove()
/linux-3.4.99/arch/mips/ar7/
Dplatform.c513 ar7_led_data.num_leds = ARRAY_SIZE(default_leds); in detect_leds()
525 ar7_led_data.num_leds = ARRAY_SIZE(fb_fon_leds); in detect_leds()
528 ar7_led_data.num_leds = ARRAY_SIZE(fb_sl_leds); in detect_leds()
532 ar7_led_data.num_leds = ARRAY_SIZE(dsl502t_leds); in detect_leds()
535 ar7_led_data.num_leds = ARRAY_SIZE(dg834g_leds); in detect_leds()
538 ar7_led_data.num_leds = ARRAY_SIZE(titan_leds); in detect_leds()
541 ar7_led_data.num_leds = ARRAY_SIZE(gt701_leds); in detect_leds()
/linux-3.4.99/include/linux/
Dleds.h180 int num_leds; member
199 int num_leds; member
Dleds_pwm.h17 int num_leds; member
/linux-3.4.99/arch/arm/mach-at91/
Dleds.c48 led_data.num_leds = nr; in at91_gpio_leds()
85 pwm_led_data.num_leds = nr; in at91_pwm_leds()
Dboard-gsia18s.c160 .num_leds = ARRAY_SIZE(gpio_leds),
232 .num_leds = ARRAY_SIZE(pcf_gpio_leds1),
285 .num_leds = ARRAY_SIZE(pcf_gpio_leds2),
325 .num_leds = ARRAY_SIZE(pcf_gpio_leds3),
/linux-3.4.99/arch/arm/mach-kirkwood/
Dd2net_v2-setup.c117 .num_leds = ARRAY_SIZE(d2net_v2_gpio_led_pins),
145 .num_leds = ARRAY_SIZE(d2net_v2_led_pins),
Dnetspace_v2-setup.c100 .num_leds = ARRAY_SIZE(netspace_v2_gpio_led_pins),
128 .num_leds = ARRAY_SIZE(netspace_v2_led_pins),
/linux-3.4.99/arch/arm/mach-kirkwood/include/mach/
Dleds-ns2.h22 int num_leds; member
Dleds-netxbig.h52 int num_leds; member
/linux-3.4.99/include/linux/mfd/
Dhtc-pasic3.h44 unsigned int num_leds; member
/linux-3.4.99/arch/arm/mach-pxa/
Dcsb701.c43 .num_leds = ARRAY_SIZE(csb701_leds),
/linux-3.4.99/arch/arm/mach-gemini/
Dboard-rut1xx.c62 .num_leds = ARRAY_SIZE(rut100_leds),

1234567