Home
last modified time | relevance | path

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

/linux-6.6.21/drivers/gpu/drm/i915/
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()
Di915_driver.c1179 if (i915->drm.switch_power_state == DRM_SWITCH_POWER_OFF) in i915_driver_suspend_switcheroo()
1343 if (i915->drm.switch_power_state == DRM_SWITCH_POWER_OFF) in i915_driver_resume_switcheroo()
1362 if (i915->drm.switch_power_state == DRM_SWITCH_POWER_OFF) in i915_pm_prepare()
1377 if (i915->drm.switch_power_state == DRM_SWITCH_POWER_OFF) in i915_pm_suspend()
1396 if (i915->drm.switch_power_state == DRM_SWITCH_POWER_OFF) in i915_pm_suspend_late()
1406 if (i915->drm.switch_power_state == DRM_SWITCH_POWER_OFF) in i915_pm_poweroff_late()
1416 if (i915->drm.switch_power_state == DRM_SWITCH_POWER_OFF) in i915_pm_resume_early()
1426 if (i915->drm.switch_power_state == DRM_SWITCH_POWER_OFF) in i915_pm_resume()
1436 if (i915->drm.switch_power_state == DRM_SWITCH_POWER_OFF) in i915_pm_complete()
1448 if (i915->drm.switch_power_state != DRM_SWITCH_POWER_OFF) { in i915_pm_freeze()
[all …]
/linux-6.6.21/drivers/gpu/drm/nouveau/
Dnouveau_vga.c44 dev->switch_power_state = DRM_SWITCH_POWER_CHANGING; in nouveau_switcheroo_set_state()
46 dev->switch_power_state = DRM_SWITCH_POWER_ON; in nouveau_switcheroo_set_state()
49 dev->switch_power_state = DRM_SWITCH_POWER_CHANGING; in nouveau_switcheroo_set_state()
52 dev->switch_power_state = DRM_SWITCH_POWER_OFF; in nouveau_switcheroo_set_state()
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()
Dnouveau_drm.c983 if (drm_dev->switch_power_state == DRM_SWITCH_POWER_OFF || in nouveau_pmops_suspend()
984 drm_dev->switch_power_state == DRM_SWITCH_POWER_DYNAMIC_OFF) in nouveau_pmops_suspend()
1005 if (drm_dev->switch_power_state == DRM_SWITCH_POWER_OFF || in nouveau_pmops_resume()
1006 drm_dev->switch_power_state == DRM_SWITCH_POWER_DYNAMIC_OFF) in nouveau_pmops_resume()
1066 drm_dev->switch_power_state = DRM_SWITCH_POWER_DYNAMIC_OFF; in nouveau_pmops_runtime_suspend()
1099 drm_dev->switch_power_state = DRM_SWITCH_POWER_ON; in nouveau_pmops_runtime_resume()
/linux-6.6.21/include/drm/
Ddrm_device.h30 enum switch_power_state { enum
304 enum switch_power_state switch_power_state; member
/linux-6.6.21/drivers/gpu/drm/radeon/
Dradeon_drv.c402 drm_dev->switch_power_state = DRM_SWITCH_POWER_CHANGING; in radeon_pmops_runtime_suspend()
413 drm_dev->switch_power_state = DRM_SWITCH_POWER_DYNAMIC_OFF; in radeon_pmops_runtime_suspend()
427 drm_dev->switch_power_state = DRM_SWITCH_POWER_CHANGING; in radeon_pmops_runtime_resume()
440 drm_dev->switch_power_state = DRM_SWITCH_POWER_ON; in radeon_pmops_runtime_resume()
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()
1563 if (dev->switch_power_state == DRM_SWITCH_POWER_OFF) in radeon_suspend_kms()
1663 if (dev->switch_power_state == DRM_SWITCH_POWER_OFF) in radeon_resume_kms()
Dradeon_pm.c379 (ddev->switch_power_state != DRM_SWITCH_POWER_ON)) in radeon_set_pm_profile()
431 (ddev->switch_power_state != DRM_SWITCH_POWER_ON)) { in radeon_set_pm_method()
502 (ddev->switch_power_state == DRM_SWITCH_POWER_ON)) in radeon_set_dpm_state()
518 (ddev->switch_power_state != DRM_SWITCH_POWER_ON)) in radeon_get_dpm_forced_performance_level()
538 (ddev->switch_power_state != DRM_SWITCH_POWER_ON)) in radeon_set_dpm_forced_performance_level()
678 (ddev->switch_power_state != DRM_SWITCH_POWER_ON)) in radeon_hwmon_show_temp()
722 (ddev->switch_power_state != DRM_SWITCH_POWER_ON)) in radeon_hwmon_show_sclk()
747 (ddev->switch_power_state != DRM_SWITCH_POWER_ON)) in radeon_hwmon_show_vddc()
1923 (ddev->switch_power_state != DRM_SWITCH_POWER_ON)) { in radeon_debugfs_pm_info_show()
/linux-6.6.21/drivers/gpu/drm/
Ddrm_file.c343 if (dev->switch_power_state != DRM_SWITCH_POWER_ON && in drm_open_helper()
344 dev->switch_power_state != DRM_SWITCH_POWER_DYNAMIC_OFF) in drm_open_helper()
Ddrm_fb_helper.c292 if (dev->switch_power_state == DRM_SWITCH_POWER_OFF) in drm_fb_helper_restore_work_fn()
/linux-6.6.21/drivers/gpu/drm/amd/amdgpu/
Damdgpu_drv.c2589 drm_dev->switch_power_state = DRM_SWITCH_POWER_CHANGING; in amdgpu_pmops_runtime_suspend()
2620 drm_dev->switch_power_state = DRM_SWITCH_POWER_DYNAMIC_OFF; in amdgpu_pmops_runtime_suspend()
2647 drm_dev->switch_power_state = DRM_SWITCH_POWER_CHANGING; in amdgpu_pmops_runtime_resume()
2674 drm_dev->switch_power_state = DRM_SWITCH_POWER_ON; in amdgpu_pmops_runtime_resume()
Damdgpu_device.c1539 dev->switch_power_state = DRM_SWITCH_POWER_CHANGING; in amdgpu_switcheroo_set_state()
1548 dev->switch_power_state = DRM_SWITCH_POWER_ON; in amdgpu_switcheroo_set_state()
1551 dev->switch_power_state = DRM_SWITCH_POWER_CHANGING; in amdgpu_switcheroo_set_state()
1557 dev->switch_power_state = DRM_SWITCH_POWER_OFF; in amdgpu_switcheroo_set_state()
4112 if (dev->switch_power_state == DRM_SWITCH_POWER_OFF) in amdgpu_device_suspend()
4179 if (dev->switch_power_state == DRM_SWITCH_POWER_OFF) in amdgpu_device_resume()
/linux-6.6.21/drivers/gpu/drm/i915/display/
Dintel_backlight.c448 if (i915->drm.switch_power_state == DRM_SWITCH_POWER_CHANGING) { in intel_backlight_disable()