Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/gpu/drm/i915/
Di915_switcheroo.c24 i915->drm.switch_power_state = DRM_SWITCH_POWER_CHANGING; in i915_switcheroo_set_state()
28 i915->drm.switch_power_state = DRM_SWITCH_POWER_ON; in i915_switcheroo_set_state()
31 i915->drm.switch_power_state = DRM_SWITCH_POWER_CHANGING; in i915_switcheroo_set_state()
33 i915->drm.switch_power_state = DRM_SWITCH_POWER_OFF; in i915_switcheroo_set_state()
Di915_drv.c1173 if (i915->drm.switch_power_state == DRM_SWITCH_POWER_OFF) in i915_suspend_switcheroo()
1329 if (i915->drm.switch_power_state == DRM_SWITCH_POWER_OFF) in i915_resume_switcheroo()
1348 if (i915->drm.switch_power_state == DRM_SWITCH_POWER_OFF) in i915_pm_prepare()
1363 if (i915->drm.switch_power_state == DRM_SWITCH_POWER_OFF) in i915_pm_suspend()
1382 if (i915->drm.switch_power_state == DRM_SWITCH_POWER_OFF) in i915_pm_suspend_late()
1392 if (i915->drm.switch_power_state == DRM_SWITCH_POWER_OFF) in i915_pm_poweroff_late()
1402 if (i915->drm.switch_power_state == DRM_SWITCH_POWER_OFF) in i915_pm_resume_early()
1412 if (i915->drm.switch_power_state == DRM_SWITCH_POWER_OFF) in i915_pm_resume()
1424 if (i915->drm.switch_power_state != DRM_SWITCH_POWER_OFF) { in i915_pm_freeze()
1442 if (i915->drm.switch_power_state != DRM_SWITCH_POWER_OFF) { in i915_pm_freeze_late()
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/
Dnouveau_vga.c46 dev->switch_power_state = DRM_SWITCH_POWER_CHANGING; in nouveau_switcheroo_set_state()
48 dev->switch_power_state = DRM_SWITCH_POWER_ON; in nouveau_switcheroo_set_state()
51 dev->switch_power_state = DRM_SWITCH_POWER_CHANGING; in nouveau_switcheroo_set_state()
54 dev->switch_power_state = DRM_SWITCH_POWER_OFF; in nouveau_switcheroo_set_state()
Dnouveau_hwmon.c429 if (drm_dev->switch_power_state != DRM_SWITCH_POWER_ON) in nouveau_temp_read()
477 if (drm_dev->switch_power_state != DRM_SWITCH_POWER_ON) in nouveau_fan_read()
501 if (drm_dev->switch_power_state != DRM_SWITCH_POWER_ON) in nouveau_in_read()
534 if (drm_dev->switch_power_state != DRM_SWITCH_POWER_ON) in nouveau_pwm_read()
557 if (drm_dev->switch_power_state != DRM_SWITCH_POWER_ON) in nouveau_power_read()
Dnouveau_drm.c941 if (drm_dev->switch_power_state == DRM_SWITCH_POWER_OFF || in nouveau_pmops_suspend()
942 drm_dev->switch_power_state == DRM_SWITCH_POWER_DYNAMIC_OFF) in nouveau_pmops_suspend()
963 if (drm_dev->switch_power_state == DRM_SWITCH_POWER_OFF || in nouveau_pmops_resume()
964 drm_dev->switch_power_state == DRM_SWITCH_POWER_DYNAMIC_OFF) in nouveau_pmops_resume()
1024 drm_dev->switch_power_state = DRM_SWITCH_POWER_DYNAMIC_OFF; in nouveau_pmops_runtime_suspend()
1057 drm_dev->switch_power_state = DRM_SWITCH_POWER_ON; in nouveau_pmops_runtime_resume()
/kernel/linux/linux-5.10/include/drm/
Ddrm_device.h33 enum switch_power_state { enum
322 enum switch_power_state switch_power_state; member
/kernel/linux/linux-5.10/drivers/gpu/drm/radeon/
Dradeon_drv.c474 drm_dev->switch_power_state = DRM_SWITCH_POWER_CHANGING; in radeon_pmops_runtime_suspend()
485 drm_dev->switch_power_state = DRM_SWITCH_POWER_DYNAMIC_OFF; in radeon_pmops_runtime_suspend()
499 drm_dev->switch_power_state = DRM_SWITCH_POWER_CHANGING; in radeon_pmops_runtime_resume()
512 drm_dev->switch_power_state = DRM_SWITCH_POWER_ON; in radeon_pmops_runtime_resume()
Dradeon_device.c1233 dev->switch_power_state = DRM_SWITCH_POWER_CHANGING; in radeon_switcheroo_set_state()
1237 dev->switch_power_state = DRM_SWITCH_POWER_ON; in radeon_switcheroo_set_state()
1242 dev->switch_power_state = DRM_SWITCH_POWER_CHANGING; in radeon_switcheroo_set_state()
1244 dev->switch_power_state = DRM_SWITCH_POWER_OFF; in radeon_switcheroo_set_state()
1577 if (dev->switch_power_state == DRM_SWITCH_POWER_OFF) in radeon_suspend_kms()
1678 if (dev->switch_power_state == DRM_SWITCH_POWER_OFF) in radeon_resume_kms()
Dradeon_pm.c380 (ddev->switch_power_state != DRM_SWITCH_POWER_ON)) in radeon_set_pm_profile()
433 (ddev->switch_power_state != DRM_SWITCH_POWER_ON)) { in radeon_set_pm_method()
504 (ddev->switch_power_state == DRM_SWITCH_POWER_ON)) in radeon_set_dpm_state()
520 (ddev->switch_power_state != DRM_SWITCH_POWER_ON)) in radeon_get_dpm_forced_performance_level()
540 (ddev->switch_power_state != DRM_SWITCH_POWER_ON)) in radeon_set_dpm_forced_performance_level()
680 (ddev->switch_power_state != DRM_SWITCH_POWER_ON)) in radeon_hwmon_show_temp()
724 (ddev->switch_power_state != DRM_SWITCH_POWER_ON)) in radeon_hwmon_show_sclk()
1907 (ddev->switch_power_state != DRM_SWITCH_POWER_ON)) { in radeon_debugfs_pm_info()
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/
Damdgpu_drv.c1336 drm_dev->switch_power_state = DRM_SWITCH_POWER_CHANGING; in amdgpu_pmops_runtime_suspend()
1355 drm_dev->switch_power_state = DRM_SWITCH_POWER_DYNAMIC_OFF; in amdgpu_pmops_runtime_suspend()
1376 drm_dev->switch_power_state = DRM_SWITCH_POWER_CHANGING; in amdgpu_pmops_runtime_resume()
1397 drm_dev->switch_power_state = DRM_SWITCH_POWER_ON; in amdgpu_pmops_runtime_resume()
Damdgpu_device.c1408 dev->switch_power_state = DRM_SWITCH_POWER_CHANGING; in amdgpu_switcheroo_set_state()
1417 dev->switch_power_state = DRM_SWITCH_POWER_ON; in amdgpu_switcheroo_set_state()
1422 dev->switch_power_state = DRM_SWITCH_POWER_CHANGING; in amdgpu_switcheroo_set_state()
1428 dev->switch_power_state = DRM_SWITCH_POWER_OFF; in amdgpu_switcheroo_set_state()
3649 if (dev->switch_power_state == DRM_SWITCH_POWER_OFF) in amdgpu_device_suspend()
3739 if (dev->switch_power_state == DRM_SWITCH_POWER_OFF) in amdgpu_device_resume()
/kernel/linux/linux-5.10/drivers/gpu/drm/
Ddrm_file.c346 if (dev->switch_power_state != DRM_SWITCH_POWER_ON && in drm_open_helper()
347 dev->switch_power_state != DRM_SWITCH_POWER_DYNAMIC_OFF) in drm_open_helper()
Ddrm_fb_helper.c299 if (dev->switch_power_state == DRM_SWITCH_POWER_OFF) in drm_fb_helper_force_kernel_mode()
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/display/
Dintel_panel.c862 if (dev_priv->drm.switch_power_state == DRM_SWITCH_POWER_CHANGING) { in intel_panel_disable_backlight()