Home
last modified time | relevance | path

Searched refs:switch_power_state (Results 1 – 14 of 14) sorted by relevance

/linux/drivers/gpu/drm/i915/
H A Di915_switcheroo.c29 i915->drm.switch_power_state = DRM_SWITCH_POWER_CHANGING; in i915_switcheroo_set_state()
33 i915->drm.switch_power_state = DRM_SWITCH_POWER_ON; in i915_switcheroo_set_state()
36 i915->drm.switch_power_state = DRM_SWITCH_POWER_CHANGING; in i915_switcheroo_set_state()
38 i915->drm.switch_power_state = DRM_SWITCH_POWER_OFF; in i915_switcheroo_set_state()
H A Di915_driver.c1129 if (i915->drm.switch_power_state == DRM_SWITCH_POWER_OFF) in i915_driver_suspend_switcheroo()
1298 if (i915->drm.switch_power_state == DRM_SWITCH_POWER_OFF) in i915_driver_resume_switcheroo()
1317 if (i915->drm.switch_power_state == DRM_SWITCH_POWER_OFF) in i915_pm_prepare()
1332 if (i915->drm.switch_power_state == DRM_SWITCH_POWER_OFF) in i915_pm_suspend()
1351 if (i915->drm.switch_power_state == DRM_SWITCH_POWER_OFF) in i915_pm_suspend_late()
1361 if (i915->drm.switch_power_state == DRM_SWITCH_POWER_OFF) in i915_pm_poweroff_late()
1371 if (i915->drm.switch_power_state == DRM_SWITCH_POWER_OFF) in i915_pm_resume_early()
1381 if (i915->drm.switch_power_state == DRM_SWITCH_POWER_OFF) in i915_pm_resume()
1391 if (i915->drm.switch_power_state == DRM_SWITCH_POWER_OFF) in i915_pm_complete()
1403 if (i915->drm.switch_power_state != DRM_SWITCH_POWER_OFF) { in i915_pm_freeze()
[all …]
/linux/drivers/gpu/drm/nouveau/
H A Dnouveau_vga.c45 dev->switch_power_state = DRM_SWITCH_POWER_CHANGING; in nouveau_switcheroo_set_state()
47 dev->switch_power_state = DRM_SWITCH_POWER_ON; in nouveau_switcheroo_set_state()
50 dev->switch_power_state = DRM_SWITCH_POWER_CHANGING; in nouveau_switcheroo_set_state()
53 dev->switch_power_state = DRM_SWITCH_POWER_OFF; in nouveau_switcheroo_set_state()
H A Dnouveau_hwmon.c378 if (drm_dev->switch_power_state != DRM_SWITCH_POWER_ON) in nouveau_temp_read()
426 if (drm_dev->switch_power_state != DRM_SWITCH_POWER_ON) in nouveau_fan_read()
450 if (drm_dev->switch_power_state != DRM_SWITCH_POWER_ON) in nouveau_in_read()
483 if (drm_dev->switch_power_state != DRM_SWITCH_POWER_ON) in nouveau_pwm_read()
506 if (drm_dev->switch_power_state != DRM_SWITCH_POWER_ON) in nouveau_power_read()
H A Dnouveau_drm.c1016 if (drm->dev->switch_power_state == DRM_SWITCH_POWER_OFF || in nouveau_pmops_suspend()
1017 drm->dev->switch_power_state == DRM_SWITCH_POWER_DYNAMIC_OFF) in nouveau_pmops_suspend()
1038 if (drm->dev->switch_power_state == DRM_SWITCH_POWER_OFF || in nouveau_pmops_resume()
1039 drm->dev->switch_power_state == DRM_SWITCH_POWER_DYNAMIC_OFF) in nouveau_pmops_resume()
1099 drm->dev->switch_power_state = DRM_SWITCH_POWER_DYNAMIC_OFF; in nouveau_pmops_runtime_suspend()
1131 drm->dev->switch_power_state = DRM_SWITCH_POWER_ON; in nouveau_pmops_runtime_resume()
/linux/include/drm/
H A Ddrm_device.h29 enum switch_power_state { enum
304 enum switch_power_state switch_power_state; member
/linux/drivers/gpu/drm/radeon/
H A Dradeon_drv.c412 drm_dev->switch_power_state = DRM_SWITCH_POWER_CHANGING; in radeon_pmops_runtime_suspend()
423 drm_dev->switch_power_state = DRM_SWITCH_POWER_DYNAMIC_OFF; in radeon_pmops_runtime_suspend()
437 drm_dev->switch_power_state = DRM_SWITCH_POWER_CHANGING; in radeon_pmops_runtime_resume()
450 drm_dev->switch_power_state = DRM_SWITCH_POWER_ON; in radeon_pmops_runtime_resume()
H A Dradeon_device.c1224 dev->switch_power_state = DRM_SWITCH_POWER_CHANGING; in radeon_switcheroo_set_state()
1228 dev->switch_power_state = DRM_SWITCH_POWER_ON; in radeon_switcheroo_set_state()
1233 dev->switch_power_state = DRM_SWITCH_POWER_CHANGING; in radeon_switcheroo_set_state()
1235 dev->switch_power_state = DRM_SWITCH_POWER_OFF; in radeon_switcheroo_set_state()
1560 if (dev->switch_power_state == DRM_SWITCH_POWER_OFF) in radeon_suspend_kms()
1660 if (dev->switch_power_state == DRM_SWITCH_POWER_OFF) in radeon_resume_kms()
H A Dradeon_pm.c380 (ddev->switch_power_state != DRM_SWITCH_POWER_ON)) in radeon_set_pm_profile()
432 (ddev->switch_power_state != DRM_SWITCH_POWER_ON)) { in radeon_set_pm_method()
503 (ddev->switch_power_state == DRM_SWITCH_POWER_ON)) in radeon_set_dpm_state()
519 (ddev->switch_power_state != DRM_SWITCH_POWER_ON)) in radeon_get_dpm_forced_performance_level()
539 (ddev->switch_power_state != DRM_SWITCH_POWER_ON)) in radeon_set_dpm_forced_performance_level()
679 (ddev->switch_power_state != DRM_SWITCH_POWER_ON)) in radeon_hwmon_show_temp()
723 (ddev->switch_power_state != DRM_SWITCH_POWER_ON)) in radeon_hwmon_show_sclk()
748 (ddev->switch_power_state != DRM_SWITCH_POWER_ON)) in radeon_hwmon_show_vddc()
1924 (ddev->switch_power_state != DRM_SWITCH_POWER_ON)) { in radeon_debugfs_pm_info_show()
/linux/drivers/gpu/drm/
H A Ddrm_file.c309 if (dev->switch_power_state != DRM_SWITCH_POWER_ON && in drm_open_helper()
310 dev->switch_power_state != DRM_SWITCH_POWER_DYNAMIC_OFF) in drm_open_helper()
H A Ddrm_fb_helper.c278 if (dev->switch_power_state == DRM_SWITCH_POWER_OFF) in drm_fb_helper_restore_work_fn()
/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_drv.c2760 drm_dev->switch_power_state = DRM_SWITCH_POWER_CHANGING; in amdgpu_pmops_runtime_suspend()
2794 drm_dev->switch_power_state = DRM_SWITCH_POWER_DYNAMIC_OFF; in amdgpu_pmops_runtime_suspend()
2822 drm_dev->switch_power_state = DRM_SWITCH_POWER_CHANGING; in amdgpu_pmops_runtime_resume()
2850 drm_dev->switch_power_state = DRM_SWITCH_POWER_ON; in amdgpu_pmops_runtime_resume()
H A Damdgpu_device.c2002 dev->switch_power_state = DRM_SWITCH_POWER_CHANGING; in amdgpu_switcheroo_set_state()
2011 dev->switch_power_state = DRM_SWITCH_POWER_ON; in amdgpu_switcheroo_set_state()
2014 dev->switch_power_state = DRM_SWITCH_POWER_CHANGING; in amdgpu_switcheroo_set_state()
2021 dev->switch_power_state = DRM_SWITCH_POWER_OFF; in amdgpu_switcheroo_set_state()
4682 if (dev->switch_power_state == DRM_SWITCH_POWER_OFF) in amdgpu_device_prepare()
4725 if (dev->switch_power_state == DRM_SWITCH_POWER_OFF) in amdgpu_device_suspend()
4793 if (dev->switch_power_state == DRM_SWITCH_POWER_OFF) in amdgpu_device_resume()
/linux/drivers/gpu/drm/i915/display/
H A Dintel_backlight.c449 if (i915->drm.switch_power_state == DRM_SWITCH_POWER_CHANGING) { in intel_backlight_disable()