Lines Matching defs:dev_priv

320 	struct drm_i915_private *dev_priv = dev->dev_private;
333 struct drm_i915_private *dev_priv = dev->dev_private;
338 if (HAS_PCH_SPLIT(dev_priv->dev)) {
340 if (dev_priv->regfile.saveBLC_PWM_CTL2 == 0) {
341 dev_priv->regfile.saveBLC_PWM_CTL2 = val;
343 val = dev_priv->regfile.saveBLC_PWM_CTL2;
348 if (dev_priv->regfile.saveBLC_PWM_CTL == 0) {
349 dev_priv->regfile.saveBLC_PWM_CTL = val;
351 dev_priv->regfile.saveBLC_PWM_CTL2 =
354 val = dev_priv->regfile.saveBLC_PWM_CTL;
358 dev_priv->regfile.saveBLC_PWM_CTL2);
390 struct drm_i915_private *dev_priv = dev->dev_private;
396 dev_priv->quirks & QUIRK_INVERT_BRIGHTNESS) {
407 struct drm_i915_private *dev_priv = dev->dev_private;
411 spin_lock_irqsave(&dev_priv->backlight.lock, flags);
430 spin_unlock_irqrestore(&dev_priv->backlight.lock, flags);
438 struct drm_i915_private *dev_priv = dev->dev_private;
445 struct drm_i915_private *dev_priv = dev->dev_private;
479 struct drm_i915_private *dev_priv = dev->dev_private;
483 spin_lock_irqsave(&dev_priv->backlight.lock, flags);
497 dev_priv->backlight.level = level;
498 // if (dev_priv->backlight.device)
499 // dev_priv->backlight.device->props.brightness = level;
501 if (dev_priv->backlight.enabled)
504 spin_unlock_irqrestore(&dev_priv->backlight.lock, flags);
509 struct drm_i915_private *dev_priv = dev->dev_private;
523 spin_lock_irqsave(&dev_priv->backlight.lock, flags);
525 dev_priv->backlight.enabled = false;
542 spin_unlock_irqrestore(&dev_priv->backlight.lock, flags);
548 struct drm_i915_private *dev_priv = dev->dev_private;
550 intel_pipe_to_cpu_transcoder(dev_priv, pipe);
553 spin_lock_irqsave(&dev_priv->backlight.lock, flags);
555 if (dev_priv->backlight.level == 0) {
556 dev_priv->backlight.level = intel_panel_get_max_backlight(dev);
557 // if (dev_priv->backlight.device)
558 // dev_priv->backlight.device->props.brightness =
559 // dev_priv->backlight.level;
592 !(dev_priv->quirks & QUIRK_NO_PCH_PWM_ENABLE)) {
605 dev_priv->backlight.enabled = true;
606 intel_panel_actually_set_backlight(dev, dev_priv->backlight.level);
608 spin_unlock_irqrestore(&dev_priv->backlight.lock, flags);
613 struct drm_i915_private *dev_priv = dev->dev_private;
615 dev_priv->backlight.level = intel_panel_get_backlight(dev);
616 dev_priv->backlight.enabled = dev_priv->backlight.level != 0;
623 struct drm_i915_private *dev_priv = dev->dev_private;
626 if (!i915_panel_ignore_lid && dev_priv->opregion.lid_state) {
627 u32 *regs = (u32 *)dev_priv->opregion.lid_state;
668 struct drm_i915_private *dev_priv = dev->dev_private;
674 if (WARN_ON(dev_priv->backlight.device))
679 props.brightness = dev_priv->backlight.level;
681 spin_lock_irqsave(&dev_priv->backlight.lock, flags);
683 spin_unlock_irqrestore(&dev_priv->backlight.lock, flags);
688 dev_priv->backlight.device =
693 if (IS_ERR(dev_priv->backlight.device)) {
695 PTR_ERR(dev_priv->backlight.device));
696 dev_priv->backlight.device = NULL;
704 struct drm_i915_private *dev_priv = dev->dev_private;
705 if (dev_priv->backlight.device) {
706 backlight_device_unregister(dev_priv->backlight.device);
707 dev_priv->backlight.device = NULL;