Lines Matching refs:props
108 struct backlight_properties *props; in pmac_backlight_key_worker() local
111 props = &pmac_backlight->props; in pmac_backlight_key_worker()
113 brightness = props->brightness + in pmac_backlight_key_worker()
115 (props->max_brightness / 15)); in pmac_backlight_key_worker()
119 else if (brightness > props->max_brightness) in pmac_backlight_key_worker()
120 brightness = props->max_brightness; in pmac_backlight_key_worker()
122 props->brightness = brightness; in pmac_backlight_key_worker()
147 struct backlight_properties *props; in __pmac_backlight_set_legacy_brightness() local
149 props = &pmac_backlight->props; in __pmac_backlight_set_legacy_brightness()
150 props->brightness = brightness * in __pmac_backlight_set_legacy_brightness()
151 (props->max_brightness + 1) / in __pmac_backlight_set_legacy_brightness()
154 if (props->brightness > props->max_brightness) in __pmac_backlight_set_legacy_brightness()
155 props->brightness = props->max_brightness; in __pmac_backlight_set_legacy_brightness()
156 else if (props->brightness < 0) in __pmac_backlight_set_legacy_brightness()
157 props->brightness = 0; in __pmac_backlight_set_legacy_brightness()
196 struct backlight_properties *props; in pmac_backlight_get_legacy_brightness() local
198 props = &pmac_backlight->props; in pmac_backlight_get_legacy_brightness()
200 result = props->brightness * in pmac_backlight_get_legacy_brightness()
202 (props->max_brightness + 1); in pmac_backlight_get_legacy_brightness()