Lines Matching refs:drm_dev
2374 struct drm_device *drm_dev = dev_get_drvdata(dev); in amdgpu_pmops_prepare() local
2375 struct amdgpu_device *adev = drm_to_adev(drm_dev); in amdgpu_pmops_prepare()
2380 if (amdgpu_device_supports_boco(drm_dev)) in amdgpu_pmops_prepare()
2400 struct drm_device *drm_dev = dev_get_drvdata(dev); in amdgpu_pmops_suspend() local
2401 struct amdgpu_device *adev = drm_to_adev(drm_dev); in amdgpu_pmops_suspend()
2407 return amdgpu_device_suspend(drm_dev, true); in amdgpu_pmops_suspend()
2412 struct drm_device *drm_dev = dev_get_drvdata(dev); in amdgpu_pmops_suspend_noirq() local
2413 struct amdgpu_device *adev = drm_to_adev(drm_dev); in amdgpu_pmops_suspend_noirq()
2423 struct drm_device *drm_dev = dev_get_drvdata(dev); in amdgpu_pmops_resume() local
2424 struct amdgpu_device *adev = drm_to_adev(drm_dev); in amdgpu_pmops_resume()
2431 r = amdgpu_device_resume(drm_dev, true); in amdgpu_pmops_resume()
2441 struct drm_device *drm_dev = dev_get_drvdata(dev); in amdgpu_pmops_freeze() local
2442 struct amdgpu_device *adev = drm_to_adev(drm_dev); in amdgpu_pmops_freeze()
2446 r = amdgpu_device_suspend(drm_dev, true); in amdgpu_pmops_freeze()
2455 struct drm_device *drm_dev = dev_get_drvdata(dev); in amdgpu_pmops_thaw() local
2457 return amdgpu_device_resume(drm_dev, true); in amdgpu_pmops_thaw()
2462 struct drm_device *drm_dev = dev_get_drvdata(dev); in amdgpu_pmops_poweroff() local
2464 return amdgpu_device_suspend(drm_dev, true); in amdgpu_pmops_poweroff()
2469 struct drm_device *drm_dev = dev_get_drvdata(dev); in amdgpu_pmops_restore() local
2471 return amdgpu_device_resume(drm_dev, true); in amdgpu_pmops_restore()
2477 struct drm_device *drm_dev = pci_get_drvdata(pdev); in amdgpu_runtime_idle_check_display() local
2478 struct amdgpu_device *adev = drm_to_adev(drm_dev); in amdgpu_runtime_idle_check_display()
2490 mutex_lock(&drm_dev->mode_config.mutex); in amdgpu_runtime_idle_check_display()
2491 drm_connector_list_iter_begin(drm_dev, &iter); in amdgpu_runtime_idle_check_display()
2499 mutex_unlock(&drm_dev->mode_config.mutex); in amdgpu_runtime_idle_check_display()
2507 drm_for_each_crtc(crtc, drm_dev) { in amdgpu_runtime_idle_check_display()
2516 mutex_lock(&drm_dev->mode_config.mutex); in amdgpu_runtime_idle_check_display()
2517 drm_modeset_lock(&drm_dev->mode_config.connection_mutex, NULL); in amdgpu_runtime_idle_check_display()
2519 drm_connector_list_iter_begin(drm_dev, &iter); in amdgpu_runtime_idle_check_display()
2529 drm_modeset_unlock(&drm_dev->mode_config.connection_mutex); in amdgpu_runtime_idle_check_display()
2530 mutex_unlock(&drm_dev->mode_config.mutex); in amdgpu_runtime_idle_check_display()
2542 struct drm_device *drm_dev = pci_get_drvdata(pdev); in amdgpu_pmops_runtime_suspend() local
2543 struct amdgpu_device *adev = drm_to_adev(drm_dev); in amdgpu_pmops_runtime_suspend()
2566 if (amdgpu_device_supports_px(drm_dev)) in amdgpu_pmops_runtime_suspend()
2567 drm_dev->switch_power_state = DRM_SWITCH_POWER_CHANGING; in amdgpu_pmops_runtime_suspend()
2576 if (amdgpu_device_supports_boco(drm_dev)) in amdgpu_pmops_runtime_suspend()
2579 ret = amdgpu_device_suspend(drm_dev, false); in amdgpu_pmops_runtime_suspend()
2582 if (amdgpu_device_supports_boco(drm_dev)) in amdgpu_pmops_runtime_suspend()
2587 if (amdgpu_device_supports_boco(drm_dev)) in amdgpu_pmops_runtime_suspend()
2590 if (amdgpu_device_supports_px(drm_dev)) { in amdgpu_pmops_runtime_suspend()
2598 drm_dev->switch_power_state = DRM_SWITCH_POWER_DYNAMIC_OFF; in amdgpu_pmops_runtime_suspend()
2599 } else if (amdgpu_device_supports_boco(drm_dev)) { in amdgpu_pmops_runtime_suspend()
2601 } else if (amdgpu_device_supports_baco(drm_dev)) { in amdgpu_pmops_runtime_suspend()
2602 amdgpu_device_baco_enter(drm_dev); in amdgpu_pmops_runtime_suspend()
2611 struct drm_device *drm_dev = pci_get_drvdata(pdev); in amdgpu_pmops_runtime_resume() local
2612 struct amdgpu_device *adev = drm_to_adev(drm_dev); in amdgpu_pmops_runtime_resume()
2622 if (amdgpu_device_supports_px(drm_dev)) { in amdgpu_pmops_runtime_resume()
2623 drm_dev->switch_power_state = DRM_SWITCH_POWER_CHANGING; in amdgpu_pmops_runtime_resume()
2634 } else if (amdgpu_device_supports_boco(drm_dev)) { in amdgpu_pmops_runtime_resume()
2639 } else if (amdgpu_device_supports_baco(drm_dev)) { in amdgpu_pmops_runtime_resume()
2640 amdgpu_device_baco_exit(drm_dev); in amdgpu_pmops_runtime_resume()
2642 ret = amdgpu_device_resume(drm_dev, false); in amdgpu_pmops_runtime_resume()
2644 if (amdgpu_device_supports_px(drm_dev)) in amdgpu_pmops_runtime_resume()
2649 if (amdgpu_device_supports_px(drm_dev)) in amdgpu_pmops_runtime_resume()
2650 drm_dev->switch_power_state = DRM_SWITCH_POWER_ON; in amdgpu_pmops_runtime_resume()
2657 struct drm_device *drm_dev = dev_get_drvdata(dev); in amdgpu_pmops_runtime_idle() local
2658 struct amdgpu_device *adev = drm_to_adev(drm_dev); in amdgpu_pmops_runtime_idle()