Lines Matching refs:pled
116 struct mlxcpld_led_priv *pled; member
285 struct mlxcpld_led_priv *pled = cdev_to_priv(led); in mlxcpld_led_brightness_set() local
288 mlxcpld_led_store_hw(pled->param.mask, pled->param.offset, in mlxcpld_led_brightness_set()
289 pled->param.base_color); in mlxcpld_led_brightness_set()
293 mlxcpld_led_store_hw(pled->param.mask, pled->param.offset, in mlxcpld_led_brightness_set()
301 struct mlxcpld_led_priv *pled = cdev_to_priv(led); in mlxcpld_led_blink_set() local
315 mlxcpld_led_store_hw(pled->param.mask, pled->param.offset, in mlxcpld_led_blink_set()
316 pled->param.base_color + in mlxcpld_led_blink_set()
319 mlxcpld_led_store_hw(pled->param.mask, pled->param.offset, in mlxcpld_led_blink_set()
320 pled->param.base_color + in mlxcpld_led_blink_set()
332 cpld->pled = devm_kcalloc(dev, in mlxcpld_led_config()
336 if (!cpld->pled) in mlxcpld_led_config()
340 cpld->pled[i].cdev.name = cpld->profile[i].name; in mlxcpld_led_config()
341 cpld->pled[i].cdev.brightness = cpld->profile[i].brightness; in mlxcpld_led_config()
342 cpld->pled[i].cdev.max_brightness = 1; in mlxcpld_led_config()
343 cpld->pled[i].cdev.brightness_set = mlxcpld_led_brightness_set; in mlxcpld_led_config()
344 cpld->pled[i].cdev.blink_set = mlxcpld_led_blink_set; in mlxcpld_led_config()
345 cpld->pled[i].cdev.flags = LED_CORE_SUSPENDRESUME; in mlxcpld_led_config()
346 err = devm_led_classdev_register(dev, &cpld->pled[i].cdev); in mlxcpld_led_config()
350 cpld->pled[i].param.offset = mlxcpld_led->profile[i].offset; in mlxcpld_led_config()
351 cpld->pled[i].param.mask = mlxcpld_led->profile[i].mask; in mlxcpld_led_config()
352 cpld->pled[i].param.base_color = in mlxcpld_led_config()
356 mlxcpld_led_brightness_set(&cpld->pled[i].cdev, in mlxcpld_led_config()