]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
drm/amdgpu: rename amdgpu_get_crtc_scanoutpos
authorSamuel Li <Samuel.Li@amd.com>
Fri, 19 Jan 2018 20:53:16 +0000 (15:53 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 19 Feb 2018 19:18:28 +0000 (14:18 -0500)
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>
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
drivers/gpu/drm/amd/display/dc/dc_stream.h

index 05891988605ce3c16a7cce3c4f8fa2860bee1a6d..c7569ec3e11b1f1a0aa9fcb4b2dabc26878e87f0 100644 (file)
@@ -90,9 +90,9 @@ static void amdgpu_display_flip_work_func(struct work_struct *__work)
         * targeted by the flip
         */
        if (amdgpu_crtc->enabled &&
-           (amdgpu_get_crtc_scanoutpos(adev->ddev, work->crtc_id, 0,
-                                       &vpos, &hpos, NULL, NULL,
-                                       &crtc->hwmode)
+           (amdgpu_display_get_crtc_scanoutpos(adev->ddev, work->crtc_id, 0,
+                                               &vpos, &hpos, NULL, NULL,
+                                               &crtc->hwmode)
             & (DRM_SCANOUTPOS_VALID | DRM_SCANOUTPOS_IN_VBLANK)) ==
            (DRM_SCANOUTPOS_VALID | DRM_SCANOUTPOS_IN_VBLANK) &&
            (int)(work->target_vblank -
@@ -781,10 +781,10 @@ bool amdgpu_display_crtc_scaling_mode_fixup(struct drm_crtc *crtc,
  * unknown small number of scanlines wrt. real scanout position.
  *
  */
-int amdgpu_get_crtc_scanoutpos(struct drm_device *dev, unsigned int pipe,
-                              unsigned int flags, int *vpos, int *hpos,
-                              ktime_t *stime, ktime_t *etime,
-                              const struct drm_display_mode *mode)
+int amdgpu_display_get_crtc_scanoutpos(struct drm_device *dev,
+                       unsigned int pipe, unsigned int flags, int *vpos,
+                       int *hpos, ktime_t *stime, ktime_t *etime,
+                       const struct drm_display_mode *mode)
 {
        u32 vbl = 0, position = 0;
        int vbl_start, vbl_end, vtotal, ret = 0;
index ab4cb49175654866c59263e1d9ce97681685417c..d1a69586479389dfce247b13dbdc80f1ed74b49e 100644 (file)
@@ -837,8 +837,8 @@ amdgpu_get_crtc_scanout_position(struct drm_device *dev, unsigned int pipe,
                                 ktime_t *stime, ktime_t *etime,
                                 const struct drm_display_mode *mode)
 {
-       return amdgpu_get_crtc_scanoutpos(dev, pipe, 0, vpos, hpos,
-                                         stime, etime, mode);
+       return amdgpu_display_get_crtc_scanoutpos(dev, pipe, 0, vpos, hpos,
+                                                 stime, etime, mode);
 }
 
 static struct drm_driver kms_driver = {
index b929986dd3d792d01d74c66c750f520008bd8efd..7aa4474488aed67f59fba4f16593288c66202d84 100644 (file)
@@ -980,11 +980,11 @@ u32 amdgpu_get_vblank_counter_kms(struct drm_device *dev, unsigned int pipe)
                 */
                do {
                        count = amdgpu_display_vblank_get_counter(adev, pipe);
-                       /* Ask amdgpu_get_crtc_scanoutpos to return vpos as
-                        * distance to start of vblank, instead of regular
-                        * vertical scanout pos.
+                       /* Ask amdgpu_display_get_crtc_scanoutpos to return
+                        * vpos as distance to start of vblank, instead of
+                        * regular vertical scanout pos.
                         */
-                       stat = amdgpu_get_crtc_scanoutpos(
+                       stat = amdgpu_display_get_crtc_scanoutpos(
                                dev, pipe, GET_DISTANCE_TO_VBLANKSTART,
                                &vpos, &hpos, NULL, NULL,
                                &adev->mode_info.crtcs[pipe]->base.hwmode);
index e85bcb1ea2393f02f45f16e2405f7a36b3cfab5c..5028ed60e5dc32872af82f1354f9ccf9aa96837a 100644 (file)
@@ -608,7 +608,7 @@ struct amdgpu_mst_connector {
 #define ENCODER_MODE_IS_DP(em) (((em) == ATOM_ENCODER_MODE_DP) || \
                                ((em) == ATOM_ENCODER_MODE_DP_MST))
 
-/* Driver internal use only flags of amdgpu_get_crtc_scanoutpos() */
+/* Driver internal use only flags of amdgpu_display_get_crtc_scanoutpos() */
 #define DRM_SCANOUTPOS_VALID        (1 << 0)
 #define DRM_SCANOUTPOS_IN_VBLANK    (1 << 1)
 #define DRM_SCANOUTPOS_ACCURATE     (1 << 2)
@@ -632,10 +632,10 @@ bool amdgpu_display_ddc_probe(struct amdgpu_connector *amdgpu_connector,
 
 void amdgpu_encoder_set_active_device(struct drm_encoder *encoder);
 
-int amdgpu_get_crtc_scanoutpos(struct drm_device *dev, unsigned int pipe,
-                              unsigned int flags, int *vpos, int *hpos,
-                              ktime_t *stime, ktime_t *etime,
-                              const struct drm_display_mode *mode);
+int amdgpu_display_get_crtc_scanoutpos(struct drm_device *dev,
+                       unsigned int pipe, unsigned int flags, int *vpos,
+                       int *hpos, ktime_t *stime, ktime_t *etime,
+                       const struct drm_display_mode *mode);
 
 int amdgpu_display_framebuffer_init(struct drm_device *dev,
                                    struct amdgpu_framebuffer *rfb,
index 4c333623e7b5078a0ffd13ad19ef2a5631a41ac2..df7ac1def275b984934f096c9e48c98ad29901d7 100644 (file)
@@ -3906,9 +3906,9 @@ static void amdgpu_dm_do_flip(struct drm_crtc *crtc,
         * targeted by the flip
         */
        while ((acrtc->enabled &&
-               (amdgpu_get_crtc_scanoutpos(adev->ddev, acrtc->crtc_id, 0,
-                                       &vpos, &hpos, NULL, NULL,
-                                       &crtc->hwmode)
+               (amdgpu_display_get_crtc_scanoutpos(adev->ddev, acrtc->crtc_id,
+                                                   0, &vpos, &hpos, NULL,
+                                                   NULL, &crtc->hwmode)
                 & (DRM_SCANOUTPOS_VALID | DRM_SCANOUTPOS_IN_VBLANK)) ==
                (DRM_SCANOUTPOS_VALID | DRM_SCANOUTPOS_IN_VBLANK) &&
                (int)(target_vblank -
index be3eb57f3c3308b33b9e88c009b0c02d30c889ad..c9e5fe8770da34c47ee906d284dc8a84b6dae025 100644 (file)
@@ -152,7 +152,7 @@ struct dc_stream_state *dc_get_stream_at_index(struct dc *dc, uint8_t i);
 uint32_t dc_stream_get_vblank_counter(const struct dc_stream_state *stream);
 
 /* TODO: Return parsed values rather than direct register read
- * This has a dependency on the caller (amdgpu_get_crtc_scanoutpos)
+ * This has a dependency on the caller (amdgpu_display_get_crtc_scanoutpos)
  * being refactored properly to be dce-specific
  */
 bool dc_stream_get_scanoutpos(const struct dc_stream_state *stream,