Home
last modified time | relevance | path

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

12345

/linux/drivers/leds/
A Dleds-mc13783.c38 int num_leds; member
134 pdata->num_leds = of_get_available_child_count(parent); in mc13xxx_led_probe_dt()
136 pdata->led = devm_kcalloc(dev, pdata->num_leds, sizeof(*pdata->led), in mc13xxx_led_probe_dt()
160 pdata->num_leds = i; in mc13xxx_led_probe_dt()
202 leds->num_leds = pdata->num_leds; in mc13xxx_led_probe()
204 if ((leds->num_leds < 1) || in mc13xxx_led_probe()
205 (leds->num_leds > (devtype->led_max - devtype->led_min + 1))) { in mc13xxx_led_probe()
206 dev_err(dev, "Invalid LED count %d\n", leds->num_leds); in mc13xxx_led_probe()
210 leds->led = devm_kcalloc(dev, leds->num_leds, sizeof(*leds->led), in mc13xxx_led_probe()
222 for (i = 0; i < leds->num_leds; i++) { in mc13xxx_led_probe()
[all …]
A Dleds-is31fl319x.c80 int num_leds; member
84 .num_leds = 1,
88 .num_leds = 3,
92 .num_leds = 6,
96 .num_leds = 9,
131 for (i = 0; i < is31->cdef->num_leds; i++) { in is31fl319x_brightness_set()
227 if (!count || count > is31->cdef->num_leds) { in is31fl319x_parse_dt()
229 is31->cdef->num_leds); in is31fl319x_parse_dt()
243 if (reg < 1 || reg > is31->cdef->num_leds) { in is31fl319x_parse_dt()
387 for (i = 0; i < is31->cdef->num_leds; i++) in is31fl319x_probe()
[all …]
A Dleds-lp50xx.c188 u8 num_leds; member
200 .num_leds = LP5009_MAX_LED_MODULES * LP50XX_LEDS_PER_MODULE,
211 .num_leds = LP5012_MAX_LED_MODULES * LP50XX_LEDS_PER_MODULE,
222 .num_leds = LP5018_MAX_LED_MODULES * LP50XX_LEDS_PER_MODULE,
233 .num_leds = LP5024_MAX_LED_MODULES * LP50XX_LEDS_PER_MODULE,
244 .num_leds = LP5030_MAX_LED_MODULES * LP50XX_LEDS_PER_MODULE,
396 struct lp50xx_led *led, int num_leds) in lp50xx_probe_leds() argument
402 if (num_leds > 1) { in lp50xx_probe_leds()
403 if (num_leds > priv->chip_info->max_modules) { in lp50xx_probe_leds()
408 priv->num_of_banked_leds = num_leds; in lp50xx_probe_leds()
[all …]
A Dleds-gpio.c126 int num_leds; member
146 struct gpio_led_data *led_dat = &priv->leds[priv->num_leds]; in gpio_leds_create()
181 priv->num_leds++; in gpio_leds_create()
246 if (pdata && pdata->num_leds) { in gpio_led_probe()
247 priv = devm_kzalloc(&pdev->dev, struct_size(priv, leds, pdata->num_leds), in gpio_led_probe()
252 priv->num_leds = pdata->num_leds; in gpio_led_probe()
253 for (i = 0; i < priv->num_leds; i++) { in gpio_led_probe()
291 for (i = 0; i < priv->num_leds; i++) { in gpio_led_shutdown()
A Dleds-pca9532.c36 u8 num_leds; member
76 .num_leds = 2,
79 .num_leds = 8,
82 .num_leds = 16,
85 .num_leds = 4,
145 u8 maxleds = data->chip_info->num_leds; in pca9532_setpwm()
161 u8 maxleds = data->chip_info->num_leds; in pca9532_setled()
247 u8 maxleds = data->chip_info->num_leds; in pca9532_input_work()
259 u8 maxleds = data->chip_info->num_leds; in pca9532_getled()
358 u8 maxleds = data->chip_info->num_leds; in pca9532_configure()
[all …]
A Dleds-lm36274.c41 int num_leds; member
57 for (i = 0; i < chip->num_leds; i++) in lm36274_init()
88 chip->num_leds = fwnode_property_count_u32(child, "led-sources"); in lm36274_parse_dt()
89 if (chip->num_leds <= 0) { in lm36274_parse_dt()
95 chip->led_sources, chip->num_leds); in lm36274_parse_dt()
A Dleds-max77650.c69 int rv, num_leds; in max77650_led_probe() local
83 num_leds = device_get_child_node_count(dev); in max77650_led_probe()
84 if (!num_leds || num_leds > MAX77650_LED_NUM_LEDS) in max77650_led_probe()
A Dleds-netxbig.c59 int num_leds; member
431 int num_leds = 0; in netxbig_leds_get_of_pdata() local
496 num_leds = of_get_available_child_count(np); in netxbig_leds_get_of_pdata()
497 if (!num_leds) { in netxbig_leds_get_of_pdata()
503 leds = devm_kcalloc(dev, num_leds, sizeof(*leds), GFP_KERNEL); in netxbig_leds_get_of_pdata()
582 pdata->num_leds = num_leds; in netxbig_leds_get_of_pdata()
614 pdata->num_leds, sizeof(*leds_data), in netxbig_led_probe()
619 for (i = 0; i < pdata->num_leds; i++) { in netxbig_led_probe()
A Dleds-adp5520.c104 if (pdata->num_leds > ADP5520_01_MAXLEDS) { in adp5520_led_probe()
110 led = devm_kcalloc(&pdev->dev, pdata->num_leds, sizeof(*led), in adp5520_led_probe()
121 for (i = 0; i < pdata->num_leds; ++i) { in adp5520_led_probe()
177 for (i = 0; i < pdata->num_leds; i++) { in adp5520_led_remove()
A Dleds-lm3697.c66 int num_leds; member
254 led->num_leds = fwnode_property_count_u32(child, "led-sources"); in lm3697_probe_dt()
255 if (led->num_leds > LM3697_MAX_LED_STRINGS) { in lm3697_probe_dt()
262 led->num_leds); in lm3697_probe_dt()
268 for (j = 0; j < led->num_leds; j++) in lm3697_probe_dt()
A Dleds-gpio-register.c29 if (!pdata->num_leds) in gpio_led_register_device()
33 pdata->num_leds * sizeof(*pdata->leds), GFP_KERNEL); in gpio_led_register_device()
A Dleds-da9052.c112 pled->num_leds, sizeof(struct da9052_led), in da9052_led_probe()
119 for (i = 0; i < pled->num_leds; i++) { in da9052_led_probe()
171 for (i = 0; i < pled->num_leds; i++) { in da9052_led_remove()
A Dleds-pwm.c37 int num_leds; member
64 struct led_pwm_data *led_data = &priv->leds[priv->num_leds]; in led_pwm_add()
131 priv->num_leds++; in led_pwm_add()
A Dleds-is31fl32xx.c46 unsigned int num_leds; member
356 for (i = 0; i < priv->num_leds; i++) { in is31fl32xx_find_led_data()
373 &priv->leds[priv->num_leds]; in is31fl32xx_parse_dt()
403 priv->num_leds++; in is31fl32xx_parse_dt()
A Dleds-aw2013.c69 int num_leds; member
84 for (i = 0; i < chip->num_leds; i++) { in aw2013_chip_init()
145 for (i = 0; i < chip->num_leds; i++) in aw2013_chip_in_use()
316 chip->num_leds = i; in aw2013_probe_dt()
A Dleds-lm3532.c140 int num_leds; member
428 for (i = 0; i < led->num_leds; i++) { in lm3532_init_registers()
626 led->num_leds = fwnode_property_count_u32(child, "led-sources"); in lm3532_parse_node()
627 if (led->num_leds > LM3532_MAX_LED_STRINGS) { in lm3532_parse_node()
634 led->num_leds); in lm3532_parse_node()
A Dleds-an30259a.c78 int num_leds; member
247 chip->num_leds = i; in an30259a_dt_init()
312 for (i = 0; i < chip->num_leds; i++) { in an30259a_probe()
A Dleds-pca955x.c137 int num_leds; member
467 pdata->num_leds = chip->bits; in pca955x_get_pdata()
537 if (pdata->num_leds != chip->bits) { in pca955x_probe()
540 pdata->num_leds, chip->bits); in pca955x_probe()
/linux/drivers/input/keyboard/
A Dcap11xx.c84 int num_leds; member
93 unsigned int num_leds; member
108 [CAP1206] = { .product_id = 0x67, .num_channels = 6, .num_leds = 0, .no_gain = true },
211 if (IS_ENABLED(CONFIG_LEDS_CLASS) && priv->num_leds) in cap11xx_set_sleep()
252 struct cap11xx_priv *priv, int num_leds) in cap11xx_init_leds() argument
259 if (!num_leds || !cnt) in cap11xx_init_leds()
262 if (cnt > num_leds) in cap11xx_init_leds()
296 if (error != 0 || reg >= num_leds) { in cap11xx_init_leds()
310 priv->num_leds++; in cap11xx_init_leds()
318 struct cap11xx_priv *priv, int num_leds) in cap11xx_init_leds() argument
[all …]
/linux/drivers/input/
A Dinput-leds.c46 unsigned int num_leds; member
89 unsigned int num_leds; in input_leds_connect() local
94 num_leds = input_leds_get_count(dev); in input_leds_connect()
95 if (!num_leds) in input_leds_connect()
98 leds = kzalloc(struct_size(leds, leds, num_leds), GFP_KERNEL); in input_leds_connect()
102 leds->num_leds = num_leds; in input_leds_connect()
175 for (i = 0; i < leds->num_leds; i++) { in input_leds_disconnect()
/linux/drivers/hid/
A Dhid-led.c75 int num_leds; member
257 .num_leds = 1,
360 .num_leds = 1,
370 .num_leds = 1,
381 .num_leds = 2,
392 .num_leds = 1,
403 .num_leds = 6,
415 if (config->num_leds > 1) in hidled_init_led()
482 ldev->rgb = devm_kcalloc(&hdev->dev, ldev->config->num_leds, in hidled_probe()
493 for (i = 0; i < ldev->config->num_leds; i++) { in hidled_probe()
/linux/arch/mips/ar7/
A Dplatform.c497 ar7_led_data.num_leds = ARRAY_SIZE(default_leds); in detect_leds()
509 ar7_led_data.num_leds = ARRAY_SIZE(fb_fon_leds); in detect_leds()
512 ar7_led_data.num_leds = ARRAY_SIZE(fb_sl_leds); in detect_leds()
516 ar7_led_data.num_leds = ARRAY_SIZE(dsl502t_leds); in detect_leds()
519 ar7_led_data.num_leds = ARRAY_SIZE(dg834g_leds); in detect_leds()
522 ar7_led_data.num_leds = ARRAY_SIZE(titan_leds); in detect_leds()
525 ar7_led_data.num_leds = ARRAY_SIZE(gt701_leds); in detect_leds()
/linux/drivers/mfd/
A Dlm3533-core.c439 if (!pdata->leds || pdata->num_leds == 0) in lm3533_device_led_init()
442 if (pdata->num_leds > ARRAY_SIZE(lm3533_led_devs)) in lm3533_device_led_init()
443 pdata->num_leds = ARRAY_SIZE(lm3533_led_devs); in lm3533_device_led_init()
445 for (i = 0; i < pdata->num_leds; ++i) { in lm3533_device_led_init()
451 pdata->num_leds, NULL, 0, NULL); in lm3533_device_led_init()
/linux/include/linux/mfd/
A Dhtc-pasic3.h44 unsigned int num_leds; member
/linux/arch/mips/loongson32/ls1b/
A Dboard.c32 .num_leds = ARRAY_SIZE(ls1x_gpio_leds),

Completed in 34 milliseconds

12345