Lines Matching full:i915
47 static int l3_access_valid(struct drm_i915_private *i915, loff_t offset) in l3_access_valid() argument
49 if (!HAS_L3_DPF(i915)) in l3_access_valid()
67 struct drm_i915_private *i915 = kdev_minor_to_i915(kdev); in i915_l3_read() local
71 ret = l3_access_valid(i915, offset); in i915_l3_read()
79 spin_lock(&i915->gem.contexts.lock); in i915_l3_read()
80 if (i915->l3_parity.remap_info[slice]) in i915_l3_read()
82 i915->l3_parity.remap_info[slice] + offset / sizeof(u32), in i915_l3_read()
84 spin_unlock(&i915->gem.contexts.lock); in i915_l3_read()
95 struct drm_i915_private *i915 = kdev_minor_to_i915(kdev); in i915_l3_write() local
101 ret = l3_access_valid(i915, offset); in i915_l3_write()
112 spin_lock(&i915->gem.contexts.lock); in i915_l3_write()
114 if (i915->l3_parity.remap_info[slice]) { in i915_l3_write()
116 remap_info = i915->l3_parity.remap_info[slice]; in i915_l3_write()
118 i915->l3_parity.remap_info[slice] = remap_info; in i915_l3_write()
125 list_for_each_entry(ctx, &i915->gem.contexts.list, link) in i915_l3_write()
128 spin_unlock(&i915->gem.contexts.lock); in i915_l3_write()