/drivers/leds/ |
D | leds-mc13783.c | 38 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 …]
|
D | leds-is31fl319x.c | 80 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 …]
|
D | leds-lp50xx.c | 188 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, 255 .num_leds = LP5036_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() [all …]
|
D | leds-gpio.c | 126 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()
|
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, 121 for (i = 0; i < data->chip_info->num_leds; i++) { in pca9532_calcpwm() 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() [all …]
|
D | leds-lm36274.c | 41 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()
|
D | leds-max77650.c | 69 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()
|
D | leds-netxbig.c | 59 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()
|
D | leds-adp5520.c | 104 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()
|
D | leds-lm3697.c | 66 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()
|
D | leds-gpio-register.c | 29 if (!pdata->num_leds) in gpio_led_register_device() 33 pdata->num_leds * sizeof(*pdata->leds), GFP_KERNEL); in gpio_led_register_device()
|
D | leds-da9052.c | 112 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()
|
D | leds-pwm.c | 37 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()
|
D | leds-is31fl32xx.c | 46 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()
|
D | leds-aw2013.c | 69 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()
|
D | leds-lm3532.c | 140 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()
|
D | leds-an30259a.c | 78 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()
|
D | leds-pca955x.c | 137 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()
|
/drivers/input/keyboard/ |
D | cap11xx.c | 84 int num_leds; member 93 unsigned int num_leds; member 103 [CAP1106] = { .product_id = 0x55, .num_channels = 6, .num_leds = 0 }, 104 [CAP1126] = { .product_id = 0x53, .num_channels = 6, .num_leds = 2 }, 105 [CAP1188] = { .product_id = 0x50, .num_channels = 8, .num_leds = 8 }, 208 if (IS_ENABLED(CONFIG_LEDS_CLASS) && priv->num_leds) in cap11xx_set_sleep() 249 struct cap11xx_priv *priv, int num_leds) in cap11xx_init_leds() argument 256 if (!num_leds || !cnt) in cap11xx_init_leds() 259 if (cnt > num_leds) in cap11xx_init_leds() 293 if (error != 0 || reg >= num_leds) { in cap11xx_init_leds() [all …]
|
/drivers/input/ |
D | input-leds.c | 46 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()
|
/drivers/hid/ |
D | hid-led.c | 75 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()
|
/drivers/mfd/ |
D | lm3533-core.c | 439 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()
|
/drivers/platform/x86/intel/atomisp2/ |
D | led.c | 29 .num_leds = ARRAY_SIZE(atomisp2_leds),
|
/drivers/video/backlight/ |
D | adp8860_bl.c | 225 led = devm_kcalloc(&client->dev, pdata->num_leds, sizeof(*led), in adp8860_led_probe() 241 for (i = 0; i < pdata->num_leds; ++i) { in adp8860_led_probe() 305 for (i = 0; i < pdata->num_leds; i++) { in adp8860_led_remove() 743 if (pdata->num_leds) in adp8860_probe()
|
D | adp8870_bl.c | 248 led = devm_kcalloc(&client->dev, pdata->num_leds, sizeof(*led), in adp8870_led_probe() 267 for (i = 0; i < pdata->num_leds; ++i) { in adp8870_led_probe() 331 for (i = 0; i < pdata->num_leds; i++) { in adp8870_led_remove() 915 if (pdata->num_leds) in adp8870_probe()
|