Searched refs:led_data (Results 1 – 9 of 9) sorted by relevance
/openbmc/linux/drivers/leds/ |
H A D | leds-mlxreg.c | 140 return mlxreg_led_store_hw(led_data, led_data->base_color); in mlxreg_led_brightness_set() 173 err = mlxreg_led_store_hw(led_data, led_data->base_color + in mlxreg_led_blink_set() 176 err = mlxreg_led_store_hw(led_data, led_data->base_color + in mlxreg_led_blink_set() 179 err = mlxreg_led_store_hw(led_data, led_data->base_color); in mlxreg_led_blink_set() 188 struct mlxreg_led_data *led_data; in mlxreg_led_config() local 196 led_data = devm_kzalloc(&priv->pdev->dev, sizeof(*led_data), in mlxreg_led_config() 198 if (!led_data) in mlxreg_led_config() 218 led_cdev = &led_data->led_cdev; in mlxreg_led_config() 219 led_data->data_parent = priv; in mlxreg_led_config() 231 snprintf(led_data->led_cdev_name, sizeof(led_data->led_cdev_name), in mlxreg_led_config() [all …]
|
H A D | leds-pwm.c | 74 led_data->active_low = led->active_low; in led_pwm_add() 75 led_data->cdev.name = led->name; in led_pwm_add() 76 led_data->cdev.brightness = LED_OFF; in led_pwm_add() 78 led_data->cdev.flags = LED_CORE_SUSPENDRESUME; in led_pwm_add() 81 if (IS_ERR(led_data->pwm)) in led_pwm_add() 91 pwm_get_state(led_data->pwm, &led_data->pwmstate); in led_pwm_add() 92 if (led_data->pwmstate.period) in led_pwm_add() 100 pwm_init_state(led_data->pwm, &led_data->pwmstate); in led_pwm_add() 114 brightness *= led_data->pwmstate.duty_cycle; in led_pwm_add() 116 led_data->cdev.brightness = brightness; in led_pwm_add() [all …]
|
H A D | leds-lt3593.c | 66 struct lt3593_led_data *led_data; in lt3593_led_probe() local 72 led_data = devm_kzalloc(dev, sizeof(*led_data), GFP_KERNEL); in lt3593_led_probe() 73 if (!led_data) in lt3593_led_probe() 81 led_data->gpiod = devm_gpiod_get(dev, "lltc,ctrl", 0); in lt3593_led_probe() 82 if (IS_ERR(led_data->gpiod)) in lt3593_led_probe() 83 return PTR_ERR(led_data->gpiod); in lt3593_led_probe() 92 led_data->cdev.brightness_set_blocking = lt3593_led_set; in lt3593_led_probe() 93 led_data->cdev.brightness = state ? LED_FULL : LED_OFF; in lt3593_led_probe() 99 ret = devm_led_classdev_register_ext(dev, &led_data->cdev, &init_data); in lt3593_led_probe() 104 platform_set_drvdata(pdev, led_data); in lt3593_led_probe()
|
H A D | leds-nic78bx.c | 124 struct nic78bx_led_data *led_data; in nic78bx_probe() local 128 led_data = devm_kzalloc(dev, sizeof(*led_data), GFP_KERNEL); in nic78bx_probe() 129 if (!led_data) in nic78bx_probe() 132 led_data->pdev = pdev; in nic78bx_probe() 133 platform_set_drvdata(pdev, led_data); in nic78bx_probe() 152 led_data->io_base = io_rc->start; in nic78bx_probe() 153 spin_lock_init(&led_data->lock); in nic78bx_probe() 156 nic78bx_leds[i].data = led_data; in nic78bx_probe() 165 led_data->io_base + NIC78BX_LOCK_REG_OFFSET); in nic78bx_probe() 172 struct nic78bx_led_data *led_data = platform_get_drvdata(pdev); in nic78bx_remove() local [all …]
|
H A D | leds-is31fl32xx.c | 225 const struct is31fl32xx_led_data *led_data = in is31fl32xx_brightness_set() local 235 pwm_register_offset = cdef->channels - led_data->channel; in is31fl32xx_brightness_set() 237 pwm_register_offset = led_data->channel - 1; in is31fl32xx_brightness_set() 239 ret = is31fl32xx_write(led_data->priv, in is31fl32xx_brightness_set() 329 struct is31fl32xx_led_data *led_data) in is31fl32xx_parse_child_dt() argument 331 struct led_classdev *cdev = &led_data->cdev; in is31fl32xx_parse_child_dt() 342 led_data->channel = reg; in is31fl32xx_parse_child_dt() 371 struct is31fl32xx_led_data *led_data = in is31fl32xx_parse_dt() local 375 led_data->priv = priv; in is31fl32xx_parse_dt() 377 ret = is31fl32xx_parse_child_dt(dev, child, led_data); in is31fl32xx_parse_dt() [all …]
|
H A D | leds-lm3532.c | 297 static int lm3532_led_enable(struct lm3532_led *led_data) in lm3532_led_enable() argument 299 int ctrl_en_val = BIT(led_data->control_bank); in lm3532_led_enable() 302 if (led_data->enabled) in lm3532_led_enable() 308 dev_err(led_data->priv->dev, "Failed to set ctrl:%d\n", ret); in lm3532_led_enable() 312 ret = regulator_enable(led_data->priv->regulator); in lm3532_led_enable() 316 led_data->enabled = 1; in lm3532_led_enable() 322 static int lm3532_led_disable(struct lm3532_led *led_data) in lm3532_led_disable() argument 324 int ctrl_en_val = BIT(led_data->control_bank); in lm3532_led_disable() 327 if (!led_data->enabled) in lm3532_led_disable() 337 ret = regulator_disable(led_data->priv->regulator); in lm3532_led_disable() [all …]
|
/openbmc/linux/include/linux/mfd/ |
H A D | max77693.h | 76 struct max77693_led_platform_data *led_data; member
|
/openbmc/linux/drivers/platform/mellanox/ |
H A D | mlxreg-lc.c | 80 struct mlxreg_core_platform_data *led_data; member 515 mlxreg_lc->led_data = &mlxreg_lc_led; in mlxreg_lc_sn4800_c16_config_init() 770 if (mlxreg_lc->led_data) { in mlxreg_lc_config_init() 771 mlxreg_lc->led_data->regmap = regmap; in mlxreg_lc_config_init() 774 mlxreg_lc->led_data, in mlxreg_lc_config_init() 775 sizeof(*mlxreg_lc->led_data)); in mlxreg_lc_config_init()
|
H A D | nvsw-sn2201.c | 139 struct mlxreg_core_platform_data *led_data; member 982 nvsw_sn2201->led_data = &nvsw_sn2201_led; in nvsw_sn2201_config_init() 1000 if (nvsw_sn2201->led_data) { in nvsw_sn2201_config_init() 1001 nvsw_sn2201->led_data->regmap = regmap; in nvsw_sn2201_config_init() 1004 nvsw_sn2201->led_data, in nvsw_sn2201_config_init() 1005 sizeof(*nvsw_sn2201->led_data)); in nvsw_sn2201_config_init()
|