Home
last modified time | relevance | path

Searched refs:max_brightness (Results 1 – 4 of 4) sorted by relevance

/third_party/weston/tests/
Dsetbacklight.c95 long brightness, max_brightness; in get_normalized_backlight() local
99 max_brightness = backlight_get_max_brightness(backlight); in get_normalized_backlight()
102 norm = (brightness * 255)/(max_brightness); in get_normalized_backlight()
111 long max_brightness, brightness, actual_brightness; in set_backlight() local
125 max_brightness = backlight_get_max_brightness(backlight); in set_backlight()
126 printf("Max backlight: %ld\n", max_brightness); in set_backlight()
138 new_blight = (blight * max_brightness) / 255; in set_backlight()
/third_party/weston/libweston/backend-drm/
Dlibbacklight.c303 backlight->max_brightness = backlight_get_max_brightness(backlight); in backlight_init()
304 if (backlight->max_brightness < 0) in backlight_init()
Dlibbacklight.h48 int max_brightness; member
Ddrm.c1054 long brightness, max_brightness, norm; in drm_get_backlight() local
1057 max_brightness = backlight_get_max_brightness(head->backlight); in drm_get_backlight()
1060 norm = (brightness * 255)/(max_brightness); in drm_get_backlight()
1071 long max_brightness, new_brightness; in drm_set_backlight() local
1080 max_brightness = backlight_get_max_brightness(head->backlight); in drm_set_backlight()
1083 new_brightness = (value * max_brightness) / 255; in drm_set_backlight()