Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amdgpu: rename amdgpu_get_crtc_scanoutpos

Add display to the name for consistency.

Signed-off-by: Samuel Li <Samuel.Li@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Samuel Li and committed by
Alex Deucher
aa8e286a 0c16443a

+22 -22
+7 -7
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
··· 90 90 * targeted by the flip 91 91 */ 92 92 if (amdgpu_crtc->enabled && 93 - (amdgpu_get_crtc_scanoutpos(adev->ddev, work->crtc_id, 0, 94 - &vpos, &hpos, NULL, NULL, 95 - &crtc->hwmode) 93 + (amdgpu_display_get_crtc_scanoutpos(adev->ddev, work->crtc_id, 0, 94 + &vpos, &hpos, NULL, NULL, 95 + &crtc->hwmode) 96 96 & (DRM_SCANOUTPOS_VALID | DRM_SCANOUTPOS_IN_VBLANK)) == 97 97 (DRM_SCANOUTPOS_VALID | DRM_SCANOUTPOS_IN_VBLANK) && 98 98 (int)(work->target_vblank - ··· 781 781 * unknown small number of scanlines wrt. real scanout position. 782 782 * 783 783 */ 784 - int amdgpu_get_crtc_scanoutpos(struct drm_device *dev, unsigned int pipe, 785 - unsigned int flags, int *vpos, int *hpos, 786 - ktime_t *stime, ktime_t *etime, 787 - const struct drm_display_mode *mode) 784 + int amdgpu_display_get_crtc_scanoutpos(struct drm_device *dev, 785 + unsigned int pipe, unsigned int flags, int *vpos, 786 + int *hpos, ktime_t *stime, ktime_t *etime, 787 + const struct drm_display_mode *mode) 788 788 { 789 789 u32 vbl = 0, position = 0; 790 790 int vbl_start, vbl_end, vtotal, ret = 0;
+2 -2
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
··· 837 837 ktime_t *stime, ktime_t *etime, 838 838 const struct drm_display_mode *mode) 839 839 { 840 - return amdgpu_get_crtc_scanoutpos(dev, pipe, 0, vpos, hpos, 841 - stime, etime, mode); 840 + return amdgpu_display_get_crtc_scanoutpos(dev, pipe, 0, vpos, hpos, 841 + stime, etime, mode); 842 842 } 843 843 844 844 static struct drm_driver kms_driver = {
+4 -4
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
··· 980 980 */ 981 981 do { 982 982 count = amdgpu_display_vblank_get_counter(adev, pipe); 983 - /* Ask amdgpu_get_crtc_scanoutpos to return vpos as 984 - * distance to start of vblank, instead of regular 985 - * vertical scanout pos. 983 + /* Ask amdgpu_display_get_crtc_scanoutpos to return 984 + * vpos as distance to start of vblank, instead of 985 + * regular vertical scanout pos. 986 986 */ 987 - stat = amdgpu_get_crtc_scanoutpos( 987 + stat = amdgpu_display_get_crtc_scanoutpos( 988 988 dev, pipe, GET_DISTANCE_TO_VBLANKSTART, 989 989 &vpos, &hpos, NULL, NULL, 990 990 &adev->mode_info.crtcs[pipe]->base.hwmode);
+5 -5
drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h
··· 608 608 #define ENCODER_MODE_IS_DP(em) (((em) == ATOM_ENCODER_MODE_DP) || \ 609 609 ((em) == ATOM_ENCODER_MODE_DP_MST)) 610 610 611 - /* Driver internal use only flags of amdgpu_get_crtc_scanoutpos() */ 611 + /* Driver internal use only flags of amdgpu_display_get_crtc_scanoutpos() */ 612 612 #define DRM_SCANOUTPOS_VALID (1 << 0) 613 613 #define DRM_SCANOUTPOS_IN_VBLANK (1 << 1) 614 614 #define DRM_SCANOUTPOS_ACCURATE (1 << 2) ··· 632 632 633 633 void amdgpu_encoder_set_active_device(struct drm_encoder *encoder); 634 634 635 - int amdgpu_get_crtc_scanoutpos(struct drm_device *dev, unsigned int pipe, 636 - unsigned int flags, int *vpos, int *hpos, 637 - ktime_t *stime, ktime_t *etime, 638 - const struct drm_display_mode *mode); 635 + int amdgpu_display_get_crtc_scanoutpos(struct drm_device *dev, 636 + unsigned int pipe, unsigned int flags, int *vpos, 637 + int *hpos, ktime_t *stime, ktime_t *etime, 638 + const struct drm_display_mode *mode); 639 639 640 640 int amdgpu_display_framebuffer_init(struct drm_device *dev, 641 641 struct amdgpu_framebuffer *rfb,
+3 -3
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
··· 3906 3906 * targeted by the flip 3907 3907 */ 3908 3908 while ((acrtc->enabled && 3909 - (amdgpu_get_crtc_scanoutpos(adev->ddev, acrtc->crtc_id, 0, 3910 - &vpos, &hpos, NULL, NULL, 3911 - &crtc->hwmode) 3909 + (amdgpu_display_get_crtc_scanoutpos(adev->ddev, acrtc->crtc_id, 3910 + 0, &vpos, &hpos, NULL, 3911 + NULL, &crtc->hwmode) 3912 3912 & (DRM_SCANOUTPOS_VALID | DRM_SCANOUTPOS_IN_VBLANK)) == 3913 3913 (DRM_SCANOUTPOS_VALID | DRM_SCANOUTPOS_IN_VBLANK) && 3914 3914 (int)(target_vblank -
+1 -1
drivers/gpu/drm/amd/display/dc/dc_stream.h
··· 152 152 uint32_t dc_stream_get_vblank_counter(const struct dc_stream_state *stream); 153 153 154 154 /* TODO: Return parsed values rather than direct register read 155 - * This has a dependency on the caller (amdgpu_get_crtc_scanoutpos) 155 + * This has a dependency on the caller (amdgpu_display_get_crtc_scanoutpos) 156 156 * being refactored properly to be dce-specific 157 157 */ 158 158 bool dc_stream_get_scanoutpos(const struct dc_stream_state *stream,