led_data 225 drivers/leds/leds-is31fl32xx.c const struct is31fl32xx_led_data *led_data = led_data 227 drivers/leds/leds-is31fl32xx.c const struct is31fl32xx_chipdef *cdef = led_data->priv->cdef; led_data 235 drivers/leds/leds-is31fl32xx.c pwm_register_offset = cdef->channels - led_data->channel; led_data 237 drivers/leds/leds-is31fl32xx.c pwm_register_offset = led_data->channel - 1; led_data 239 drivers/leds/leds-is31fl32xx.c ret = is31fl32xx_write(led_data->priv, led_data 245 drivers/leds/leds-is31fl32xx.c return is31fl32xx_write(led_data->priv, cdef->pwm_update_reg, 0); led_data 329 drivers/leds/leds-is31fl32xx.c struct is31fl32xx_led_data *led_data) led_data 331 drivers/leds/leds-is31fl32xx.c struct led_classdev *cdev = &led_data->cdev; led_data 339 drivers/leds/leds-is31fl32xx.c if (ret || reg < 1 || reg > led_data->priv->cdef->channels) { led_data 345 drivers/leds/leds-is31fl32xx.c led_data->channel = reg; led_data 376 drivers/leds/leds-is31fl32xx.c struct is31fl32xx_led_data *led_data = led_data 380 drivers/leds/leds-is31fl32xx.c led_data->priv = priv; led_data 382 drivers/leds/leds-is31fl32xx.c ret = is31fl32xx_parse_child_dt(dev, child, led_data); led_data 388 drivers/leds/leds-is31fl32xx.c led_data->channel); led_data 392 drivers/leds/leds-is31fl32xx.c led_data->cdev.name, led_data 394 drivers/leds/leds-is31fl32xx.c led_data->channel); led_data 398 drivers/leds/leds-is31fl32xx.c ret = devm_led_classdev_register(dev, &led_data->cdev); led_data 401 drivers/leds/leds-is31fl32xx.c led_data->cdev.name, ret); led_data 298 drivers/leds/leds-lm3532.c static int lm3532_led_enable(struct lm3532_led *led_data) led_data 300 drivers/leds/leds-lm3532.c int ctrl_en_val = BIT(led_data->control_bank); led_data 303 drivers/leds/leds-lm3532.c if (led_data->enabled) led_data 306 drivers/leds/leds-lm3532.c ret = regmap_update_bits(led_data->priv->regmap, LM3532_REG_ENABLE, led_data 309 drivers/leds/leds-lm3532.c dev_err(led_data->priv->dev, "Failed to set ctrl:%d\n", ret); led_data 313 drivers/leds/leds-lm3532.c ret = regulator_enable(led_data->priv->regulator); led_data 317 drivers/leds/leds-lm3532.c led_data->enabled = 1; led_data 323 drivers/leds/leds-lm3532.c static int lm3532_led_disable(struct lm3532_led *led_data) led_data 325 drivers/leds/leds-lm3532.c int ctrl_en_val = BIT(led_data->control_bank); led_data 328 drivers/leds/leds-lm3532.c if (!led_data->enabled) led_data 331 drivers/leds/leds-lm3532.c ret = regmap_update_bits(led_data->priv->regmap, LM3532_REG_ENABLE, led_data 334 drivers/leds/leds-lm3532.c dev_err(led_data->priv->dev, "Failed to set ctrl:%d\n", ret); led_data 338 drivers/leds/leds-lm3532.c ret = regulator_disable(led_data->priv->regulator); led_data 342 drivers/leds/leds-lm3532.c led_data->enabled = 0; led_data 66 drivers/leds/leds-lt3593.c struct lt3593_led_data *led_data; led_data 75 drivers/leds/leds-lt3593.c led_data = devm_kzalloc(dev, sizeof(*led_data), GFP_KERNEL); led_data 76 drivers/leds/leds-lt3593.c if (!led_data) led_data 84 drivers/leds/leds-lt3593.c led_data->gpiod = devm_gpiod_get(dev, "lltc,ctrl", 0); led_data 85 drivers/leds/leds-lt3593.c if (IS_ERR(led_data->gpiod)) led_data 86 drivers/leds/leds-lt3593.c return PTR_ERR(led_data->gpiod); led_data 91 drivers/leds/leds-lt3593.c &led_data->cdev.default_trigger); led_data 98 drivers/leds/leds-lt3593.c led_data->cdev.brightness_set_blocking = lt3593_led_set; led_data 99 drivers/leds/leds-lt3593.c led_data->cdev.brightness = state ? LED_FULL : LED_OFF; led_data 105 drivers/leds/leds-lt3593.c ret = devm_led_classdev_register_ext(dev, &led_data->cdev, &init_data); led_data 111 drivers/leds/leds-lt3593.c led_data->cdev.dev->of_node = dev->of_node; led_data 112 drivers/leds/leds-lt3593.c platform_set_drvdata(pdev, led_data); led_data 60 drivers/leds/leds-mlxreg.c mlxreg_led_store_hw(struct mlxreg_led_data *led_data, u8 vset) led_data 62 drivers/leds/leds-mlxreg.c struct mlxreg_led_priv_data *priv = led_data->data_parent; led_data 64 drivers/leds/leds-mlxreg.c struct mlxreg_core_data *data = led_data->data; led_data 98 drivers/leds/leds-mlxreg.c mlxreg_led_get_hw(struct mlxreg_led_data *led_data) led_data 100 drivers/leds/leds-mlxreg.c struct mlxreg_led_priv_data *priv = led_data->data_parent; led_data 102 drivers/leds/leds-mlxreg.c struct mlxreg_core_data *data = led_data->data; led_data 118 drivers/leds/leds-mlxreg.c dev_warn(led_data->led_cdev.dev, "Failed to get current brightness, error: %d\n", led_data 127 drivers/leds/leds-mlxreg.c if (regval >= led_data->base_color && led_data 128 drivers/leds/leds-mlxreg.c regval <= (led_data->base_color + MLXREG_LED_OFFSET_BLINK_6HZ)) led_data 137 drivers/leds/leds-mlxreg.c struct mlxreg_led_data *led_data = cdev_to_priv(cled); led_data 140 drivers/leds/leds-mlxreg.c return mlxreg_led_store_hw(led_data, led_data->base_color); led_data 142 drivers/leds/leds-mlxreg.c return mlxreg_led_store_hw(led_data, MLXREG_LED_IS_OFF); led_data 148 drivers/leds/leds-mlxreg.c struct mlxreg_led_data *led_data = cdev_to_priv(cled); led_data 150 drivers/leds/leds-mlxreg.c return mlxreg_led_get_hw(led_data); led_data 157 drivers/leds/leds-mlxreg.c struct mlxreg_led_data *led_data = cdev_to_priv(cled); led_data 173 drivers/leds/leds-mlxreg.c err = mlxreg_led_store_hw(led_data, led_data->base_color + led_data 176 drivers/leds/leds-mlxreg.c err = mlxreg_led_store_hw(led_data, led_data->base_color + led_data 179 drivers/leds/leds-mlxreg.c err = mlxreg_led_store_hw(led_data, led_data->base_color); led_data 188 drivers/leds/leds-mlxreg.c struct mlxreg_led_data *led_data; led_data 196 drivers/leds/leds-mlxreg.c led_data = devm_kzalloc(&priv->pdev->dev, sizeof(*led_data), led_data 198 drivers/leds/leds-mlxreg.c if (!led_data) led_data 218 drivers/leds/leds-mlxreg.c led_cdev = &led_data->led_cdev; led_data 219 drivers/leds/leds-mlxreg.c led_data->data_parent = priv; led_data 223 drivers/leds/leds-mlxreg.c led_data->base_color = MLXREG_LED_RED_SOLID; led_data 226 drivers/leds/leds-mlxreg.c led_data->base_color = MLXREG_LED_AMBER_SOLID; led_data 229 drivers/leds/leds-mlxreg.c led_data->base_color = MLXREG_LED_GREEN_SOLID; led_data 231 drivers/leds/leds-mlxreg.c sprintf(led_data->led_cdev_name, "%s:%s", "mlxreg", led_data 233 drivers/leds/leds-mlxreg.c led_cdev->name = led_data->led_cdev_name; led_data 241 drivers/leds/leds-mlxreg.c led_data->data = data; led_data 124 drivers/leds/leds-nic78bx.c struct nic78bx_led_data *led_data; led_data 128 drivers/leds/leds-nic78bx.c led_data = devm_kzalloc(dev, sizeof(*led_data), GFP_KERNEL); led_data 129 drivers/leds/leds-nic78bx.c if (!led_data) led_data 132 drivers/leds/leds-nic78bx.c led_data->pdev = pdev; led_data 133 drivers/leds/leds-nic78bx.c platform_set_drvdata(pdev, led_data); led_data 152 drivers/leds/leds-nic78bx.c led_data->io_base = io_rc->start; led_data 153 drivers/leds/leds-nic78bx.c spin_lock_init(&led_data->lock); led_data 156 drivers/leds/leds-nic78bx.c nic78bx_leds[i].data = led_data; led_data 165 drivers/leds/leds-nic78bx.c led_data->io_base + NIC78BX_LOCK_REG_OFFSET); led_data 172 drivers/leds/leds-nic78bx.c struct nic78bx_led_data *led_data = platform_get_drvdata(pdev); led_data 176 drivers/leds/leds-nic78bx.c led_data->io_base + NIC78BX_LOCK_REG_OFFSET); led_data 71 drivers/leds/leds-pwm.c struct led_pwm_data *led_data = &priv->leds[priv->num_leds]; led_data 75 drivers/leds/leds-pwm.c led_data->active_low = led->active_low; led_data 76 drivers/leds/leds-pwm.c led_data->cdev.name = led->name; led_data 77 drivers/leds/leds-pwm.c led_data->cdev.default_trigger = led->default_trigger; led_data 78 drivers/leds/leds-pwm.c led_data->cdev.brightness = LED_OFF; led_data 79 drivers/leds/leds-pwm.c led_data->cdev.max_brightness = led->max_brightness; led_data 80 drivers/leds/leds-pwm.c led_data->cdev.flags = LED_CORE_SUSPENDRESUME; led_data 83 drivers/leds/leds-pwm.c led_data->pwm = devm_fwnode_pwm_get(dev, fwnode, NULL); led_data 85 drivers/leds/leds-pwm.c led_data->pwm = devm_pwm_get(dev, led->name); led_data 86 drivers/leds/leds-pwm.c if (IS_ERR(led_data->pwm)) { led_data 87 drivers/leds/leds-pwm.c ret = PTR_ERR(led_data->pwm); led_data 94 drivers/leds/leds-pwm.c led_data->cdev.brightness_set_blocking = led_pwm_set; led_data 100 drivers/leds/leds-pwm.c pwm_apply_args(led_data->pwm); led_data 102 drivers/leds/leds-pwm.c pwm_get_args(led_data->pwm, &pargs); led_data 104 drivers/leds/leds-pwm.c led_data->period = pargs.period; led_data 105 drivers/leds/leds-pwm.c if (!led_data->period && (led->pwm_period_ns > 0)) led_data 106 drivers/leds/leds-pwm.c led_data->period = led->pwm_period_ns; led_data 108 drivers/leds/leds-pwm.c ret = devm_led_classdev_register(dev, &led_data->cdev); led_data 111 drivers/leds/leds-pwm.c led_pwm_set(&led_data->cdev, led_data->cdev.brightness); led_data 76 include/linux/mfd/max77693.h struct max77693_led_platform_data *led_data;