/kernel/linux/linux-6.6/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() 257 cap11xx_init_leds(struct device *dev, struct cap11xx_priv *priv, int num_leds) cap11xx_init_leds() argument 323 cap11xx_init_leds(struct device *dev, struct cap11xx_priv *priv, int num_leds) cap11xx_init_leds() argument [all...] |
/kernel/linux/linux-5.10/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, sizeo in mc13xxx_led_probe() [all...] |
H A D | leds-gpio.c | 124 int num_leds; member 144 struct gpio_led_data *led_dat = &priv->leds[priv->num_leds]; in gpio_leds_create() 188 priv->num_leds++; in gpio_leds_create() 253 if (pdata && pdata->num_leds) { in gpio_led_probe() 254 priv = devm_kzalloc(&pdev->dev, struct_size(priv, leds, pdata->num_leds), in gpio_led_probe() 259 priv->num_leds = pdata->num_leds; in gpio_led_probe() 260 for (i = 0; i < priv->num_leds; i++) { in gpio_led_probe() 298 for (i = 0; i < priv->num_leds; i++) { in gpio_led_shutdown()
|
H A D | leds-pca9532.c | 23 /* m = num_leds*/ 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() [all...] |
H A 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; in is31fl319x_probe() [all...] |
H A D | leds-lm36274.c | 30 * @num_leds: Number of LED strings are supported in this array 40 int num_leds; member 56 for (i = 0; i < chip->num_leds; i++) in lm36274_init() 87 chip->num_leds = fwnode_property_count_u32(child, "led-sources"); in lm36274_parse_dt() 88 if (chip->num_leds <= 0) { in lm36274_parse_dt() 94 chip->led_sources, chip->num_leds); in lm36274_parse_dt()
|
H A D | leds-lp50xx.c | 178 * @num_leds: number of LED outputs available on the device 189 u8 num_leds; member 201 .num_leds = LP5009_MAX_LED_MODULES * LP50XX_LEDS_PER_MODULE, 212 .num_leds = LP5012_MAX_LED_MODULES * LP50XX_LEDS_PER_MODULE, 223 .num_leds = LP5018_MAX_LED_MODULES * LP50XX_LEDS_PER_MODULE, 234 .num_leds = LP5024_MAX_LED_MODULES * LP50XX_LEDS_PER_MODULE, 245 .num_leds = LP5030_MAX_LED_MODULES * LP50XX_LEDS_PER_MODULE, 256 .num_leds = LP5036_MAX_LED_MODULES * LP50XX_LEDS_PER_MODULE, 283 * @chip_info: chip specific information (ie num_leds) 399 struct lp50xx_led *led, int num_leds) in lp50xx_probe_leds() 398 lp50xx_probe_leds(struct fwnode_handle *child, struct lp50xx *priv, struct lp50xx_led *led, int num_leds) lp50xx_probe_leds() argument [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-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()
|
/kernel/linux/linux-6.6/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, sizeo in mc13xxx_led_probe() [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-pca9532.c | 22 /* m = num_leds*/ 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() [all...] |
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-lm36274.c | 31 * @num_leds: Number of LED strings are supported in this array 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-lp50xx.c | 177 * @num_leds: number of LED outputs available on the device 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, 281 * @chip_info: chip specific information (ie num_leds) 395 struct lp50xx_led *led, int num_leds) in lp50xx_probe_leds() 394 lp50xx_probe_leds(struct fwnode_handle *child, struct lp50xx *priv, struct lp50xx_led *led, int num_leds) lp50xx_probe_leds() argument [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()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-6.6/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()
|
/kernel/linux/linux-5.10/drivers/input/keyboard/ |
H A 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() 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() 248 cap11xx_init_leds(struct device *dev, struct cap11xx_priv *priv, int num_leds) cap11xx_init_leds() argument 314 cap11xx_init_leds(struct device *dev, struct cap11xx_priv *priv, int num_leds) cap11xx_init_leds() argument [all...] |
/kernel/linux/linux-5.10/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; in hidled_probe() [all...] |
/kernel/linux/linux-6.6/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; in hidled_probe() [all...] |