/openbmc/linux/drivers/input/keyboard/ |
H A D | cap11xx.c | 84 int num_leds; member 93 unsigned int num_leds; member 108 [CAP1106] = { .product_id = 0x55, .num_channels = 6, .num_leds = 0, .no_gain = false }, 109 [CAP1126] = { .product_id = 0x53, .num_channels = 6, .num_leds = 2, .no_gain = false }, 110 [CAP1188] = { .product_id = 0x50, .num_channels = 8, .num_leds = 8, .no_gain = false }, 111 [CAP1203] = { .product_id = 0x6d, .num_channels = 3, .num_leds = 0, .no_gain = true }, 112 [CAP1206] = { .product_id = 0x67, .num_channels = 6, .num_leds = 0, .no_gain = true }, 113 [CAP1293] = { .product_id = 0x6f, .num_channels = 3, .num_leds = 0, .no_gain = false }, 114 [CAP1298] = { .product_id = 0x71, .num_channels = 8, .num_leds = 0, .no_gain = false }, 217 if (IS_ENABLED(CONFIG_LEDS_CLASS) && priv->num_leds) in cap11xx_set_sleep() [all …]
|
/openbmc/linux/drivers/leds/ |
H A 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 …]
|
H A 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, 395 struct lp50xx_led *led, int num_leds) in lp50xx_probe_leds() argument 401 if (num_leds > 1) { in lp50xx_probe_leds() 402 if (num_leds > priv->chip_info->max_modules) { in lp50xx_probe_leds() [all …]
|
H A D | leds-pca9532.c | 35 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 …]
|
H A D | leds-gpio.c | 144 int num_leds; member 164 struct gpio_led_data *led_dat = &priv->leds[priv->num_leds]; in gpio_leds_create() 198 priv->num_leds++; in gpio_leds_create() 263 if (pdata && pdata->num_leds) { in gpio_led_probe() 264 priv = devm_kzalloc(&pdev->dev, struct_size(priv, leds, pdata->num_leds), in gpio_led_probe() 269 priv->num_leds = pdata->num_leds; in gpio_led_probe() 270 for (i = 0; i < priv->num_leds; i++) { in gpio_led_probe() 308 for (i = 0; i < priv->num_leds; i++) { in gpio_led_shutdown()
|
H A 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()
|
H A D | leds-is31fl319x.c | 106 int num_leds; member 212 for (i = 0; i < is31->cdef->num_leds; i++) { in is31fl3190_brightness_set() 266 for (i = 0; i < is31->cdef->num_leds; i++) { in is31fl3196_brightness_set() 308 .num_leds = 1, 319 .num_leds = 3, 330 .num_leds = 6, 341 .num_leds = 9, 412 if (!count || count > is31->cdef->num_leds) in is31fl319x_parse_fw() 415 is31->cdef->num_leds); in is31fl319x_parse_fw() 427 if (reg < 1 || reg > is31->cdef->num_leds) { in is31fl319x_parse_fw() [all …]
|
H A 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()
|
H A 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()
|
H A 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()
|
H A D | leds-pca995x.c | 42 unsigned int num_leds; member 48 .num_leds = 16, 54 .num_leds = 16, 60 .num_leds = 24,
|
H A 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()
|
H A 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()
|
H A D | leds-aw200xx.c | 117 u32 num_leds; member 394 chip->num_leds--; in aw200xx_probe_fw() 401 chip->num_leds--; in aw200xx_probe_fw() 413 chip->num_leds--; in aw200xx_probe_fw() 437 if (!chip->num_leds) in aw200xx_probe_fw() 512 chip->num_leds = count; in aw200xx_probe()
|
H A 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()
|
H A D | leds-pwm.c | 37 int num_leds; member 70 struct led_pwm_data *led_data = &priv->leds[priv->num_leds]; in led_pwm_add() 137 priv->num_leds++; in led_pwm_add()
|
H A D | leds-is31fl32xx.c | 45 unsigned int num_leds; member 355 for (i = 0; i < priv->num_leds; i++) { in is31fl32xx_find_led_data() 372 &priv->leds[priv->num_leds]; in is31fl32xx_parse_dt() 402 priv->num_leds++; in is31fl32xx_parse_dt()
|
H A D | leds-aw2013.c | 69 int num_leds; member 84 for (i = 0; i < chip->num_leds; i++) { in aw2013_chip_init() 147 for (i = 0; i < chip->num_leds; i++) in aw2013_chip_in_use() 318 chip->num_leds = i; in aw2013_probe_dt()
|
H A 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()
|
/openbmc/linux/drivers/input/ |
H A 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()
|
/openbmc/qemu/hw/misc/ |
H A D | mps2-fpgaio.c | 196 if (s->num_leds != 0) { in mps2_fpgaio_write() 199 s->led0 = value & MAKE_64BIT_MASK(0, s->num_leds); in mps2_fpgaio_write() 200 for (i = 0; i < s->num_leds; i++) { in mps2_fpgaio_write() 271 for (size_t i = 0; i < s->num_leds; i++) { in mps2_fpgaio_reset() 291 if (s->num_leds > MPS2FPGAIO_MAX_LEDS) { in mps2_fpgaio_realize() 297 for (i = 0; i < s->num_leds; i++) { in mps2_fpgaio_realize() 326 DEFINE_PROP_UINT32("num-leds", MPS2FPGAIO, num_leds, 2),
|
/openbmc/linux/drivers/hid/ |
H A 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()
|
/openbmc/linux/arch/mips/ar7/ |
H A 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()
|
/openbmc/skeleton/ledctl/ |
H A D | led_controller.c | 438 int num_leds = 0; in start_led_services() local 456 count_leds = num_leds = scandir("/sys/class/leds/", in start_led_services() 458 if(num_leds <= 0) in start_led_services() 483 while(num_leds--) in start_led_services() 488 led_dbus_root, "/", led_list[num_leds]->d_name); in start_led_services()
|
/openbmc/linux/drivers/mfd/ |
H A 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()
|