Lines Matching full:brightness
68 unsigned long brightness; in led_timer_function() local
83 brightness = led_get_brightness(led_cdev); in led_timer_function()
84 if (!brightness) { in led_timer_function()
88 brightness = led_cdev->new_blink_brightness; in led_timer_function()
90 brightness = led_cdev->blink_brightness; in led_timer_function()
93 /* Store the current brightness value to be able in led_timer_function()
96 led_cdev->blink_brightness = brightness; in led_timer_function()
97 brightness = LED_OFF; in led_timer_function()
101 led_set_brightness_nosleep(led_cdev, brightness); in led_timer_function()
109 if (brightness) in led_timer_function()
113 if (!brightness) in led_timer_function()
131 /* No back-end support to set a fixed brightness value */ in set_brightness_delayed_set_brightness()
142 "Setting an LED's brightness failed (%d)\n", ret); in set_brightness_delayed_set_brightness()
197 /* never off - just set to brightness */ in led_set_software_blink()
293 void led_set_brightness(struct led_classdev *led_cdev, unsigned int brightness) in led_set_brightness() argument
296 * If software blink is active, delay brightness setting in led_set_brightness()
305 if (!brightness) { in led_set_brightness()
311 led_cdev->new_blink_brightness = brightness; in led_set_brightness()
316 led_set_brightness_nosleep(led_cdev, brightness); in led_set_brightness()
327 * Brightness setting can sleep, delegate it to a work queue task. in led_set_brightness_nopm()
330 * To avoid a hw-blink-disable getting lost when a second brightness in led_set_brightness_nopm()
349 led_cdev->brightness = min(value, led_cdev->max_brightness); in led_set_brightness_nosleep()
354 led_set_brightness_nopm(led_cdev, led_cdev->brightness); in led_set_brightness_nosleep()
363 led_cdev->brightness = min(value, led_cdev->max_brightness); in led_set_brightness_sync()
368 return __led_set_brightness_blocking(led_cdev, led_cdev->brightness); in led_set_brightness_sync()
378 unsigned int brightness) in led_mc_set_brightness() argument
398 led_set_brightness(led_cdev, brightness); in led_mc_set_brightness()
411 led_cdev->brightness = ret; in led_update_brightness()