Lines Matching refs:brightness
108 int brightness; in pmac_backlight_key_worker() local
112 brightness = props->brightness + in pmac_backlight_key_worker()
116 if (brightness < 0) in pmac_backlight_key_worker()
117 brightness = 0; in pmac_backlight_key_worker()
118 else if (brightness > props->max_brightness) in pmac_backlight_key_worker()
119 brightness = props->max_brightness; in pmac_backlight_key_worker()
121 props->brightness = brightness; in pmac_backlight_key_worker()
140 static int __pmac_backlight_set_legacy_brightness(int brightness) in __pmac_backlight_set_legacy_brightness() argument
149 props->brightness = brightness * in __pmac_backlight_set_legacy_brightness()
153 if (props->brightness > props->max_brightness) in __pmac_backlight_set_legacy_brightness()
154 props->brightness = props->max_brightness; in __pmac_backlight_set_legacy_brightness()
155 else if (props->brightness < 0) in __pmac_backlight_set_legacy_brightness()
156 props->brightness = 0; in __pmac_backlight_set_legacy_brightness()
176 void pmac_backlight_set_legacy_brightness_pmu(int brightness) { in pmac_backlight_set_legacy_brightness_pmu() argument
180 pmac_backlight_set_legacy_queued = brightness; in pmac_backlight_set_legacy_brightness_pmu()
184 int pmac_backlight_set_legacy_brightness(int brightness) in pmac_backlight_set_legacy_brightness() argument
186 return __pmac_backlight_set_legacy_brightness(brightness); in pmac_backlight_set_legacy_brightness()
199 result = props->brightness * in pmac_backlight_get_legacy_brightness()