Home
last modified time | relevance | path

Searched refs:max_pwm_blc (Results 1 – 3 of 3) sorted by relevance

/drivers/gpu/drm/gma500/
Dpsb_intel_lvds.c145 u32 max_pwm_blc; in psb_lvds_pwm_set_brightness() local
148 max_pwm_blc = psb_intel_lvds_get_max_backlight(dev); in psb_lvds_pwm_set_brightness()
151 BUG_ON(max_pwm_blc == 0); in psb_lvds_pwm_set_brightness()
153 blc_pwm_duty_cycle = level * max_pwm_blc / BRIGHTNESS_MAX_LEVEL; in psb_lvds_pwm_set_brightness()
156 blc_pwm_duty_cycle = max_pwm_blc - blc_pwm_duty_cycle; in psb_lvds_pwm_set_brightness()
160 (max_pwm_blc << PSB_BACKLIGHT_PWM_CTL_SHIFT) | in psb_lvds_pwm_set_brightness()
164 (max_pwm_blc << PSB_BACKLIGHT_PWM_CTL_SHIFT) | in psb_lvds_pwm_set_brightness()
Dcdv_intel_lvds.c131 u32 max_pwm_blc;
134 max_pwm_blc = cdv_intel_lvds_get_max_backlight(dev);
137 BUG_ON((max_pwm_blc & PSB_BLC_MAX_PWM_REG_FREQ) == 0);
139 blc_pwm_duty_cycle = level * max_pwm_blc / BRIGHTNESS_MAX_LEVEL;
142 blc_pwm_duty_cycle = max_pwm_blc - blc_pwm_duty_cycle;
146 (max_pwm_blc << PSB_BACKLIGHT_PWM_CTL_SHIFT) |
Doaktrail_device.c70 u32 max_pwm_blc; in oaktrail_set_brightness() local
78 max_pwm_blc = REG_READ(BLC_PWM_CTL) >> 16; in oaktrail_set_brightness()
79 blc_pwm_ctl = level * max_pwm_blc / 100; in oaktrail_set_brightness()
95 REG_WRITE(BLC_PWM_CTL, (max_pwm_blc << 16) | blc_pwm_ctl); in oaktrail_set_brightness()