aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/gpu/drm/drm_irq.c4
-rw-r--r--drivers/gpu/drm/i915/i915_irq.c2
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_display.c2
-rw-r--r--drivers/gpu/drm/radeon/radeon_display.c2
-rw-r--r--drivers/gpu/drm/radeon/radeon_pm.c2
-rw-r--r--include/drm/drmP.h4
6 files changed, 8 insertions, 8 deletions
diff --git a/drivers/gpu/drm/drm_irq.c b/drivers/gpu/drm/drm_irq.c
index 15f748c7fa7e..79836594030c 100644
--- a/drivers/gpu/drm/drm_irq.c
+++ b/drivers/gpu/drm/drm_irq.c
@@ -721,7 +721,7 @@ int drm_calc_vbltimestamp_from_scanoutpos(struct drm_device *dev, int crtc,
721 * within vblank area, counting down the number of lines until 721 * within vblank area, counting down the number of lines until
722 * start of scanout. 722 * start of scanout.
723 */ 723 */
724 invbl = vbl_status & DRM_SCANOUTPOS_INVBL; 724 invbl = vbl_status & DRM_SCANOUTPOS_IN_VBLANK;
725 725
726 /* Convert scanout position into elapsed time at raw_time query 726 /* Convert scanout position into elapsed time at raw_time query
727 * since start of scanout at first display scanline. delta_ns 727 * since start of scanout at first display scanline. delta_ns
@@ -751,7 +751,7 @@ int drm_calc_vbltimestamp_from_scanoutpos(struct drm_device *dev, int crtc,
751 751
752 vbl_status = DRM_VBLANKTIME_SCANOUTPOS_METHOD; 752 vbl_status = DRM_VBLANKTIME_SCANOUTPOS_METHOD;
753 if (invbl) 753 if (invbl)
754 vbl_status |= DRM_VBLANKTIME_INVBL; 754 vbl_status |= DRM_VBLANKTIME_IN_VBLANK;
755 755
756 return vbl_status; 756 return vbl_status;
757} 757}
diff --git a/drivers/gpu/drm/i915/i915_irq.c b/drivers/gpu/drm/i915/i915_irq.c
index 845f0f6c1eeb..20dd9e233fc6 100644
--- a/drivers/gpu/drm/i915/i915_irq.c
+++ b/drivers/gpu/drm/i915/i915_irq.c
@@ -1020,7 +1020,7 @@ static int i915_get_crtc_scanoutpos(struct drm_device *dev, int pipe,
1020 1020
1021 /* In vblank? */ 1021 /* In vblank? */
1022 if (in_vbl) 1022 if (in_vbl)
1023 ret |= DRM_SCANOUTPOS_INVBL; 1023 ret |= DRM_SCANOUTPOS_IN_VBLANK;
1024 1024
1025 return ret; 1025 return ret;
1026} 1026}
diff --git a/drivers/gpu/drm/nouveau/nouveau_display.c b/drivers/gpu/drm/nouveau/nouveau_display.c
index 47ad74255bf1..37a6ab8a97f8 100644
--- a/drivers/gpu/drm/nouveau/nouveau_display.c
+++ b/drivers/gpu/drm/nouveau/nouveau_display.c
@@ -111,7 +111,7 @@ nouveau_display_scanoutpos_head(struct drm_crtc *crtc, int *vpos, int *hpos,
111 if (etime) *etime = ns_to_ktime(args.time[1]); 111 if (etime) *etime = ns_to_ktime(args.time[1]);
112 112
113 if (*vpos < 0) 113 if (*vpos < 0)
114 ret |= DRM_SCANOUTPOS_INVBL; 114 ret |= DRM_SCANOUTPOS_IN_VBLANK;
115 return ret; 115 return ret;
116} 116}
117 117
diff --git a/drivers/gpu/drm/radeon/radeon_display.c b/drivers/gpu/drm/radeon/radeon_display.c
index 3fdf87318069..fd8cd0c3600f 100644
--- a/drivers/gpu/drm/radeon/radeon_display.c
+++ b/drivers/gpu/drm/radeon/radeon_display.c
@@ -1917,7 +1917,7 @@ int radeon_get_crtc_scanoutpos(struct drm_device *dev, int crtc, unsigned int fl
1917 1917
1918 /* In vblank? */ 1918 /* In vblank? */
1919 if (in_vbl) 1919 if (in_vbl)
1920 ret |= DRM_SCANOUTPOS_INVBL; 1920 ret |= DRM_SCANOUTPOS_IN_VBLANK;
1921 1921
1922 /* Is vpos outside nominal vblank area, but less than 1922 /* Is vpos outside nominal vblank area, but less than
1923 * 1/100 of a frame height away from start of vblank? 1923 * 1/100 of a frame height away from start of vblank?
diff --git a/drivers/gpu/drm/radeon/radeon_pm.c b/drivers/gpu/drm/radeon/radeon_pm.c
index 23314be49480..7fd665a22908 100644
--- a/drivers/gpu/drm/radeon/radeon_pm.c
+++ b/drivers/gpu/drm/radeon/radeon_pm.c
@@ -1560,7 +1560,7 @@ static bool radeon_pm_in_vbl(struct radeon_device *rdev)
1560 if (rdev->pm.active_crtcs & (1 << crtc)) { 1560 if (rdev->pm.active_crtcs & (1 << crtc)) {
1561 vbl_status = radeon_get_crtc_scanoutpos(rdev->ddev, crtc, 0, &vpos, &hpos, NULL, NULL); 1561 vbl_status = radeon_get_crtc_scanoutpos(rdev->ddev, crtc, 0, &vpos, &hpos, NULL, NULL);
1562 if ((vbl_status & DRM_SCANOUTPOS_VALID) && 1562 if ((vbl_status & DRM_SCANOUTPOS_VALID) &&
1563 !(vbl_status & DRM_SCANOUTPOS_INVBL)) 1563 !(vbl_status & DRM_SCANOUTPOS_IN_VBLANK))
1564 in_vbl = false; 1564 in_vbl = false;
1565 } 1565 }
1566 } 1566 }
diff --git a/include/drm/drmP.h b/include/drm/drmP.h
index a97307525c2d..7b87fccff183 100644
--- a/include/drm/drmP.h
+++ b/include/drm/drmP.h
@@ -674,11 +674,11 @@ struct drm_master {
674/* Flags and return codes for get_vblank_timestamp() driver function. */ 674/* Flags and return codes for get_vblank_timestamp() driver function. */
675#define DRM_CALLED_FROM_VBLIRQ 1 675#define DRM_CALLED_FROM_VBLIRQ 1
676#define DRM_VBLANKTIME_SCANOUTPOS_METHOD (1 << 0) 676#define DRM_VBLANKTIME_SCANOUTPOS_METHOD (1 << 0)
677#define DRM_VBLANKTIME_INVBL (1 << 1) 677#define DRM_VBLANKTIME_IN_VBLANK (1 << 1)
678 678
679/* get_scanout_position() return flags */ 679/* get_scanout_position() return flags */
680#define DRM_SCANOUTPOS_VALID (1 << 0) 680#define DRM_SCANOUTPOS_VALID (1 << 0)
681#define DRM_SCANOUTPOS_INVBL (1 << 1) 681#define DRM_SCANOUTPOS_IN_VBLANK (1 << 1)
682#define DRM_SCANOUTPOS_ACCURATE (1 << 2) 682#define DRM_SCANOUTPOS_ACCURATE (1 << 2)
683 683
684struct drm_bus { 684struct drm_bus {