Lines Matching full:ctl2

603 	u32 ctl, ctl2, freq;  in i965_enable_backlight()  local
605 ctl2 = intel_de_read(i915, BLC_PWM_CTL2); in i965_enable_backlight()
606 if (ctl2 & BLM_PWM_ENABLE) { in i965_enable_backlight()
609 ctl2 &= ~BLM_PWM_ENABLE; in i965_enable_backlight()
610 intel_de_write(i915, BLC_PWM_CTL2, ctl2); in i965_enable_backlight()
620 ctl2 = BLM_PIPE(pipe); in i965_enable_backlight()
622 ctl2 |= BLM_COMBINATION_MODE; in i965_enable_backlight()
624 ctl2 |= BLM_POLARITY_I965; in i965_enable_backlight()
625 intel_de_write(i915, BLC_PWM_CTL2, ctl2); in i965_enable_backlight()
627 intel_de_write(i915, BLC_PWM_CTL2, ctl2 | BLM_PWM_ENABLE); in i965_enable_backlight()
639 u32 ctl, ctl2; in vlv_enable_backlight() local
641 ctl2 = intel_de_read(i915, VLV_BLC_PWM_CTL2(pipe)); in vlv_enable_backlight()
642 if (ctl2 & BLM_PWM_ENABLE) { in vlv_enable_backlight()
645 ctl2 &= ~BLM_PWM_ENABLE; in vlv_enable_backlight()
646 intel_de_write(i915, VLV_BLC_PWM_CTL2(pipe), ctl2); in vlv_enable_backlight()
655 ctl2 = 0; in vlv_enable_backlight()
657 ctl2 |= BLM_POLARITY_I965; in vlv_enable_backlight()
658 intel_de_write(i915, VLV_BLC_PWM_CTL2(pipe), ctl2); in vlv_enable_backlight()
660 intel_de_write(i915, VLV_BLC_PWM_CTL2(pipe), ctl2 | BLM_PWM_ENABLE); in vlv_enable_backlight()
1347 u32 ctl, ctl2; in i965_setup_backlight() local
1349 ctl2 = intel_de_read(i915, BLC_PWM_CTL2); in i965_setup_backlight()
1350 panel->backlight.combination_mode = ctl2 & BLM_COMBINATION_MODE; in i965_setup_backlight()
1351 panel->backlight.active_low_pwm = ctl2 & BLM_POLARITY_I965; in i965_setup_backlight()
1367 panel->backlight.pwm_enabled = ctl2 & BLM_PWM_ENABLE; in i965_setup_backlight()
1380 u32 ctl, ctl2; in vlv_setup_backlight() local
1385 ctl2 = intel_de_read(i915, VLV_BLC_PWM_CTL2(pipe)); in vlv_setup_backlight()
1386 panel->backlight.active_low_pwm = ctl2 & BLM_POLARITY_I965; in vlv_setup_backlight()
1399 panel->backlight.pwm_enabled = ctl2 & BLM_PWM_ENABLE; in vlv_setup_backlight()