Lines Matching refs:props
107 struct backlight_properties *props; in pmac_backlight_key_worker() local
110 props = &pmac_backlight->props; in pmac_backlight_key_worker()
112 brightness = props->brightness + in pmac_backlight_key_worker()
114 (props->max_brightness / 15)); 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()
146 struct backlight_properties *props; in __pmac_backlight_set_legacy_brightness() local
148 props = &pmac_backlight->props; in __pmac_backlight_set_legacy_brightness()
149 props->brightness = brightness * in __pmac_backlight_set_legacy_brightness()
150 (props->max_brightness + 1) / 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()
195 struct backlight_properties *props; in pmac_backlight_get_legacy_brightness() local
197 props = &pmac_backlight->props; in pmac_backlight_get_legacy_brightness()
199 result = props->brightness * in pmac_backlight_get_legacy_brightness()
201 (props->max_brightness + 1); in pmac_backlight_get_legacy_brightness()