diff options
author | Jani Nikula <jani.nikula@intel.com> | 2014-03-31 07:27:19 -0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-03-31 09:32:56 -0400 |
commit | 4640c4ff083d3294a41607f5e512bf1ec09bb161 (patch) | |
tree | 50fe6974869f42e59d6648d259e07d390fc8e277 /drivers/gpu | |
parent | fbee40df050fc3593d143e3d2f24694d988ff753 (diff) |
drm/i915/ringbuffer: prefer struct drm_i915_private to drm_i915_private_t
No functional changes.
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/i915/intel_ringbuffer.c | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/drivers/gpu/drm/i915/intel_ringbuffer.c b/drivers/gpu/drm/i915/intel_ringbuffer.c index 0cba12948915..6bc68bdcf433 100644 --- a/drivers/gpu/drm/i915/intel_ringbuffer.c +++ b/drivers/gpu/drm/i915/intel_ringbuffer.c | |||
@@ -406,13 +406,13 @@ gen8_render_ring_flush(struct intel_ring_buffer *ring, | |||
406 | static void ring_write_tail(struct intel_ring_buffer *ring, | 406 | static void ring_write_tail(struct intel_ring_buffer *ring, |
407 | u32 value) | 407 | u32 value) |
408 | { | 408 | { |
409 | drm_i915_private_t *dev_priv = ring->dev->dev_private; | 409 | struct drm_i915_private *dev_priv = ring->dev->dev_private; |
410 | I915_WRITE_TAIL(ring, value); | 410 | I915_WRITE_TAIL(ring, value); |
411 | } | 411 | } |
412 | 412 | ||
413 | u64 intel_ring_get_active_head(struct intel_ring_buffer *ring) | 413 | u64 intel_ring_get_active_head(struct intel_ring_buffer *ring) |
414 | { | 414 | { |
415 | drm_i915_private_t *dev_priv = ring->dev->dev_private; | 415 | struct drm_i915_private *dev_priv = ring->dev->dev_private; |
416 | u64 acthd; | 416 | u64 acthd; |
417 | 417 | ||
418 | if (INTEL_INFO(ring->dev)->gen >= 8) | 418 | if (INTEL_INFO(ring->dev)->gen >= 8) |
@@ -440,7 +440,7 @@ static void ring_setup_phys_status_page(struct intel_ring_buffer *ring) | |||
440 | static int init_ring_common(struct intel_ring_buffer *ring) | 440 | static int init_ring_common(struct intel_ring_buffer *ring) |
441 | { | 441 | { |
442 | struct drm_device *dev = ring->dev; | 442 | struct drm_device *dev = ring->dev; |
443 | drm_i915_private_t *dev_priv = dev->dev_private; | 443 | struct drm_i915_private *dev_priv = dev->dev_private; |
444 | struct drm_i915_gem_object *obj = ring->obj; | 444 | struct drm_i915_gem_object *obj = ring->obj; |
445 | int ret = 0; | 445 | int ret = 0; |
446 | u32 head; | 446 | u32 head; |
@@ -857,7 +857,7 @@ static bool | |||
857 | gen5_ring_get_irq(struct intel_ring_buffer *ring) | 857 | gen5_ring_get_irq(struct intel_ring_buffer *ring) |
858 | { | 858 | { |
859 | struct drm_device *dev = ring->dev; | 859 | struct drm_device *dev = ring->dev; |
860 | drm_i915_private_t *dev_priv = dev->dev_private; | 860 | struct drm_i915_private *dev_priv = dev->dev_private; |
861 | unsigned long flags; | 861 | unsigned long flags; |
862 | 862 | ||
863 | if (!dev->irq_enabled) | 863 | if (!dev->irq_enabled) |
@@ -875,7 +875,7 @@ static void | |||
875 | gen5_ring_put_irq(struct intel_ring_buffer *ring) | 875 | gen5_ring_put_irq(struct intel_ring_buffer *ring) |
876 | { | 876 | { |
877 | struct drm_device *dev = ring->dev; | 877 | struct drm_device *dev = ring->dev; |
878 | drm_i915_private_t *dev_priv = dev->dev_private; | 878 | struct drm_i915_private *dev_priv = dev->dev_private; |
879 | unsigned long flags; | 879 | unsigned long flags; |
880 | 880 | ||
881 | spin_lock_irqsave(&dev_priv->irq_lock, flags); | 881 | spin_lock_irqsave(&dev_priv->irq_lock, flags); |
@@ -888,7 +888,7 @@ static bool | |||
888 | i9xx_ring_get_irq(struct intel_ring_buffer *ring) | 888 | i9xx_ring_get_irq(struct intel_ring_buffer *ring) |
889 | { | 889 | { |
890 | struct drm_device *dev = ring->dev; | 890 | struct drm_device *dev = ring->dev; |
891 | drm_i915_private_t *dev_priv = dev->dev_private; | 891 | struct drm_i915_private *dev_priv = dev->dev_private; |
892 | unsigned long flags; | 892 | unsigned long flags; |
893 | 893 | ||
894 | if (!dev->irq_enabled) | 894 | if (!dev->irq_enabled) |
@@ -909,7 +909,7 @@ static void | |||
909 | i9xx_ring_put_irq(struct intel_ring_buffer *ring) | 909 | i9xx_ring_put_irq(struct intel_ring_buffer *ring) |
910 | { | 910 | { |
911 | struct drm_device *dev = ring->dev; | 911 | struct drm_device *dev = ring->dev; |
912 | drm_i915_private_t *dev_priv = dev->dev_private; | 912 | struct drm_i915_private *dev_priv = dev->dev_private; |
913 | unsigned long flags; | 913 | unsigned long flags; |
914 | 914 | ||
915 | spin_lock_irqsave(&dev_priv->irq_lock, flags); | 915 | spin_lock_irqsave(&dev_priv->irq_lock, flags); |
@@ -925,7 +925,7 @@ static bool | |||
925 | i8xx_ring_get_irq(struct intel_ring_buffer *ring) | 925 | i8xx_ring_get_irq(struct intel_ring_buffer *ring) |
926 | { | 926 | { |
927 | struct drm_device *dev = ring->dev; | 927 | struct drm_device *dev = ring->dev; |
928 | drm_i915_private_t *dev_priv = dev->dev_private; | 928 | struct drm_i915_private *dev_priv = dev->dev_private; |
929 | unsigned long flags; | 929 | unsigned long flags; |
930 | 930 | ||
931 | if (!dev->irq_enabled) | 931 | if (!dev->irq_enabled) |
@@ -946,7 +946,7 @@ static void | |||
946 | i8xx_ring_put_irq(struct intel_ring_buffer *ring) | 946 | i8xx_ring_put_irq(struct intel_ring_buffer *ring) |
947 | { | 947 | { |
948 | struct drm_device *dev = ring->dev; | 948 | struct drm_device *dev = ring->dev; |
949 | drm_i915_private_t *dev_priv = dev->dev_private; | 949 | struct drm_i915_private *dev_priv = dev->dev_private; |
950 | unsigned long flags; | 950 | unsigned long flags; |
951 | 951 | ||
952 | spin_lock_irqsave(&dev_priv->irq_lock, flags); | 952 | spin_lock_irqsave(&dev_priv->irq_lock, flags); |
@@ -961,7 +961,7 @@ i8xx_ring_put_irq(struct intel_ring_buffer *ring) | |||
961 | void intel_ring_setup_status_page(struct intel_ring_buffer *ring) | 961 | void intel_ring_setup_status_page(struct intel_ring_buffer *ring) |
962 | { | 962 | { |
963 | struct drm_device *dev = ring->dev; | 963 | struct drm_device *dev = ring->dev; |
964 | drm_i915_private_t *dev_priv = ring->dev->dev_private; | 964 | struct drm_i915_private *dev_priv = ring->dev->dev_private; |
965 | u32 mmio = 0; | 965 | u32 mmio = 0; |
966 | 966 | ||
967 | /* The ring status page addresses are no longer next to the rest of | 967 | /* The ring status page addresses are no longer next to the rest of |
@@ -1054,7 +1054,7 @@ static bool | |||
1054 | gen6_ring_get_irq(struct intel_ring_buffer *ring) | 1054 | gen6_ring_get_irq(struct intel_ring_buffer *ring) |
1055 | { | 1055 | { |
1056 | struct drm_device *dev = ring->dev; | 1056 | struct drm_device *dev = ring->dev; |
1057 | drm_i915_private_t *dev_priv = dev->dev_private; | 1057 | struct drm_i915_private *dev_priv = dev->dev_private; |
1058 | unsigned long flags; | 1058 | unsigned long flags; |
1059 | 1059 | ||
1060 | if (!dev->irq_enabled) | 1060 | if (!dev->irq_enabled) |
@@ -1079,7 +1079,7 @@ static void | |||
1079 | gen6_ring_put_irq(struct intel_ring_buffer *ring) | 1079 | gen6_ring_put_irq(struct intel_ring_buffer *ring) |
1080 | { | 1080 | { |
1081 | struct drm_device *dev = ring->dev; | 1081 | struct drm_device *dev = ring->dev; |
1082 | drm_i915_private_t *dev_priv = dev->dev_private; | 1082 | struct drm_i915_private *dev_priv = dev->dev_private; |
1083 | unsigned long flags; | 1083 | unsigned long flags; |
1084 | 1084 | ||
1085 | spin_lock_irqsave(&dev_priv->irq_lock, flags); | 1085 | spin_lock_irqsave(&dev_priv->irq_lock, flags); |
@@ -1646,7 +1646,7 @@ static int __intel_ring_prepare(struct intel_ring_buffer *ring, | |||
1646 | int intel_ring_begin(struct intel_ring_buffer *ring, | 1646 | int intel_ring_begin(struct intel_ring_buffer *ring, |
1647 | int num_dwords) | 1647 | int num_dwords) |
1648 | { | 1648 | { |
1649 | drm_i915_private_t *dev_priv = ring->dev->dev_private; | 1649 | struct drm_i915_private *dev_priv = ring->dev->dev_private; |
1650 | int ret; | 1650 | int ret; |
1651 | 1651 | ||
1652 | ret = i915_gem_check_wedge(&dev_priv->gpu_error, | 1652 | ret = i915_gem_check_wedge(&dev_priv->gpu_error, |
@@ -1708,7 +1708,7 @@ void intel_ring_init_seqno(struct intel_ring_buffer *ring, u32 seqno) | |||
1708 | static void gen6_bsd_ring_write_tail(struct intel_ring_buffer *ring, | 1708 | static void gen6_bsd_ring_write_tail(struct intel_ring_buffer *ring, |
1709 | u32 value) | 1709 | u32 value) |
1710 | { | 1710 | { |
1711 | drm_i915_private_t *dev_priv = ring->dev->dev_private; | 1711 | struct drm_i915_private *dev_priv = ring->dev->dev_private; |
1712 | 1712 | ||
1713 | /* Every tail move must follow the sequence below */ | 1713 | /* Every tail move must follow the sequence below */ |
1714 | 1714 | ||
@@ -1883,7 +1883,7 @@ static int gen6_ring_flush(struct intel_ring_buffer *ring, | |||
1883 | 1883 | ||
1884 | int intel_init_render_ring_buffer(struct drm_device *dev) | 1884 | int intel_init_render_ring_buffer(struct drm_device *dev) |
1885 | { | 1885 | { |
1886 | drm_i915_private_t *dev_priv = dev->dev_private; | 1886 | struct drm_i915_private *dev_priv = dev->dev_private; |
1887 | struct intel_ring_buffer *ring = &dev_priv->ring[RCS]; | 1887 | struct intel_ring_buffer *ring = &dev_priv->ring[RCS]; |
1888 | 1888 | ||
1889 | ring->name = "render ring"; | 1889 | ring->name = "render ring"; |
@@ -1984,7 +1984,7 @@ int intel_init_render_ring_buffer(struct drm_device *dev) | |||
1984 | 1984 | ||
1985 | int intel_render_ring_init_dri(struct drm_device *dev, u64 start, u32 size) | 1985 | int intel_render_ring_init_dri(struct drm_device *dev, u64 start, u32 size) |
1986 | { | 1986 | { |
1987 | drm_i915_private_t *dev_priv = dev->dev_private; | 1987 | struct drm_i915_private *dev_priv = dev->dev_private; |
1988 | struct intel_ring_buffer *ring = &dev_priv->ring[RCS]; | 1988 | struct intel_ring_buffer *ring = &dev_priv->ring[RCS]; |
1989 | int ret; | 1989 | int ret; |
1990 | 1990 | ||
@@ -2052,7 +2052,7 @@ int intel_render_ring_init_dri(struct drm_device *dev, u64 start, u32 size) | |||
2052 | 2052 | ||
2053 | int intel_init_bsd_ring_buffer(struct drm_device *dev) | 2053 | int intel_init_bsd_ring_buffer(struct drm_device *dev) |
2054 | { | 2054 | { |
2055 | drm_i915_private_t *dev_priv = dev->dev_private; | 2055 | struct drm_i915_private *dev_priv = dev->dev_private; |
2056 | struct intel_ring_buffer *ring = &dev_priv->ring[VCS]; | 2056 | struct intel_ring_buffer *ring = &dev_priv->ring[VCS]; |
2057 | 2057 | ||
2058 | ring->name = "bsd ring"; | 2058 | ring->name = "bsd ring"; |
@@ -2115,7 +2115,7 @@ int intel_init_bsd_ring_buffer(struct drm_device *dev) | |||
2115 | 2115 | ||
2116 | int intel_init_blt_ring_buffer(struct drm_device *dev) | 2116 | int intel_init_blt_ring_buffer(struct drm_device *dev) |
2117 | { | 2117 | { |
2118 | drm_i915_private_t *dev_priv = dev->dev_private; | 2118 | struct drm_i915_private *dev_priv = dev->dev_private; |
2119 | struct intel_ring_buffer *ring = &dev_priv->ring[BCS]; | 2119 | struct intel_ring_buffer *ring = &dev_priv->ring[BCS]; |
2120 | 2120 | ||
2121 | ring->name = "blitter ring"; | 2121 | ring->name = "blitter ring"; |
@@ -2155,7 +2155,7 @@ int intel_init_blt_ring_buffer(struct drm_device *dev) | |||
2155 | 2155 | ||
2156 | int intel_init_vebox_ring_buffer(struct drm_device *dev) | 2156 | int intel_init_vebox_ring_buffer(struct drm_device *dev) |
2157 | { | 2157 | { |
2158 | drm_i915_private_t *dev_priv = dev->dev_private; | 2158 | struct drm_i915_private *dev_priv = dev->dev_private; |
2159 | struct intel_ring_buffer *ring = &dev_priv->ring[VECS]; | 2159 | struct intel_ring_buffer *ring = &dev_priv->ring[VECS]; |
2160 | 2160 | ||
2161 | ring->name = "video enhancement ring"; | 2161 | ring->name = "video enhancement ring"; |