Lines Matching refs:i915
15 struct drm_i915_private *i915 = pdev_to_i915(pdev); in i915_switcheroo_set_state() local
18 if (!i915) { in i915_switcheroo_set_state()
24 drm_info(&i915->drm, "switched on\n"); in i915_switcheroo_set_state()
25 i915->drm.switch_power_state = DRM_SWITCH_POWER_CHANGING; in i915_switcheroo_set_state()
28 i915_driver_resume_switcheroo(i915); in i915_switcheroo_set_state()
29 i915->drm.switch_power_state = DRM_SWITCH_POWER_ON; in i915_switcheroo_set_state()
31 drm_info(&i915->drm, "switched off\n"); in i915_switcheroo_set_state()
32 i915->drm.switch_power_state = DRM_SWITCH_POWER_CHANGING; in i915_switcheroo_set_state()
33 i915_driver_suspend_switcheroo(i915, pmm); in i915_switcheroo_set_state()
34 i915->drm.switch_power_state = DRM_SWITCH_POWER_OFF; in i915_switcheroo_set_state()
40 struct drm_i915_private *i915 = pdev_to_i915(pdev); in i915_switcheroo_can_switch() local
47 return i915 && atomic_read(&i915->drm.open_count) == 0; in i915_switcheroo_can_switch()
56 int i915_switcheroo_register(struct drm_i915_private *i915) in i915_switcheroo_register() argument
58 struct pci_dev *pdev = to_pci_dev(i915->drm.dev); in i915_switcheroo_register()
63 void i915_switcheroo_unregister(struct drm_i915_private *i915) in i915_switcheroo_unregister() argument
65 struct pci_dev *pdev = to_pci_dev(i915->drm.dev); in i915_switcheroo_unregister()