diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2016-08-23 13:25:49 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2016-08-25 11:19:38 -0400 |
commit | 810ddc3ab52dd84f4cd28ee8673678aece457a59 (patch) | |
tree | 8bce41a86486867dabfdbb3ee2c54296af1417a3 /drivers/gpu/drm/amd/amdgpu | |
parent | 7b4d3e297e8a7d3b82e68231ff077e891c370349 (diff) |
drm/amdgpu: rename suspend_kms and resume_kms
The old names were dragged over from radeon. The new ones
better match the naming conventions used in the driver.
No functional change.
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu.h | 4 | ||||
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 12 | ||||
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 12 |
3 files changed, 14 insertions, 14 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h index 3cc2629eb158..849451432a3f 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h | |||
@@ -2434,8 +2434,8 @@ void amdgpu_driver_postclose_kms(struct drm_device *dev, | |||
2434 | struct drm_file *file_priv); | 2434 | struct drm_file *file_priv); |
2435 | void amdgpu_driver_preclose_kms(struct drm_device *dev, | 2435 | void amdgpu_driver_preclose_kms(struct drm_device *dev, |
2436 | struct drm_file *file_priv); | 2436 | struct drm_file *file_priv); |
2437 | int amdgpu_suspend_kms(struct drm_device *dev, bool suspend, bool fbcon); | 2437 | int amdgpu_device_suspend(struct drm_device *dev, bool suspend, bool fbcon); |
2438 | int amdgpu_resume_kms(struct drm_device *dev, bool resume, bool fbcon); | 2438 | int amdgpu_device_resume(struct drm_device *dev, bool resume, bool fbcon); |
2439 | u32 amdgpu_get_vblank_counter_kms(struct drm_device *dev, unsigned int pipe); | 2439 | u32 amdgpu_get_vblank_counter_kms(struct drm_device *dev, unsigned int pipe); |
2440 | int amdgpu_enable_vblank_kms(struct drm_device *dev, unsigned int pipe); | 2440 | int amdgpu_enable_vblank_kms(struct drm_device *dev, unsigned int pipe); |
2441 | void amdgpu_disable_vblank_kms(struct drm_device *dev, unsigned int pipe); | 2441 | void amdgpu_disable_vblank_kms(struct drm_device *dev, unsigned int pipe); |
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c index c38dc47cd767..1ef4034b3be5 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | |||
@@ -1027,7 +1027,7 @@ static void amdgpu_switcheroo_set_state(struct pci_dev *pdev, enum vga_switchero | |||
1027 | /* don't suspend or resume card normally */ | 1027 | /* don't suspend or resume card normally */ |
1028 | dev->switch_power_state = DRM_SWITCH_POWER_CHANGING; | 1028 | dev->switch_power_state = DRM_SWITCH_POWER_CHANGING; |
1029 | 1029 | ||
1030 | amdgpu_resume_kms(dev, true, true); | 1030 | amdgpu_device_resume(dev, true, true); |
1031 | 1031 | ||
1032 | dev->pdev->d3_delay = d3_delay; | 1032 | dev->pdev->d3_delay = d3_delay; |
1033 | 1033 | ||
@@ -1037,7 +1037,7 @@ static void amdgpu_switcheroo_set_state(struct pci_dev *pdev, enum vga_switchero | |||
1037 | printk(KERN_INFO "amdgpu: switched off\n"); | 1037 | printk(KERN_INFO "amdgpu: switched off\n"); |
1038 | drm_kms_helper_poll_disable(dev); | 1038 | drm_kms_helper_poll_disable(dev); |
1039 | dev->switch_power_state = DRM_SWITCH_POWER_CHANGING; | 1039 | dev->switch_power_state = DRM_SWITCH_POWER_CHANGING; |
1040 | amdgpu_suspend_kms(dev, true, true); | 1040 | amdgpu_device_suspend(dev, true, true); |
1041 | dev->switch_power_state = DRM_SWITCH_POWER_OFF; | 1041 | dev->switch_power_state = DRM_SWITCH_POWER_OFF; |
1042 | } | 1042 | } |
1043 | } | 1043 | } |
@@ -1774,7 +1774,7 @@ void amdgpu_device_fini(struct amdgpu_device *adev) | |||
1774 | * Suspend & resume. | 1774 | * Suspend & resume. |
1775 | */ | 1775 | */ |
1776 | /** | 1776 | /** |
1777 | * amdgpu_suspend_kms - initiate device suspend | 1777 | * amdgpu_device_suspend - initiate device suspend |
1778 | * | 1778 | * |
1779 | * @pdev: drm dev pointer | 1779 | * @pdev: drm dev pointer |
1780 | * @state: suspend state | 1780 | * @state: suspend state |
@@ -1783,7 +1783,7 @@ void amdgpu_device_fini(struct amdgpu_device *adev) | |||
1783 | * Returns 0 for success or an error on failure. | 1783 | * Returns 0 for success or an error on failure. |
1784 | * Called at driver suspend. | 1784 | * Called at driver suspend. |
1785 | */ | 1785 | */ |
1786 | int amdgpu_suspend_kms(struct drm_device *dev, bool suspend, bool fbcon) | 1786 | int amdgpu_device_suspend(struct drm_device *dev, bool suspend, bool fbcon) |
1787 | { | 1787 | { |
1788 | struct amdgpu_device *adev; | 1788 | struct amdgpu_device *adev; |
1789 | struct drm_crtc *crtc; | 1789 | struct drm_crtc *crtc; |
@@ -1862,7 +1862,7 @@ int amdgpu_suspend_kms(struct drm_device *dev, bool suspend, bool fbcon) | |||
1862 | } | 1862 | } |
1863 | 1863 | ||
1864 | /** | 1864 | /** |
1865 | * amdgpu_resume_kms - initiate device resume | 1865 | * amdgpu_device_resume - initiate device resume |
1866 | * | 1866 | * |
1867 | * @pdev: drm dev pointer | 1867 | * @pdev: drm dev pointer |
1868 | * | 1868 | * |
@@ -1870,7 +1870,7 @@ int amdgpu_suspend_kms(struct drm_device *dev, bool suspend, bool fbcon) | |||
1870 | * Returns 0 for success or an error on failure. | 1870 | * Returns 0 for success or an error on failure. |
1871 | * Called at driver resume. | 1871 | * Called at driver resume. |
1872 | */ | 1872 | */ |
1873 | int amdgpu_resume_kms(struct drm_device *dev, bool resume, bool fbcon) | 1873 | int amdgpu_device_resume(struct drm_device *dev, bool resume, bool fbcon) |
1874 | { | 1874 | { |
1875 | struct drm_connector *connector; | 1875 | struct drm_connector *connector; |
1876 | struct amdgpu_device *adev = dev->dev_private; | 1876 | struct amdgpu_device *adev = dev->dev_private; |
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c index a631c954c4e2..1b787d974515 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | |||
@@ -397,28 +397,28 @@ static int amdgpu_pmops_suspend(struct device *dev) | |||
397 | { | 397 | { |
398 | struct pci_dev *pdev = to_pci_dev(dev); | 398 | struct pci_dev *pdev = to_pci_dev(dev); |
399 | struct drm_device *drm_dev = pci_get_drvdata(pdev); | 399 | struct drm_device *drm_dev = pci_get_drvdata(pdev); |
400 | return amdgpu_suspend_kms(drm_dev, true, true); | 400 | return amdgpu_device_suspend(drm_dev, true, true); |
401 | } | 401 | } |
402 | 402 | ||
403 | static int amdgpu_pmops_resume(struct device *dev) | 403 | static int amdgpu_pmops_resume(struct device *dev) |
404 | { | 404 | { |
405 | struct pci_dev *pdev = to_pci_dev(dev); | 405 | struct pci_dev *pdev = to_pci_dev(dev); |
406 | struct drm_device *drm_dev = pci_get_drvdata(pdev); | 406 | struct drm_device *drm_dev = pci_get_drvdata(pdev); |
407 | return amdgpu_resume_kms(drm_dev, true, true); | 407 | return amdgpu_device_resume(drm_dev, true, true); |
408 | } | 408 | } |
409 | 409 | ||
410 | static int amdgpu_pmops_freeze(struct device *dev) | 410 | static int amdgpu_pmops_freeze(struct device *dev) |
411 | { | 411 | { |
412 | struct pci_dev *pdev = to_pci_dev(dev); | 412 | struct pci_dev *pdev = to_pci_dev(dev); |
413 | struct drm_device *drm_dev = pci_get_drvdata(pdev); | 413 | struct drm_device *drm_dev = pci_get_drvdata(pdev); |
414 | return amdgpu_suspend_kms(drm_dev, false, true); | 414 | return amdgpu_device_suspend(drm_dev, false, true); |
415 | } | 415 | } |
416 | 416 | ||
417 | static int amdgpu_pmops_thaw(struct device *dev) | 417 | static int amdgpu_pmops_thaw(struct device *dev) |
418 | { | 418 | { |
419 | struct pci_dev *pdev = to_pci_dev(dev); | 419 | struct pci_dev *pdev = to_pci_dev(dev); |
420 | struct drm_device *drm_dev = pci_get_drvdata(pdev); | 420 | struct drm_device *drm_dev = pci_get_drvdata(pdev); |
421 | return amdgpu_resume_kms(drm_dev, false, true); | 421 | return amdgpu_device_resume(drm_dev, false, true); |
422 | } | 422 | } |
423 | 423 | ||
424 | static int amdgpu_pmops_runtime_suspend(struct device *dev) | 424 | static int amdgpu_pmops_runtime_suspend(struct device *dev) |
@@ -436,7 +436,7 @@ static int amdgpu_pmops_runtime_suspend(struct device *dev) | |||
436 | drm_kms_helper_poll_disable(drm_dev); | 436 | drm_kms_helper_poll_disable(drm_dev); |
437 | vga_switcheroo_set_dynamic_switch(pdev, VGA_SWITCHEROO_OFF); | 437 | vga_switcheroo_set_dynamic_switch(pdev, VGA_SWITCHEROO_OFF); |
438 | 438 | ||
439 | ret = amdgpu_suspend_kms(drm_dev, false, false); | 439 | ret = amdgpu_device_suspend(drm_dev, false, false); |
440 | pci_save_state(pdev); | 440 | pci_save_state(pdev); |
441 | pci_disable_device(pdev); | 441 | pci_disable_device(pdev); |
442 | pci_ignore_hotplug(pdev); | 442 | pci_ignore_hotplug(pdev); |
@@ -469,7 +469,7 @@ static int amdgpu_pmops_runtime_resume(struct device *dev) | |||
469 | return ret; | 469 | return ret; |
470 | pci_set_master(pdev); | 470 | pci_set_master(pdev); |
471 | 471 | ||
472 | ret = amdgpu_resume_kms(drm_dev, false, false); | 472 | ret = amdgpu_device_resume(drm_dev, false, false); |
473 | drm_kms_helper_poll_enable(drm_dev); | 473 | drm_kms_helper_poll_enable(drm_dev); |
474 | vga_switcheroo_set_dynamic_switch(pdev, VGA_SWITCHEROO_ON); | 474 | vga_switcheroo_set_dynamic_switch(pdev, VGA_SWITCHEROO_ON); |
475 | drm_dev->switch_power_state = DRM_SWITCH_POWER_ON; | 475 | drm_dev->switch_power_state = DRM_SWITCH_POWER_ON; |