| /Linux-v5.4/drivers/leds/ |
| D | leds-ns2.c | 248 int ret, num_leds = 0; in ns2_leds_get_of_pdata() local 250 num_leds = of_get_child_count(np); in ns2_leds_get_of_pdata() 251 if (!num_leds) in ns2_leds_get_of_pdata() 254 leds = devm_kcalloc(dev, num_leds, sizeof(struct ns2_led), in ns2_leds_get_of_pdata() 317 pdata->num_leds = num_leds; in ns2_leds_get_of_pdata() 334 int num_leds; member 338 static inline int sizeof_ns2_led_priv(int num_leds) in sizeof_ns2_led_priv() argument 341 (sizeof(struct ns2_led_data) * num_leds); in sizeof_ns2_led_priv() 369 sizeof_ns2_led_priv(pdata->num_leds), GFP_KERNEL); in ns2_led_probe() 372 priv->num_leds = pdata->num_leds; in ns2_led_probe() [all …]
|
| D | leds-mc13783.c | 38 int num_leds; member 134 pdata->num_leds = of_get_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-gpio.c | 124 int num_leds; member 128 static inline int sizeof_gpio_leds_priv(int num_leds) in sizeof_gpio_leds_priv() argument 131 (sizeof(struct gpio_led_data) * num_leds); in sizeof_gpio_leds_priv() 150 struct gpio_led_data *led_dat = &priv->leds[priv->num_leds]; in gpio_leds_create() 189 priv->num_leds++; in gpio_leds_create() 254 if (pdata && pdata->num_leds) { in gpio_led_probe() 256 sizeof_gpio_leds_priv(pdata->num_leds), in gpio_led_probe() 261 priv->num_leds = pdata->num_leds; in gpio_led_probe() 262 for (i = 0; i < priv->num_leds; i++) { in gpio_led_probe() 300 for (i = 0; i < priv->num_leds; i++) { in gpio_led_shutdown()
|
| D | leds-is31fl319x.c | 77 int num_leds; member 81 .num_leds = 1, 85 .num_leds = 3, 89 .num_leds = 6, 93 .num_leds = 9, 128 for (i = 0; i < is31->cdef->num_leds; i++) { in is31fl319x_brightness_set() 223 if (!count || count > is31->cdef->num_leds) { in is31fl319x_parse_dt() 225 is31->cdef->num_leds); in is31fl319x_parse_dt() 239 if (reg < 1 || reg > is31->cdef->num_leds) { in is31fl319x_parse_dt() 377 for (i = 0; i < is31->cdef->num_leds; i++) in is31fl319x_probe() [all …]
|
| D | leds-pca9532.c | 34 u8 num_leds; member 74 .num_leds = 2, 77 .num_leds = 8, 80 .num_leds = 16, 83 .num_leds = 4, 119 for (i = 0; i < data->chip_info->num_leds; i++) { in pca9532_calcpwm() 143 u8 maxleds = data->chip_info->num_leds; in pca9532_setpwm() 159 u8 maxleds = data->chip_info->num_leds; in pca9532_setled() 245 u8 maxleds = data->chip_info->num_leds; in pca9532_input_work() 257 u8 maxleds = data->chip_info->num_leds; in pca9532_getled() [all …]
|
| D | leds-lm36274.c | 40 int num_leds; member 56 for (i = 0; i < lm36274_data->num_leds; i++) in lm36274_init() 93 lm36274_data->num_leds = fwnode_property_count_u32(child, "led-sources"); in lm36274_parse_dt() 94 if (lm36274_data->num_leds <= 0) in lm36274_parse_dt() 99 lm36274_data->num_leds); in lm36274_parse_dt()
|
| D | leds-max77650.c | 70 int rv, num_leds; in max77650_led_probe() local 84 num_leds = device_get_child_node_count(dev); in max77650_led_probe() 85 if (!num_leds || num_leds > MAX77650_LED_NUM_LEDS) in max77650_led_probe()
|
| D | leds-netxbig.c | 58 int num_leds; member 419 int num_leds = 0; in netxbig_leds_get_of_pdata() local 470 num_leds = of_get_child_count(np); in netxbig_leds_get_of_pdata() 471 if (!num_leds) { in netxbig_leds_get_of_pdata() 476 leds = devm_kcalloc(dev, num_leds, sizeof(*leds), GFP_KERNEL); in netxbig_leds_get_of_pdata() 553 pdata->num_leds = num_leds; in netxbig_leds_get_of_pdata() 583 pdata->num_leds, sizeof(*leds_data), in netxbig_led_probe() 592 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-gpio-register.c | 28 if (!pdata->num_leds) in gpio_led_register_device() 32 pdata->num_leds * sizeof(*pdata->leds), GFP_KERNEL); in gpio_led_register_device()
|
| D | leds-pwm.c | 31 int num_leds; member 71 struct led_pwm_data *led_data = &priv->leds[priv->num_leds]; in led_pwm_add() 110 priv->num_leds++; in led_pwm_add() 164 count = pdata->num_leds; in led_pwm_probe()
|
| D | leds-lm3697.c | 59 int num_leds; member 247 led->num_leds = fwnode_property_count_u32(child, "led-sources"); in lm3697_probe_dt() 248 if (led->num_leds > LM3697_MAX_LED_STRINGS) { in lm3697_probe_dt() 255 led->num_leds); in lm3697_probe_dt() 262 for (j = 0; j < led->num_leds; j++) in lm3697_probe_dt()
|
| 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-pca963x.c | 319 pdata->leds.num_leds = chip->n_leds; in pca963x_get_pdata() 375 if (pdata && (pdata->leds.num_leds < 1 || in pca963x_probe() 376 pdata->leds.num_leds > chip->n_leds)) { in pca963x_probe() 407 if (pdata && i < pdata->leds.num_leds) { in pca963x_probe() 416 if (!pdata || i >= pdata->leds.num_leds || in pca963x_probe()
|
| D | leds-is31fl32xx.c | 46 unsigned int num_leds; member 361 for (i = 0; i < priv->num_leds; i++) { in is31fl32xx_find_led_data() 377 &priv->leds[priv->num_leds]; in is31fl32xx_parse_dt() 405 priv->num_leds++; in is31fl32xx_parse_dt()
|
| D | leds-an30259a.c | 78 int num_leds; member 250 chip->num_leds = i; in an30259a_dt_init() 308 for (i = 0; i < chip->num_leds; i++) { in an30259a_probe()
|
| D | leds-pca955x.c | 130 int num_leds; member 406 pdata->num_leds = chip->bits; in pca955x_get_pdata() 455 if (pdata->num_leds != chip->bits) { in pca955x_probe() 458 pdata->num_leds, chip->bits); in pca955x_probe()
|
| /Linux-v5.4/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()
|
| /Linux-v5.4/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 …]
|
| /Linux-v5.4/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()
|
| /Linux-v5.4/arch/mips/ar7/ |
| D | platform.c | 497 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-v5.4/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()
|
| /Linux-v5.4/include/linux/ |
| D | leds_pwm.h | 18 int num_leds; member
|
| /Linux-v5.4/include/linux/platform_data/ |
| D | leds-kirkwood-ns2.h | 34 int num_leds; member
|
| /Linux-v5.4/include/linux/mfd/ |
| D | htc-pasic3.h | 44 unsigned int num_leds; member
|