diff options
author | Jani Nikula <jani.nikula@intel.com> | 2014-03-31 07:27:21 -0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-03-31 09:34:21 -0400 |
commit | 50227e1cae118562b8b6230e31bca84870cad27e (patch) | |
tree | 387e7ef0d51cdab7ecf6871492834d5ac77a1f11 /drivers/gpu | |
parent | d5d45cc5fe02d158e4ca8fc5a45e0614873bfeb3 (diff) |
drm/i915: prefer struct drm_i915_private to drm_i915_private_t
Remove the rest of the references to drm_i915_private_t. No functional
changes.
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
[danvet: Drop hunk in i915_cmd_parser.c]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/i915/i915_drv.c | 2 | ||||
-rw-r--r-- | drivers/gpu/drm/i915/i915_drv.h | 6 | ||||
-rw-r--r-- | drivers/gpu/drm/i915/i915_gem_debug.c | 2 | ||||
-rw-r--r-- | drivers/gpu/drm/i915/i915_gem_evict.c | 4 | ||||
-rw-r--r-- | drivers/gpu/drm/i915/i915_gem_execbuffer.c | 4 | ||||
-rw-r--r-- | drivers/gpu/drm/i915/i915_gem_gtt.c | 4 | ||||
-rw-r--r-- | drivers/gpu/drm/i915/i915_gem_tiling.c | 6 | ||||
-rw-r--r-- | drivers/gpu/drm/i915/i915_gpu_error.c | 2 | ||||
-rw-r--r-- | drivers/gpu/drm/i915/intel_pm.c | 4 |
9 files changed, 17 insertions, 17 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c index fa5d0ed76378..11f77a8e4c4d 100644 --- a/drivers/gpu/drm/i915/i915_drv.c +++ b/drivers/gpu/drm/i915/i915_drv.c | |||
@@ -662,7 +662,7 @@ int i915_resume(struct drm_device *dev) | |||
662 | */ | 662 | */ |
663 | int i915_reset(struct drm_device *dev) | 663 | int i915_reset(struct drm_device *dev) |
664 | { | 664 | { |
665 | drm_i915_private_t *dev_priv = dev->dev_private; | 665 | struct drm_i915_private *dev_priv = dev->dev_private; |
666 | bool simulated; | 666 | bool simulated; |
667 | int ret; | 667 | int ret; |
668 | 668 | ||
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h index 8d10f220e044..0905cd915589 100644 --- a/drivers/gpu/drm/i915/i915_drv.h +++ b/drivers/gpu/drm/i915/i915_drv.h | |||
@@ -2128,11 +2128,11 @@ extern void intel_uncore_check_errors(struct drm_device *dev); | |||
2128 | extern void intel_uncore_fini(struct drm_device *dev); | 2128 | extern void intel_uncore_fini(struct drm_device *dev); |
2129 | 2129 | ||
2130 | void | 2130 | void |
2131 | i915_enable_pipestat(drm_i915_private_t *dev_priv, enum pipe pipe, | 2131 | i915_enable_pipestat(struct drm_i915_private *dev_priv, enum pipe pipe, |
2132 | u32 status_mask); | 2132 | u32 status_mask); |
2133 | 2133 | ||
2134 | void | 2134 | void |
2135 | i915_disable_pipestat(drm_i915_private_t *dev_priv, enum pipe pipe, | 2135 | i915_disable_pipestat(struct drm_i915_private *dev_priv, enum pipe pipe, |
2136 | u32 status_mask); | 2136 | u32 status_mask); |
2137 | 2137 | ||
2138 | void valleyview_enable_display_irqs(struct drm_i915_private *dev_priv); | 2138 | void valleyview_enable_display_irqs(struct drm_i915_private *dev_priv); |
@@ -2502,7 +2502,7 @@ void i915_gem_object_release_stolen(struct drm_i915_gem_object *obj); | |||
2502 | /* i915_gem_tiling.c */ | 2502 | /* i915_gem_tiling.c */ |
2503 | static inline bool i915_gem_object_needs_bit17_swizzle(struct drm_i915_gem_object *obj) | 2503 | static inline bool i915_gem_object_needs_bit17_swizzle(struct drm_i915_gem_object *obj) |
2504 | { | 2504 | { |
2505 | drm_i915_private_t *dev_priv = obj->base.dev->dev_private; | 2505 | struct drm_i915_private *dev_priv = obj->base.dev->dev_private; |
2506 | 2506 | ||
2507 | return dev_priv->mm.bit_6_swizzle_x == I915_BIT_6_SWIZZLE_9_10_17 && | 2507 | return dev_priv->mm.bit_6_swizzle_x == I915_BIT_6_SWIZZLE_9_10_17 && |
2508 | obj->tiling_mode != I915_TILING_NONE; | 2508 | obj->tiling_mode != I915_TILING_NONE; |
diff --git a/drivers/gpu/drm/i915/i915_gem_debug.c b/drivers/gpu/drm/i915/i915_gem_debug.c index 775d506b3208..f462d1b51d97 100644 --- a/drivers/gpu/drm/i915/i915_gem_debug.c +++ b/drivers/gpu/drm/i915/i915_gem_debug.c | |||
@@ -34,7 +34,7 @@ int | |||
34 | i915_verify_lists(struct drm_device *dev) | 34 | i915_verify_lists(struct drm_device *dev) |
35 | { | 35 | { |
36 | static int warned; | 36 | static int warned; |
37 | drm_i915_private_t *dev_priv = dev->dev_private; | 37 | struct drm_i915_private *dev_priv = dev->dev_private; |
38 | struct drm_i915_gem_object *obj; | 38 | struct drm_i915_gem_object *obj; |
39 | int err = 0; | 39 | int err = 0; |
40 | 40 | ||
diff --git a/drivers/gpu/drm/i915/i915_gem_evict.c b/drivers/gpu/drm/i915/i915_gem_evict.c index 8a78f7885cba..75fca63dc8c1 100644 --- a/drivers/gpu/drm/i915/i915_gem_evict.c +++ b/drivers/gpu/drm/i915/i915_gem_evict.c | |||
@@ -70,7 +70,7 @@ i915_gem_evict_something(struct drm_device *dev, struct i915_address_space *vm, | |||
70 | int min_size, unsigned alignment, unsigned cache_level, | 70 | int min_size, unsigned alignment, unsigned cache_level, |
71 | unsigned flags) | 71 | unsigned flags) |
72 | { | 72 | { |
73 | drm_i915_private_t *dev_priv = dev->dev_private; | 73 | struct drm_i915_private *dev_priv = dev->dev_private; |
74 | struct list_head eviction_list, unwind_list; | 74 | struct list_head eviction_list, unwind_list; |
75 | struct i915_vma *vma; | 75 | struct i915_vma *vma; |
76 | int ret = 0; | 76 | int ret = 0; |
@@ -243,7 +243,7 @@ int i915_gem_evict_vm(struct i915_address_space *vm, bool do_idle) | |||
243 | int | 243 | int |
244 | i915_gem_evict_everything(struct drm_device *dev) | 244 | i915_gem_evict_everything(struct drm_device *dev) |
245 | { | 245 | { |
246 | drm_i915_private_t *dev_priv = dev->dev_private; | 246 | struct drm_i915_private *dev_priv = dev->dev_private; |
247 | struct i915_address_space *vm; | 247 | struct i915_address_space *vm; |
248 | bool lists_empty = true; | 248 | bool lists_empty = true; |
249 | int ret; | 249 | int ret; |
diff --git a/drivers/gpu/drm/i915/i915_gem_execbuffer.c b/drivers/gpu/drm/i915/i915_gem_execbuffer.c index 3851a1b1dc88..7447160155a3 100644 --- a/drivers/gpu/drm/i915/i915_gem_execbuffer.c +++ b/drivers/gpu/drm/i915/i915_gem_execbuffer.c | |||
@@ -978,7 +978,7 @@ static int | |||
978 | i915_reset_gen7_sol_offsets(struct drm_device *dev, | 978 | i915_reset_gen7_sol_offsets(struct drm_device *dev, |
979 | struct intel_ring_buffer *ring) | 979 | struct intel_ring_buffer *ring) |
980 | { | 980 | { |
981 | drm_i915_private_t *dev_priv = dev->dev_private; | 981 | struct drm_i915_private *dev_priv = dev->dev_private; |
982 | int ret, i; | 982 | int ret, i; |
983 | 983 | ||
984 | if (!IS_GEN7(dev) || ring != &dev_priv->ring[RCS]) | 984 | if (!IS_GEN7(dev) || ring != &dev_priv->ring[RCS]) |
@@ -1005,7 +1005,7 @@ i915_gem_do_execbuffer(struct drm_device *dev, void *data, | |||
1005 | struct drm_i915_gem_execbuffer2 *args, | 1005 | struct drm_i915_gem_execbuffer2 *args, |
1006 | struct drm_i915_gem_exec_object2 *exec) | 1006 | struct drm_i915_gem_exec_object2 *exec) |
1007 | { | 1007 | { |
1008 | drm_i915_private_t *dev_priv = dev->dev_private; | 1008 | struct drm_i915_private *dev_priv = dev->dev_private; |
1009 | struct eb_vmas *eb; | 1009 | struct eb_vmas *eb; |
1010 | struct drm_i915_gem_object *batch_obj; | 1010 | struct drm_i915_gem_object *batch_obj; |
1011 | struct drm_clip_rect *cliprects = NULL; | 1011 | struct drm_clip_rect *cliprects = NULL; |
diff --git a/drivers/gpu/drm/i915/i915_gem_gtt.c b/drivers/gpu/drm/i915/i915_gem_gtt.c index ae6919c8c522..3b1f621f1009 100644 --- a/drivers/gpu/drm/i915/i915_gem_gtt.c +++ b/drivers/gpu/drm/i915/i915_gem_gtt.c | |||
@@ -888,7 +888,7 @@ err_out: | |||
888 | static int gen7_ppgtt_enable(struct i915_hw_ppgtt *ppgtt) | 888 | static int gen7_ppgtt_enable(struct i915_hw_ppgtt *ppgtt) |
889 | { | 889 | { |
890 | struct drm_device *dev = ppgtt->base.dev; | 890 | struct drm_device *dev = ppgtt->base.dev; |
891 | drm_i915_private_t *dev_priv = dev->dev_private; | 891 | struct drm_i915_private *dev_priv = dev->dev_private; |
892 | struct intel_ring_buffer *ring; | 892 | struct intel_ring_buffer *ring; |
893 | uint32_t ecochk, ecobits; | 893 | uint32_t ecochk, ecobits; |
894 | int i; | 894 | int i; |
@@ -927,7 +927,7 @@ static int gen7_ppgtt_enable(struct i915_hw_ppgtt *ppgtt) | |||
927 | static int gen6_ppgtt_enable(struct i915_hw_ppgtt *ppgtt) | 927 | static int gen6_ppgtt_enable(struct i915_hw_ppgtt *ppgtt) |
928 | { | 928 | { |
929 | struct drm_device *dev = ppgtt->base.dev; | 929 | struct drm_device *dev = ppgtt->base.dev; |
930 | drm_i915_private_t *dev_priv = dev->dev_private; | 930 | struct drm_i915_private *dev_priv = dev->dev_private; |
931 | struct intel_ring_buffer *ring; | 931 | struct intel_ring_buffer *ring; |
932 | uint32_t ecochk, gab_ctl, ecobits; | 932 | uint32_t ecochk, gab_ctl, ecobits; |
933 | int i; | 933 | int i; |
diff --git a/drivers/gpu/drm/i915/i915_gem_tiling.c b/drivers/gpu/drm/i915/i915_gem_tiling.c index eb993584aa6b..cb150e8b4336 100644 --- a/drivers/gpu/drm/i915/i915_gem_tiling.c +++ b/drivers/gpu/drm/i915/i915_gem_tiling.c | |||
@@ -87,7 +87,7 @@ | |||
87 | void | 87 | void |
88 | i915_gem_detect_bit_6_swizzle(struct drm_device *dev) | 88 | i915_gem_detect_bit_6_swizzle(struct drm_device *dev) |
89 | { | 89 | { |
90 | drm_i915_private_t *dev_priv = dev->dev_private; | 90 | struct drm_i915_private *dev_priv = dev->dev_private; |
91 | uint32_t swizzle_x = I915_BIT_6_SWIZZLE_UNKNOWN; | 91 | uint32_t swizzle_x = I915_BIT_6_SWIZZLE_UNKNOWN; |
92 | uint32_t swizzle_y = I915_BIT_6_SWIZZLE_UNKNOWN; | 92 | uint32_t swizzle_y = I915_BIT_6_SWIZZLE_UNKNOWN; |
93 | 93 | ||
@@ -294,7 +294,7 @@ i915_gem_set_tiling(struct drm_device *dev, void *data, | |||
294 | struct drm_file *file) | 294 | struct drm_file *file) |
295 | { | 295 | { |
296 | struct drm_i915_gem_set_tiling *args = data; | 296 | struct drm_i915_gem_set_tiling *args = data; |
297 | drm_i915_private_t *dev_priv = dev->dev_private; | 297 | struct drm_i915_private *dev_priv = dev->dev_private; |
298 | struct drm_i915_gem_object *obj; | 298 | struct drm_i915_gem_object *obj; |
299 | int ret = 0; | 299 | int ret = 0; |
300 | 300 | ||
@@ -415,7 +415,7 @@ i915_gem_get_tiling(struct drm_device *dev, void *data, | |||
415 | struct drm_file *file) | 415 | struct drm_file *file) |
416 | { | 416 | { |
417 | struct drm_i915_gem_get_tiling *args = data; | 417 | struct drm_i915_gem_get_tiling *args = data; |
418 | drm_i915_private_t *dev_priv = dev->dev_private; | 418 | struct drm_i915_private *dev_priv = dev->dev_private; |
419 | struct drm_i915_gem_object *obj; | 419 | struct drm_i915_gem_object *obj; |
420 | 420 | ||
421 | obj = to_intel_bo(drm_gem_object_lookup(dev, file, args->handle)); | 421 | obj = to_intel_bo(drm_gem_object_lookup(dev, file, args->handle)); |
diff --git a/drivers/gpu/drm/i915/i915_gpu_error.c b/drivers/gpu/drm/i915/i915_gpu_error.c index 7f5dd38eb33d..12f1d43b2d68 100644 --- a/drivers/gpu/drm/i915/i915_gpu_error.c +++ b/drivers/gpu/drm/i915/i915_gpu_error.c | |||
@@ -322,7 +322,7 @@ int i915_error_state_to_str(struct drm_i915_error_state_buf *m, | |||
322 | const struct i915_error_state_file_priv *error_priv) | 322 | const struct i915_error_state_file_priv *error_priv) |
323 | { | 323 | { |
324 | struct drm_device *dev = error_priv->dev; | 324 | struct drm_device *dev = error_priv->dev; |
325 | drm_i915_private_t *dev_priv = dev->dev_private; | 325 | struct drm_i915_private *dev_priv = dev->dev_private; |
326 | struct drm_i915_error_state *error = error_priv->error; | 326 | struct drm_i915_error_state *error = error_priv->error; |
327 | int i, j, offset, elt; | 327 | int i, j, offset, elt; |
328 | int max_hangcheck_score; | 328 | int max_hangcheck_score; |
diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c index e9df08a55441..38a68cea5ed7 100644 --- a/drivers/gpu/drm/i915/intel_pm.c +++ b/drivers/gpu/drm/i915/intel_pm.c | |||
@@ -623,7 +623,7 @@ out_disable: | |||
623 | 623 | ||
624 | static void i915_pineview_get_mem_freq(struct drm_device *dev) | 624 | static void i915_pineview_get_mem_freq(struct drm_device *dev) |
625 | { | 625 | { |
626 | drm_i915_private_t *dev_priv = dev->dev_private; | 626 | struct drm_i915_private *dev_priv = dev->dev_private; |
627 | u32 tmp; | 627 | u32 tmp; |
628 | 628 | ||
629 | tmp = I915_READ(CLKCFG); | 629 | tmp = I915_READ(CLKCFG); |
@@ -662,7 +662,7 @@ static void i915_pineview_get_mem_freq(struct drm_device *dev) | |||
662 | 662 | ||
663 | static void i915_ironlake_get_mem_freq(struct drm_device *dev) | 663 | static void i915_ironlake_get_mem_freq(struct drm_device *dev) |
664 | { | 664 | { |
665 | drm_i915_private_t *dev_priv = dev->dev_private; | 665 | struct drm_i915_private *dev_priv = dev->dev_private; |
666 | u16 ddrpll, csipll; | 666 | u16 ddrpll, csipll; |
667 | 667 | ||
668 | ddrpll = I915_READ16(DDRMPLL1); | 668 | ddrpll = I915_READ16(DDRMPLL1); |