Lines Matching refs: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()
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()
293 void led_set_brightness(struct led_classdev *led_cdev, unsigned int brightness) in led_set_brightness() argument
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()
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()