Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/gpu/drm/gma500/
Dpsb_intel_lvds.c132 u32 max_pwm_blc; in psb_lvds_pwm_set_brightness() local
135 max_pwm_blc = psb_intel_lvds_get_max_backlight(dev); in psb_lvds_pwm_set_brightness()
138 BUG_ON(max_pwm_blc == 0); in psb_lvds_pwm_set_brightness()
140 blc_pwm_duty_cycle = level * max_pwm_blc / BRIGHTNESS_MAX_LEVEL; in psb_lvds_pwm_set_brightness()
143 blc_pwm_duty_cycle = max_pwm_blc - blc_pwm_duty_cycle; in psb_lvds_pwm_set_brightness()
147 (max_pwm_blc << PSB_BACKLIGHT_PWM_CTL_SHIFT) | in psb_lvds_pwm_set_brightness()
151 (max_pwm_blc << PSB_BACKLIGHT_PWM_CTL_SHIFT) | in psb_lvds_pwm_set_brightness()
Dcdv_intel_lvds.c118 u32 max_pwm_blc;
121 max_pwm_blc = cdv_intel_lvds_get_max_backlight(dev);
124 BUG_ON((max_pwm_blc & PSB_BLC_MAX_PWM_REG_FREQ) == 0);
126 blc_pwm_duty_cycle = level * max_pwm_blc / BRIGHTNESS_MAX_LEVEL;
129 blc_pwm_duty_cycle = max_pwm_blc - blc_pwm_duty_cycle;
133 (max_pwm_blc << PSB_BACKLIGHT_PWM_CTL_SHIFT) |
Doaktrail_device.c60 u32 max_pwm_blc; in oaktrail_set_brightness() local
68 max_pwm_blc = REG_READ(BLC_PWM_CTL) >> 16; in oaktrail_set_brightness()
69 blc_pwm_ctl = level * max_pwm_blc / 100; in oaktrail_set_brightness()
85 REG_WRITE(BLC_PWM_CTL, (max_pwm_blc << 16) | blc_pwm_ctl); in oaktrail_set_brightness()