提交 e277a1f8 编写于 作者: J Jani Nikula 提交者: Daniel Vetter

drm/i915/debugfs: prefer struct drm_i915_private to drm_i915_private_t

No functional changes.
Signed-off-by: NJani Nikula <jani.nikula@intel.com>
Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
上级 2876ce73
...@@ -561,7 +561,7 @@ static int i915_gem_request_info(struct seq_file *m, void *data) ...@@ -561,7 +561,7 @@ static int i915_gem_request_info(struct seq_file *m, void *data)
{ {
struct drm_info_node *node = (struct drm_info_node *) m->private; struct drm_info_node *node = (struct drm_info_node *) m->private;
struct drm_device *dev = node->minor->dev; struct drm_device *dev = node->minor->dev;
drm_i915_private_t *dev_priv = dev->dev_private; struct drm_i915_private *dev_priv = dev->dev_private;
struct intel_ring_buffer *ring; struct intel_ring_buffer *ring;
struct drm_i915_gem_request *gem_request; struct drm_i915_gem_request *gem_request;
int ret, count, i; int ret, count, i;
...@@ -606,7 +606,7 @@ static int i915_gem_seqno_info(struct seq_file *m, void *data) ...@@ -606,7 +606,7 @@ static int i915_gem_seqno_info(struct seq_file *m, void *data)
{ {
struct drm_info_node *node = (struct drm_info_node *) m->private; struct drm_info_node *node = (struct drm_info_node *) m->private;
struct drm_device *dev = node->minor->dev; struct drm_device *dev = node->minor->dev;
drm_i915_private_t *dev_priv = dev->dev_private; struct drm_i915_private *dev_priv = dev->dev_private;
struct intel_ring_buffer *ring; struct intel_ring_buffer *ring;
int ret, i; int ret, i;
...@@ -629,7 +629,7 @@ static int i915_interrupt_info(struct seq_file *m, void *data) ...@@ -629,7 +629,7 @@ static int i915_interrupt_info(struct seq_file *m, void *data)
{ {
struct drm_info_node *node = (struct drm_info_node *) m->private; struct drm_info_node *node = (struct drm_info_node *) m->private;
struct drm_device *dev = node->minor->dev; struct drm_device *dev = node->minor->dev;
drm_i915_private_t *dev_priv = dev->dev_private; struct drm_i915_private *dev_priv = dev->dev_private;
struct intel_ring_buffer *ring; struct intel_ring_buffer *ring;
int ret, i, pipe; int ret, i, pipe;
...@@ -770,7 +770,7 @@ static int i915_gem_fence_regs_info(struct seq_file *m, void *data) ...@@ -770,7 +770,7 @@ static int i915_gem_fence_regs_info(struct seq_file *m, void *data)
{ {
struct drm_info_node *node = (struct drm_info_node *) m->private; struct drm_info_node *node = (struct drm_info_node *) m->private;
struct drm_device *dev = node->minor->dev; struct drm_device *dev = node->minor->dev;
drm_i915_private_t *dev_priv = dev->dev_private; struct drm_i915_private *dev_priv = dev->dev_private;
int i, ret; int i, ret;
ret = mutex_lock_interruptible(&dev->struct_mutex); ret = mutex_lock_interruptible(&dev->struct_mutex);
...@@ -799,7 +799,7 @@ static int i915_hws_info(struct seq_file *m, void *data) ...@@ -799,7 +799,7 @@ static int i915_hws_info(struct seq_file *m, void *data)
{ {
struct drm_info_node *node = (struct drm_info_node *) m->private; struct drm_info_node *node = (struct drm_info_node *) m->private;
struct drm_device *dev = node->minor->dev; struct drm_device *dev = node->minor->dev;
drm_i915_private_t *dev_priv = dev->dev_private; struct drm_i915_private *dev_priv = dev->dev_private;
struct intel_ring_buffer *ring; struct intel_ring_buffer *ring;
const u32 *hws; const u32 *hws;
int i; int i;
...@@ -910,7 +910,7 @@ static int ...@@ -910,7 +910,7 @@ static int
i915_next_seqno_get(void *data, u64 *val) i915_next_seqno_get(void *data, u64 *val)
{ {
struct drm_device *dev = data; struct drm_device *dev = data;
drm_i915_private_t *dev_priv = dev->dev_private; struct drm_i915_private *dev_priv = dev->dev_private;
int ret; int ret;
ret = mutex_lock_interruptible(&dev->struct_mutex); ret = mutex_lock_interruptible(&dev->struct_mutex);
...@@ -947,7 +947,7 @@ static int i915_rstdby_delays(struct seq_file *m, void *unused) ...@@ -947,7 +947,7 @@ static int i915_rstdby_delays(struct seq_file *m, void *unused)
{ {
struct drm_info_node *node = (struct drm_info_node *) m->private; struct drm_info_node *node = (struct drm_info_node *) m->private;
struct drm_device *dev = node->minor->dev; struct drm_device *dev = node->minor->dev;
drm_i915_private_t *dev_priv = dev->dev_private; struct drm_i915_private *dev_priv = dev->dev_private;
u16 crstanddelay; u16 crstanddelay;
int ret; int ret;
...@@ -970,7 +970,7 @@ static int i915_cur_delayinfo(struct seq_file *m, void *unused) ...@@ -970,7 +970,7 @@ static int i915_cur_delayinfo(struct seq_file *m, void *unused)
{ {
struct drm_info_node *node = (struct drm_info_node *) m->private; struct drm_info_node *node = (struct drm_info_node *) m->private;
struct drm_device *dev = node->minor->dev; struct drm_device *dev = node->minor->dev;
drm_i915_private_t *dev_priv = dev->dev_private; struct drm_i915_private *dev_priv = dev->dev_private;
int ret = 0; int ret = 0;
intel_runtime_pm_get(dev_priv); intel_runtime_pm_get(dev_priv);
...@@ -1096,7 +1096,7 @@ static int i915_delayfreq_table(struct seq_file *m, void *unused) ...@@ -1096,7 +1096,7 @@ static int i915_delayfreq_table(struct seq_file *m, void *unused)
{ {
struct drm_info_node *node = (struct drm_info_node *) m->private; struct drm_info_node *node = (struct drm_info_node *) m->private;
struct drm_device *dev = node->minor->dev; struct drm_device *dev = node->minor->dev;
drm_i915_private_t *dev_priv = dev->dev_private; struct drm_i915_private *dev_priv = dev->dev_private;
u32 delayfreq; u32 delayfreq;
int ret, i; int ret, i;
...@@ -1127,7 +1127,7 @@ static int i915_inttoext_table(struct seq_file *m, void *unused) ...@@ -1127,7 +1127,7 @@ static int i915_inttoext_table(struct seq_file *m, void *unused)
{ {
struct drm_info_node *node = (struct drm_info_node *) m->private; struct drm_info_node *node = (struct drm_info_node *) m->private;
struct drm_device *dev = node->minor->dev; struct drm_device *dev = node->minor->dev;
drm_i915_private_t *dev_priv = dev->dev_private; struct drm_i915_private *dev_priv = dev->dev_private;
u32 inttoext; u32 inttoext;
int ret, i; int ret, i;
...@@ -1151,7 +1151,7 @@ static int ironlake_drpc_info(struct seq_file *m) ...@@ -1151,7 +1151,7 @@ static int ironlake_drpc_info(struct seq_file *m)
{ {
struct drm_info_node *node = (struct drm_info_node *) m->private; struct drm_info_node *node = (struct drm_info_node *) m->private;
struct drm_device *dev = node->minor->dev; struct drm_device *dev = node->minor->dev;
drm_i915_private_t *dev_priv = dev->dev_private; struct drm_i915_private *dev_priv = dev->dev_private;
u32 rgvmodectl, rstdbyctl; u32 rgvmodectl, rstdbyctl;
u16 crstandvid; u16 crstandvid;
int ret; int ret;
...@@ -1377,7 +1377,7 @@ static int i915_fbc_status(struct seq_file *m, void *unused) ...@@ -1377,7 +1377,7 @@ static int i915_fbc_status(struct seq_file *m, void *unused)
{ {
struct drm_info_node *node = (struct drm_info_node *) m->private; struct drm_info_node *node = (struct drm_info_node *) m->private;
struct drm_device *dev = node->minor->dev; struct drm_device *dev = node->minor->dev;
drm_i915_private_t *dev_priv = dev->dev_private; struct drm_i915_private *dev_priv = dev->dev_private;
if (!HAS_FBC(dev)) { if (!HAS_FBC(dev)) {
seq_puts(m, "FBC unsupported on this chipset\n"); seq_puts(m, "FBC unsupported on this chipset\n");
...@@ -1462,7 +1462,7 @@ static int i915_sr_status(struct seq_file *m, void *unused) ...@@ -1462,7 +1462,7 @@ static int i915_sr_status(struct seq_file *m, void *unused)
{ {
struct drm_info_node *node = (struct drm_info_node *) m->private; struct drm_info_node *node = (struct drm_info_node *) m->private;
struct drm_device *dev = node->minor->dev; struct drm_device *dev = node->minor->dev;
drm_i915_private_t *dev_priv = dev->dev_private; struct drm_i915_private *dev_priv = dev->dev_private;
bool sr_enabled = false; bool sr_enabled = false;
intel_runtime_pm_get(dev_priv); intel_runtime_pm_get(dev_priv);
...@@ -1488,7 +1488,7 @@ static int i915_emon_status(struct seq_file *m, void *unused) ...@@ -1488,7 +1488,7 @@ static int i915_emon_status(struct seq_file *m, void *unused)
{ {
struct drm_info_node *node = (struct drm_info_node *) m->private; struct drm_info_node *node = (struct drm_info_node *) m->private;
struct drm_device *dev = node->minor->dev; struct drm_device *dev = node->minor->dev;
drm_i915_private_t *dev_priv = dev->dev_private; struct drm_i915_private *dev_priv = dev->dev_private;
unsigned long temp, chipset, gfx; unsigned long temp, chipset, gfx;
int ret; int ret;
...@@ -1516,7 +1516,7 @@ static int i915_ring_freq_table(struct seq_file *m, void *unused) ...@@ -1516,7 +1516,7 @@ static int i915_ring_freq_table(struct seq_file *m, void *unused)
{ {
struct drm_info_node *node = (struct drm_info_node *) m->private; struct drm_info_node *node = (struct drm_info_node *) m->private;
struct drm_device *dev = node->minor->dev; struct drm_device *dev = node->minor->dev;
drm_i915_private_t *dev_priv = dev->dev_private; struct drm_i915_private *dev_priv = dev->dev_private;
int ret = 0; int ret = 0;
int gpu_freq, ia_freq; int gpu_freq, ia_freq;
...@@ -1559,7 +1559,7 @@ static int i915_gfxec(struct seq_file *m, void *unused) ...@@ -1559,7 +1559,7 @@ static int i915_gfxec(struct seq_file *m, void *unused)
{ {
struct drm_info_node *node = (struct drm_info_node *) m->private; struct drm_info_node *node = (struct drm_info_node *) m->private;
struct drm_device *dev = node->minor->dev; struct drm_device *dev = node->minor->dev;
drm_i915_private_t *dev_priv = dev->dev_private; struct drm_i915_private *dev_priv = dev->dev_private;
int ret; int ret;
ret = mutex_lock_interruptible(&dev->struct_mutex); ret = mutex_lock_interruptible(&dev->struct_mutex);
...@@ -1579,7 +1579,7 @@ static int i915_opregion(struct seq_file *m, void *unused) ...@@ -1579,7 +1579,7 @@ static int i915_opregion(struct seq_file *m, void *unused)
{ {
struct drm_info_node *node = (struct drm_info_node *) m->private; struct drm_info_node *node = (struct drm_info_node *) m->private;
struct drm_device *dev = node->minor->dev; struct drm_device *dev = node->minor->dev;
drm_i915_private_t *dev_priv = dev->dev_private; struct drm_i915_private *dev_priv = dev->dev_private;
struct intel_opregion *opregion = &dev_priv->opregion; struct intel_opregion *opregion = &dev_priv->opregion;
void *data = kmalloc(OPREGION_SIZE, GFP_KERNEL); void *data = kmalloc(OPREGION_SIZE, GFP_KERNEL);
int ret; int ret;
...@@ -1653,7 +1653,7 @@ static int i915_context_status(struct seq_file *m, void *unused) ...@@ -1653,7 +1653,7 @@ static int i915_context_status(struct seq_file *m, void *unused)
{ {
struct drm_info_node *node = (struct drm_info_node *) m->private; struct drm_info_node *node = (struct drm_info_node *) m->private;
struct drm_device *dev = node->minor->dev; struct drm_device *dev = node->minor->dev;
drm_i915_private_t *dev_priv = dev->dev_private; struct drm_i915_private *dev_priv = dev->dev_private;
struct intel_ring_buffer *ring; struct intel_ring_buffer *ring;
struct i915_hw_context *ctx; struct i915_hw_context *ctx;
int ret, i; int ret, i;
...@@ -3271,7 +3271,7 @@ static int ...@@ -3271,7 +3271,7 @@ static int
i915_wedged_get(void *data, u64 *val) i915_wedged_get(void *data, u64 *val)
{ {
struct drm_device *dev = data; struct drm_device *dev = data;
drm_i915_private_t *dev_priv = dev->dev_private; struct drm_i915_private *dev_priv = dev->dev_private;
*val = atomic_read(&dev_priv->gpu_error.reset_counter); *val = atomic_read(&dev_priv->gpu_error.reset_counter);
...@@ -3296,7 +3296,7 @@ static int ...@@ -3296,7 +3296,7 @@ static int
i915_ring_stop_get(void *data, u64 *val) i915_ring_stop_get(void *data, u64 *val)
{ {
struct drm_device *dev = data; struct drm_device *dev = data;
drm_i915_private_t *dev_priv = dev->dev_private; struct drm_i915_private *dev_priv = dev->dev_private;
*val = dev_priv->gpu_error.stop_rings; *val = dev_priv->gpu_error.stop_rings;
...@@ -3473,7 +3473,7 @@ static int ...@@ -3473,7 +3473,7 @@ static int
i915_max_freq_get(void *data, u64 *val) i915_max_freq_get(void *data, u64 *val)
{ {
struct drm_device *dev = data; struct drm_device *dev = data;
drm_i915_private_t *dev_priv = dev->dev_private; struct drm_i915_private *dev_priv = dev->dev_private;
int ret; int ret;
if (!(IS_GEN6(dev) || IS_GEN7(dev))) if (!(IS_GEN6(dev) || IS_GEN7(dev)))
...@@ -3554,7 +3554,7 @@ static int ...@@ -3554,7 +3554,7 @@ static int
i915_min_freq_get(void *data, u64 *val) i915_min_freq_get(void *data, u64 *val)
{ {
struct drm_device *dev = data; struct drm_device *dev = data;
drm_i915_private_t *dev_priv = dev->dev_private; struct drm_i915_private *dev_priv = dev->dev_private;
int ret; int ret;
if (!(IS_GEN6(dev) || IS_GEN7(dev))) if (!(IS_GEN6(dev) || IS_GEN7(dev)))
...@@ -3635,7 +3635,7 @@ static int ...@@ -3635,7 +3635,7 @@ static int
i915_cache_sharing_get(void *data, u64 *val) i915_cache_sharing_get(void *data, u64 *val)
{ {
struct drm_device *dev = data; struct drm_device *dev = data;
drm_i915_private_t *dev_priv = dev->dev_private; struct drm_i915_private *dev_priv = dev->dev_private;
u32 snpcr; u32 snpcr;
int ret; int ret;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册